6
Comments
  • 0
    Java is just as fast as c++
  • 3
  • 1
    @AlgoRythm yes, almost, if it is calling C++ functions using JNI and a C-binding layer ...
  • 0
    Java isn't slow anymore, look at some modern benchmarks. It just uses a fucking ton of memory, as expected my a language so object oriented.
  • 2
    @AlgoRythm sure, it got better in OO-heavy benchmarks. For any kind of number crunching, i know it is not made for that, it is painfully slow. Since java is used as general purpose lang today, it is still fair to ask if java has support for SIMD (e.g. for statistics). It has not. Depends what you are using it for. If code gets deployed on a few machines and dev time is more expensive than over all runtime, ok. It is not as slow as php. If the program gets deployed on a huge number of nodes, well, get ready to pay for the java dev experience. C++ performance is an upper bound on Java perf, because it has no level of indirection (no VM). Of course you could manufacture a crappy C++ prog and compare to an optimized Java prog and show that it runs as good.
Add Comment