Deno 1.8: Node.js alternative gets 'out of the box GPU accelerated machine learning'

JavaScript could usurp Python for mathematical programming, claims Deno team


The Deno project has released version 1.8, including experimental support for the WebGPU API enabling "out-of-the-box GPU accelerated machine learning."

Deno, which runs JavaScript outside the browser, is a project co-founded by the creator of Node.js Ryan Dahl, in part to fix design mistakes in his earlier effort. Despite these flaws, Node.js is embedded in today’s web development stack as well as being used by server frameworks such as Express, so Deno has an uphill battle to win adoption. Deno is developed in Rust and includes built-in TypeScript support.

Fancy a bit of Python (dev) charming?

The big news in Deno 1.8 is that the team hopes to attract Python developers for machine learning applications. “These days, most neural networks are defined in Python with the computation offloaded to GPUs. We believe JavaScript, instead of Python, could act as an ideal language for expressing mathematical ideas if the proper infrastructure existed,” the team said.

uninvited guest: rodent chews through cardboard box

Ever wondered why that one weird file keeps being included? Super sleuth TypeScript 4.2 is here

READ MORE

The “proper infrastructure” includes the ability to do general-purpose GPU computing, using the multithreading capabilities of the GPU for purposes other than graphics.

For this, the Deno project has turned to WebGPU, an API for GPU programming, which is not a W3C standard but does have support from Google, Mozilla and Apple, and therefore is in development for Chromium, Firefox and Safari.

Integration of the WebGPU API into Deno has been no small task and required 15.5k lines of code, according to the post, as well as guidance from the WebGPU team.

Also in Deno 1.8 is full support for International Components for Unicode (ICU), which was apparently the second most requested feature in the Deno repository. Deno promises to match browser APIs for this, important for language localisation.

JavaScript code

Node.js creator delivers Deno 1.0, a new runtime that fixes 'design mistakes in Node'

READ MORE

This release also saw import maps marked as stable, following their enablement in Google’s just-released Chrome 89. The link between Deno and Chrome is that both use the V8 JavaScript engine. Import maps allow simplified code for importing JavaScript modules.

Other new features include support for downloading modules from servers that require authentication, stabilization of permission APIs for security web pages, and improved instrumentation support (for analysing performance).

There is also a new language server, used to support smart features in code editors, that works with both Visual Studio Code and other editors. The TypeScript version in Deno 1.8 has been upgraded to the latest 4.2.

Deno has progressed considerably since the release of version 1.0 in May 2020 and the project has considerable momentum, as evidenced by 73,000 stars and 170,000 watchers on its GitHub repository.

Its use of Rust, built-in TypeScript, and exclusive use of ECMAScript modules (as opposed to CommonJS modules still widely used in Node) ticks the boxes for web developers – though adoption remains relatively small. ®


Other stories you might like

  • 381,000-plus Kubernetes API servers 'exposed to internet'
    Firewall isn't a made-up word from the Hackers movie, people

    A large number of servers running the Kubernetes API have been left exposed to the internet, which is not great: they're potentially vulnerable to abuse.

    Nonprofit security organization The Shadowserver Foundation recently scanned 454,729 systems hosting the popular open-source platform for managing and orchestrating containers, finding that more than 381,645 – or about 84 percent – are accessible via the internet to varying degrees thus providing a cracked door into a corporate network.

    "While this does not mean that these instances are fully open or vulnerable to an attack, it is likely that this level of access was not intended and these instances are an unnecessarily exposed attack surface," Shadowserver's team stressed in a write-up. "They also allow for information leakage on version and build."

    Continue reading
  • A peek into Gigabyte's GPU Arm for AI, HPC shops
    High-performance platform choices are going beyond the ubiquitous x86 standard

    Arm-based servers continue to gain momentum with Gigabyte Technology introducing a system based on Ampere's Altra processors paired with Nvidia A100 GPUs, aimed at demanding workloads such as AI training and high-performance compute (HPC) applications.

    The G492-PD0 runs either an Ampere Altra or Altra Max processor, the latter delivering 128 64-bit cores that are compatible with the Armv8.2 architecture.

    It supports 16 DDR4 DIMM slots, which would be enough space for up to 4TB of memory if all slots were filled with 256GB memory modules. The chassis also has space for no fewer than eight Nvidia A100 GPUs, which would make for a costly but very powerful system for those workloads that benefit from GPU acceleration.

    Continue reading
  • GitLab version 15 goes big on visibility and observability
    GitOps fans can take a spin on the free tier for pull-based deployment

    One-stop DevOps shop GitLab has announced version 15 of its platform, hot on the heels of pull-based GitOps turning up on the platform's free tier.

    Version 15.0 marks the arrival of GitLab's next major iteration and attention this time around has turned to visibility and observability – hardly surprising considering the acquisition of OpsTrace as 2021 drew to a close, as well as workflow automation, security and compliance.

    GitLab puts out monthly releases –  hitting 15.1 on June 22 –  and we spoke to the company's senior director of Product, Kenny Johnston, at the recent Kubecon EU event, about what will be added to version 15 as time goes by. During a chat with the company's senior director of Product, Kenny Johnston, at the recent Kubecon EU event, The Register was told that this was more where dollars were being invested into the product.

    Continue reading

Biting the hand that feeds IT © 1998–2022