4 ms·
FFI in C++ is never gonna happen with the preprocessor and templates being there. By design of the language it basically won't ever work. You would need to reco
by zelly 7y ago
FFI in C++ is never gonna happen with the preprocessor and templates being there. By design of the language it basically won't ever work. You would need to recompile the world unless you're artificially restricting yourself to the equivalent of extern "C". C++20 modules won't make it better either.
I don't think Rust, Dart, or Go are any better.
In practice it seems C++'s ABI is called "protocol buffers".
- dodobirdlord 7y agoBasically correct, though in Fuchsia it's called FIDL. It's protocol buffers, but not the specific project that Google refers to as "protocol buffers". https://fuchsia.googlesource.com/fuchsia/+/master/docs/development/languages/fidl/tutorial/README.md https://fuchsia.googlesource.com/fuchsia/+/master/docs/devel...
- pjmlp 7y agoWhich is also used by Android.
- pjmlp 7y agoIt works perfectly fine with COM, specially after the COM 2.0 (aka UWP/WinRT) improvements.