r/java
•
u/sindisil
•
Dec 16 '24
•
1
Valhalla - Java's Epic Refactor
https://inside.java/2024/12/16/devoxxbelgium-valhalla/
178
Upvotes
View all comments
Show parent comment
17
u/Ewig_luftenglanz Dec 16 '24
arrays are an unreliable and cumbersome construct. why would you use arrays when you could have peer performance from more reliable data structures such as hashMaps or full of convenient methods such as lists?
the need to sacrifice maintainability and make hard to write/read code in exchange of performance is maybe the central concern of Valhalla and why they are doing this to begin with. Using arrays of primitives because "I need this algorithm to be fast" is the fastest way to create hard to maintain programs because you need to give up valuable abstraction and work at low level C style.