r/java • u/daviddel • 7d ago
Evolving the Java Language: An Inside Perspective
https://www.youtube.com/watch?v=fJP3s1A5jGY46
u/brian_goetz 6d ago
For folks watching, for copyright reasons the full Steve Jobs video clip couldn't be included in the YT version. So here's a link to the original clip. Which, as I mentioned, could have been my whole talk.
3
u/Jon_Finn 6d ago
Wow, for anyone here following the Valhalla expert group for the last 10 years – Steve said it here ^ .
1
8
u/TheStrangeDarkOne 6d ago
Always a pleasure to hear the inside story of the Expert Group. I think the core messages can also be extrapolated to "how to be a good steward of the system you own".
18
u/pradeepngupta 6d ago
I really enjoyed this perspective from Brian Goetz. And honestly, the more I think about it, the more I feel that Java's biggest strength isn't just what it has added over the last 30 years. It's also what it has deliberately chosen NOT to add.
Think about it:
Knowing when to say no is just as important as knowing what to build.
Backward compatibility isn't just a constraint. It's a promise to millions of developers and businesses.
Every new feature comes with a complexity cost. Someone has to think about that cost for the next 10, 20 or 30 years.
As someone who has spent years building enterprise systems with Java, these ideas resonate with me deeply.
In fact, they're a big part of why I'm writing my upcoming book, Buzzing Java. I want to explore what Java's 30-year journey teaches us about building systems that people can trust.
One thing I'd love to discuss here:
Do you think Java's greatest strength is the features it introduced, or the discipline with which it evolved without breaking the past?
I'm genuinely curious about how other Java developers see this.
25
u/brian_goetz 6d ago
I will answer! It is both! The discipline forces us to do better versions of the features we introduce. It is shocking how often you can do better by just saying “not good enough yet.”
4
u/pradeepngupta 6d ago
That's a great point, Brian. The phrase "not good enough yet" really stands out to me.
I think there's a big difference between rejecting an idea because it isn't good and pushing it further because it has the potential to become something much better.
As someone who works on enterprise Java systems, I can relate to this. Sometimes the hardest architectural decision isn't choosing an implementation. It's recognising that the current solution, even if it works, isn't good enough for the long term.
Perhaps that's one of the reasons Java has managed to evolve for three decades without losing the trust of its ecosystem.
Thanks for sharing this perspective!
7
u/Yesterdave_ 6d ago
Yeah, its always a pleasure to read from or listen to the real experts and not some rando ranting on reddit.
4
u/pradeepngupta 6d ago
Agree! That's precisely why I enjoy listening to people like Brian Goetz. There's so much engineering thinking behind decisions that might look like simple syntax changes to the rest of us.
8
u/BigBad0 6d ago
EXACTLY what I am thinking of. Java been the best following such discipline that many other languages fell into not following even fraction of such discipline.
4
u/pradeepngupta 6d ago
I agree. I think the real achievement is maintaining that discipline while continuing to evolve. Any language can introduce new features, but doing so without compromising the ecosystem built around it for decades is a different engineering challenge altogether.
2
u/Jon_Finn 6d ago edited 6d ago
Isn't it both, adding features compatible not just with existing code but with the existing design? (If you follow the expert group lists, see the years of thought that goes into each feature.)
3
u/pradeepngupta 6d ago
Absolutely. And I think compatibility with the existing design is an equally important part of this.
It's not enough for a new feature to work with yesterday's code. It should also feel like a natural extension of the language rather than something bolted onto it.
What fascinates me is the amount of thought that goes into decisions that most developers will never even notice. That's probably a sign of good language design.
2
u/Amazing_Average3558 5d ago
Picked up Java about 1.5 years ago so I didn't grow up with this stuff. First few months it felt like a different language from what any CS book would show you, then one day I opened a Spring service from 2016 and it just compiled, no edits needed. Backward compat doing its thing while the language keeps moving. That combo is what keeps me on it, honestly.
1
u/noodlesSa 6d ago
I do have a lot of ideas about where Java should go and what it should do. That's a fact.
1
u/perryplatt 5d ago
Deterrence was a little odd of a request.
Could we get some examples of bad ideas for reified generics, type classes or value classes that came along?
1
u/Amazing_Average3558 4d ago
Underrated side effect of the compat constraint: the existing codebase becomes your documentation. Every Stack Overflow answer, every blog post from 2010, every old GitHub project still compiles. For someone learning Java now that's a massive resource advantage over languages where the old examples are just broken code. The discipline Goetz talks about is what keeps that resource alive.
1
u/Amazing_Average3558 4d ago
From the outside looking in, the discipline. I got into Java about 1.5 years ago and the reason it was less painful to learn is that the entire existing ecosystem still works. I can grab a tutorial from 2014 and run the code without changes. That's what made me stick, not the features.
-7
u/flawless_vic 6d ago
Why would adding structural types/functions add burden to developers?
Structural types can coexist with nominal types. If one wants to keep using CharToObject<T> fine, another class to shove into some commons/utils project of the codebase.
While I agree that some stuff are meant to fit in the context of a language and doing it in java would be clumsy, others are well estabilished and java is just lagging behind.
It doesn't take a phd to implement null safe navigation, it is easier than pattern matching. Is this a case of overthinking or "wanting to do things differently?"
As for budget...IDK, Oracle's jdk budget is probably the largest out there in programming language investment landscape. Factoring out the VM part, which must be huge, I guess what is left for the Java is still significantly bigger than what kotlin, scala, elixir, etc, have at their disposal.
I like Brian's defensive/phylosophical approach to language evolution, yet sometimes it feels like he is THE GUY hindering the progress. Is he just a frontman figure that echoes the consensus of other Java Architects or is he a dictator that has the last world of what (not) makes into the language?
1
u/pron98 2d ago
The problem is that structural types solve some problems and cause others. A well known problem they cause is inscrutable error messages, like the ones we see in Haskell and even TypeScript.
As for budget, it's not about the development budget but the "complexity budget" of the languages. Many developers like languages that are very feature-rich, but many don't. On average, I think that the relatively simpler languages also tend to be more popular. We'd like to keep Java closer to the simpler end of the spectrum. You are absolutely correct that Scala, Rust, Kotlin, and C# are richer languages, but they're also much less popular languages, and we are indeed trying very hard to keep Java from turning into such a language. You call that "progress", but I disagree. For one, a language can still evolve and grow only slower. Second, there are other ways of making progress without adding so many language features. For example, I think virtual threads are more advanced than async/await, and C# significantly hindered its own progress by adding that language feature. I also think Zig is more advanced than Rust even though it has like a tenth of Rust's features. Or, going back to Java, a very advanced JIT is able to make simpler and more general abstractions, such as virtual dispatch, competitive with the selection of narrower abstractions that C++ or Rust have to offer because their compilers are more limited in the optimisations they can apply.
47
u/JustAGuyFromGermany 6d ago
I feel that was a (well-deserved) swipe against this subreddit :D