3 ms·
Web browsers are not the best fit for Java because they require short startup times and must do their best not to waste too much RAM. Linux is an OS, requires p
by pron 14y ago
Web browsers are not the best fit for Java because they require short startup times and must do their best not to waste too much RAM. Linux is an OS, requires predictability, and also must not waste RAM. Compilers certainly require fast startup, and might not even run long enough for the JVM optimizations to kick in.
Java has many advantages, and speed is chief among them, but memory footprint certainly isn't.
And I'm not sure how you can say that the software you mention beats Java (let alone easily). You have nothing to compare it to. Those programs' requirements preclude Java before any speed considerations are taken. If you can't spare lots of RAM, and don't have the time to wait for the JIT to profile and compile your code, Java isn't for you. But if you just want speed for an always-online application - especially if it requires serious concurrency - I'd say Java would be a better choice than C++, performance-wise, 9 times out of 10.
If I were to pick an example to try and disprove my statement, I would actually choose Oracle or MySQL. But I don't know what requirements make them a better fit for C/C++ if, in fact, they are at all.