3 ms·
No, it says "No one else has tried the TypeScript plan for C++ yet". Which is true; Carbon isn't a compiler/transpiler to C++, it's a whole new language, albeit
by logicchains 3y ago
No, it says "No one else has tried the TypeScript plan for C++ yet". Which is true; Carbon isn't a compiler/transpiler to C++, it's a whole new language, albeit one with strong C++ interop.
- pjmlp 3y agoThat is completely false, as it ignores Circle and Sean Baxter's efforts.
- IAmLiterallyAB 3y agoWhen Sean is willing to release the source, I'll start paying attention. Until then, it's just a tech demo.
- pjmlp 3y agoI guess many C and C++ compilers are tech demos as well, including some forks from GCC and clang.
- zozbot234 3y ago"Strong C++ interop" can also be achieved via libraries from an existing language, as with the Rust "crates" cxx, autocxx, crubit. So the jury is still out as to whether an entirely different language, namely Carbon, will be useful. OTOH, cppfront can be seamlessly transpiled to C++ on a file-by-file basis which can also be a desirable feature wrt. incremental adoption.
- HALtheWise 3y agoMy understanding is that none of those crates support both instantiating C++ templates from Rust and instantiating Rust generic functions from C++, let alone stuff like implementing a Rust trait with a C++ object from C++ code. These things would be _very_ difficult to do because of the impedance mismatch between the languages, and so there's space for a language with "even stronger" interop.