"LazyConstants in JDK 26" [IJN]

"LazyConstants in JDK 26" [IJN]

0 Arviota
0
Jakso
49 of 58
Pituus
10M
Kieli
inglise
Formaatti
Kategoria
Teadmiskirjandus

Lazily initializing fields in Java is error-prone and undermines constant-folding. JDK 26 comes with JEP 526, which previews LazyConstant, a type that lazily initializes a value through a given Supplier. It executes that supplier at most once successfully and then assigns the value to a field annotated with @Stable, which allows constant folding. This API is also a poster child for how OpenJDK develops and evolves features.


Loe ja kuula

Astu lugude lõputusse maailma

  • Suurim valik eestikeelseid audio- ja e-raamatuid
  • Proovi tasuta
  • Loe ja kuula nii palju, kui soovid
  • Lihtne igal ajal tühistada
Proovi tasuta
Device Banner Block-copy 894x1036
Cover for "LazyConstants in JDK 26" [IJN]

Muud podcastid, mis võivad sulle meeldida ...