The JVM famously boxes everything though, probably because it was originally designed to run a dynamic language. An array list of floats is an array list of pointers. This created an entire cottage industry of alternative collections libraries with concrete array list implementations.
Almost none of this is in the JVM. Escape analysis is extremely limited on the standard JVM, and it's one of GraalVM's "enterprise" features. You have to pay for it.
grumpyprole|4 months ago
ysleepy|4 months ago
An ArrayList<Float> is a list of pointers though.
vips7L|4 months ago
dtech|4 months ago
doikor|4 months ago
Free for some (most?) use cases these days.
Basically enterprise edition does not exist anymore as it became the "Oracle GraalVM" with a new license.
https://www.graalvm.org/faq/