Live data from Hacker News

Java 7 is now available

oracle.com

151–160 of 218 posts

Re: Java 7 is now available

#151
post #57

Earlier quoted context omitted.

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?

JRuby 1.7 has the major Invokedynamic changes. You can play with trunk for now.

Re: Java 7 is now available

#152
post #88

Does it come with more patents? Serious question. I'm thinking Oracle tried to put a lot more locks on this version of Java, to make it theirs , and not so open source anymore.

Wasn't the feature freeze before Oracle bought Sun?

Ah, but patents, wonderful things that they are, protect implementations more than they protect features. It's very easy to implement the same feature in different ways, ones that are patent protected if you know how.

Having said that, GPL in theory ensures users and even people making derivatives of Java are protected from patent action by Oracle.

Re: Java 7 is now available

#153

Earlier quoted context omitted.

I think it is. If people haven't learnt yet that the single most important skill you need as a programmer is being able to read any code, in any language, and take a good guess at what it does, be able to hold abstract programming concepts in your head, and match them up to random code listings you have never seen before.... Before you can write code, you need to know how to read it.

I'm sure no one is disagreeing with the importance of knowing how to read code. I'm just saying that Java makes it harder than it needs to be. If your argument is that that's a good thing, then where does that argument end? (Probably with Perl, I guess...) ...sorry Perl guys. Couldn't resist.

You want to have a look at the APL / J / K family, where functions like |/0(0|+)\ that compute the maximum-consecutive-sum (honest!) are the norm.

Re: Java 7 is now available

#154

Earlier quoted context omitted.

That's just foolish. I write Java daily for a very large web company, and I downvoted him. Because his claim is nonsensical. I downvoted you too, because your claim is trollish and wrong. I have been writing Java since I was 13. I am 23 now. I have been paid for code written in C#, Java, JavaScript, PHP, F#, and Python. My personal projects are written in Scala, C#, C++, and JavaScript. I emphatically do not use Ruby…

You are basically saying that people cannot write good code in Java. You are generalizing and that makes you sound like and troll even though I know that is not your intention. You can write good or bad code in Java. I personally have never really had an issue with Java so I don't really understand the hate. Yes, there are sucky frameworks out there but you do know that you don't have to use them? Either I'm writing…

You know, I was thinking the same about Java. That's when I posted this question. http://news.ycombinator.com/item?id=2094274 ; It got front page, and one (that's 1) pointer to good Java code.

For whatever reason, whether it is merit or culture, Java programmers tend to write horrible code. I'm sure there's some nice Java code out there, that is not 20 times longer than it should be. But I have not yet seen evidence, even though I've been searching for it for a while.

Re: Java 7 is now available

#155
post #68
post #54

Looks like this version is not open source. Is there an open-source version of Java 7? Edit: Yes! http://openjdk.java.net/ has an announcement at http://mail.openjdk.java.net/pipermail/announce/2011-July/00... . So why would anybody "accept the Oracle Binary Code License Agreement for Java SE"?

The OpenJDK may have more bugs. Check out [ http://stackoverflow.com/questions/1977238/why-should-i-use-... ].

In my experience, OpenJDK has fewer bugs - at least the ones I care about. Like Swing making bad assumptions about the WM, including that only a small fixed number of window managers are tiling (OpenJDK works on XMonad, Java 6u21 does not).

Re: Java 7 is now available

#156

Earlier quoted context omitted.

That's just foolish. I write Java daily for a very large web company, and I downvoted him. Because his claim is nonsensical. I downvoted you too, because your claim is trollish and wrong. I have been writing Java since I was 13. I am 23 now. I have been paid for code written in C#, Java, JavaScript, PHP, F#, and Python. My personal projects are written in Scala, C#, C++, and JavaScript. I emphatically do not use Ruby…

You are basically saying that people cannot write good code in Java. You are generalizing and that makes you sound like and troll even though I know that is not your intention. You can write good or bad code in Java. I personally have never really had an issue with Java so I don't really understand the hate. Yes, there are sucky frameworks out there but you do know that you don't have to use them? Either I'm writing…

>> You are basically saying that people cannot write good code in Java.

Wrong. I would not say that, because I do it. I am saying that it is vastly more difficult than it needs to be to write good code in Java because it is insufficiently expressive.

I will say that I am suspicious of the ability to write good code of people to whom Java is not a poor development choice, because I suspect brain damage, but a decent programmer can write fine Java. It just sucks to do it.

.

>> You are generalizing and that makes you sound like and troll even though I know that is not your intention.

I am doing no such thing. You are misunderstanding me, but it's pretty clear from the upvotes that you're the only one.

.

>> I personally have never really had an issue with Java so I don't really understand the hate.

It is likely because you think in Blub. Read pg's article regarding Blub, Beating the Averages:

http://www.paulgraham.com/avg.html

He makes the contention that Lisp is at the apex of the pyramid of software development tools. I disagree, for a number of reasons, but the contention of the article is correct at its core: once you have the perspective of a decent set of other tools, you realize that regardless of your tools of choice, Blub languages rank very low on the scale of expressivity--and thus, in power and ease-of-use. (And everyone should learn Lisp, anyway. Even if they don't write code in it. I think in Lisp when writing Java, and aside from Java's miserable boilerplate, my Lisp-in-Java is better than your average Java programmer's Java-in-Java.)

And I would submit that Java is one of the most Blub languages in common use. You have no basis for understanding why others would have an issue, because you are looking up the continuum without insight into what is above.

.

>> Yes, there are sucky frameworks out there but you do know that you don't have to use them?

Meaningless statement. At my current employer, we are forced to use a legacy servlet infrastructure, but my own Java (and Scala) code uses Play! and other frameworks and libraries that at least attempt, if not always successfully, to drag Java reluctantly into some semblance of modernity.

Writing Java still sucks.

.

>> Either I'm writing really simple code that Java never gets in the way, Java is not really a problem, or I'm a super programmer.

Or you are insufficiently experienced with better tools to be able to reliably determine whether it is done better elsewhere. One who does not know any better may be happy with Blub, but one who has used better is not. This seems eminently straightforward.

.

>> And I write similar code in Objective-C, C++/C, JavaScript and even had to write a lot of code in VBA.

I'm beginning to see your problem. With the exception of JavaScript, you do work in Blub. And I'd bet that you write Blub in JavaScript, too, instead of JavaScript in JavaScript.

.

>> Every language has its own nuances, you just find the best way to work with them, ignore the junk, and adapt. Which is why I really don't get where all this hate is coming from.

Nonsense and worse words. The best way to "adapt to Java" is to download a Scala compiler. Spend a few weeks using the JVM with something modern like Scala or Clojure and you will get where the antipathy towards Java comes from.

Java commits the ultimate sin a programming language can commit: it wastes my time. It is a language designed by committee that does nothing excellently. Its successors on its own platform do not commit the same sin and I am more productive for it--they are better for it.

.

>> You never hear this for C++ and it can also be a pain in the ass

This is blatantly untrue, in my own experience. I can rant on about C++ quite successfully and at great length, because C++ has its own share of problems. Where it differs is in much, much greater expressivity--that C++ is capable of supporting Boost is a perfect example of this expressivity. It is by no means perfect, but it is certainly a smaller problem than Java.

And unlike Java 7, C++0x actually fixes (most of--templated lambdas are unavailable for what I consider fairly stupid reasons) the problems that. Oracle decided to push anything useful out until Java 8, and I'm skeptical it'll actually keep the promise of "next year."

.

>> Is almost like it is cool to hate on Java.

You lack the breadth of experience to make this claim.

Re: Java 7 is now available

#157

Earlier quoted context omitted.

Then why did he wrote his own language for his product? Oh right, because languages do matter. Sure, what makes one a great programmer is language independent, but that doesn't mean you can have the same code quality in every language. There's a reason why professionals in every field buy top quality tools and not cheap disposable crap.

>>There's a reason why professionals in every field buy top quality tools and not cheap disposable crap. Agree But Java is not cheap disposable crap. At this point it is more a matter of taste. You don't like Java fine, but other people are able to be just as productive as you using Java and probably more depending on the programmer itself. At the end of the day it is the programmer that makes the difference.

I would strongly contest the assertion that there is someone of equivalent programming aptitude and experience who will be as productive in Java as I would be in Scala or Clojure or C#.

Boilerplate kills. It kills again when you have to go back and try to re-read code slathered in it.

Re: Java 7 is now available

#158

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…

The licence has always had similar terms.

Specific to (A), that is regarding the JDK (as opposed to the JRE). As mentioned elsewhere, you can't redistribute tools.jar, and I think the compiler itself is a problem too.

Re: Java 7 is now available

#159

Earlier quoted context omitted.

You are basically saying that people cannot write good code in Java. You are generalizing and that makes you sound like and troll even though I know that is not your intention. You can write good or bad code in Java. I personally have never really had an issue with Java so I don't really understand the hate. Yes, there are sucky frameworks out there but you do know that you don't have to use them? Either I'm writing…

>> You are basically saying that people cannot write good code in Java. Wrong. I would not say that, because I do it. I am saying that it is vastly more difficult than it needs to be to write good code in Java because it is insufficiently expressive. I will say that I am suspicious of the ability to write good code of people to whom Java is not a poor development choice, because I suspect brain damage, but a decent p…

Well, lets agree to disagree. Maybe I am a dum*bass and too dumb to realize it. Ho well.. C'est la vie

Re: Java 7 is now available

#160
post #122

Earlier quoted context omitted.

> I like being a pedantic programmer. Try Scala! (So do I ;)

shouldn't that be Try Scala! (So do I ;)) then?

Indeed!

BTW, this issue with emoticons and parenthesis was also subject of an XKCD comic: http://www.xkcd.com/541/

Post reply on HN