Company
Date Published
Author
David Lee
Word count
1136
Language
English
Hacker News points
None

Summary

SingleStoreDB's new Code Engine — Powered by WebAssembly (Wasm) enables users to utilize user-defined functions and table-valued functions written in C, C++, Rust, and more languages, with plans for additional supported languages. This feature allows developers to reuse native code in a sandboxed environment at blazing speeds. To get started, users need to set up their local environment using v.s. code, the WASI SDK, and the Rust toolchain. They then create a Wasm file and upload it to an AWS S3 bucket, where they load and call the Rust user-defined function on a Singlestore Helios workspace. The process involves installing the necessary tools, creating a new folder, initializing the Rust source tree, building the .wasm file, uploading the files to object storage, setting up the Singlestore Helios Workspace, and loading and running the Wasm function in Workspaces. Additionally, users can create table-valued functions using the same process. Overall, this feature empowers developers to execute functions directly on SingleStore's distributed system at runtime with near-native performance in a secure environment.