3 ms·
A lot less will be wrong with Java, once "struct" value types are implemented. I guess that'll be in Java 10? This should improve performance significantly than
by vardump 11y ago
A lot less will be wrong with Java, once "struct" value types are implemented. I guess that'll be in Java 10? This should improve performance significantly thanks to locality of reference and reduce heap footprint in the same time.
Java tends to be "Star Trek Borg like" [1] in sense it's often impossible or at least cumbersome to use libraries written in it in non-JVM languages. When can we write a .so/.dylib/.dll in Java? There are of course some (cumbersome) ways around this, but it tends to involve RPC of some sort and multiple processes.
Not exactly technical reason, but a matter of opinion: The shadow of Oracle Corp. Makes me feel uneasy using Java.
[1]: Borg is an alien race in Star Trek that considered other species inferior, assimilated their technology and turned them into more Borgs.
- vardump 11y agoI've seen some moderation on this comment, up and down. Curious there are no replies on any of the points, given several people seem to agree and disagree with them. For what it is worth, I've been working with Java more or less since 1.1 days. Lately it's been less, while working with very low level systems. Surely the first point has prevented many memory intensive projects from using idiomatic Java, and opted on serialization to byte[], memory mapped files or Unsafe tricks. Forced to go objects of arrays instead of idiomatic arrays of objects. You can make it fast and consume little memory, but not without some considerable pain. The second point has prevented me from choosing Java as a technology quite a few times. Sometimes you just need to provide a shared object (dynamically linked library) that can be loaded with all those languages with C-linkage. Third point is of course a matter of opinion. While OpenJDK is great and all, Oracle has behaved like a cage rattling gorilla in the past. Who knows what they'll still be up to, if they get in a tough enough situation? They sure have a lot of ammo, and I don't want me or the organization(s) I represent to suffer any collateral damage.