3 ms·
C/C++ is the language you write the library in, so that it's callable from every other language. Hopefully Rust, Nim (and Golang one day) will be able to produc
by vardump 12y ago
C/C++ is the language you write the library in, so that it's callable from every other language. Hopefully Rust, Nim (and Golang one day) will be able to produce C-API compatible replacements. API can also be something better than what .so and .dlls provide, as long as everyone is on board.
I guess Rust and Nim are the real contenders, as only a language with "zero runtime" is going to cut it.
- pjmlp 12y agoIt is an historical accident that C == OS ABI, as mainstream OSes copied UNIX model. This wasn't true in other OSes. Windows is currently moving to COM as the main OS ABI, specially with the WinRT focus. Android also has little support for C ABI, beyond wrapping .so in JNI wrappers. Another example are mainframe systems like OS/400, where the ABI is bytecode based (TIMI).