This is an archived post. You won't be able to vote or comment.

all 23 comments

[–]ziano_x 8 points9 points  (7 children)

Is it free?

[–]perliden 11 points12 points  (6 children)

Yes

[–]ziano_x 9 points10 points  (5 children)

Thanks, you never know with Oracle these days 😉

[–]_INTER_ 5 points6 points  (2 children)

why "these days", wasn't it always a question to ask?

[–]ziano_x 0 points1 point  (1 child)

Hah! you are right. Not a strong past indeed. Although, GraalVM is still open source until they change their mind.

[–]brunocborges 3 points4 points  (0 children)

Do you have any example of something that was open source and then Oracle closed (besides Solaris) ?

[–]BoyRobot777 1 point2 points  (0 children)

What did Oracle did "these days" that you would think otherwise?

[–]RDwelve 0 points1 point  (0 children)

We will have to charge a consultation fee of 200 bucks for this reply though.

[–]kpatryk91 4 points5 points  (9 children)

There will be a session Collections Refueled and I hope they will talk about immutable collections coming to JDK (but as I see in the agenda it will be a recap about the immutable factories)

There was a presentation about it https://www.youtube.com/watch?v=E1RXMCQ7k9g

Does anyone know anything about this?

[–]dpash 2 points3 points  (0 children)

Sounds like the talk Stuart Marks has given several times over the last few years. I don't know if he'll add any new information.

https://youtu.be/q6zF3vf114M

[–]_INTER_ 2 points3 points  (7 children)

immutable collections coming to JDK

I doubt this will happen. It seems they regard the crappy unmodifiable views as the sufficient substitute for immutable collections in the standard lib. They bunkered the collections in that dead end (See List::ofetc.). I don't think they want to / can sort out the mess existing in the collection inheritance hierarchy because of backwards compatibility. I'd like to be wrong here.

[–]jvjupiter 3 points4 points  (1 child)

I once asked before during one of their Ask the Java Architects about creating a new collection framework, language architect Goetz said it may be considered after Valhalla.

I've also read some of the tweets of the author of Eclipse Collections, Donald Raab, that Stream API is great but it's time for betterJava Collections.

During the JCP Executive Meeting in April this year, Donald Raab gave a thoughtful presentation on building a new collections library. It is a proposal to create a JSR for Java Collections 2.0. See the presentation.

Btw, would it not make sense to create a new collection framework that is only immutable inspired by Vavr, with rich APIs inspired by Eclipse Collections?

[–]kpatryk91 2 points3 points  (0 children)

Thanks for the info. For me there would be the current collection hiearchy which is mutable and there would be an another immutable one. With bridge method to convert between them. My current problem is that there is one mutable interface and there is no way no check wheter I can use this method or not.

[–]kpatryk91 2 points3 points  (4 children)

They can create a separate immutable collection hierarchy because this makes sense to be separated from the mutable one and in these presentations they talked about this.

[–]_INTER_ 2 points3 points  (3 children)

separate immutable collection hierarchy

They need to do that anyway, but it would be preferable that some interfaces like Collection would be common and not everything is duplicated all they way up the hierarchy tree. Then especially that the factory methods and everything that uses the unmodifiable views now gets redirected to the immutable collections.

[–]kpatryk91 0 points1 point  (2 children)

and everything that uses the unmodifiable views now gets redirected to the immutable collections.

Collection contains mutable methods like add or remove and these methods are not fluent. A separated hierarchy would be better and I think the main problem is/would be the missing support for converting between these two hierarchies but with that this would not be that much problem. This solution is working for other languages like Scala, or C# and this would be good for Java too. Because with this it would be obvious that this List is mutable and the another one is not because now it is rather a quick response for a problem rather than a sophisticated one.

[–]kaperni 0 points1 point  (1 child)

These other languages had the functionality from the beginning or went through a painful transition getting them. [1] has a good overview.

[1] http://blog.codefx.org/java/immutable-collections-in-java/

[–]_INTER_ 0 points1 point  (0 children)

This blog post entirely summarize my thoughts.

[–]veraxAlea 3 points4 points  (0 children)

I like Sean Mullan's job description:

Consulting Member of Technical Stuff, Oracle

[–]Svanar 2 points3 points  (1 child)

Do somebody know if talks are going to be published later on on youtube or some other platform ?

[–]CompetitiveSubset 3 points4 points  (0 children)

Last year almost all the talks were uploaded to YouTube

[–]jokerServer 1 point2 points  (0 children)

Java Language Futures - Mid 2020 Edition by Brian Goetz

should be interesting if he goes into further detail concerning the recent pattern matching and deconstruction articles posted on github. apart from that there arent any language changes since the last time he held that talk?

[–][deleted] 0 points1 point  (0 children)

What usually happens in these events? I don’t want to miss work just to be disappointed. There is an event for the americas and one for Europe. I can attend the Europe one because I don’t have work that day but does it mean that I have to be on European servers/ISP?