Navigation
Recherche
|
JDK 25 kicks off with a stable values API
mercredi 5 mars 2025, 02:09 , par InfoWorld
While Java Development Kit 25 is not set to arrive until September, the first feature already has been proposed for it — a preview of a stable values API that promises to improve startup of Java applications.
Stable values are objects that hold immutable data. Because stable values are treated as constants by the JVM, they allow for the same performance optimizations that are enabled by declaring a field final. At the same time, they offer greater flexibility as to the timing of initialization. Thus they could be used to improve the startup of Java applications by breaking up the monolithic initialization of application state. In addition to boosting application startup, the API would offer the following: decoupling creation of stable values from their initialization without big performance penalties, guaranteeing that stable values are initialized at most once, and enabling user code to enjoy constant-folding optimizations previously available only to JDK-internal code. Prior to JDK 25, Oracle plans to release the 24-feature JDK 24 on March 18. JDK 25 will be the first long-term support release of standard Java since JDK 21, which arrived in September of 2023. Long-term support releases receive multiple years of support. Other features that could make it into JDK 25 include features being previewed in JDK 24, such as a key derivation functions API, scoped values, structured concurrency, and flexible constructor bodies.
https://www.infoworld.com/article/3837990/jdk-25-kicks-off-with-a-stable-values-api.html
Voir aussi |
56 sources (32 en français)
Date Actuelle
jeu. 6 mars - 23:05 CET
|