Hacker News new | ask | show | jobs
by nabhasablue 240 days ago
there is already an sqlite port in Go :) https://gitlab.com/cznic/sqlite
1 comments

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.

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.
also unmaintainable and full of unsafe