r/java • u/TheQuantumZero • 15d ago
Why It Takes 3000 Commits to Bring Valhalla’s Value Objects to the JDK - YouTube
https://www.youtube.com/watch?v=iLsLhqUOOPw
78
Upvotes
r/java • u/TheQuantumZero • 15d ago
14
u/Zeenu29 15d ago
ValueObjects? What is that?
3
u/yaun77 14d ago edited 14d ago
Changing the semantics of == and applying that change to various standard library classes feels like the biggest danger here. I hope this won't end up as another Java8>Java9 scenario where companies gets stuck for a while for compatibility reasons. Is there a list somewhere which classes are going to be changed to value classes, apart from the primitive wrappers?
4
u/perryplatt 15d ago
So did I hear three incubation periods in the talk?
4
u/bobbie434343 15d ago edited 14d ago
I hate to be that guy, but shouldn't good guy Claude have been able to implement Valhalla in 5 minutes with a single gigantic commit ? /s
2
u/Drawhoe 14d ago
Could someone explain why we need keyword "value record" rather than just "value"? I can't see that there is any difference there so why a double keyword. I get it if we end up with "value class" as well but I'm not sure why we would need that either.
1
u/rahvan 13d ago
Tech companies still running Java 8 will migrate to the JDK that provides ValueObjects in 2090 at this rate lol
-6
u/k-mcm 15d ago
I wonder if the solution is going to age well. Generics started a lot of problems that still remain today. One of them is cementing the need for objects.
Value objects being immutable sucks for code complexity and can hurt efficiency too.
-10
u/renderwares 15d ago
The length of time it has taken major features other languages have had for years if not decades to come to Java is demoralizing. The Java architects need to have a come to Jesus moment with Claude agents.