Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With modernc version there are also a lot less compiling hurdles for niche devices, I have a bunch of apps that use the modernc version because it was the easiest solution to compile the binary for a 32-bit ARM device like the Raspberry Pi.


32-bit pi is not a niche device.

- Load up Debian

- install cross-build-essential

- dpkg --add-architecture armhf

- install the lib you want to link

- set "CC" to the armhf compiler

- go build


Yep! This is pretty much the main reason I don't use SQLite in Go unless I know that the project won't ever be compiled on anything other than what the devs and the server run. Simple and easy cross-compilation is one of Go's often forgotten selling points, and depending on how you want to use SQLite, using CGo may or may not be a good solution for you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: