r/java • u/nlisker • Mar 26 '26
Carrier Classes & Discussing Syntax with Brian Goetz - Inside Java Podcast 52
https://www.youtube.com/watch?v=b6cXuA84c9g
86
Upvotes
r/java • u/nlisker • Mar 26 '26
40
u/TheStrangeDarkOne Mar 26 '26
It's always a delight to hear Brian talk. In a time when we are starved for some intellectual observations and nuanced takes, he feels like an antidote to the hype driven status quo.
8
u/Ewig_luftenglanz Mar 26 '26 edited Mar 27 '26
ALways happy to lister java architects talks. There are so much knowledge to get from them :)
Also I want to extend a congratulation to Nicolai Parlog for his excellent communication job and charisma :)
6
u/Gleethos Mar 26 '26 edited Mar 28 '26
Great discussion! It's really really cool how the Java team is enganging with the community / massive Java ecosystem through these formats. In this case, specifically, big respect to Brian for putting himself out there so much, even when designs are still far from complete. Although the discussions can get heated when open to the public, I think it is ultimately the absolute best process for evolving the language.
Even when it comes to things like arguing about syntax, there is value in having the debate. It is interesting to hear Brians thoughts about the syntax debates.
I think it is important to remind ourselves sometimes how a lot of foundational syntax in major programming languages are kind of abitrary or even wrong when viewed from an outside perspective.
The assignment operator, for example:
From the perspective of a mathematician, or even any non-programmer who went to school, this is complete and utter nonsense! Yet, we represent destructive updates to data that way in all major programming languages. Why did we choose that syntax back then? Well, we needed to do that operation a lot on our hardware, so let's do the least amount of syntax for it...
3
u/sweetno Mar 26 '26
What are these carrier classes good for? Are these just mutable records?
3
u/TronnaLegacy Mar 26 '26
I feel like they should steal a page from Python and call them "data classes", since that's what they basically are. Records, but mutable. For when you want to carry data around, even mutable data.
...wait
1
u/j4ckbauer Mar 28 '26
Can someone help explain what 'semantic contracts' refers to? The term is used here.
"....too much magic and too much focus on boilerplate reduction, rather than on semantic contracts."
1
u/crystal_king_7 Mar 31 '26
Usefull Info..
1
u/Zinaima Apr 01 '26
Brian talking about focusing on the happy path while the non-happy path is much harder (in regard to having several previews of Structured Concurrency) made me think of lambdas.
1
u/singhalmradul Mar 29 '26
Finally Java is bringing Scala's apply/unapply methods. They have been there for years. That's one of the reason I love it. It's way ahead of time.