top | item 46156933 (no title) jeberle | 2 months ago Not sure what you mean by "primitive support". Java 22 added FFM (Foreign Function & Memory). It works w/ both on-heap & off-heap memory. It has an Arena interface.https://openjdk.org/jeps/454https://docs.oracle.com/en/java/javase/25/docs/api/java.base... discuss order hn newest Dylan16807|2 months ago So, one year ago? After more than 25 years without it?And a lot of people writing Java can't update to that. jeberle|2 months ago Yeah, FFM adds many quality-of-life features - scoped lifetimes being a standout.If you just want an arena interface, ByteBuffer has been there since Java 1.4 (2002). It also does off-heap w/ ByteBuffer.allocateDirect().https://docs.oracle.com/en/java/javase/25/docs/api/java.base... load replies (1)
Dylan16807|2 months ago So, one year ago? After more than 25 years without it?And a lot of people writing Java can't update to that. jeberle|2 months ago Yeah, FFM adds many quality-of-life features - scoped lifetimes being a standout.If you just want an arena interface, ByteBuffer has been there since Java 1.4 (2002). It also does off-heap w/ ByteBuffer.allocateDirect().https://docs.oracle.com/en/java/javase/25/docs/api/java.base... load replies (1)
jeberle|2 months ago Yeah, FFM adds many quality-of-life features - scoped lifetimes being a standout.If you just want an arena interface, ByteBuffer has been there since Java 1.4 (2002). It also does off-heap w/ ByteBuffer.allocateDirect().https://docs.oracle.com/en/java/javase/25/docs/api/java.base... load replies (1)
Dylan16807|2 months ago
And a lot of people writing Java can't update to that.
jeberle|2 months ago
If you just want an arena interface, ByteBuffer has been there since Java 1.4 (2002). It also does off-heap w/ ByteBuffer.allocateDirect().
https://docs.oracle.com/en/java/javase/25/docs/api/java.base...