News for hackers. Stuff that matters.
Re:John Carmack on Mutable Variables by haspok on Friday October 31, 2025 @04:33AM (#45769616)
Did you know that "final" does not actually mean final in Java (as in: the variable can be constant folded)? Reasons include reflection and serialization (the feature that nowadays nobody uses, but due to backwards compatibility the Java language developers always have to worry about?). There was an excellent talk about this recently, I think triggered by a new JEP "stable values": https://youtu.be/FLXaRJaWlu4
Re:John Carmack on Mutable Variables by eitland on Tuesday November 04, 2025 @06:22AM (#45809724)
That is interesting, but I am already aware of it.

For anyone who wonder about why, it is meant to help us as programmers avoid shooting ourselves in the feet, not as some kind of unbreakable enforcement.