Deno gets faster Rust calls

Deno gets faster Rust calls

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

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 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!


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


ARN Innovation Awards 2022

Innovation Awards is the market-leading awards program for celebrating ecosystem innovation and excellence across the technology sector in Australia.

EDGE 2022

EDGE is the leading technology conference for business leaders in Australia and New Zealand, built on the foundations of collaboration, education and advancement.

Brand Post

Channel Roadmap

The Channel Roadmap is a bespoke content hub housing strategic priorities from technology vendors for 2022 and beyond, partners can find the guidance on the key technologies and markets to pursue, to help build a blueprint for future success.

Show Comments