3 ms·
It is possible to write well-performing Java code. I’ve done it, and know others that have. From looking at multiple projects over many years (as both languag
by hedora 7y ago
It is possible to write well-performing Java code. I’ve done it, and know others that have.
From looking at multiple projects over many years (as both languages have improved), my rule of thumb is that writing performant Java is about 10x harder than writing memory-safe C++.
One particularly insidious, and related problem is that getting the first working Java program is slightly faster than doing it in C++. There are people that have built a career by producing a series of 90% Java solutions, and rapidly moving on.
They leave a wake of human suffering behind them in the form of large teams that perform heroic efforts in order to clean up the mess. This certainly wastes many billions of dollars a year.
- hota_mazi 7y ago> my rule of thumb is that writing performant Java is about 10x harder than writing memory-safe C++. This is a bold claim. The JVM is incredibly good at generating fast code, to the point that even naively written Java is guaranteed to run in the ballpark of C/C++. Writing memory safe C++... good luck with that one, especially as soon as you start using external libraries where memory ownership becomes very blurred.