[Перевод] Перевополщение Stable Values в JDK 26

В новом переводе от команды Spring АйО рассмотрим ленивую инициализацию в Java , которая почти всегда значит: поле сначала null , потом double-checked locking, volatile, синхронизация. Ошибиться легко, а final не поставить. Итог - код хрупче и JVM хуже делает constant folding. В JDK 26 (preview, JEP 526) добавили LazyConstant<T> : final поле, рецепт вычисления через Supplier , значение берёте login.get() . Supplier выполнится при первом get и только один раз успешно, даже при гонке потоков. Кроме этого значение помечается как @Stable - JVM может считать его константой и агрессивнее оптимизировать. Граничные случаи: null нельзя; не сериализуется; исключение из Supplier пробросится и следующая попытка снова пересчитает; equals у LazyConstant - только identity. Для 1:n есть List.ofLazy и Map.ofLazy : элементы/значения считаются по индексу/ключу по требованию и кэшируются.

https://habr.com/ru/companies/spring_aio/articles/1042294/

#java #kotlin #jdk #jdk_26 #perf #performance #performance_optimization

Перевополщение Stable Values в JDK 26

Ленивая инициализация полей в Java чревата ошибками и подрывает свёртывание констант (он же constant folding). В JDK 26 появился JEP 526, который в режиме preview предлагает LazyConstant — тип, лениво...

Хабр
Lancez votre magasin de jeux vidéo avec ce guide exclusif et simplifié ! Lancez et développez avec succès votre magasin de vente au détail de jeux vidéo est votre guide incontournable pour transformer votre passion en entreprise lucrative ! Découvrez des stratégies de développement robustes, des astuces SEO, et des techniques d’expérience utilisateur. Lancez-vous maintenant et propulsez votre magasin vers le succès !
Tags : #Ebook #Livres #JeuxVidéo #OptimisationSEO #StratégiesDeContenu #Perf...

If you want to know who's taller, you don't measure people hours apart with a precise ruler - you line them up side by side

Denis Bazhenov (JetBrains) applies the same logic to microbenchmarking: instead of running implementations separately and comparing results, run them simultaneously on the same machine. Background noise affects both equally, and you measure relative performance directly.

🔗 https://oxidizeconf.com/sessions/just_stand_them_next_to_each_other

#Oxidize2026 #RustLang #Benchmarking #Perf #SystemsProgramming

discoteca, by sound

from the album (extaits) : A few fragments of a dance performance

eauchaude

Lancement du numéro par l’artiste interdisciplinaire Catherine Lalonde Massecar #montreal

☛ É͟r͟i͟c͟k͟ ͟d͟’͟O͟r͟i͟o͟n͟
Artiste audio, compositeur et improvisateur basé à Montréal, actif depuis près de trente ans dans les musiques expérimentales
☛ J͟é͟r͟ô͟m͟e͟ ͟J͟o͟y͟ ͟
Artiste compositeur, improvisateur, interprète, musique expérimentale, électronique, instrumentale et auteur
☛ B͟2͟L͟N͟G͟R͟ ͟+͟ ͟g͟u͟e͟s͟t͟s͟ @b2lngr

Mardi 28 avril 19h #nantes #audio #perf #livecoding

Lancez votre magasin de jeux vidéo avec ce guide exclusif et simplifié ! Lancez et développez avec succès votre magasin de vente au détail de jeux vidéo est votre guide incontournable pour transformer votre passion en entreprise lucrative ! Découvrez des stratégies de développement robustes, des astuces SEO, et des techniques d’expérience utilisateur. Lancez-vous maintenant et propulsez votre magasin vers le succès !
Tags : #Ebook #Livres #JeuxVidéo #OptimisationSEO #StratégiesDeContenu #Perf...
On diffuse ce soir a 22h des extraits des Live Quimperlois-Lé, sur http://p-node.org #radio #live #perf
∏node

∏ node is an hybrid radio/stream platform

Great perf deep-dive
"The Cost of Concurrency Coordination with Jon Gjengset"
https://www.youtube.com/watch?v=tND-wBBZ8RY

mutex, caching, cache-lines, L1,L2, byte alignment

#perf #compsci

The Cost of Concurrency Coordination with Jon Gjengset

YouTube

Hotspot v1.6.0 is out! The #Linux perf GUI for #performance analysis adds support for archives, tracepoints, and regex filtering. It also improves file handling and settings visibility, plus several bug fixes and stability improvements. #Hotspot #Perf #GUI

Details:
https://www.kdab.com/hotspot-v1-6-0-released/

Hotspot v1.6.0 released | KDAB

Hotspot 1.6.0 introduces support for archived perf files, regex filtering in the flamegraph, tracepoint analysis, and various bug fixes, further improving the Linux perf GUI for performance profiling.

KDAB
The Kirby Staticache plugin can now pre-compress ahead. That sounds interesting. High compression levels for on the fly caching can put a load on the web server. #KirbyCMS #Perf #WebDev
https://github.com/getkirby/staticache/releases/tag/2.1.0
Release 2.1.0 · getkirby/staticache

✨ Features Staticache 2.1.0 adds a new compression option that writes pre-compressed copies of cached files alongside the originals, allowing the web server to serve them directly without runtime c...

GitHub