News for hackers. Stuff that matters.
Re:Why Is SQLite Coded in C? (2017) by petercooper on Wednesday March 14, 2018 @11:23AM (#16585368)
I've seen a couple of efforts to attempt to port SQLite to Go, usually with the idea of 'mechnically' porting the existing C code to Go rather than starting from scratch. Someone has already ported the SQLite3 shell: https://github.com/cznic/sqlite3shell .. you can tell the code is transpiled, however, as it's nothing like what a Go developer would write riddled with gotos and artificial variable names :-)

Personally, I think it'd be better to just start afresh with new implementations, not necessarily under the auspices of the SQLite project. Being 'compatible' is reasonable enough and you can just ditch the lesser used or out of date features if you're not claiming to be a 100% clone.

Re:Why Is SQLite Coded in C? (2017) by mikepurvis on Wednesday March 14, 2018 @11:36AM (#16585487)
There's a lot of first-party tooling for that, though, since it's how the go compiler itself has been slowly rewritten into go.
Re:Why Is SQLite Coded in C? (2017) by tmzt on Wednesday March 14, 2018 @04:43PM (#16588116)
The shell might be the least neccessary to mechanically port as it could be easily implemented in the target language and probably doesn't change that much.

The core is where the real compatibility issues lie and where it makes the most sense to translate, as well as where the core vulnerabilities that can be remotely exploited lie.