4 ms·
Runtime doesn't necessarily mean "can't call from other languages". Languages with runtimes can still conform to C ABI on that arch. You can call Go from C, or
by tagrun 10y ago
Runtime doesn't necessarily mean "can't call from other languages". Languages with runtimes can still conform to C ABI on that arch.
You can call Go from C, or even from Java on Android out-of-the-box (and Objective C on iOS), for example.
- Jweb_Guru 10y agoYou can call Go from C, but it's extremely slow and requires special handling of GC'd references (among other things). It's not really a suitable replacement for C bindings in many circumstances.
- exDM69 10y agoTrue on all accounts but you forgot the "easily" part. Installing JVM and then writing JNI wrappers isn't really easy reuse. You just don't see Java or Go code (let alone both) used in programs predominantly written in another language.