All Java 23 Features - Inside Java Newscast #70

preview_player
Показать описание
Java 23 will be released on September 17th but it's branched today (June 6th 2024) and so its feature set is final. Generational ZGC, Markdown in JavaDoc, deprecations in `Unsafe`, the removal of string template, and the thoughtful evolution of eight preview features. Let's take a closer look!

~~~ Chapters ~~~

0:00 Intro
0:37 Primitive Patterns (1st)
1:27 Flexible Constructor Bodies (2nd)
1:57 Simplified Main (3rd)
2:58 Module Imports (1st)
3:25 Structured Concurrency & Scoped Values (3rd)
4:13 Class-File API (2nd)
4:42 Stream Gatherers (2nd)
5:39 Vector API (1e8th Incubation)
6:09 The Novelty
6:43 Generational ZGC By Default (Final)
7:57 Markdown in Comments (Final)
9:20 Upcoming Newscasts
9:31 String Template Removal
10:14 Unsafe Memory Access Deprecation
11:14 Outro

Tags: #Java #Java23 #JDK #JDK23 #OpenJDK #InsideJava
Рекомендации по теме
Комментарии
Автор

Valhalla and vector api are really needed for physics and engineering computing. I know we are a small market but please! Finish them already!

ingframin
Автор

Thanks guys! This is super awesome. We, the educators, asked and you listened. With the new modifications to the implicitly declared classes and the automatic imports of java.util, java.math and most importantly of the extremely handy static methods in the new IO class, it's time to revert to teaching introductory programming courses with our beloved Java.

iheanyichukwuaguwa
Автор

Another excellent (informative) video thank you Nicolai

lmj
Автор

Hi there. Is there some news on the Vector Api? When they will exit the incubation state? I put a lot of effort to use them in my program and they are devastating on some loads with CPUs that supports AVX512. My concern is that I'll need to rewrite everything for API changes when the APIs will exit the incubator state. I have some "development questions" on those APIs, are there a mailing list where to discuss about the use and the benefit of those APIs?

sblantipodi
Автор

The best informative newscast about java

AndrewMalyhin
Автор

THIS ALL IS AWESOME EXCEPT FOR THE STRING TEMPLATE PART!!!

El-barto
Автор

😂 6:08 no pressure Brian, but WHEN WILL IT COME?

Andre-jjxs
Автор

String templates removal is truly disappointing. A feature that is such a quality of life improvement and that is present in almost every popular language for at least a decade. Sad.

jediikk
Автор

Hello. One feature of the new way statements can appear before a call to super in a constructor that seems a bit worrying to me is the assignment of fields.

A great thing seems to be the capacity to validate parameters and do other checking in calls to constructors before calling super and hence before memory is allocated to the object being constructed. If one can set fields in a call before super, will this interfere with how this seems?

CliqueSpace
Автор

Why String templates jep has been dropped?

FABGIO
Автор

Omg it’s so disappointing those string templates. We need this thing

kamurashev
Автор

If you want to advance in Java from basic to intermediate and advanced subjects, what are the best courses that exist at a reasonable price? Do you have any recommendations?

dff
Автор

I am really not looking forward to the memory access removal. Maybe I'm lacking some knowledge here but for example. Here is a very simple library. There is a class called FormatToString that simply takes an annotation from the class and converts it in to a toString function. Eg: "Foo{bar: #bar}" Now the user clearly intends the bar field/accessor to be used but it may not want to publicly expose as it may just be something related to string display. Without the memory access that contract can no longer be fulfilled and the user must manually allow the library to access things via reflection what defeats the purpose of something that is supposed to make things simpler and faster to write.

lapissea
Автор

Would it be possible if anyone did the work to backport the Markdown Javadocs to JDK21?

CraccaHacka
Автор

Hi Nicolai.
Is OpenJDK and JDK have the exact same features and source codes ? Who determines what new features will be added, what old features will be fixed, and what old features will be removed (deprecated) in newer versions of the JDK, is it the community or the internal Java team at Oracle ?

PeterAdiSaputro
Автор

What about a nulls native support, like in C# and Kotlin. ?.

ram
Автор

If at least something would be available for string templating in Java, say, like compact() in PHP laravel.

Though, with String.format(), I can achieve enough which I want. but it could be probably simplified with the approach like compact(). Probably it could be achieved when project Babylon will stand and jump.

advsaifkhan
Автор

3:15 so import module is basically using namespace from c++... I'm not sure I like it.

redcrafterlppa
Автор

String templating always seemed to be a strange addition to Java. One of Java’s great strengths is compile-time checking and code analysis, which is broken by string templating. Templating also adds new syntax to be handled by transpilers. I hope it isn’t added back. Its function can be replaced by combinations of string formatting and lambdas. Keep functionality and variable names as pure Java!

sjzara
Автор

wake me up when valhalla it will be here, 10 years is too long, the development is too slow, and java have lost a lot of ground compared to the other language

ahmedurmiteahmedurmite