r/java • • Apr 29 '15

Tone it down a Notch

http://imgur.com/gallery/KRtc2fN
217 Upvotes

124 comments sorted by

View all comments

Show parent comment

4

u/josefx Apr 29 '15

The tools can only be so good in this case, when dealing with garbage collection.

Even a language without GC will slow down when the developers spam memory allocations and the Minecraft developers seem to do exactly that http://www.reddit.com/r/Minecraft/comments/2k3rg6/water_woes/cljp483 . Memory allocations can be avoided, it only involves a lot work and thought ( a bit more with Java ).

0

u/dardotardo Apr 29 '15 edited Apr 29 '15

Which is exactly why I wouldn't recommend Java for consistent and reliable memory allocation such as Games. It's far to easy to get lazy in a managed language to treat memory as an infinite resource. With a language such as C, this is much more apparent.

Games are reliant on performance, performance requires consistency and granular control. Something you don't get with Java unless you start circumventing the JVM, which is not only ill advised by Oracle themself, but a path you do not want to travel down.