Re:Why Is SQLite Coded in C and not Rust
by nabhasablue on Wednesday October 15, 2025 @01:57AM
(#45588532)
there is already an sqlite port in Go :) https://gitlab.com/cznic/sqlite
[ Parent
| on HN ]
Re:Why Is SQLite Coded in C and not Rust
by ncruces on Wednesday October 15, 2025 @04:43AM
(#45589688)
That's not a port. That's an extremely impressive machine translation of C to Go.
The output is a non-portable half-a-million LoC Go file for each platform.
Re:Why Is SQLite Coded in C and not Rust
by cratermoon on Wednesday October 15, 2025 @11:06AM
(#45593756)
also unmaintainable and full of unsafe
Re:Why Is SQLite Coded in C and not Rust
by lanstin on Thursday October 16, 2025 @01:55AM
(#45601883)
And it works very well both as SQLite and as a pure go entity. I have used it for few years to do async backups of an in memory counting database (read from only at start up, written to by worker go routine that batches writes) without incident. Doesn’t really show up in the profiler.