Тёмный

Java 21 💣💥 By Nicolai Parlog 

Devoxx
Подписаться 157 тыс.
Просмотров 6 тыс.
50% 1

Java 21 is an explosive release!
The fuse was lit by projects Loom and Amber and 21 blows it up by finalizing virtual threads and all basic building blocks of pattern matching, thus bringing simple scalability to the platform and modern constructs to the language.
But it doesn't stop there: better APIs, better garbage collection, better tooling - particularly when you're coming from 17, the improvements will be ubiquitous.
And beyond all that, Java 21 is fizzling with future:
There are previews on string templates
a simplified `main`,
pattern matching refinements
improved concurrency with virtual threads
Not least, many vendors offer long-term support for their JDK 21 builds, so if you're on 17 or 11 (or 8?), this is the next version to upgrade to.
In this talk, we'll go over all that, so you can hit the ground running when updating to Java 21
Disclaimer: It will be a blast! 💥
NICOLAI PARLOG
Nicolai (aka nipafx) is a Java enthusiast focused on language features and core APIs with a passion for learning and sharing - in articles, newsletters, and books; in tweets, videos, and streams; in demo repos and at conferences - more on all of that on nipafx.dev. He's a Java Developer Advocate at Oracle and organizer of Accento. That aside, he's best known for his haircut.

Наука

Опубликовано:

 

1 окт 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@quzedf
@quzedf Месяц назад
very interesting, thank you🙂
@DidierLoiseau
@DidierLoiseau Месяц назад
1:17:55 on my machine the first run takes 3.5s (excluding compilation, just the loop), but subsequent runs take less than 2s.
@guai9632
@guai9632 9 месяцев назад
inet resolvers
@farooqmss
@farooqmss 9 месяцев назад
@9:30 As a user, LTS is the assurity that the version is solid and one need not to worry about short-comings or a major bug, because its owner's word. Even if you don't use Oracle JDK, You just took that confidence out.
@dino130395
@dino130395 7 месяцев назад
That's not what LTS ever meant. Just that it will get updates for a long time. No GA java version has any major bugs or shortcomings.
@tobyzieglerrr
@tobyzieglerrr 9 месяцев назад
sealed interface... permits.... that really seems like a dumb feature. Who can give real practical examples why anybody should want this!?
@konstantinatwork3105
@konstantinatwork3105 9 месяцев назад
This allows you to expose your internal hierarchy but still disallowing others to hijack it by overwriting its behaviour. This feature is a great tool for framework developers. The Class now also got a new method "getPermittedSubclasses". Here an example: Map
@tobyzieglerrr
@tobyzieglerrr 9 месяцев назад
@@konstantinatwork3105 Ok, maybe nice for frameworks. The code example looks like nothing i would ever want to write. Our production code is not allowed to use reflection and this whole sealed/permit stuff seems like something that only a minority ever wanted or needed. It actually still seems like a huge anti pattern to me. Still not impressed by Java 21 atm. I think looking at golang, typescript and rust on the server side: Java is steadily losing ground. It really feels more and more like COBOL. I still love Java, have done most of my code with it, but i feel more and more like the language does only fix it's own problems. Looking at these string templates STR. ..... really? That is the best they came up with? It feels so clunky. Well it will motivate me more and more to look at alternatives.
@nuharaf
@nuharaf 9 месяцев назад
sealed interface allow java to have something similar to rust tagged union
@hariseldon02
@hariseldon02 9 месяцев назад
Example use case: Polymorphic return types. I once wrote a method that could return either type A or B depending on the outcome. I wrote an "Either" class for that with Optional like methods ("ifLeft(Consumer), ifRight(Consumer)"). Today I would use a sealed interface for that and apply a switch expression to the return value, which ensures at compile time that I cover both cases. If the return type can't implement the interface, then I'd use a record wrapper around the value and use pattern matching to extract the original one.
@tobyzieglerrr
@tobyzieglerrr 9 месяцев назад
@@hariseldon02 thanks i actually did not think about that. Still feels a little clumsy but might come in handy 🖖👍
Далее
Cascade Solves Styling By Maarten Van Hoof
30:05
Project Leyden By Brian Goetz
54:39
Просмотров 8 тыс.
ЭТОТ ПЕНЁК ИЗ PLANTS VS ZOMBIES - ИМБА!
00:48
Wait for the BOWLING BALL! 👀
00:38
Просмотров 26 млн
Java Language update By Brian Goetz
1:02:04
Просмотров 15 тыс.
Java 21 Is Good?! | Prime Reacts
27:08
Просмотров 223 тыс.
Java 21 Pattern Matching Tutorial #RoadTo21
23:28
Просмотров 25 тыс.
The Amazing Features of Modern Java  - Venkat Subramaniam
1:02:01
Java 21… and Beyond
48:30
Просмотров 23 тыс.
Новодельный ноутбук Pocket386
1:16:17
10 МИНУСОВ IPHONE 15
18:03
Просмотров 38 тыс.
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 19 тыс.
iPhone 16 - 20+ КРУТЫХ ИЗМЕНЕНИЙ
5:20
#samsung #retrophone #nostalgia #x100
0:14
Просмотров 10 млн