-
Use Binary Data as Function Input and Output
In the previous article, we demonstrated how a Second State FaaS function could handle text-based input and output. Through JSON support, we can encode arbitrary data types into text. However, for functions focused on media processing, binary-based input and output is far more efficient and more performant. In this article, we will show you how to use a Second State FaaS function to add watermark to an image. The source code for the watermark example in this article is available on Github.…
RustJavaScriptWebAssemblyNode.jsFaaSRust FaaSServerlessCloud computing
-
High performance and safe AI as a Service in Node.js
Today’s dominant programming language for AI is Python. Yet, the programming language for the web is JavaScript. To provide AI capabilities as a service on the web, we need to wrap AI algorithms in JavaScript, particularly Node.js. However, neither Python nor JavaScript by itself is suitable for computationally intensive AI applications. They are high-level, ie, slow, languages with heavy-weight runtimes. Their ease-of-use comes at the cost of low performance. Python got around this by wrapping AI computation in native C/C++ modules.…
RustJavaScripttensorflowWebAssemblyNode.jsAI as a serviceFaaSAIFace detection
-
👏 Get a Free Raspberry Pi Kit- Wave 2
No purchase necessary. Learning and coding are mandatory! Offer ends on September 30th 2020. Learn to create a high performance Node.js application. In the process, you will learn how to write simple functions in the Rust programming language. Share your source code and learning experience to the community via social media. We will send you a FREE Raspberry Pi kit ($25). You can use it as a personal dev server.…
RustWebAssemblyNode.jsRaspberry Pihow-togive-awayrust-function-in-nodejs
-
👏 Get a Free Raspberry Pi Kit
No purchase necessary. Learning and coding are mandatory! Offer ends on Aug 31st, 2020. Learn to create a high performance Node.js application. In the process, you will learn how to write simple functions in the Rust programming language. Share your source code and learning experience to the community via social media. We will send you a FREE Raspberry Pi kit ($25). You can use it as a personal dev server.…
RustWebAssemblyNode.jsRaspberry Pihow-togive-awayrust-function-in-nodejs
-
🍹 High Performance Node.js on the $5 Computer - Raspberry Pi
The Raspberry Pi is a very powerful computer in a tiny package. The cheapest option, the Raspberry Pi Zero, is capable of running a fully featured Linux distribution and driving a high definition display. It is the size of 3 coins (US Quarters) and costs $5. At $10, the Raspberry Pi Zero W comes with integrated WiFi and Bluetooth. Get a FREE Raspberry Pi kit ($25 value) With a generic ARM CPU and easy networking, the Raspberry Pi can easily become a personal application server for you.…
-
The rustwasmc tool
Throughout our examples, we make extensive use of the rustwasmc tool. It is inspired by the wasm-pack project but is optimized for edge cloud and device applications. Specifically, it supports the WasmEdge WebAssembly runtime. Prerequisites The rustwasmc depends on the Rust cargo toolchain to compile Rust source code to WebAssembly. You must have Rust installed on your machine. $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh $ source $HOME/.cargo/env $ rustup override set 1.…
-
⚙️ Machine Learning: K-means clustering and visualization
Machine learning uses statistics to find patterns in data, and then applies those patterns to act on new data. It is the driving force behind many Internet services. For example, machine learning could figure out the kind of food you like based on your personal history, and then recommend related restaurants to you. Machine learning is both computationally intensive and time sensitive, performance matters. The lingua franca of machine learning is Python.…
RustWebAssemblyNode.jshow-touse-casemachine-learningrust-function-in-nodejs
-
🦀 Rust Functions in Node.js
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.js applications. With JSON support, JavaScript code can call Rust functions with any number of input parameters and return any number of return values of any type. That allows us to take advantage of a large number of Rust libraries and crates in the ecosystem.…
-
Getting started with Rust functions in Node.js with VSCode
In this tutorial, I will show you how to experiment with Rust and Node.js development without installing any developer tools software. Why do I want to write Rust functions in Node.js apps? There are several compelling reasosns. Performance, security, portability, and manageability are among the key reasons. Fork this GitHub repository to get started. In your fork, you can use GitHub's web UI to edit source code files.…
RustWebAssemblyNode.jsVSCodegetting-startedrust-function-in-nodejs
-
The Storage Interface in SSVM
The SSVM storage interface provides a Rust API that allows programs to persist arbitrary data into a key value store. The data store is configured and started by the SSVM and hence is transparent to the Rust application. Rust developers can view this as an abstract storage space for application data. The storage interface provides much higher performance and data throughput than using WASI calls to access database on the file system or via network.…