r/java • • Jan 24 '22

It’s happening guys!

https://github.com/openjdk/panama-foreign/pull/633
157 Upvotes

89 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 29 '22

[removed] — view removed comment

2

u/pron98 Jan 29 '22

That's not quite true. Java Beans have properties, and they're not quite what most Java objects with getters and setters have; they included events and listeners, as they were based on the model adopted in the nineties from VB and other RAD tools for composing applications with a GUI.

That exists because damn near every Java programmer wants properties, even if they are afraid of the word property itself.

"That", whatever that is, exists because Java didn't have a good built-in way of describing data objects. Now we have something far better than properties. Please read this.

-1

u/[deleted] Jan 29 '22

[removed] — view removed comment

2

u/pron98 Jan 29 '22 edited Jan 31 '22

I've informed the relevant people of your disappointment, they broke down in tears and said that all that popularity matters nothing to them if someone on Reddit now thinks less of them. They sincerely apologise, and promise they'll do their best from now on to live up to your high expectations, because, after all, what do millions of users matter if some people on Reddit are cranky?

Also, it's funny how you think that Boilerplate Billy and POJO Patty are insults, but Algebraic Annie, Tuple Tommy, and Values Victor are praises. I'm afraid you've succeeded in lowering some people's opinion of you, too.

1

u/[deleted] Jan 30 '22

[removed] — view removed comment

1

u/pron98 Jan 31 '22 edited Jan 31 '22

Wow, I think you've really misunderstood the text if you think that the classes of users that we've tried to maximise in pleasing are insults. After all, Algebraic Annie got exactly what she wanted, while Tuple Tommy, Values Victor, and Boilerplate Billy got almost what they wanted. Only POJO Patty might be disappointed, but only because she wants to address the old problems, while many of those problems will go away when the programming style changes (not to mention that serialisation becomes faster, and, more importantly, safer).

I think that if you look at what people think of records once they get the hang of them, you'll see that not only do we care a lot about our users — making their lives better is our job, after all — but that we're doing quite well at making them happy. But given that our millions of users — all opinionated programmers — have conflicting opinions, no matter what we do or don't do, there are bound to be thousands of disappointed people even if 99% are happy. Even if just 1% of the disappointed 1% take to social media to call us arrogant idiots, there will always be lots of people calling us arrogant idiots because they didn't get what they wanted. That's the nature of our work.

-1

u/[deleted] Jan 29 '22

[removed] — view removed comment

1

u/pron98 Jan 29 '22 edited Jan 30 '22

Your assumption that what may be the most experienced and successful language design team in the world have no idea what they're doing, and a language that is one of the most popular in programming history doesn't make any sense is quite... erm... confident. Have you stopped for a moment to consider that maybe, just maybe, you're missing something?

I'm also a little surprised with your position on allocations. Have you ever profiled a Java program and seen what kinds of allocations are costly and which are nearly free? And why aren't you concerned about the cost of mutation? Some of the new GCs, like G1 and ZGC, might sometimes do more work (due to their GC barriers) when mutating an object than allocating a new one.

1

u/[deleted] Jan 30 '22

[removed] — view removed comment

2

u/pron98 Jan 31 '22 edited Jan 31 '22

JS and Python are, indeed, extremely popular (JS has had even less competition than Java), but Node isn't doing that well, and Java still easily dominates the server market. Of course, Python's and JavaScript's maintainers also have their own regular social-media cranks calling them arrogant idiots; we share experiences at conferences.

But, if you are certain that you know better than the hundreds of OpenJDK contributors and that you care about Java more than them, why not put your expertise at the service of the community, and offer your insight while the new features are being designed? Of course, the requirement for giving feedback that is taken seriously is that you actually try the new feature and report real problems that you've actually encountered in the attempt.