Re:Modernizing Compiler Design for Carbon Toolchain [video]
by isaiahg on Saturday August 26, 2023 @04:02PM
(#37276328)
I find carbon and the development of a modern replacement for C++ intriguing to watch. But for the life of me I can’t understand why someone would want this over a more mature language like D
[ Parent
| on HN ]
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by pjmlp on Saturday August 26, 2023 @04:54PM
(#37276815)
The problem with D is changing direction every couple of years regarding the next big feature that will finally bring the masses into the language, while not quite finishing the last big feature that predated it.
Even Andrei Alexandrescu is back doing C++ at NVidia.
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by suby on Saturday August 26, 2023 @05:08PM
(#37276922)
I also don't know if the code I write in D today will compile 20 years from now. A few months ago there was a discussion on the D forums which spilled over here about constant churn due to breaking changes in the language.
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by mhh__ on Saturday August 26, 2023 @05:15PM
(#37276977)
The guy who wrote that loves controversy.
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by sctb on Saturday August 26, 2023 @04:56PM
(#37276832)
At least one major reason is "Interoperate with your existing C++ code, from inheritance to templates" (https://github.com/carbon-language/carbon-lang).
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by mhh__ on Saturday August 26, 2023 @07:04PM
(#37277712)
D interacts with LLVM via using C++ inheritance and templates although not via their original source to be fair.
N.B. ChatGPT is not a toy in this domain - weird macro? It can reason.
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by xvilka on Saturday August 26, 2023 @10:38PM
(#37278974)
Or Rust.
Re:Modernizing Compiler Design for Carbon Toolchain [video]
by summerlight on Saturday August 26, 2023 @10:56PM
(#37279044)
I think Google is exploring other options as well, such as Rust. Carbon is a more aggressive experiment with higher risks. They've been very clear about Carbon's experimental status and that users should consider using Rust or something else instead of Carbon if they can use the one right now.