Published Jan 30, 2025

Turso is rewriting SQLite in Rust (Interview)

Glauber Costa, CEO of Turso, explores the transformative project of rewriting SQLite in Rust, addressing challenges in open-source flexibility and introducing innovative features to boost database capabilities and adoption. The episode delves into Turso's strategy for separating business interests from open-source contributions, aiming to revolutionize database technology with a billion databases in use.
Episode Highlights
The Changelog logo

Popular Clips

Questions from this episode

Episode Highlights

  • Motivations

    Glauber Costa, co-founder and CEO of Turso, explains the motivations behind rewriting SQLite in Rust, emphasizing the need for a more ambitious and differentiated project. He shares that the original fork, libSQL, lacked the boldness to attract significant contributions, leading to the decision to rewrite it entirely with Limbo. This move garnered substantial community support, evidenced by 8,000 GitHub stars in a week and a positive reception on platforms like Hacker News 1.

    We truly believe now that once we get the momentum going, we can replace SQLite. And that's the goal.

    ---

    The rewrite aims to create a platform that aligns with their original vision and fosters a vibrant community of contributors 2.

       

    Technical Challenges

    Rewriting SQLite in Rust presents unique technical challenges, but Glauber Costa and his team are optimistic about overcoming them. They plan to leverage Deterministic Simulation Testing (DST) and partner with Antithesis for integration testing, which allows them to simulate complex scenarios and catch bugs efficiently 3.

    We believe it's a very reasonable timeline, like nine months to a year.

    ---

    The team is confident that the manageable size of SQLite's codebase and their strategic approach will enable them to achieve a stable release within a year 4.

       

    Community Impact

    The rewrite of SQLite in Rust has significantly impacted the open source community, attracting a wave of contributors eager to participate in this ambitious project. Glauber Costa highlights how the project's bold vision and the opportunity to contribute to a new, dynamic platform have drawn in talented developers 5.

    They were very excited about the prospect of a better SQLite.

    ---

    The project has created a collaborative environment where contributors can actively shape the direction of the platform, fostering innovation and creativity 6.