Remix.run Logo
creata 11 hours ago

> Why would anyone choose C++ for their projects despite the production costs that it brings?

Familiarity, and all the libraries and tools available for C++. I see that D has a section on C++ interop,[0] but it looks about as painful as FFI usually is, and even more painful given how template-heavy C++ code tends to be.

(Completely unrelated: I can't mention FFI without also mentioning how amazing LuaJIT's C FFI is. The developer(s) really nailed it.)

[0]: https://dlang.org/spec/cpp_interface.html