5 ms·
FFI is an additional headache. Instead of having a single hermetic build process that just works, with FFI you now have to deal with shared libraries which may
by cedws 2y ago
FFI is an additional headache. Instead of having a single hermetic build process that just works, with FFI you now have to deal with shared libraries which may or may not be present, and may or may not support all the architectures or operating systems you want to target. FFI is why so many Python projects blow up when you run pip install. Then it takes sometimes hours to untangle that horror show.
- cle 2y agoThis is using purego which is still using FFI, it is dynamically linking the C libs so you still have the same shared library issues. You don’t have to setup a C compiler toolchain though which is nice.
- Onavo 2y agoWhy don't they just compile to C to Go like modern c does for SQLite?
- masklinn 2y agohttps://news.ycombinator.com/item?id=42271142 https://news.ycombinator.com/item?id=42271142
- Onavo 2y agoI mean why don't they do it for the source library too? There are very few operations in C that can't be done in Go (mostly inline assembly and some pointer manipulation) under a standard userland assumption.