Live data from Hacker News

The Road to Valhalla

cr.openjdk.java.net

1–10 of 82 posts

Re: The Road to Valhalla

#4
post #3

FYI: Valhalla is the project code name for adding inline types (value types) and generic specialization to the Java language/platform.

Thank you. For some reason I thought this would be about how to die honorably in a glorious viking battle.

Not being sarcastic.

Re: The Road to Valhalla

#5
post #4
post #3

FYI: Valhalla is the project code name for adding inline types (value types) and generic specialization to the Java language/platform.

Thank you. For some reason I thought this would be about how to die honorably in a glorious viking battle. Not being sarcastic.

Same here.

Re: The Road to Valhalla

#7
post #6

While undoubtedly useful, I feel like this will further the divide in programming models when dealing with primitive types vs objects in java.

I think it might actually end up the other way around. For example, primitives are going to be able to have methods now. In the end, the numbers just aren't there for certain types of computations without them. And people have been complaining about them missing for years.

Re: The Road to Valhalla

#9
post #8
post #3

FYI: Valhalla is the project code name for adding inline types (value types) and generic specialization to the Java language/platform.

I wonder why that name was chosen.

Because java has slowly been dying? ;-) no I don’t think that’s why (and java is still being used a lot I guess) but that was what jumped to mind first thing when I read “project valhalla”. Not the most PR friendly name!

Re: The Road to Valhalla

#10
post #7
post #6

While undoubtedly useful, I feel like this will further the divide in programming models when dealing with primitive types vs objects in java.

I think it might actually end up the other way around. For example, primitives are going to be able to have methods now. In the end, the numbers just aren't there for certain types of computations without them. And people have been complaining about them missing for years.

Also generic specialization-- which will allow generics over primitive types (and value types). That'd eliminate one major source of pain for performance-sensitive code (no more writing your own collection classes if you need to, for example, contain a bunch of ints).
Post reply on HN