3 ms·
That's why they created Go, to get rid of Java and C++ for things like download.google.com They are not scalable for Google scale and are not maintainable at g
by lostjohnny 7y ago
That's why they created Go, to get rid of Java and C++ for things like download.google.com
They are not scalable for Google scale and are not maintainable at google scale.
That's why Google C++ guidelines basically disallow everything that is problematic in C++ and enforce a style guide to
> Avoid surprising or dangerous constructs.
C++ has features that are more surprising or dangerous than one might think at a glance
> Avoid constructs that our average C++ programmer would find tricky or hard to maintain.
C++ has features that may not be generally appropriate because of the complexity they introduce to the code
> Be mindful of our scale.
With a codebase of 100+ million lines and thousands of engineers, some mistakes and simplifications for one engineer can become costly for many.
- pjmlp 7y agoYeah, better tell that to the Android, ChromeOS, Fuchsia, Maps, Search and Flutter teams.
- lostjohnny 7y agoYou are sidetracking the conversation with a troll attitude. I was replying to > However, as you start pushing beyond "scale" Go is designed for Go is designed for Google scale, I don't know anybody pushing beyond Google scale right now. Anyway, I'm a nice person, you'll find your answer below Enjoy ---------------- most of those projects are legacy software did you expect search to be written in a language invented 10 years in the future? Go is slowly replacing C++ to write the tooling. C++ is simply not scalable enough for day by day use, Linus knew that 15 years ago. Even Firefox is replacing it for its engine, it must mean something. It can be done in C++ doesn't mean it should anymore. Java is there because it runs in ads systems, you don't replace your core product overnight, just like in some banks you still find Cobol. Java is the new Cobol. Fuchsia is written mainly in C and Dart. You wanna write an Haiku style microkernel? C++ is fine, it's just a few thousands line of code. Wanna write millions lines of code in a maintainable way at Google scale? You don't start the project in C++ today, unless you're a crazy person. Even ES5 Javascript is more maintainable than C++.