Re:Java’s new garbage collector promises low pause times on ...
by arcticbull on Thursday August 30, 2018 @04:58PM
(#17880692)
I'm not sure why you argue against giving the compiler the information it needs to do its job, and instead recommend these crazy codegen hacks, that even describe themselves as "poor-mans" solutions.
[ Parent
| on HN ]
Re:Java’s new garbage collector promises low pause times on ...
by dnomad on Thursday August 30, 2018 @05:18PM
(#17880866)
> I'm not sure why you argue against giving the compiler the information it needs to do its job
There's several different factors to consider. Value objects will be a valuable addition to the core JVM if only to standardize the many different approaches in place today. But even the standard value types will have strict limitations -- they will likely be immutable and it's not clear that you'll be able to easily obtain their memory address. That means many projects will still need things like code-gen. Code gen, and buffer-backed objects in general, isn't a hack at all it's a proven, battle-tested solution for many domains (finance, scientific sims, big data) that are manipulating several several gigabytes of objects in a performant manner.