Draft JEP Announcement: "Computed Constants"
David Alayachew
davidalayachew at gmail.com
Thu Jul 27 17:55:56 UTC 2023
That's really cool! It would probably be nice to put that into the JEP, as
it would highlight another avenue of utility, specifically for people
working on the JDK.
On Thu, Jul 27, 2023 at 1:50 PM Brian Goetz <brian.goetz at oracle.com> wrote:
> One thing that may not be obvious about this work is that what it
> effectively does is provide a supported, public, specified means to expose
> the functionality that is now restricted to internal JDK use via
> `@Stable`. (So computed constants is-to @Stable as VarHandles are to
> Unsafe::{get,put}Xxx.)
>
> On 7/27/2023 11:52 AM, Per-Ake Minborg wrote:
>
> Hi all,
>
> Maurizio and I have drafted a JEP for computed constants, which are
> immutable value holders that are initialized at most once. They offer
> the performance and safety benefits of final fields while offering
> greater flexibility as to the timing of initialization. In the
> context of Leyden, they could be one basis for shifting computation
> both forward and backward in time.
>
> The draft is here: https://openjdk.org/jeps/8312611
>
> Now that the Leyden repo is open, I’ll publish the prototype code to a
> new branch there shortly.
>
> Comments are welcome!
>
> Best, Per
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20230727/76163195/attachment.htm>
More information about the leyden-dev
mailing list