News for hackers. Stuff that matters.
Re:Memory Safety Is Merely Table Stakes by symbolicAGI on Thursday June 26, 2025 @11:32PM (#44393472)
Learned from an NYC exchange 10 years ago that Java can be written so as to not use garbage collection. Fast and no pause for GC.

1. Resource and reuse objects that otherwise are garbage collected. Use `new` sparingly.

2. Avoid Java idioms that create garbage, e.g. for (String s : strings) {...}, substitute with (int i = 0, strings_len = strings.length(), i < strings_len) { String s = strings[i]; ...}

There are no comments on this comment yet.