Hacker News new | past | comments | ask | show | jobs | submit login

What most developers who code in Java does is to use object pool and manage memory manually, its a huge pain in the butt.

How is this different from C++? Oh yeah, instead of objects you get "big blocks of RAM".




C++ has better tools for manual memory management (value types, smart pointers, RAII).


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: