3 ms·
It seems kind of crazy to me that people were using a GC language on a device with 128kB of memory. John even mentions how he was forced to run the GC on every
by jandrese 5y ago
It seems kind of crazy to me that people were using a GC language on a device with 128kB of memory. John even mentions how he was forced to run the GC on every frame to avoid problems. I would think when you are that constrained you would be closely tracking your memory usage. It's probably a miracle that those games weren't constantly hitching and crashing due to slamming up against the memory limits.
- tannhaeuser 5y agoBest practice was to pre-allocate everything, or at least not allocate insane amounts of objects per-frame if at all possible such that System.gc() would become a no-op up to tracing and maybe defragmentation anyway.
- munificent 5y agoGarbage collection was invented for Lisp, which initially ran on a machine with 18,432 bytes of RAM.
- kllrnohj 5y ago> It seems kind of crazy to me that people were using a GC language on a device with 128kB of memory. Look up JavaCard which apparently is a thing that still exists. It uses the Java language without a GC - that programming environment is truly miserable to work with.