TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Java 10 – Specification for Value Types

209 点作者 groodt将近 8 年前

11 条评论

filereaper将近 8 年前
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 未加载
karianna将近 8 年前
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.
nullnilvoid将近 8 年前
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 未加载
moomin将近 8 年前
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 未加载
Cieplak将近 8 年前
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 未加载
netheril96将近 8 年前
What is the use of value types if it cannot be the argument of generics?
评论 #14583980 未加载
评论 #14583984 未加载
评论 #14585518 未加载
pedrow将近 8 年前
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 未加载
saagarjha将近 8 年前
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 未加载
pulse7将近 8 年前
Why not just &quot;value types&quot; and &quot;value class types&quot; instead of long &quot;direct value class types&quot;?
评论 #14585213 未加载
cosmosgenius将近 8 年前
Is there a TL:DR version of this?
评论 #14585399 未加载
评论 #14585132 未加载
exabrial将近 8 年前
&lt;3 Java and Java EE! Glad to see the innovation wheels turning