Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by nemothekid on Wednesday August 05, 2020 @09:12AM
(#24060403)
In Java, everything is heap allocated, whereas in D you have a choice.
[ Parent
| on HN ]
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by chrisseaton on Wednesday August 05, 2020 @09:30AM
(#24060535)
> everything is heap allocated
You can definitely write useful Java applications where nothing gets heap allocated, through using existing objects, and through using scalar-replacement-of-aggregates.
Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by wokkel on Wednesday August 05, 2020 @09:46AM
(#24060671)
Not entirely correct: https://shipilev.net/jvm/anatomy-quarks/18-scalar-replacemen... . Hoi cannot force a specific allocation, but the jit does do something akin to stack allocation.