Re:One Year After Switching from Java to Go: Our Experiences
by gf000 on Wednesday February 19, 2025 @07:57AM
(#43101596)
Sure, Optional is not the most optimal thing to use/do, though depending on how many entities you were operating with, that itself may still be negligible.
[ Parent
| on HN ]
Re:One Year After Switching from Java to Go: Our Experiences
by pylua on Wednesday February 19, 2025 @08:00AM
(#43101624)
That’s the pain point - well written java code may not be the most performant depending on the situation.
It wasn’t just optional but other areas as well.
Re:One Year After Switching from Java to Go: Our Experiences
by gf000 on Wednesday February 19, 2025 @08:11AM
(#43101746)
That's not my experience, though game development is certainly a niche and Java may not be the top choice for that.
You might sometimes have to reach for SoA-like structures and reference them via indices, at least for the core ECS, but for the rest you can easily use bog-standard Java -- not everything has to be "ultra-fast, specially written java", just certain hot loops.
Re:One Year After Switching from Java to Go: Our Experiences
by pylua on Wednesday February 19, 2025 @04:22PM
(#43107871)
Right. I didn’t started digging into it until I realized the application was clearly sluggish in certain scenarios. As I am doing this for fun I am going to see what kind of speed up I get in rust for this.