Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by mort96 on Monday April 01, 2024 @06:27AM
(#39892560)
Don't you think it just serves to highlight that Cpp2 is just C++? That it's explicitly not some new language with C++ FFI like Carbon.
[ Parent
| on HN ]
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by Kranar on Monday April 01, 2024 @01:23PM
(#39896569)
Not sure what is meant by this statement. Both cpp2 and Carbon are different languages, neither of them claim to be just C++.
Both languages will have bidirectional compatibility with C++ so that code written in C++ can be directly accessed from Carbon and code written in Carbon can be directly accessed from C++. Neither of them use an FFI for compatibility.
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by mort96 on Monday April 01, 2024 @02:57PM
(#39897740)
It's my understanding that Carbon will create wrapper Carbon classes around C++ classes and convert data back and forth between C++ types and Carbon types at the interface boundary when necessary.
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by chandlerc1024 on Tuesday April 02, 2024 @07:10AM
(#39904405)
Yep, that's the plan.
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by pjmlp on Tuesday April 02, 2024 @03:40AM
(#39903253)
Not really, Herb Sutter tries to sell cpp2 as "Typescript for C++", or "Kotlin for C++", while ignoring that Typescript doesn't add anything to JavaScript besides types, they did some mistakes on the early days not following up on this, but backtracked and now Typescript is basically a linter/transpiler.
Whereas while Kotlin used the Java ecosystem to bootstrap itself, it is clear that by now JetBrains rather wants to build their own Kotlin ecosystem, just like C++ and Objective-C took their own path after being plain translators into C.
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by ynx on Monday April 08, 2024 @05:03PM
(#39973687)
Objective-C++ does exist, so their paths didn't diverge so much that they didn't remain in each others' ecosystems on a permanent basis (on Apple, which is the only place both regularly intersected)