Primitive Queue<any T> considerations

John Rose john.r.rose at
Thu Nov 19 00:23:00 UTC 2015

On Nov 18, 2015, at 3:57 PM, Vitaly Davidovich <vitalyd at> wrote:
> Personally, I'd love to see layout and alignment exposed.  I'd also like to see something like this Slice: <>.  Being able to overlay a typesafe and cheap struct on top of a byte buffer would save some boilerplate coding.

Yes.  That idea doesn't fall out naturally from value types, but it does
fall out from VarHandles (maybe plus values), and is also important
in Panama, where it appears as secured references and pointers.

More information about the valhalla-dev mailing list