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 · World Congress 2024

1:48 min

Introduction to WebAssembly as a compilation target

Niels Tanis Niels Tanis · World Congress 2023

2:50 min

Expanding ecosystem adoption across WebAssembly and AI frameworks

Thomas Steiner · Coffee With Developers

2:32 min

Applying WebAssembly to serverless cloud environments

Matt Butcher · World Congress 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 · World Congress 2023

Upcoming sessions on this topic

Open session

World Congress 2026 North America

September 25, 2026 · 14:50–15:20

Stage 6

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

September 24, 2026 · 14:10–14:40

Stage 5

Edge AI: Running Agentic Intelligence Where Internet Can't Reach

Nitin Eusebius

AWS - Principal Solutions Architect

Nitin Eusebius
Open session

World Congress 2026 North America

September 25, 2026 · 15:30–16:00

Stage 6

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

September 25, 2026 · 12:20–12:50

Stage 7

Testing React Backends Like a Pro: Mocking Databases with SQLite

David Morris

Solution Architect at Leidos

David Morris
Open session

World Congress 2026 North America

September 24, 2026 · 16:50–17:20

Stage 7

File Systems Are the New Primitive for AI Agents

Andrew Wong

Sr. Developer Relations Engineer at Box

Andrew Wong
Open session

World Congress 2026 North America

September 25, 2026 · 16:50–17:20

Stage 7

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

An Phan

Senior Data Infrastructure Engineer @ Hippo Harvest

An Phan