Everything about

#pattern‑matching

Data-Oriented Programming in Java#talk#pattern‑matching #sealed
Data-oriented programming models data as data: records for entities and sealed types for alternatives. Combined with pattern matching we can define operations on the data without overloading it with functionality.
Data-Oriented Programming - Inside Java Newscast #29#video#records #sealed #pattern‑matching #patterns #techniques
Data-oriented programming focuses on modeling data as data (instead of as objects). Records for data and sealed types for alternatives let us model immutable data where illegal states are unrepresentable. Combined with pattern matching we get a safe, powerful, and maintainable approach to ad-hoc polymorphism that lets us define operations on the data without overloading it with functionality.
Deconstructing Records in Pattern Matching - Inside Java Newscast #26#video#project‑amber #pattern‑matching
How record patterns use records' transparency to safely deconstruct them in pattern matching, allowing us to separate checking structure and value of data from processing it.
News Grab Bag: Loom Virtual Threads, Lilliput, Pattern Matching, ... - Inside Java Newscast #25#video#project‑loom #tools #project‑lilliput #project‑amber #pattern‑matching #community
Project Loom's virtual threads are merged and ship with JDK 19 - here's to prepare for them. Also, news on Project Lilliput, proposal for record patterns in pattern matching, some astonishing numbers from Sonatype on Maven Central, and the move of OpenJDK to openjdk.org.
when And null In Pattern Matching - Inside Java Newscast #24#video#project‑amber #pattern‑matching
JEP 427 proposes two changes to pattern matching in switch: 1. Guarded patterns, which belonged to patterns, are replaced with when clauses, which belong to the case. 2. null needs to be handled by a specific case null.
How To Use switch In Modern Java#post#switch #pattern‑matching
Since Java 14 introduced switch expressions, using switch isn't as straight-forward as it used to be: colons or arrows, statement or expression, labels or patterns? Here's how to best use switch in modern Java.
All About JDK 18 - Inside Java Newscast #21#video#java‑18 #project‑amber #project‑panama #pattern‑matching #tools #reflection #documentation
Refinements in pattern matching and Panama's foreign and vector APIs; a new command jwebserver and a new IP address resolution SPI; preparing code for UTF-8 becoming the default character set and for the eventual removal of finalization; and a few more bits and pieces.
State of Pattern Matching with Brian Goetz#video#project‑amber #pattern‑matching #conversation
Conversation with Project Amber lead Brian Goetz about pattern matching in Java: Why Map::get should be a pattern, the linear thinking trap and how it impacts null handling in pattern matched, exhaustiveness in switch statements and the rehabilitation of switch.
11 Tricks From dev.java - Inside Java Newscast #14#video#generics #lambda #pattern‑matching #records #serialization
From compact record constructors to boolean expressions in pattern matching, from generic wildcards to chaining predicates and comparators, from jpackage to jlink - here are 11 Java tricks handpicked from dev.java.
Pattern Matching in Java (19)#talk#pattern‑matching #project‑amber
Pattern Matching is finding its way into Java, one step at a time, along three paths: patterns, switch improvements, sealed classes. Let's see how they all come together.
Incremental Evolution, Pattern Switches vs Visitor Pattern, and Wayland Support - Inside Java Newscast #8#video#java‑17 #project‑panama #pattern‑matching #sealed #patterns
How the six-month release cadence enabled a more incremental evolution of the Java platform and how pattern switches and sealed classes are an alternative to the visitor pattern. Also, maybe Wayland support for Java.
Visitor Pattern Considered Pointless - Use Pattern Switches Instead#post#patterns #pattern‑matching #sealed
In modern Java, the visitor pattern is no longer needed. Using sealed types and switches with pattern matching achieves the same goals with less code and less complexity.
Pattern Matching in Switches and Security Manager Deprecation - Inside Java Newscast #5#video#switch #pattern‑matching
JEP 406, which is a candidate for Java 17, introduced pattern matching in switch statements and expressions, introduces guarded patterns, and improves null handling. Then we need to talk about JEP 411's deprecation of the security manager.
Patterns, switch, and Valhalla's Primitive Classes - JDK News #2#video#java‑next #openjdk #project‑amber #pattern‑matching #project‑valhalla #primitive‑classes
Project Amber brings new patterns and puts them into switch while Project Valhalla takes off and proposes introducing primitive classes
Type Pattern Matching with instanceof#post#java‑16 #java‑basics #pattern‑matching
Type patters with instanceof are Java's first step towards pattern matching. Motivation, syntax, details, and future applications - here's all you need to know.
Pattern Matching in Java#post#java‑basics #pattern‑matching
Java takes its first steps towards pattern matching but the topic is much larger than instanceof. Goals, terminology, flow scoping - these apply to all kinds of patterns.
Pattern Matching Quartet - JDK News #1#video#java‑next #project‑amber #pattern‑matching
A summary of four recent discussions about pattern matching on the Project Amber mailing lists
What Future Java Might Look Like#post#java‑next #project‑valhalla #generics #pattern‑matching #primitive‑classes
Java's future is full of cool advances: data classes, value types, generics over primitives, pattern matching, etc. Let's peek into Java's future!