Live data from Hacker News

Deep dive into Turso, the “SQLite rewrite in Rust”

kerkour.com

61–70 of 154 posts

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#61
post #18

I’d imagine this will go a bit like the rust rewrite of sudo etc. Despite the memory safety advantages at least towards the start it still ends up more fragile because the incumbent has years of testing and fixing behind it

Isn’t the rust rewrite deployed as part of some fairly significant Linux distros these days? That’s hearsay that I haven’t dug into, so I may well be wrong.

Ubuntu is deploying it in a non-LTS release, and they're trying to get the bugs out of the way is what I'm hearing

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#62
post #38
post #22

The thing that worries me the most about Turso is that rather than the small, stable team running SQLite, Turso is a VC backed startup trying to capitalize on the AI boom. I can easily see how SQLite's development is sustainable, but not Turso's. They're currently trying to grow their userbase as quickly as possible with their free open source offering, but when they have investors breathing down their necks asking a…

I too am weary of VC incentives but: 1) It's MIT licensed. Including the test suite which is something lacking in SQLite: https://github.com/tursodatabase/turso 2) They have a paid cloud option to drive income from: https://turso.tech/pricing

> test suite which is something lacking in SQLite

You must be kidding. Last time I checked, sqlite was mostly extensive test suites.

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#63
post #29

Earlier quoted context omitted.

They're not aiming at replacing SQLite-in-C with SQLite-in-Rust, they're doing this so they can implement more additional functionality faster than with C's chainsaw-juggling-act semantics and the inability to access the proprietary SQLite test suite. See the features and roadmap at https://github.com/tursodatabase/turso

Without the test suite isn’t even more likely to have stability problems?

Maybe. It's hard to know what kind of issues that test suite covers. If memory safety is the main source of instability for the C implementation then the Rust implementation won't be too affected without the test suite. Same if it focus a lot on compatibility with niche embedded platforms and different OSes, which Turso won't care to lose.

"Stability" is a word that means different things for different use cases.

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#64
post #38

Earlier quoted context omitted.

I too am weary of VC incentives but: 1) It's MIT licensed. Including the test suite which is something lacking in SQLite: https://github.com/tursodatabase/turso 2) They have a paid cloud option to drive income from: https://turso.tech/pricing

> test suite which is something lacking in SQLite You must be kidding. Last time I checked, sqlite was mostly extensive test suites.

It's covered in the article. The full SQLite test suite isn't open source, so you (the third party) don't have the same confidence in your modifications as the SQLite team does.

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#65
post #29

Earlier quoted context omitted.

They're not aiming at replacing SQLite-in-C with SQLite-in-Rust, they're doing this so they can implement more additional functionality faster than with C's chainsaw-juggling-act semantics and the inability to access the proprietary SQLite test suite. See the features and roadmap at https://github.com/tursodatabase/turso

In other words, they are creating their own database and hitching on to the SQLite brand to market it. (That's fine though).

I think it's fair to say they tried using SQLite but apparently had to bail out. Their use case is a distributed DBaaS with local-first semantics, they started out with SQLite and only now seem to be pivoting to "SQLite-compatible".

Building off of that into a SQLite-compatible DB doesn't seem to me as trying to piggyback on the brand. They have no other option as their product was SQLite to begin with.

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#66
post #38

Earlier quoted context omitted.

I too am weary of VC incentives but: 1) It's MIT licensed. Including the test suite which is something lacking in SQLite: https://github.com/tursodatabase/turso 2) They have a paid cloud option to drive income from: https://turso.tech/pricing

> test suite which is something lacking in SQLite You must be kidding. Last time I checked, sqlite was mostly extensive test suites.

I think they meant that the test suite is not open source. You’re right that it is extensive.

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#67
post #25

This is very shallow for a supposed deep dive. I'm not ready to entertain Turso as an alternative to something that is as battle tested as Sqlite.

> This is very shallow for a supposed deep dive. I think it's time for a new law of headlines: anything labeled a "deep dive" isn't.

My law of headlines is, "don't take them too seriously, don't develop too many expectations about the article, skim the article (or the comments) to know what it is about and whether it is worth your time".

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#68

I was surprised that the test suit not open source. Some info in https://sqlite.org/testing.html It looks like some parts are open source and other not. Does anyone know more about the backstory? (It looks like one is a custom program that generate fuzz test. Do they sell it to others SQL engines?)

usefull if you need to validate that the database runs properly on yours embedded platform, possibly with its custom io and sync primitives.

Re: Deep dive into Turso, the “SQLite rewrite in Rust”

#70
post #38

Earlier quoted context omitted.

I too am weary of VC incentives but: 1) It's MIT licensed. Including the test suite which is something lacking in SQLite: https://github.com/tursodatabase/turso 2) They have a paid cloud option to drive income from: https://turso.tech/pricing

> 2) They have a paid cloud option to drive income from: I’ve been confused by this for a while. What is it competing with? Surely not SQLite, being client server defeats all the latency benefits. I feel it would be considered as an alternative to cloud Postgres offerings, and it seems unlikely they could compete on features. Genuinely curious, but is there any sensible use case for this product, or do they just catc…

The article talks about this. If you have a project that starts small and an in-process DB is fine, but you end up needing to scale up then you don't have to switch DBs.
Post reply on HN