-
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.…
-
A Rusty hello world
While WebAssembly supports many programming languages, Rust by far has the best tooling. Rust is voted the most beloved programming language by StackOverflow users for the past 4 years in a row. It is one of the fastest-growing programming languages. Rust is versatile and performant like C, but much safer than C due to its compiler design. Like C, it has a bit of a learning curve. In this tutorial, I will get you started with the Rust programming language.…
-
🚀 入门文档:在 Node.js 应用中调用 Rust 函数
服务端的 WebAssembly 有很多非常好的用例,尤其是在AI,区块链和大数据应用方面。这个入门教程展示了如何将用 Rust 编写的 WebAssembly 函数合并到服务器上的 Node.js 应用程序中。这…
RustWebAssemblyNode.jsgetting-startedrust-function-in-nodejs
-
🍹 树莓派上的高性能 Node.js 应用
树莓派(Raspberry Pi) 是一款功能强大的计算机,个头小巧。树莓派最便宜的机型是 Raspberry Pi Zero, 可以运行功能齐全的 Linux 发行版并驱动高清显示…