-
🔐 Encryption and decryption
One of the frequently performed computing tasks is public key encryption and decryption. Rust and C++ code vastly outperforms JavaScript code in these tasks. In this tutorial, let's use pure Rust implementation of the RSA algorithm as an example to show how to perform public key encryption and decryption in a Node.js web service. In the getting started with Rust functions in Node.js, we showed you how to compile high performance Rust functions into WebAssembly, and call them from Node.…
RustWebAssemblyNode.jshow-touse-casecryptographyrust-function-in-nodejs
-
🚀 Getting started with Rust functions in Node.js
There are great use cases for WebAssembly on the server-side, especially for AI, blockchain, and big data applications. In this tutorial, I will show you how to incorporate WebAssembly functions, written in Rust, into Node.js applications on the server. This approach combines Rust's performance, WebAssembly's security and portability, and JavaScript's ease-of-use. A typical application works like this. The host application is a Node.js web application written in JavaScript. It makes WebAssembly function calls.…
RustWebAssemblyNode.jsgetting-startedrust-function-in-nodejs
-
🛠 Set up Rust & WebAssembly in Node.js
There are great use cases for WebAssembly on the server-side, especially for AI, blockchain, and big data applications. You can write functions in Rust, compile into WebAssembly, and call the managed code in Node.js applications on the server. This approach combines Rust's performance, WebAssembly's security and portability, and JavaScript's ease-of-use. Docker setup The easiest way to set up your dev environment is to use Docker. First, clone the starter template project.…
RustWebAssemblyNode.jsgetting-startedrust-function-in-nodejs
-
🤖 Image recognition in Node.js
Deep learning is one of the most important advances in computer science in the last decade. Using trained deep neural networks, artificial intelligence (AI) inference algorithms can perform a variety of very useful tasks, such as image, speech, and facial recognition, natural language processing, image and video search, at unprecedented accuracy. While inference can be done on the edge device, such as mobile phones or IoT sensors, it is suggested that cloud-based inference is much faster and energy efficient in our always-connected world.…
RustWebAssemblyNode.jsTensorflowhow-touse-caseai-as-a-serviceimage-recognitionrust-function-in-nodejs
-
Access JavaScript functions from Rust
In this tutorial, we will show you how to use the nodejs-helper crate to call Node.js functions from Rust code. Rust functions can now access the file system, network, database, and other system resources from within the WebAssembly container. It is important to note that a better way for Rust programs to access system resources is through the WebAssembly WASI extension, as well as numerous host extensions provided by the SSVM.…
-
🚀 入门文档:在 Node.js 应用中调用 Rust 函数
服务端的 WebAssembly 有很多非常好的用例,尤其是在AI,区块链和大数据应用方面。这个入门教程展示了如何将用 Rust 编写的 WebAssembly 函数合并到服务器上的 Node.js 应用程序中。这…
RustWebAssemblyNode.jsgetting-startedrust-function-in-nodejs
-
🍹 树莓派上的高性能 Node.js 应用
树莓派(Raspberry Pi) 是一款功能强大的计算机,个头小巧。树莓派最便宜的机型是 Raspberry Pi Zero, 可以运行功能齐全的 Linux 发行版并驱动高清显示…