3 ms·
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 Pytho
by vvanders 9y ago
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.
- nickpsecurity 9y agoI'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. https://lobste.rs/s/5pnqdv/why_is_sqlite_coded_c#c_vhdcyt https://lobste.rs/s/5pnqdv/why_is_sqlite_coded_c#c_vhdcyt