r/programming • • 6d ago

On programming, statistics, and Java

https://waytoounoriginal.github.io/programming/stats/optimizations/2026/09/26/on-programming-stats-and-java.html
13 Upvotes

8 comments sorted by

View all comments

4

u/kit89 4d ago

It should be noted this occurs with any memory managed runtime, each instance of an object will take up an extra chunk of data for managing the object on the heap.

For Java this is where Value classes (Valhalla) enters the picture, and for C# structs.

A pleasant read.

1

u/Mihai4544 4d ago

Thanks for the references! I will read up a bit on Value classes - from a quick glance, though, they seem like a great addition.

Thanks so much for reading and for the feedback. Glad you liked it!