Re:Best aspects of C
by rwmj on Tuesday November 17, 2020 @11:42AM
(#25125816)
An advantage of Rust and Golang (and OCaml actually[1]) is they let you write to the C ABI. We've written both components that call into existing C ABI (nbdkit-{rust|golang}-plugin), and also Rust/Golang/OCaml shared libraries that present C ABI functions / structures to the world.
[1] But you need to write a bit of C glue code for OCaml so it's not quite so seamless.
Re:Best aspects of C
by int_19h on Thursday November 19, 2020 @04:12PM
(#25154409)
Some form of C FFI has been standard for most languages that appeared after C became ubiquitous. Even something as dynamic and high-level as Python has ctypes.
[1] But you need to write a bit of C glue code for OCaml so it's not quite so seamless.