News for hackers. Stuff that matters.
Re:Go port of SQLite without CGo by badtuple on Friday April 07, 2023 @11:41PM (#35490310)
Honestly, on a non-toy project, build times with cgo are _brutal_. I agree with you usually, but when a build time on a beefy computer switches from under a second to >1min you notice it

Linters and IDEs get slow when they check for errors, tests run slow, feedback drags, and all your workflows that took advantage of Go's fast compile times are now long enough that your flow and mental context disappear.

Re:Go port of SQLite without CGo by bombolo on Saturday April 08, 2023 @02:43AM (#35491119)
Why would you have to recompile sqlite every time?

I guess you just need to compile the .a once and then just reuse it?

If you're rebuilding it every single time, your build is set up wrong.

Re:Go port of SQLite without CGo by _ph_ on Saturday April 08, 2023 @09:08AM (#35492772)
In my experience, encapsulating the access to sqlite in a go package helps a lot with avoiding recompilation of the c source, which indeed is brutally slow. It acutally seems to be way slower than compiling with gcc from the command line. Anyone knows why this is the case?