3 ms·
> SQLite could be recoded in Go Sqlite has been recoded (automatically) in Go a while ago [1], and it is widely deployed > would probably introduce far more
by steeleduncan 1y ago
> SQLite could be recoded in Go
Sqlite has been recoded (automatically) in Go a while ago [1], and it is widely deployed
> would probably introduce far more bugs than would be fixed
It runs against the same test suite with no issues
> and it may also result in slower code
It is quite a lot slower, but it is still widely used as it turns out that the convenience of a native port outweighs the performance penalty in most cases.
I don't think SQLite should be rewritten in Go, Rust, Zig, Nim, Swift ... but ANSI C is a subset of the feature set of most modern programming languages. Projects such as this could be written and maintained in C indefinitely, and be automatically translated to other languages for the convenience of users in those languages
[1] https://pkg.go.dev/modernc.org/sqlite https://pkg.go.dev/modernc.org/sqlite
- sim7c00 1y ago> would probably introduce far more bugs than would be fixed It runs against the same test suite with no issues - that proves nothing about bugs existing or not.
- ChrisRR 1y ago> It runs against the same test suite with no issues That doesn't guarantee no bugs. It just means that the existing behaviour covered by the tests is still the same. It may introduce new issues in untested edge cases or performance issues
- sgbeal 1y ago> It runs against the same test suite with no issues It runs against the same public test suite. The proprietary test suite is much more intensive.