WeAreDevelopers LIVE Jun 1, 2023

Using WebAssembly for in-database Machine Learning

Akmal Chaudhri

Tired of building expensive ETL pipelines just to run machine learning models? Learn how WebAssembly lets you execute secure, near-native ML workloads directly inside your database.

Pause
Mute Enter Fullscreen
#1 about 3 min

Introduction to WebAssembly for in-database machine learning

An overview of utilizing WebAssembly to execute machine learning modules directly within a database management system.

#2 about 2 min

Evolution of distributed SQL database management systems

How modern distributed relational databases enable horizontal scaling for analytical and operational workloads.

#3 about 3 min

Options for database machine learning integration architectures

Utilizing tools like Apache Spark, Python libraries, and vector embeddings to perform machine learning near or within databases.

#4 about 4 min

Benefits of executing WebAssembly natively in databases

How WebAssembly addresses complex procedural SQL, provides data co-location, and reduces developer effort for data science tasks.

#5 about 4 min

Architectural flow of WebAssembly inside a DBMS

The process of compiling business logic in languages like Rust or C++ and executing it within a secure database sandbox.

#6 about 3 min

Setting up the Wasm SDK and Rust toolchain

Instructions for downloading and configuring the WebAssembly SDK and Bytecode Alliance tools for local development.

#7 about 2 min

Preparing local tools to push Wasm executable modules

Cloning and building the push-wasm GitHub dependency tool to bridge compiled modules into SingleStore.

#8 about 3 min

Defining Wit interfaces and declaring Rust backend dependencies

Configuring an interface definition file to specify input and output types for a VADER sentiment algorithm.

#9 about 4 min

Compiling and uploading Rust logic into the DBMS

Creating the actual sentiment scoring function in Rust and pushing it to the database for use as a user-defined function.

#10 about 3 min

Testing sentiment inference behavior via SQL select statements

Verifying the WebAssembly function behavior on text patterns like capitalization and exclamation points directly inside standard SQL queries.

#11 about 6 min

Live demo applying sentiment analysis on an IMDB dataset

Applying the deployed Rust WebAssembly module across an IMDB review table to batch-compute machine learning scores without ETL.

#12 about 4 min

Key takeaways and developer resources for WebAssembly integration

A summary of WebAssembly extensibility capabilities along with resources from the Bytecode Alliance.

#13 about 23 min

Audience Q&A on language support, performance, and tradeoffs

A community discussion focusing on dynamic language support, native performance comparisons, testing workflows, and potential cloud provider implementations.

Matching moments

2:27 min

Introduction to WebAssembly in a cloud computing context

Edo Edo · WWC 2024

1:48 min

Introduction to WebAssembly as a compilation target

Niels Tanis Niels Tanis · WWC 2023

2:32 min

Applying WebAssembly to serverless cloud environments

Matt Butcher · WWC 2023

3:32 min

Redefining WebAssembly beyond browser video games

Edoardo Dusi · LIVE

1:23 min

Early implementations of WebAssembly across major industries

Niels Tanis Niels Tanis · WWC 2023

2:29 min

Using WebAssembly for fast and secure serverless computing

Maurice Brinkmann · WWC 2023

Upcoming sessions on this topic

Open session

World Congress 2026 North America

Look What Java Can Do Now: Live-Coding a GenAI MCP Server with the JAQ Stack

Suren Konathala

Senior Engineering Leader, Marketing & AdTech, AI GTM & Digital Experience Platforms, Java x AI

Suren Konathala
Open session

World Congress 2026 North America

Small LLM in your Browser: Huge Opportunities for Web Applications

Daniel Ostrovsky

UI/UX Architect at Payoneer | AI Architect | Full Cycle Development Expert | Public Speaker | Open Source Contributor |

Daniel Ostrovsky
Open session

World Congress 2026 North America

Testing React Backends Like a Pro: Mocking Databases with SQLite

David Morris

Solution Architect

David Morris
Open session

World Congress 2026 North America

You Can’t Re-Run Sunlight: Designing ML Data Architectures for Physical AI

An Phan

Senior Data Infrastructure Engineer @ Hippo Harvest

An Phan
Open session

World Congress 2026 North America

Ship 10x Faster: AI-Powered Development with Claude Code and MCP Tools

Viktoria Semaan

Principal Technical Evangelist at Databricks

Viktoria Semaan
Open session

World Congress 2026 North America

Making Science Larger, not just Faster

Yuval Dvir

Commercial Executive, SandboxAQ

Yuval Dvir