Draft JEP Announcement: "Computed Constants"
Brian Goetz
brian.goetz at oracle.com
Thu Jul 27 17:50:09 UTC 2023
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
> <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/f98e1c22/attachment.htm>
More information about the leyden-dev
mailing list