TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Java 10 – Specification for Value Types

209 pointsby groodtalmost 8 years ago

11 comments

filereaperalmost 8 years ago
The following bytecodes have been introduced: vaload vastore vbox vdefault vload vreturn vstore vunbox vwithnewfield<p>These will have direct impact on the JVM. Is there a test version of the JVM with these bytecodes already implemented? Not sure if Java follows similar rules as the IETF, show us working code with the specifications.
评论 #14584359 未加载
评论 #14585094 未加载
kariannaalmost 8 years ago
Hi all - interested in early access builds and &#x2F; or helping out? Head to OpenJDK.java.net and join the Valhalla project and the Adoption Group.<p>Disclaimer - I help run the adoption group and maintain the Valhalla wiki.
nullnilvoidalmost 8 years ago
This title is hugely misleading. The value types specification is for JVM, the platform, not Java 10. You can compile a large number of source languages to run on JVM, such as Java, Scala, Closure, Groovy, Kotlin, Javascript etc. just to name a few.
评论 #14584460 未加载
评论 #14583961 未加载
评论 #14584701 未加载
评论 #14584031 未加载
moominalmost 8 years ago
In its own way this is a sad day. Yes, Java&#x27;s getting better, but it marks another nail in the coffin for the dream of a smart compiler. In this case, escape analysis never lived up to its promise.
评论 #14586343 未加载
评论 #14585248 未加载
Cieplakalmost 8 years ago
C++ has had these things for years.<p>Seriously though, the JVM is killing it. Can&#x27;t wait until I can compile my .jar to verilog and run it on my FPGA, or send the verilog to TSMC and get some ASICs printed out.
评论 #14584777 未加载
评论 #14584507 未加载
netheril96almost 8 years ago
What is the use of value types if it cannot be the argument of generics?
评论 #14583980 未加载
评论 #14583984 未加载
评论 #14585518 未加载
pedrowalmost 8 years ago
Does anyone how this would work if there were two value types with the same members&#x2F;definition but from different libraries - would they be interoperable? For example, a mathematical function library and a chart plotting library might both define complex numbers. It would be good if you didn&#x27;t have to write (trivial) conversion functions every time you wanted to use them together, like you do now. (I think this is called &#x27;structural typing&#x27;?)
评论 #14587596 未加载
saagarjhaalmost 8 years ago
Looks cool, but I didn&#x27;t see Java 10 anywhere. What&#x27;s the timeframe for this? Is this truly a part of Java 10, considering that Java 9 is still in development?
评论 #14583901 未加载
评论 #14583905 未加载
评论 #14584059 未加载
pulse7almost 8 years ago
Why not just &quot;value types&quot; and &quot;value class types&quot; instead of long &quot;direct value class types&quot;?
评论 #14585213 未加载
cosmosgeniusalmost 8 years ago
Is there a TL:DR version of this?
评论 #14585399 未加载
评论 #14585132 未加载
exabrialalmost 8 years ago
&lt;3 Java and Java EE! Glad to see the innovation wheels turning