Hacker News new | ask | show | jobs
by banana_giraffe 1857 days ago
If these phones were still around, I'd imagine there'd be another option now:

- Write your game in C++ and transpile it to Java using some fancy framework that dances around never using GC.

1 comments

You'd have to do something like allocate a single byte[] for everything you'll ever need, and reading & writing data would just be a constant tax since you can't just in-place cast that to an int or whatever. It wouldn't be very fun.
But it would be transpiled so the programmer would never need to look at the very ugly stuff. The idea reminds me of the original asm.js