"Carrier Classes" [IJN]

"Carrier Classes" [IJN]

This episode presents Project Amber lead Brian Goetz's recent email "Data Oriented Programming, Beyond Records", wherein he describes plans to improve Java's data handling capabilities by introducing carrier classes, a generalization of records. Like them, carrier classes describe their state through a component list that defines the type's external API: accessors, a constructor, and matching deconstructor - this allows carrier classes to participate in pattern matching and reconstruction. Unlike records, the implementation of this API remains the developer's task although component fields offer a shortcut for the common case where the API does map to a field. Carrier classes don't have to be final (and can hence participate in inheritance) and neither do their fields (so they can be mutable data carriers).

The email also mentions carrier interfaces, allowing records to be abstract as well as a relaxation of deconstruction patterns that make them more amenable to evolution of the matched type. This episode also briefly touches on Gavin Bierman's mail to the Project Amber mailing list that announces pattern assignments and constant patterns.

Det här avsnittet är hämtat från ett öppet RSS-flöde och publiceras inte av Podme. Det kan innehålla reklam.

Avsnitt(59)

"Java *is* Memory Efficient" with Ron Pressler [AtA]

"Java *is* Memory Efficient" with Ron Pressler [AtA]

Java's use of memory, often chided for being excessive, is actually a strength as it trades more memory use for fewer CPU cycles. Java can only make this tradeoff due to its moving garbage collectors,...

28 Maj 35min

"Java Gets Post-Quantum TLS" [IJN]

"Java Gets Post-Quantum TLS" [IJN]

With JDK 27 introducing hybrid key exchange schemes that combine ML-KEM with traditional ECDHE algorithms, Java applications can gain TLS-layer protection against the harvest-now, decrypt-later threat...

18 Maj 4min

"Make Java Safer with Flexible Constructor Bodies" [IJN]

"Make Java Safer with Flexible Constructor Bodies" [IJN]

Flexible constructor bodies were added to Java 25 with JEP 513. In this episode of the Inside Java Newscast Billy Korando will review the issues with how constructors used to work before Java 25, eith...

5 Maj 7min

"Ask the Architects at JavaOne'26" [AtA]

"Ask the Architects at JavaOne'26" [AtA]

In JavaOne 2026's closing session, audience members had the opportunity to ask the Java architects questions. They asked about the state of structured concurrency and Project Babylon, how Java is bein...

23 Apr 58min

"You Must Avoid Final Field Mutation" [IJN]

"You Must Avoid Final Field Mutation" [IJN]

With JDK 26 / JEP 500 starting to prevent final field mutation through reflection, it is important that Java projects stop employing that practice. For more, check https://inside.java/podcast

16 Apr 9min

"How JDK 26 Improves G1's Throughput" [AtA]

"How JDK 26 Improves G1's Throughput" [AtA]

G1 is Java's default garbage collector in most environments, and its throughput has been considerably improved in JDK 26 by streamlining its write barriers. This conversation explores the background o...

9 Apr 17min

"Analyzing Crashed JVMs" [IJN]

"Analyzing Crashed JVMs" [IJN]

The Java tool jcmd ("j command") sends diagnostic commands to the JVM, which will react by supplying the desired information: from finalizer queues to heap and thread dumps, from GC insights to virtua...

4 Apr 4min

"Java Carrier Classes & Discussing Syntax" [AtA]

"Java Carrier Classes & Discussing Syntax" [AtA]

Carrier classes are Project Amber's current idea to extend some of records' benefits to regular classes. Probably the most important among them is deconstruction, which would allow classes to particip...

26 Mars 46min

Populärt inom Teknik

uppgang-och-fall
elbilsveckan
market-makers
bilar-med-sladd
rss-elektrikerpodden
rss-laddstationen-med-elbilen-i-sverige
developers-mer-an-bara-kod
rss-veckans-ai
natets-morka-sida
rss-technokratin
bli-saker-podden
skogsforum-podcast
bosse-bildoktorn-och-hasse-p
under-femton
har-vi-akt-till-mars-an
rss-uppgang-och-fall
rss-upplyst-entreprenordirektor
rss-powerboat-sverige-podcast
rss-snacka-om-ai
rss-hit-med-dina-lunchpengar