Hacker News new | ask | show | jobs
by abrahamsen 5794 days ago
C++ has better tools for manual memory management (value types, smart pointers, RAII).
1 comments

Working around the garbage collector and using any C++ memory management techniques are both ugly hacks. (http://yosefk.com/c++fqa/exceptions.html#fqa-17.4)

Fortunately, there has been plenty of research on GCs that are fast enough for games. So the solution is to use one of those for Android, now that people are actually interested in writing games.

Your link mention two C++ facilities for supporting manual memory management that have no equivalents in Java, and thus (ignoring the smug sarcasm) supports my original point.

A better GC was already mentioned by the OP as another option.