3 ms·
The thing I coded where I felt the weight of the GC the most was a chess engine in Java that needed transposition tables. Like using regular HashMap(s) or anyt
by PaulHoule 6mo ago
The thing I coded where I felt the weight of the GC the most was a chess engine in Java that needed transposition tables. Like using regular HashMap(s) or anything similar it was too slow to really speed up the engine. If my son had stayed interested in chess I would have coded up an off-heap transposition tables but he switched to guitar which changed my side projects.
- joe_mwangi 6mo agoHope you come back. Would be cool to venture in this new data oriented programming phase java has invested a lot in.
- traderj0e 6mo agoI'm glad they saw the light. Last time I used Java was in high school when it was version 7, when it was pure OOP. Didn't even have lambdas. After I learned other languages, I didn't want to use Java again, seemed like a lot of boilerplate for something that didn't even give good performance.
- PaulHoule 6mo agoI use Java all the time for ordinary programming at work, I think it is great, but I'm not in a hurry to mess with stuff off-heap.
- dionian 6mo agoJava has always given good performance for most of my use cases. Like backend servers where startup time is mostly irrelevant.
- saagarjha 6mo agoMaybe you should check again if the last time you used it was Java 7.
- traderj0e 6mo agoI've looked, it's better now, hence my comment that they saw the light. They got lambdas, records, and auto types. More importantly they got virtual threads, but that's unrelated.
- cindyllm 6mo ago[dead]