Java Withers - Inside Java Newscast #67
nipafx
by Nicolai Parlog
1w ago
JEP 468 proposes a solution to the verbosity that can come from modeling mutable state with immutable records: derived record creation aka with expressions aka withers. Java withers, Java ages, Java decays - that was the conception I wanted to play off of when picking this episode's title, but... I can't pull this off. I mean, I'm recording this video on the world's longest permanent race track and I'm here because of Java! Specifically, JavaLand, one of the very best Java conferences in a community flush with excellent events. The whole "Java is dying" schtick is lame anyway, but it's outrigh ..read more
Visit website
Java 23: Restoring the Balance with Primitive Patterns - Inside Java Newscast #66
nipafx
by Nicolai Parlog
3w ago
The ongoing introduction of pattern matching to Java has unbalanced the language. Here's how primitive patterns (in Java 23) and other patterns (in future versions) will fix that. Intro Welcome everyone, to the Inside Java Newscast, where we cover recent developments in the OpenJDK community. I'm Nicolai Parlog, Java Developer Advocate at Oracle, and today we're gonna talk about primitive patterns in Java 23. Primarily, but we'll also put them in context of the patterns we already got and the ones we will probably get in the future. Because the partial introduction of patterns into Java has un ..read more
Visit website
(Dirty?) Tricks in Java 22 - Inside Java Newscast #64
nipafx
by Nicolai Parlog
2M ago
Pattern matching Optional, expanding sealed type hierarchies, nesting switches, reverting instanceof, and more - so many (dirty) tricks to play around with in modern Java Can you believe that this Inside Java Newscast has an episode number 1 with six zeroes? One, zero zero zero, zero zero zero - that is so cool! So, for this jubilee episode, should we have some fun? Experiment a bit, explore the boundaries of modern Java, and maybe come up with a dirty trick or two? I say, we should! Intro Welcome everyone, to the Inside Java Newscast, where we cover recent developments in the OpenJDK communit ..read more
Visit website
Does Java 22 Kill Build Tools? - Inside Java Newscast #63
nipafx
by Nicolai Parlog
2M ago
Java 22 brings multi source-file execution to the platform. It allows us to run programs consisting of multiple source files and even dependencies with just a simple java command. For experienced developers, this will make exploration and experimentation simpler but it's a real game changer for people just learning Java or even just to program: They can now write Java code from single to multiple source files and even add dependencies before they need to consider an IDE or build tool. Hey, take a look at this: project-folder └─ Hello.java $ java Hello.java So, this is a single Java source ..read more
Visit website
Java 22 Previews Statements Before super(...) and this(...) - Inside Java Newscast #62
nipafx
by Nicolai Parlog
3M ago
Whether for validation, preparation, or splitting and sharing arguments, it can be quite annoying that Java doesn't allow statements before the super(...) or this(...) call in a constructor. Luckily Java 22 is about to change that with JEP 447, which previews statements before the explicit constructor invocation. By a show of hands, who occasionally puts code before the super(...) or this(...) call when writing a constructor, only to be yelled at by the compiler? class Name { private final String first; private final String last; Name(String first, String last ..read more
Visit website
Java's Plans for 2024 - Inside Java Newscast #61
nipafx
by Nicolai Parlog
3M ago
In 2024, Java keeps evolving. Here's what the big OpenJDK projects (Amber, Leyden, Valhalla, and more) plan for this year and how that will push Java forward. Happy Gregorian new year, everyone, and welcome to the Inside Java Newscast, where we cover recent (and in this case future) developments in the OpenJDK community. I'm Nicolai Parlog, Java Developer Advocate at Oracle, and today we're gonna talk about Java's plans for 2024. Or, more specifically, what the big OpenJDK projects will be working on this year - of course, there's much more development going on. And note that "working on this ..read more
Visit website
Java Highlights of 2023 - Inside Java Newscast #60
nipafx
by Nicolai Parlog
4M ago
2023 is coming to a close and it was quite a year for Java! Let's look back at some of the highlights: on-ramp improvements, why Java 8 is dying, JVMLS, community achievements, and how cool our YouTube channel is. ? 2023 is coming to a close and it was quite a year for Java! JDK 21 released to great fanfare, finalizing both virtual threads as well the pattern matching basics. There were also some amazing conferences, new Java champions, and we achieved some milestones on this channel, too. Oh, and I'm officially calling it: 2023 was the last year, where it was still reasonable for most project ..read more
Visit website
How Project Valhalla And JSpecify Can Kill NPEs
nipafx
by Nicolai Parlog
4M ago
Project Valhalla's value types need to be aware of which instance can be null and which can't, so the JVM can inline them. So will Java get a null-aware type system after all? Not quite, but it may get close and JSpecify can help with some of those steps. Hey, I'm nipafx, but you can call me Nicolai and today it's gonna be you, me, Kevin Bourrillion, and Project Valhalla, specifically its interest in and intentions for null. As I'll explain in a minute, Valhalla needs to know which value type instances can be null and which can't, so it can inline them. There have been different ideas for how ..read more
Visit website
Java, null, and JSpecify
nipafx
by Nicolai Parlog
4M ago
Kevin Bourrillion gives an introductory presentation on JSpecify, a project spearheading a set of standard annotations for Java static analysis, specifically for tracking null Hey, I'm nipafx, but you can call me Nicolai and today it's gonna be you, Kevin Bourrillion, and JSpecify. This is from a live stream on my Twitch channel a few months ago and while I was there, too, and so was Manu Sridharan, this video contains just Kevin's presentation about JSpecify, a project spearheading a set of standard annotations for Java static analysis, specifically for tracking null. After Kevin gave us a gr ..read more
Visit website
Java 22 Unpacking - Inside Java Newscast #59
nipafx
by Nicolai Parlog
5M ago
JDK 22 will be released on March 19th 2024 but it's forked today (Dec 7th 2023) and so its feature set is final. Unnamed patterns and variables, the FFM API, and multi-source-file programs are the highlights but there is so much more. Let's unpack! It's Christmas time, at least where I'm living, but Santa came early and already delivered us a big bag of brand new and improved Java features for JDK 22: statements before this and super, multi-source-file programs, G1 region pinning, FFM API, stream gatherers, and a bunch more. So let's unpack, shall we? Intro Welcome everyone to the Inside Java ..read more
Visit website

Follow nipafx on FeedSpot

Continue with Google
Continue with Apple
OR