Photo by Julian Hochgesang / Unsplash

Deno Promises the Fastest Web Server and and NPM Imports

Web Development Aug 19, 2022

Changes are in the offing for the Deno TypeScript/JavaScript runtime, with plans afoot to make it easier to import NPM packages and to enable most of them to work in Deno. The project’s developers also aim to make Deno the fastest JavaScript runtime.

Which is better? Deno vs NodeJS
What is Node.js? Node.js is a cross-platform JavaScript runtime environment that is useful for both servers and desktop applications. It runs a single-threaded event loop registered with the system to handle connections, and each new connection causes a JavaScript callback function to fire. The cal…

In a blog post on August 15, Deno’s developers expressed their ambitions for the project. Goals include better interoperability with JavaScript written for Node.js and the ability to import and run NPM packages.

This will be done via special NPM URLs. The Deno Development Team wrote the following.

We want Deno to be accessible and solve problems, and so we’ve been working on some updates that will allow Deno to easily import NPM packages and make 80-90% of NPM packages work in Deno within the next three months.

To improve speed, plans call for releasing a new HTTP server, described as the fastest JavaScript web server ever built, with the next release of Deno. Deno has been on a monthly release cycle, which means Deno 1.25 could be released any day now. Deno 1.24 was released July 21.

Deno 1.24: Better Type Checking
A recent upgrade to Deno, the JavaScript and TypeScript runtime positioned as a rival to Node.js, improves performance for transpiling, type checking, and more, proponents say. Prior to the Deno 1.24 release, Deno internally converted TypeScript code to JavaScript using the TypeScript compiler when…

Other plans in speed department include the optimization of Deno’s ops system, interfacing directly with the V8 Fast API for fast calls from JavaScript into native code. Also, the Deno Foreign Function Interface (FFI) is being updated. “We aren’t optimizing for a handful of edge cases, but for overall real-world performance,” the developers wrote. “You’ll be experiencing these improvements for yourself before the summer is over.”

Also planned for the Deno ecosystem are full-text symbol search across third-party Deno code and automatic generation of documentation for TypeScript and JavaScript projects. Deno, which was designed by Node founder Ryan Dahl, recently passed more than 4.1 million downloads on GitHub, with more than 250,000 active users.

In response to extensive use of Deno, stewards of the platform will be launching office hours for those leveraging Deno in a commercial setting. Persons with issues about Deno can submit questions via an online form.

Tags

Traven West

Traven is the lead author for programming and cybersecurity topics. He also dives into application development, web development, and Linux.