Live data from Hacker News

Java 7 is now available

oracle.com

91–100 of 218 posts

Re: Java 7 is now available

#92
post #57
post #32

Earlier quoted context omitted.

Yes [1]. Invokedynamic (JSR-262). Quote from an older article [2]: "... enable[s] implementers of compilers for dynamically typed languages, that is, the people who develop compilers for languages such as JRuby and Jython, to generate bytecode that runs extremely fast in the JVM." [1] http://blogs.oracle.com/jrose/entry/jsr_292_launched_in_java [2] http://java.sun.com/developer/technicalArticles/DynTypeLang/...

Indeed, As Charles Nutter (JRuby) wrote: "There’s a very real chance that invokedynamic could improve JRuby performance many times, putting us on par with our statically-typed brothers like Java and Scala. And that means you can write Ruby code without fear. Awesome." http://www.engineyard.com/blog/2011/jruby-1-6-released-now-w...

So invokedynamic is already wired into JRuby? I can just install the Java 7 runtime and see significant performance improvements?

Re: Java 7 is now available

#93
Did they always have this clause in the Java license, or is it new to Oracle's release?

"These Supplemental License Terms add to or modify the terms of the Binary Code License Agreement....

A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms. If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle."

Sections mentioned are: B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT. ... Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs.

C. LICENSE TO DISTRIBUTE SOFTWARE. ... Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice ...

D. LICENSE TO DISTRIBUTE REDISTRIBUTABLES. ... Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute those files specifically identified as redistributable in the README File ("Redistributables") ...

E. DISTRIBUTION BY PUBLISHERS. This section pertains to your distribution of the JavaTM SE Development Kit Software with your printed book or magazine ....

Maybe I'm reading too much into it, because of the Android lawsuit?

Re: Java 7 is now available

#94
post #46

Too little to show for 5 years.

yeah but Sun was sold, and other stuff happened. I think it's already great that there is a release with some syntax features that are useful and other nice to have things too. I think Java 8 will come fast there are plenty of new langs now they can't miss the point otherwise companies will continue to migrate to faster evolving languages with faster developing times.

"The company went through massive changes" might work as an _explanation_, and perhaps absolve particular individuals of responsibility, but it doesn't change the reality. Programming doesn't just wait for Sun/Oracle/Java or any other company/language to get its act together any more than any other industry holds steady until one of the participants wakes up.

Re: Java 7 is now available

#95
post #90

Earlier quoted context omitted.

Well, people want different things. I just want the hammer. New language features are all fun, but unless they actually result in faster execution, or allow you to do things you could not do before, they're only use is to make some developers happy, which I don't think is particularly important. It looks like there's some real solid good APIs here though which is great to see. At first thought I imagined it'd just be…

> New language features are all fun, but unless they actually result in faster execution, or allow you to do things you could not do before, they're only use is to make some developers happy, which I don't think is particularly important. I think you don't appreciate how some language features can help you reduce the size and complexity of your code. Those are the kind of features that are sorely lacking in Java, and…

> Those are the kind of features that are sorely lacking in Java, and that means huge, bloated code bases.

No, it doesn't. If you can't write concise Java, you're doing something wrong. And if you can't read code well, go practice some more.

Disclaimer: I'm an outlier. I rarely use 3rd party libs, rarely write with anyone else, etc.

Re: Java 7 is now available

#96
post #46

Too little to show for 5 years.

yeah but Sun was sold, and other stuff happened. I think it's already great that there is a release with some syntax features that are useful and other nice to have things too. I think Java 8 will come fast there are plenty of new langs now they can't miss the point otherwise companies will continue to migrate to faster evolving languages with faster developing times.

     otherwise companies will continue to migrate to faster 
     evolving languages
That still use the patent-encumbered JVM.

Re: Java 7 is now available

#97
post #72

There is a good amount of stuff to get excited about in this release. - Try-with-resources-Catch-Block [0] - Fork/Join libraries from Doug Lea (author of Executor framework) [1] - Inferred/Simpler generics in declarations (should have been in Java 5) - NIO2, brand new/robust filesystem APIs [2] - NIO2, treat ZIP/JAR files like directories of files for R/W [3] - SDP support [4] - String-in-switch (NOTE: check on perfo…

Good, about time. If they only get those features slated for Java 8, they'll be at the same level C# was six years ago. :-)

And only if Microsoft would improve their x-platform vm. Oh wait...

Re: Java 7 is now available

#98
post #55

Earlier quoted context omitted.

I don't know if I agree. The Java language has floundered (I've been stuck coding in it for the last couple of years), but I think the platform/JVM has started becoming used more and more often for new + exciting language options. The new release should make implementing dynamic languages on top of the JVM easiser, and could open the doors for a lot of interesting options.

I don't think I would say it's floundered. I came back to Java last year after 10 years of C++, and was really pleasantly surprised: Programming in Java now is a nice experience. I would say it has matured, not floundered.

You're comparing one circle of hell to a deeper circle of hell, though.

The comparison isn't Java to C++. It's Java to C#, Scala, even Python or Ruby. And against C# and Scala in particular, Java does very poorly.

Re: Java 7 is now available

#99

Meh. The world turns. I spent a decade developing primarily in Java, and the last few years were really disappointing. The community splintered, the language and platform really lost any ability to maintain momentum. I might have been stoked about Java 7 three years ago (when it should have come out).

> The community splintered, the language and platform really lost any ability to maintain momentum. This is the mindset I've never understood. Do you stop using a hammer to bang in nails because the hammer "community" has splintered, or the development of hammers has stagnated? No, you still use it to fulfill a job it solves.

There really is not much you can do to a language to make you code faster. I guess people just like the novelty of a new language.

Re: Java 7 is now available

#100
post #72

There is a good amount of stuff to get excited about in this release. - Try-with-resources-Catch-Block [0] - Fork/Join libraries from Doug Lea (author of Executor framework) [1] - Inferred/Simpler generics in declarations (should have been in Java 5) - NIO2, brand new/robust filesystem APIs [2] - NIO2, treat ZIP/JAR files like directories of files for R/W [3] - SDP support [4] - String-in-switch (NOTE: check on perfo…

Syntactic Sugar: Collection literals List people = {"Frank", "Mary", "Satan"};

I find it breathtaking this isn't core yet. I was writing test fixture support code for 1.4 to easily and DRYly generate lists of up to 10 items, which required 10 copy-paste functions each with a different number of arguments. 1.5 came along and made it possible to easily do it with one function thanks to varargs, but it's 6 years later and still no collection literals!

Post reply on HN