3 ms·
>Even Google mostly uses Java I'm not so sure about that. The core services (e.g. Search, Maps, Earth, Big table, Map reduce) seem to be C++. Ads is possibly a
by acconsta 11y ago
>Even Google mostly uses Java
I'm not so sure about that. The core services (e.g. Search, Maps, Earth, Big table, Map reduce) seem to be C++. Ads is possibly an exception.
- Touche 11y agoWe're talking specifically about the web application servers here. I wouldn't be surprised that something like Search is C++, it's one of the most visited pages in the world. But I haven't heard specifically that it is. I don't think it's any secret that Java is huge Java users. If not web servers, then for what?
- acconsta 11y ago50% C++, 25% Java http://qr.ae/RP7wXh http://qr.ae/RP7wXh At Google's scale, the performance difference between Java and C++ can means millions of dollars in electricity alone.
- Touche 11y agoThat's the amount of code in their repo which covers a lot more than web application servers. This is an unnecessary tangent though, as I've said throughout this discussions, there's extreme cases and no doubt Google is likely one of them. But we're talking about common use case, to which I still haven't seen any evidences that GC pauses are a deliberating factor.
- portmanteaufu 11y agoYou may already be familiar with this and are specifically concerned with GC. However, for what it's worth, it's not just the absence of garbage collection that makes languages like Rust and C faster. A huge piece of their performance is the level of control that they offer over types' layout in memory and where things get stored. Rust's preference for stack allocations and the absence of a mandatory per-Object size overhead (a la Java) really allow it to shine.