Select the directory option from the above "Directory" header!

Menu
Deno gets faster Rust calls

Deno gets faster Rust calls

The JavaScript/TypeScript runtime features optimization for the communication layer.

Comments
Credit: Dreamstime

Faster calls into Rust are highlighted in the latest version of the Deno secure JavaScript / TypeScript runtime, improving performance.

The Rust enhancement pertains to communication between the Google V8 JavaScript engine leveraged by Deno and the rest of the runtime, which was written in the Rust language

With Deno 1.20, announced March 17, proponents have optimised the communication layer to be as much as 60 per cent quicker, leveraging Rust procedural macros to generate optimised bindings for V8 from existing Rust code. 

The macro optimises away deserialisation of unused arguments, speeds up metric collection, and provides a base for future integration with the V8 Fast API to further boost performance between JavaScript and Rust.

Other installation instructions can be found at deno.land. Elsewhere in Deno 1.20, Deno’s HTTP server now supports auto-compression for response bodies while stricter defaults are featured in programmatic permissions for tests and workers -- this is a breaking change.

To upgrade an HTTP connection, a Deno namespace API was added: Deno.upgradeHTTP(). It is unstable at the moment.

Meanwhile, a sub-command, deno task, has been added. This serves as a task runner, providing a convenient way of defining and executing custom commands specific to the development of a code base. But deno task, too, currently is unstable and could change drastically in the future.

Another sub-command, deno bench, serves as a benchmarking tool to check code performance -- it also is unstable.

In addition, global statics now can be used in the foreign function interface API, new interfaces, Deno.TcpConn and Deno.UnixConn, can be used as return types for Deno.connect() API, TypeScript 4.6 ships with Deno 1.20 and V8 10.0 is supported.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags javascript

Show Comments