Originally posted by debianxfce
View Post
Let me explain some mistakes you miss:
- C++ (and "native" languages) tend to be better in latency (so to answer in a number of milliseconds) than on throughput. I found very often implementing throughput algorithms in Java, do run faster (especially if there are GC-free algorithms) than C++.
- comparing a PC version to an Android version is very silly. For example on the next link you see that a typical PC runs (using kind of unreliable, where iPhone was optimized a lot for) runs circles around iPhone 7 (for instance). Most Android phones are not 100% matching iPhone 7.
https://browser.geekbench.com/v4/cpu...aseline=387526
- let's say Java would run slower than C++, so what? There are cases when it runs better. Will you throw C++ out of the window, maybe KDE or XFCE (yeah, you know, it has many things written in C++) because Java runs it faster? One good example: Java 9 as we discuss will beat most string related coding like string concatenation doing with almost GC-free algorithms. I am ready any day to compare a STL based coding to a Java 9 based coding into processing a lot of text...
Originally posted by debianxfce
View Post
Comment