Re:sqlite: A CGo-free port of SQLite/SQLite3
by ameliaquining on Sunday June 07, 2026 @04:10PM
(#48438076)
The "port" terminology is misleading; this is real SQLite, compiled from C to Go using https://gitlab.com/cznic/ccgo/-/tree/master/v4 (by the same author; this library is its most widely used application). The use case is that a lot of Go codebases prefer to completely eschew FFI because a lot of the nice properties of Go's tooling and whatnot (cross-compilation is trivial, binaries are automatically static on Linux, etc.) only hold if the entire build is pure Go.
[ Parent
| on HN ]
Re:sqlite: A CGo-free port of SQLite/SQLite3
by ivanjermakov on Sunday June 07, 2026 @05:04PM
(#48438527)
So because of Go's design mistakes.
Re:sqlite: A CGo-free port of SQLite/SQLite3
by 10000truths on Sunday June 07, 2026 @08:14PM
(#48439988)
No. A mistake is unintentional. Go's rejection of a C runtime dependency is a deliberate trade off, and one that has served it well for its design goals.
Re:sqlite: A CGo-free port of SQLite/SQLite3
by ameliaquining on Sunday June 07, 2026 @05:25PM
(#48438713)
Compared to what? Other languages AFAIK don't offer those properties at all, except I guess Zig.