Re:Java's Magic Sauce
by le-mark on Monday July 30, 2018 @08:53AM
(#17644052)
Stack allocation is the one 'killer feature' c# has had over java since forever. Really critical for games, ie 3d math for example. Still no 'value objects' in java, I don't when or if they're planned nowadays, i stopped following that long ago.
[ Parent
| on HN ]
Apparently it wasn't a show stopper for Markus Persson.
Value objects are still on the roadmap, specially since Oracle plans to eventually replace Hotspot with Graal.
Re:Java's Magic Sauce
by peterashford on Monday July 30, 2018 @06:07PM
(#17648576)
You can native allocate a byte buffer in java, pack data in it and submit it to hardware. Zero difference from writing it in C/C++ in that case.