Comment by mook
8 years ago
The blog post makes it seem like the problem was in an nginx module. Looking at the docs [1] it looks like that's a C API; as far as I know writing shared libraries in golang for a C caller isn't really a thing (because the runtime needs to exist). Rust might have better luck here (I _think_ there have been attempts to get rust code loaded by not-rust code), but I haven't kept track.
[1] https://www.nginx.com/resources/wiki/extending/api/main/
Calling Rust from C is easy. Details: http://siciarz.net/24-days-of-rust-calling-rust-from-other-l...
And if you need a more expedient fix for existing C/C++ code, there's SaferCPlusPlus[1].
[1] https://github.com/duneroadrunner/SaferCPlusPlus