Proposal: Optimizing Efficiency using Read-only Arrays

Red IO redio.development at gmail.com
Thu Dec 29 16:21:32 UTC 2022


What about a user oriented general View class? A class that can base its
data on memory owned by another data structure. You could create a view
from a list an array or with a bit of integration with Panama from a memory
segment. The view could be mutable or immutable could be subranged without
copy and would provide a good return type to pass to untrusted code. The
biggest downside would be primitives which would suffer boxing or would
require hand specialized versions.

On Thu, Dec 29, 2022, 16:58 Kasper Nielsen <kasperni at gmail.com> wrote:

> On Thu, 29 Dec 2022 at 16:46, Markus Karg <markus at headcrashing.eu> wrote:
> >
> > Proposal: Optimizing Efficiency using Read-only Arrays
> >
>
> There are already two draft JEPs for this:
>
> https://openjdk.org/jeps/8261099
> https://openjdk.org/jeps/8261007
>
> /Kasper
>
>
> /Kasper
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20221229/e3bdb847/attachment.htm>


More information about the amber-dev mailing list