Primitive Queue<any T> considerations

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


On Nov 18, 2015, at 3:57 PM, Vitaly Davidovich <vitalyd at gmail.com> wrote:
> Personally, I'd love to see layout and alignment exposed.  I'd also like to see something like this Slice: https://github.com/joeduffy/slice.net/blob/master/README.md <https://github.com/joeduffy/slice.net/blob/master/README.md>.  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