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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JDK 8 Release Notes

320 点作者 vkhuc大约 11 年前

30 条评论

bane大约 11 年前
You know, I&#x27;ve been messing around with Java little lately. Nothing too fancy. It&#x27;s actually not a bad language -- with a modern IDE it&#x27;s actually pretty quick and breezy to work with.<p>If the standard library was cleaned up and the warts were all removed and filled in, even if it broke compatibility (call it Java X or the Latte language or something) I&#x27;d be okay with that. There&#x27;s too much old 90&#x27;s cruft hanging around making usage of different pieces non-standard and lots of over-objectizing everything so you end up having to assemble lots of things out of little pieces, boilerplate-like, that should just be a single import and instantiation.<p>The modern JVM is surprisingly quick and robust technology and I&#x27;ve been pretty happy with it in my limited tests. I ported some old Perl algorithms to it and got some really good speed out of it once I benchmarked some of the collections a little.<p>Some things should just be outright fixed, like a proper regex literal so I don\\&#x27;t have to \\e\\s\\ca\\\p\\\\e everything so much\\\\\&#x2F;&#x2F;\&#x2F;\\.<p>It&#x27;s &quot;got good bones&quot; and a refurb of the entire thing to bring it focus could breath a lot of long-term life into it.<p><i>edit</i><p>I guess what I&#x27;m trying to say is it would be great if the language was informed a bit more with what&#x27;s going on in the dynamic languages space like Go has been. I like how Python is about as clear as Java code is, but it&#x27;s always seemed a little more quick and breezy to work with. This is something I think Go got right and it&#x27;d be great if Java sort of caught onto this.
评论 #7424345 未加载
评论 #7425049 未加载
评论 #7424839 未加载
评论 #7424225 未加载
评论 #7424278 未加载
评论 #7424881 未加载
评论 #7424294 未加载
评论 #7424198 未加载
评论 #7424803 未加载
评论 #7424754 未加载
评论 #7424234 未加载
评论 #7424638 未加载
评论 #7426849 未加载
评论 #7424334 未加载
评论 #7424510 未加载
评论 #7425776 未加载
评论 #7425657 未加载
评论 #7426364 未加载
评论 #7426512 未加载
评论 #7426600 未加载
评论 #7424943 未加载
ivanr大约 11 年前
For me, the best part of this release is the fact that the TLS stack has been significantly improved, and is now quite good. The lack of some critical features in Java 7 (e.g., inability to enforce cipher suite order) made TLS effectively unusable.<p>The list of improvements is quite long, actually:<p>- Server Cipher Suite Preference<p>- Strong Server Ephemeral Diffie-Hellman Parameters<p>- Authenticated (GCM) Suites<p>- Hardware Acceleration on Intel and AMD processors<p>- Server-Side SNI Support<p>- Ability to disable client-initiated renegotiation<p>- TLS 1.2 enabled by default in client mode<p>- Clients support Ephemeral DH over 1024 bits<p>More details here: <a href="http://blog.ivanristic.com/2014/03/ssl-tls-improvements-in-java-8.html" rel="nofollow">http:&#x2F;&#x2F;blog.ivanristic.com&#x2F;2014&#x2F;03&#x2F;ssl-tls-improvements-in-j...</a><p>And there are more security improvements documented here: <a href="http://openjdk.java.net/projects/jdk8/features#core/sec" rel="nofollow">http:&#x2F;&#x2F;openjdk.java.net&#x2F;projects&#x2F;jdk8&#x2F;features#core&#x2F;sec</a>
评论 #7427026 未加载
suyash大约 11 年前
Yay!! Java 8 is released!!<p>My favorite parts:<p>- invokedynamic : <a href="http://stackoverflow.com/questions/6638735/whats-invokedynamic-and-how-do-i-use-it" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;6638735&#x2F;whats-invokedynam...</a><p>- Project Nashorn : <a href="http://openjdk.java.net/projects/nashorn/" rel="nofollow">http:&#x2F;&#x2F;openjdk.java.net&#x2F;projects&#x2F;nashorn&#x2F;</a><p>- lambda expressions : <a href="http://openjdk.java.net/projects/lambda/" rel="nofollow">http:&#x2F;&#x2F;openjdk.java.net&#x2F;projects&#x2F;lambda&#x2F;</a>
评论 #7424439 未加载
评论 #7424462 未加载
评论 #7425561 未加载
评论 #7424453 未加载
lvh大约 11 年前
I&#x27;m very happy with the JVM in general, but I really, really, really wish they fixed the start up time. People compile Clojure down to Javascript for command line tools precisely because of this. lein &lt;anything&gt; takes annoyingly long, so I don&#x27;t do it.<p>I realize this is not a real concern for them for e.g. servers, but I wish they had some developer- or desktop-specific configuration that would start about as fast as a Python VM. I don&#x27;t even care if it runs code (a reasonable fraction) slower.
评论 #7425516 未加载
评论 #7425804 未加载
bhauer大约 11 年前
If you&#x27;re curious about the developer-facing changes in Java 8, I of course recommend the blog entry we wrote up last year [1]. It&#x27;s a bit hard to believe it&#x27;s been a year.<p>[1] <a href="http://www.techempower.com/blog/2013/03/26/everything-about-java-8/" rel="nofollow">http:&#x2F;&#x2F;www.techempower.com&#x2F;blog&#x2F;2013&#x2F;03&#x2F;26&#x2F;everything-about-...</a>
评论 #7428047 未加载
melling大约 11 年前
Anyone know what Google is going to do about Java 8 compatibility on Android? Not being able to adopt lambdas on mobile is a bummer.
评论 #7424592 未加载
评论 #7424483 未加载
评论 #7425327 未加载
评论 #7424786 未加载
评论 #7424690 未加载
maaaats大约 11 年前
IntelliJ just pinged me with an update, and checking the release notes it says &quot;ships final support for java 8&quot;. Sweet!
评论 #7424823 未加载
pron大约 11 年前
A very interesting new feature that is not talked about a lot is type annotations, which add pluggable type systems to Java with the Checker framework:<p><a href="http://docs.oracle.com/javase/tutorial/java/annotations/type_annotations.html" rel="nofollow">http:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;tutorial&#x2F;java&#x2F;annotations&#x2F;type...</a><p><a href="http://types.cs.washington.edu/jsr308/" rel="nofollow">http:&#x2F;&#x2F;types.cs.washington.edu&#x2F;jsr308&#x2F;</a>
AmrMostafa大约 11 年前
I&#x27;m surprised no one mentioned the departure of permgen space and the dreaded PermSize and MaxPermSize JVM arguments. While it was actually replaced with a new &quot;metadata&quot; space, the latter is mostly transparent, unlike the former. You can read more about the change here: <a href="http://java.dzone.com/articles/java-8-permgen-metaspace" rel="nofollow">http:&#x2F;&#x2F;java.dzone.com&#x2F;articles&#x2F;java-8-permgen-metaspace</a>
WoodenChair大约 11 年前
The install of JDK 8 on OS X is surprisingly straight forward. I just double clicked, selected yes a few times in a standard OS X install dialog, and I was up and running... now running applets with all of this security is another matter.
suyash大约 11 年前
Download the JDK&#x2F;JRE from Oracle: <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html" rel="nofollow">http:&#x2F;&#x2F;www.oracle.com&#x2F;technetwork&#x2F;java&#x2F;javase&#x2F;downloads&#x2F;inde...</a>
spiralpolitik大约 11 年前
I have to admit I thought Java was dead in the water after Java 6, but Java 7 while a fairly quiet release was a decent release and Java 8 actually moves the language forward into a better place. As for the future here&#x27;s what I would like to see:<p>- Separation of language and libraries. Really the JDK should just ship with just a very small core of classes and everything else should be optional installed via a dependency or package manager. I know jigsaw is going in this direction, but I fear they are going to go the same way as J2ME with profiles. They should also clean up the cruft while they are doing this. This would allow the libraries to evolve separately from the JDK and even allow 3rd party framework to flourish while still keeping things reasonable manageable.<p>- Multiple return types. Scala has hacked around it, Python has them, Go has them. Bite the bullet and implement them so you can do sensible error handling without exceptions or returning `null`. While they are at it they could also fix the type system to finally allow `Integer hello()` and `String hello()` to exist in the same class.<p>- Implement Categories (or mix-ins). Seriously if I have to see another class called StringUtils or IntegerUtils I will gouge my eyes out.<p>- Get rid of the primitives. I read somewhere that this was on the cards for Java 10.<p>- Implement proper Generics.<p>- Implement @property just like Objective-C and .NET so that 80% of class files aren&#x27;t getters and setters. I&#x27;m really surprised they never did this when they implemented annotations as this was the first obvious annotation to add. I know you can do it with Aspect J but you shouldn&#x27;t have to. There was a JSR for this at one point but it seemed to disappear into the ether.
评论 #7426887 未加载
评论 #7427765 未加载
评论 #7429764 未加载
afsina大约 11 年前
Java 8 made our in-house ASR engine %5-10 faster. Free performance is always welcome.
评论 #7428264 未加载
suyash大约 11 年前
Here is Chief Java Platform Architect: Mark Mark Reinhold’s Blog about JDK 8 and the key main features: <a href="http://mreinhold.org/blog/jdk8-ga" rel="nofollow">http:&#x2F;&#x2F;mreinhold.org&#x2F;blog&#x2F;jdk8-ga</a>
netcraft大约 11 年前
&gt; The expiration date for JRE 8 is 05&#x2F;15&#x2F;2014<p>How long till most people will target 8? I think we will wait for at least a few patches first.
评论 #7424158 未加载
评论 #7424496 未加载
评论 #7424375 未加载
评论 #7424123 未加载
评论 #7424479 未加载
MBlume大约 11 年前
Packaging Java 8 for debian&#x2F;ubuntu: <a href="http://michaelblume.tumblr.com/post/80003780922/packaging-java-8" rel="nofollow">http:&#x2F;&#x2F;michaelblume.tumblr.com&#x2F;post&#x2F;80003780922&#x2F;packaging-ja...</a>
评论 #7427325 未加载
sev大约 11 年前
For those who may not have seen it, here&#x27;s a good primer&#x2F;tutorial for Java 8:<p><a href="http://winterbe.com/posts/2014/03/16/java-8-tutorial/" rel="nofollow">http:&#x2F;&#x2F;winterbe.com&#x2F;posts&#x2F;2014&#x2F;03&#x2F;16&#x2F;java-8-tutorial&#x2F;</a>
augustl大约 11 年前
There&#x27;s a Node.js implementation on top of Nashorn, the JS engine that comes with JDK 8 <a href="https://avatar-js.java.net/" rel="nofollow">https:&#x2F;&#x2F;avatar-js.java.net&#x2F;</a><p>Pretty cool stuff! I hope someone makes an easy way to render FB react modules on the server without relying on a separate Node.js process.
brunnsbe大约 11 年前
Hopefully JDK 8 will have a better release than JDK 7: <a href="http://searchhub.org//2011/07/28/dont-use-java-7-for-anything/" rel="nofollow">http:&#x2F;&#x2F;searchhub.org&#x2F;&#x2F;2011&#x2F;07&#x2F;28&#x2F;dont-use-java-7-for-anythin...</a>
yuhong大约 11 年前
Free updates for Java 7 will end in a year: <a href="http://www.oracle.com/technetwork/java/eol-135779.html" rel="nofollow">http:&#x2F;&#x2F;www.oracle.com&#x2F;technetwork&#x2F;java&#x2F;eol-135779.html</a>
tete大约 11 年前
I&#x27;d really start considering Java if it wasn&#x27;t for Oracle.
评论 #7426885 未加载
nickbauman大约 11 年前
Lack of Tail Call Optimization is still a bummer in some cases.
datawander大约 11 年前
People will look back upon this date with utter lament because the world of lambdas has been unleashed upon a much more dangerous and wider world of programmers.
webreac大约 11 年前
Does anyone know if all the security issues that have given bad reputation to java are fixed in java 8 ? Is it safe again to develop java applets ?
评论 #7426129 未加载
jevinskie大约 11 年前
Does anybody know if static libraries made it in?<p><a href="http://openjdk.java.net/jeps/178" rel="nofollow">http:&#x2F;&#x2F;openjdk.java.net&#x2F;jeps&#x2F;178</a>
donniezazen大约 11 年前
Why does Android requires obsolete JDK 6 and not the latest stable version? Android should probably be the biggest project that uses JVM.
评论 #7426824 未加载
javajosh大约 11 年前
It&#x27;s really too bad lambdas in Java 8 don&#x27;t do non-final variable capture; other than that, I&#x27;m very pleased with this.
评论 #7428084 未加载
hnriot大约 11 年前
Java+Guava is decent. Without the work that Google has done Java is incomplete and missing too much.
drderidder大约 11 年前
pg had an interesting take on &quot;hackers radar&quot; wrt Java. worth a read. <a href="http://www.paulgraham.com/javacover.html" rel="nofollow">http:&#x2F;&#x2F;www.paulgraham.com&#x2F;javacover.html</a>
评论 #7427360 未加载
boohoofoodoo大约 11 年前
any sources for apt-get available?