2 ms·
This is one of the big reasons Rust is so exciting. ABI compatibility with C and no real runtime (no GC etc.). Though Kapersky would have been better off even
by MichaelGG 11y ago
This is one of the big reasons Rust is so exciting. ABI compatibility with C and no real runtime (no GC etc.).
Though Kapersky would have been better off even using C++/CLI and "It Just Works" to hook into code written in, say, C#. The IJW stuff is cute, as it seamlessly brings the CLR in-process and lets you transition from native to managed without noticing. (And MSVC's C++->CLI targeting is good enough to compile MS Office except producing MSIL instead of native code, fwiw.)
- x0x0 11y agoso it's easy enough and fast to have c++ calling rust, so you can spot replace pieces of an extant codebase?
- bzbarsky 11y agoYes, precisely.
- kuschku 11y agoYes. And that’s what mozilla has started to do recently.
- MaulingMonkey 11y agoAny idea where I can find such commits?
- bzbarsky 11y agoThey aren't checked in yet, but https://bugzilla.mozilla.org/show_bug.cgi?id=1161350 https://bugzilla.mozilla.org/show_bug.cgi?id=1161350 has some patches (marked obsolete) and https://bugzilla.mozilla.org/show_bug.cgi?id=1151899 https://bugzilla.mozilla.org/show_bug.cgi?id=1151899 has a work-in-progress patch.
- MaulingMonkey 11y agoNifty. Thanks for the links!