Re:I've just learned Rust and I think I'm in love
by vvanders on Friday March 30, 2018 @01:47PM
(#16718220)
I think the importance of selecting a C FFI is very much undersold.
You pretty much get interop with every major language for free. I've embedded Rust in Python, Java, C# and WASM/ASMJS pretty much with just that one feature alone.
Also makes the migration story really strong, which I think was largely driven by needing to be integrated into FireFox in a sane way.
Re:I've just learned Rust and I think I'm in love
by nickpsecurity on Friday March 30, 2018 @03:41PM
(#16719180)
I've gone further to say the freight train of an ecosystem behind and legacy effects of C mean any intended replacement should be fully compatible with its structure, calling conventions, etc. This lets anyone leverage existing C libraries or those in new language seemlessly. From there, the new stuff might all be done in better language with optional, incremental rewrites of older stuff.
The FFI story seems to be overshadowed, but if you want to use things like Vulkan, DX12, etc... then C FFI performance becomes absolutely critical, and many languages are really bad at it.