4 ms·
The major usecase for Carbon is to advance Google's internal, multi-billion line, C++ codebase. As nice as a greenfield language with a clean ffi would be, "ex
by compiler-guy 4y ago
The major usecase for Carbon is to advance Google's internal, multi-billion line, C++ codebase.
As nice as a greenfield language with a clean ffi would be, "extremely close ties to C++" is Carbon's primary benefit.
- skavi 4y agosorry for nitpicking what is likely intentional exaggeration, but multi billion can’t be anywhere near accurate, right?
- summerlight 4y agoIt's a bit of an exaggeration, but it's close. If you count all Google's C++ code base (google3 + open source) it's fairly close to one billion. If you count regardless of language, I believe it's ~3B.
- compiler-guy 4y agoThere are many billions of lines in Google's monorepo[1], summing well over 80 terrabytes of data. The paper below is from 2016, and the repo has only gotten bigger since then. Exactly how many of them are C++ is not disclosed, as far as I know. But it is public knowledge that C++ is the biggest of Google's primary languages (C++, Java, Go, Python, Javascript, and so on). https://research.google/pubs/pub45424/ https://research.google/pubs/pub45424/
- saagarjha 4y agoNo, Google really has that much code. Some of it is probably machine generated but it's definitely in the billions of lines.