-
WebAssembly in the browser
WebAssembly was originally invented as a technology solution to speed up code execution inside web browsers. It does not provide a full replacement for JavaScript, but rather works side-by-side with JavaScript. The idea is that JavaScript functions could pass computationally intensive tasks to WebAssembly functions. In this tutorial, we will demonstrate how a simple WebAssembly in-browser application works. The source code of the tutorial is here. A WebAssembly application typically has two parts.…
-
Rust and WebAssembly
In this tutorial, we will create a very simple but complete WebAssembly application. A WebAssembly application typically has two parts. The bytecode program that runs inside the WebAssembly virtual machine to perform computing tasks The host application that provides UI, networking, database, and calls the WebAssembly program to perform key computing tasks or business logic In this tutorial, the host application is written in JavaScript and runs inside a web browser.…