There's an old saying among military planners: 'Amateurs discuss tactics, professionals discuss logistics'. I'm not exactly sure what the analogy is with language design, but it's certainly 'Amateurs discuss syntax' because boy, do they...
I feel that was a (well-deserved) swipe against this subreddit :D
Since we’re talking about syntax, and you mentioned that the proposal for collection literals failed for syntactic reasons (reserves too much syntax for too little gain)… may I propose an idea? (Yes, I remember, ideas are cheap but bare with me anyway)
Just use target typing! That is, {1,2,3} on its own is a syntax error, but I can use it when initializing an int[]. Why not a CopyOnWriteArraySet of int? Just need some rules for what this desugars into, maybe with a fallback chain (prefer static of() method if exists, else constructor, else sequence of calls to add(), or something)
Fine you don’t want syntax pestering? I can pester about something even more annoying. Ever since the mailman upgrade, there’s no self service way to unsubscribe from a Java mailing list, or switch to digest mode. This discourages outsider contributions, since they can’t count on being able to ever unsubscribe so they’re don’t dare to subscribe in the first place.
Well, you have to admit that a lot of people still for some reason care about the exact syntax details and with the straight face discuss that as one of the reasons to prefer one language over the other.
That is insane, considring the fact that AI now writes a lot of code.
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.
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".
I think that whatever languages come next, the reputation of caring about users and the ecosystem as a whole is not something you can earn. It just takes time, and there is no way to accelerate it.
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.
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.”
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.
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.
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.
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.
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.)
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.
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.
An empty gradle project for me compiles in literally seconds. Our biggest project takes 2 minutes on my machine (after dependencies are cached) and most of that is shenanigans xml stuff that most people don't have to deal with anymore.
Have you even tried to figure out why your stuff is slow? It's probably not javac's fault.
gradle recommends having as much independent modules as possible in order to get the best of parallel build. but again you gotta know that to do so, most java projects i’ve seen do not follow that rule, worse if you use kotlin or scala, build time is a freaking nightmare. incremental build is fast but first builds are always expensive, even more if you you work with git worktrees a lot, and you do not setup your env properly you waste more time on builds than anything. and you gotta go through gradle docs that rarely anybody understand as this things breaks on any small little update
Scala's build time is slow because the actual compiler is slow af (scala is a hard language to compile). Kotlin always seemed reasonably fast, but aren't we digressing here? It sounds like you know the problems with your projects, but you're choosing not to fix them and hoping the jdk team magically fixes them for you?
first builds are always expensive
Like which step? Worktree-ing an existing project and building is pretty fast for us. Only dependency downloads take a lot of time if you're actually building something fresh (which can't really be avoided that easily).
>you gotta go through gradle docs that rarely anybody understand as this things breaks on any small little update
What are you doing that causes gradle updates to break you so hard? We've taken some of our projects from gradle 3 -> 8 through the course of 8 years and haven't struggled that much. Do you have a bunch of custom scripting or something?
i mean i know the issue, but refactoring a 3M lines of code of kotlin projects is not really what you could call a simple journey 🤣 but honestly, they could work on good defaults you know, the reason i’m complaining is really because i came from golang were builds takes literally fractions of seconds and coming to java was just way too painful. i’ve honestly not seen a single person that is happy with the state of build tools in java, that’s why new build systems like mill are emerging
What does this mean? Defaults for doing what? Is this a fundamental complaint that there's no first party build tool or is learning mvn init or gradle init really asking a lot?
The ecosystem is geared towards companies and long term maintenance, so companies typically create some maven archetypes or copy pasteable starter templates for their specific settings and projects anyway. I don't think the common use case is starting from a blank slate.
i mean i know the issue, but refactoring a 3M lines of code of kotlin projects is not really what you could call a simple journey
What is the issue and why do you have to refactor source code to get a normal build going? Or are your build scripts 3m lines because that sounds insane?
i’m complaining is really because i came from golang were builds takes literally fractions of seconds and coming to java was just way too painful
Generally speaking, most languages are slower at compiling than go since go hard optimizes for that specific benchmark, but java is pretty fast at compiling big projects. What part of your build is actually taking time?
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?
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.
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.
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.
48
u/JustAGuyFromGermany 11d ago
I feel that was a (well-deserved) swipe against this subreddit :D
46
u/brian_goetz 11d 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.
https://youtu.be/7kZ0zoDYOmM?si=F2cqcL01JDVDNLPf
8
u/TheStrangeDarkOne 11d 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".
4
u/mipo256 11d ago
I think that whatever languages come next, the reputation of caring about users and the ecosystem as a whole is not something you can earn. It just takes time, and there is no way to accelerate it.
18
u/pradeepngupta 11d 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:
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.
1
u/noodlesSa 11d 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 10d 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/[deleted] 9d 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.
0
u/Emotional-Priority33 2d ago
fix the damn build, that’s all we want. this is the language to use if you like wasting your time
-7
u/flawless_vic 10d 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?
0
u/[deleted] 9d 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.
0
u/[deleted] 9d 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.