News for hackers. Stuff that matters.
Re:Why Is SQLite Coded in C? (2017) by tsavola on Wednesday March 14, 2018 @11:39AM (#16585513)
I suspect Go will never be an ideal choice for creating libraries which are supposed to be used from any programming language. Even while the C-compatible-library-story of Go is developing (which is great), it brings runtime machinery that just isn't there with languages like C, C++ (especially with exceptions disabled) and Rust.
Re:Why Is SQLite Coded in C? (2017) by weberc2 on Wednesday March 14, 2018 @02:14PM (#16586972)
I agree.

I'm curious though--is it true that Go brings its runtime? I'm of the impression that the runtime is only compiled in if you actually use it, but if your library is just `func Add(a, b int) int { return a + b }`, would linking against it still bring in the runtime?

And to reiterate, this is only a curiosity. Even if you could take care to avoid importing the runtime, I wouldn't think that it's worth the while.