scripod.com

Turso is rewriting SQLite in Rust (Interview)

Shownote

Glauber Costa, co-founder and CEO of Turso, joins us to discuss libSQL, Limbo, and how they're rewriting SQLite in Rust. We discuss their efforts with libSQL, the challenge of SQLite being in the public domain but not being open for contribution, their cho...

Highlights

In this episode, Glauber Costa, co-founder and CEO of Turso, delves into the ambitious Limbo project—a complete rewrite of SQLite in Rust. The conversation explores the technical and philosophical challenges of reimagining a widely-used database system, the innovative testing methodologies employed, and the broader implications for the future of database technology.
00:05
Deterministic simulation testing (DST) is a key innovation in Turso's Limbo project to ensure SQLite's reliability in Rust
01:31
Brex built around a thousand Retool apps, reducing internal tool development time from months to days
04:37
Turso's Limbo project aims to rewrite SQLite in Rust, leveraging Rust's safety and performance benefits.
05:10
SQLite's public domain nature and lack of external contributions make it unique but challenging to modify.
21:07
The announcement of a complete rewrite in Rust (Limbo) garnered significant interest, highlighting the demand for a better version of SQLite.
25:28
Deterministic simulation testing is crucial for rewrites, enabling easier debugging and reliability when integrated from the start.
28:44
Avoiding external crates with I/O operations is crucial for maintaining control in deterministic simulation testing.
30:58
Temporal abstracts scalability complexities, enabling developers to focus on reliable workflows
32:57
DST ensures confidence in the rewritten SQLite by generating random queries and injecting failures deterministically for replayable testing.
35:23
Limbo ensures bytecode compatibility with SQLite by generating random SQL statements for testing
40:08
Turso Cloud enables serverless SQLite with async operations, hosted on S3 for browser environments.
44:31
Limbo, a project rewriting SQLite in Rust, unexpectedly gained 1,000 GitHub stars and attracted top engineers, leading to a strategic shift in the company's focus.
46:49
Limbo's ability to run in the browser via WebAssembly marks a significant development
51:19
Timescale enhances PostgreSQL with extensions like pgvectorscale and pgai for AI use cases.
56:14
SQLite's compact codebase makes rewriting it in Rust within a year feasible, with a dedicated team of engineers.
57:22
The new Rust-based SQLite prioritizes read-heavy workloads and stability for early production use
58:36
The company plans to replace SQLite with Limbo, a Rust-based rewrite, aiming for production readiness in 9 to 12 months.
1:01:21
Turso rebrands its embedded database to align with its cloud offering, simplifying its brand identity.
1:03:37
Turso aims to replace SQLite with Limbo, a Rust-based rewrite, while keeping client-side features open-source
1:06:08
Turso's Limbo aims to reach a billion SQLite databases in a year, focusing on gradual adoption rather than immediate replacement.
1:07:18
Basic read operations from SQLite files are already functional in the Rust rewrite.
1:08:50
Turso is rewriting SQLite in Rust for scalability and testing, with a closed-source server and open-source client.
1:11:38
Excitement and support for the ongoing project, with plans to revisit the topic in a year
1:12:03
Limbo, a Rust-based rewrite of SQLite, is Turso's ambitious project to replace the database system.
1:14:33
Preston Thorpe, a prison contributor, worked on Limbo, a Rust-based SQLite project, through a remote work program

Chapters

This week on The Changelog
00:00
Sponsor: Retool
01:18
Start the show!
04:04
SQLite is open source, right?
05:09
Turso can REPLACE SQLIte
18:08
Rewrite test suites are just as hard
23:02
DST from scratch or Rust Crates?
28:42
Sponsor: Temporal
30:56
Deterministic Simulation Testing (DSTs) are magic
32:57
SQLite compatibility
35:20
Fully asyncronous IO
37:22
Being well recieved was a surprise
41:42
Why SO compelling?
46:49
Sponsor: Timescale
51:19
There's so much to do
53:40
Production-grade by Jan 2026
57:22
How does this effect Turso (the business)
58:36
One Turso to rule them all
1:01:21
Toeing the open source line
1:03:37
How will you know you've replaced SQLite?
1:06:08
What can you do today?
1:07:15
Betting long on hosting DBs at scale
1:08:38
Let's talk in a year
1:11:36
Closing thoughts and stuff
1:12:01
++ Teaser
1:14:32

Transcript

Adam Stacoviak: what's up, welcome back. This is the changelog. We feature the hackers, the leaders and those replacing sqlite. Yes, today we're joined by Glauber costa, co-founder and ceo of Turso. Terso is an open source, distributed database powered by ...