Deno Loves WebAssembly

Deno uses the Google V8 engine internally. V8 is not only a JavaScript runtime, but also a WebAssembly [Wasm] virtual machine. WebAssembly is supported in Deno out of the box. Deno provides an API for your TypeScript application to call functions in WebAssembly.

WebAssembly is a lightweight virtual machine designed to execute portable bytecode at near native speed. You can compile Rust or C/C++ functions to WebAssembly bytecode, and access those functions from TypeScript.

What about applications that require even higher performance, such as AI-as-a-Service applications that need to execute complex neural network models in sub-seconds? For example, an IBM study found that Rust and WebAssembly could improve Node.js execution speed by 1200% to 1500% for certain data processing algorithms.

Deno loves WebAssembly and we implement in Wasm:

> In fact, some popular Deno components are already implemented in WebAssembly. For example, the sqlite module in Deno is created by compiling sqlite’s C source code into WebAssembly using Emscripten. The Deno WASI component enables WebAssembly applications to access the underlying operating system resources, such as the file system. In this article, I will teach you how to write high performance Deno applications in Rust and WebAssembly. page