News for hackers. Stuff that matters.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by JunkDNA on Friday March 30, 2012 @08:14AM (#3775545)
Wow, how can you seriously plan releases of a programming language out to 2021? That is an eternity in this industry. Even 2015 for JDK 9 seems mighty far off, especially accounting for the usual slippage of release dates with big software projects.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by mindcrime on Friday March 30, 2012 @12:39PM (#3776807)
> Wow, how can you seriously plan releases of a programming language out to 2021?

"A plan is useless, but planning is essential" [1]

More true than ever, if you ask me. Sure, you make plans, why wouldn't you? But you also retain the flexibility to adapt the plan as the environment changes. You don't chisel the damn plan into a stack of stone tablets and render it immutable for all time.

I don't see any conflict whatsoever in planning out through 2021. I would say that in doing so, there's an implicit assumption that the plan - especially the farther reaches of it - are subject to change and are based on current best guesses.

[1]: paraphrase of a quote attributed to Dwight Eisenhower, which was probably in turn a paraphrase of another quote. http://en.wikiquote.org/wiki/Dwight_D._Eisenhower

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by samspot on Friday March 30, 2012 @04:09PM (#3777880)
Exactly, there is nothing wrong with long range planning. Planning this far out allows you LOTS of time to iterate on your plans, making them better.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Friday March 30, 2012 @10:12PM (#3779078)
I think ultra long term planning is what you call 'premature optimization'
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by ajryan on Saturday March 31, 2012 @08:46AM (#3780187)
Premature optimizations are actually carried out before their future impact is known. Planning is different.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by CodeMage on Friday March 30, 2012 @08:30AM (#3775602)
Maybe I'm too cynical, but I don't think you can seriously plan releases so far in future. What you can do is delude yourself (which happens all the time at big bureaucracies) or make it look like you're planning seriously in order to appear responsible and visionary.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by lapusta on Friday March 30, 2012 @10:14AM (#3776000)
It pretty much depends on industry. Look at mobile, 2007: J2ME, Symbian, Windows Mobile, BlackBerry -> 2012: iOS, Android, Windows Phone. Now look at the web: it was more of a evolution than revolution.

What happened at back-end, like server-side functionality of business apps? They didn't really change and probably won't change for a longer period of time. Even stuff like Hadoop for big data or Groovy for DSLs were built upon the existing JVM.

It's hard to say what devices we'll have in 5 years, or what internet would look like, but i'm pretty sure servers would run good old Java.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by ajross on Friday March 30, 2012 @11:33AM (#3776428)
Even on the "evolutionary" web, I don't think anyone in 2007 would have predicted the rise (and now... fall?) of MVC frameworks or the explosion of jQuery, both of which existed and were relatively popular at the time. Likewise the NoSQL rebellion was a surprise. Five years from now, we'll all be using WebGL-based dyanmic UIs. Or will we?

I think the point is more that 5+ year planning in the tech industry is simply pointless, not that all technologies will be replaced. Sure, there are some constants. We can all safely predict that in five years we'll still be writing drivers and middleware in C, still be using zlib and libjpeg, etc...

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by jsight on Friday March 30, 2012 @12:30PM (#3776756)
Yes, it is extremely difficult to predict which technologies will win over a 5-10 year period vs their competitors. Eg, predicting that jQuery would appear vs the evolution of some other system (ExtJS?).

On the other hand, predicting what changes will occur to a legacy enterprise system tend to be much easier.

In the overall scope of things, Java hasn't really changed that much over the past five years. I think that some long-range planning of the kinds of changes they are thinking about actually makes sense. The need for closures, reified generic types, and an improved type system is unlikely to change in the next 5-10 years.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by vorg on Friday March 30, 2012 @06:03PM (#3778336)
> stuff like Hadoop for big data or Groovy for DSLs were built upon the existing JVM

Hadoop become popular for handling big data, but I'm not sure if many are using Groovy for DSL's. The 2 big uses for Groovy in industry seem to be (1) scripting on Grails, and (2) quick standalone scripts for testing or booting Java code. For these it rocks but the stuff added after Groovy 1.0, such as DSL's, isn't really being used much.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by hammersend on Friday March 30, 2012 @12:03PM (#3776621)
"Look at mobile, 2007: J2ME, Symbian, Windows Mobile, BlackBerry -> 2012: iOS, Android, Windows Phone."

Blackberry remains much more relevant than windows phone. You also forgot to mention Bada which also has more share than wp and is growing. I'm not trying to beat up on wp but as it stands reality conflicts significantly with marketing.

Edit: why the down mod? if I'm in error, please point out where.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by lapusta on Sunday April 01, 2012 @01:24PM (#3784314)
Their new platform (BB 10) is incompatible with old apps. And Bada was merged into Tizen, so it's future looks uncertain for me.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by viraptor on Friday March 30, 2012 @08:41AM (#3775648)
Considering it's Java and some people are still thinking about whether to upgrade from 1.5... Yeah - it may make sense in their case.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by deepinit_arek on Friday March 30, 2012 @09:21AM (#3775784)
And considering you own industry, and language basically. YES WE CAN!
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by sek on Friday March 30, 2012 @08:42AM (#3775650)
Why don't they start now and build Java 2.0 from ground up instead of Java 10 for 2017?

That would be way faster and they learned so much by now to make a great successor. Who wants a Java 1.x in 2040?

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by francoisdevlin on Friday March 30, 2012 @09:40AM (#3775851)
Because they learned from netscape's mistake, that's why.

http://www.joelonsoftware.com/articles/fog0000000069.html

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by InclinedPlane on Friday March 30, 2012 @05:14PM (#3778119)
That article is an incredibly useful warning against the temptation for casually taking code rewrites, but it's incomplete.

Sometimes full rewrites are necessary and good. The trick is doing it correctly. Rewrites are riskier, more difficult, and require more development resources than greenfield development. More so when you consider that you can't just abandon the old code until the new code is mature and has proven itself.

Most people do rewrites the wrong way, and they get into trouble, but that doesn't mean there isn't a right way. There are many examples of unsuccessful rewrites in history, but also many examples of highly successful ones.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by lhnz on Friday March 30, 2012 @09:56AM (#3775923)
"You are wasting an outlandish amount of money writing code that already exists."

On the contrary, there has been a number of times that I've completely rewritten some code to use a framework or library that was already battle-tested and more fully-featured than the previous effort. I ended up saving myself from writing code that already exists.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by anonymous on Friday March 30, 2012 @03:28PM (#3777673)
Right, but you're one person and you're redoing the plumbing.

At this point oracle can't rewrite Java. If they don't support the current programs, nobody would use it, if they do, they will really be rewriting code that already exists.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by moonboots on Friday March 30, 2012 @03:06PM (#3777561)
The netscape rewrite became Firefox.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by shangrila on Saturday March 31, 2012 @04:10AM (#3779770)
Yeah no kidding. That's one thing people seem to forget about that Joel article ... the new code base he's mocking went on to become the only browser capable of taking on Microsoft's juggernaut for many years. It was faster & better than everything else out there. Eventually the only thing capable of overtaking it was WebKit ... another from-scratch code base!
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by nknight on Saturday March 31, 2012 @06:35AM (#3780004)
That new codebase was iterated on for five years before a viable browser was released, and two more before Firefox 1.0 appeared.

The history of the WebKit codebase stretches back as far as Gecko. The earliest KDE HTML work I can definitively establish is in 1997. We got Konquerer in 2000, but Safari didn't emerge until 2003.

5-7 years before something other than IE could again be competitive... Do you really think that disproves Joel's point? I think it may be quite the opposite...

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by sek on Friday March 30, 2012 @10:13AM (#3775991)
I didn't say they should rewrite everything, but to make a new Java version with backward incompatibilities. Drop a new 1.x version on java for decades can't be the solution.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by protomyth on Friday March 30, 2012 @10:38AM (#3776113)
To be fair, if you were researching computer languages and rewrites, you would be looking at Python 3.0 and Perl 6.0. I believe both will be successful in time, but for business planing, it looks like a lot of problems and a slow evolution will work better. Oracle is pretty comfortable with the slow evolution route.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kbd on Friday March 30, 2012 @11:04AM (#3776247)
There's no way I'd put Python 3 and Perl 6 in the same sentence.

Also, IMO there's no chance of Perl 6 being successful in time (which makes me sad, because 10 years ago or so I was really hopeful about it).

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by protomyth on Friday March 30, 2012 @11:29AM (#3776399)
If you are some manager in a big company and looking at the press, there is little distinction. In fact, more stories have been posted about Python 2.x to 3.x conversions (mostly because Perl 6 is not a story). Heck, I would imagine a couple of people on HN have run into the "can't use Python 3 because it isn't compatible with anything"-meme. Carefully considered logical analysis with realistic risk mitigation gets trumped by headlines in ComputerWorld and InfoWorld quite often.

I still have quite a bit of hope for Perl 6. I use Perl 5 as my goto short scripting language. I really want it to work.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Friday March 30, 2012 @10:23PM (#3779109)
You are not getting it, Perl 6 is not designed as a successor to Perl 5 but as a Age proof Perl.

Think of it like pg called a hundred year lisp language. Perl 6 might be the age proof Perl language. When you have such and ambitious goal the time taken is worth to fulfill it. Larry wall figured out quite a while back evolving Perl 5 may fix some warts but it won't solve the larger problem.

The larger problem today is doing language extensibility sane-fully. There are no C based languages that are as much extensible as a Lisp based languages. Perl 6's larger aim is to solve that. While retaining the 'Perl factor'.

Re write is inevitable if you have to solve this problem, no matter what joel says you have to rewrite a few things to fix them. The incremental path is too slow and you will loose out on time while somebody eats your lunch.

Perl 5, Python x.0 and Ruby x.0 series are all great languages but eventually on the very long run they will be plagued with the same technical problem every language runs in to. Providing sane ways of extensibility without bloating too much.

IMO Perl 6 will do well, for the same reasons Lisp has done well.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by chromatic on Saturday March 31, 2012 @01:30AM (#3779473)
When you have such and ambitious goal the time taken is worth to fulfill it.

After almost twelve years of rewrite after rewrite after rewrite, it's no wonder people stop caring.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Saturday March 31, 2012 @02:04AM (#3779551)
Well, more than anybody else you know it well why most of the failures happened.

But for others. I can understand the obvious disappointment. But Perl 6 is designed such that without many of those failures we couldn't have figured it out earlier what it would take to build Perl 6. Perl 6 has a mutable grammar, which means it should be written in itself. And this created a huge problem, because you don't have ready tools in hand to build such a thing. Many of them had to be built from scratch. And people failed many times exploring strategies doing that. Some people got ill, some people lost jobs, and projects like this which span a lot of time and require volunteer effort without much funding takes toll on people.

In many ways there was a lead, Lisp is so extensible because its written in itself. We really should have understood this from history. But achieving that in a non homoiconic language was difficult and required thinking in direction totally new to C based languages.

But great things have come out of it. Audrey's Pugs taught us so many things. And as she says, the 'Perl 6 on CPAN' thing started long back. Moose has become a very awesome tool for OO programming. Other things borrowed from Perl 6, things like given/when have shown a way to Perl 5 for evolution. Devel::Declare showed a new way to do syntax experiments outside core without using source filters. And many great things have come out of it. Its difficult to imagine how Perl 5 will likely evolve over time.

A few years back none of us could have seen Devel::Declare or even Moose coming. I can only imagine how Perl 5 is going to evolve over time.

Lastly I would say Rome was not built in a day. Perl 6 will take time, but it will come out in some years to come.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by chromatic on Saturday March 31, 2012 @01:02PM (#3780797)
Perl 6 is designed such that without many of those failures we couldn't have figured it out earlier what it would take to build Perl 6.

Sure, but those don't account for the past four years of failures. What I see is a pattern of overwhelming desire to throw away code just as it's in danger of becoming useful to actual users.

Phrased from a different angle, the reason we wanted monthly releases was not because monthly releases are interesting in and of themselves, but because they could deliver regular (if incremental) improvements to actual users on a predictable schedule.

Forking Rakudo into an all-but-abandoned master branch and doing monthly releases off of that branch hews to the letter of the idea of monthly releases while violating the spirit of those releases. I understand the reasons why it happened, but that sort of decision has happened often enough in the project that it's a habit--if not culture.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by protomyth on Saturday March 31, 2012 @01:11PM (#3780830)
In the context I was talking about it really doesn't matter what I think as I am not a decision maker at some big company. Calling something the N+1 version tends to make people think it is the next version and not a proof of concept. It does matter what is said in the trades these people read:

for example: http://www.infoworld.com/search/google?cx=014839440456418836...

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by sek on Friday March 30, 2012 @10:45AM (#3776146)
I think Python 3.0 is really well executed. With such a big ecosystem this takes a while, but when you wait too long somebody else eats your lunch.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by noselasd on Saturday March 31, 2012 @06:12AM (#3779975)
Because backwards compatibility matters more. There's anyway many other alternatives to Java if you need something else but still use the JVM.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by mahmud on Friday March 30, 2012 @08:59AM (#3775699)
by the time the rebuilt java2.0-NG reaches stability it will be 2017, or whatever.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by soc88 on Friday March 30, 2012 @05:11PM (#3778106)
Isn't that what Scala already does quite successfully for a while now?
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by ssmoot on Friday March 30, 2012 @09:59PM (#3779046)
That's 9 years.

I've used Ruby for almost as long, and on MRI at least, I can't think of anything as significant. (JRuby FTW)

Think of c#'s evolution. Ruby's. JavaScript's. SQL's. 9 years isn't exactly blazingly aggressive, but in the context of a programming language it's not eyebrow raising either.

I think generally that's a good thing.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by cpeterso on Saturday March 31, 2012 @01:31AM (#3779475)
Java 6 was released in 2006. Java 7 was released in 2011. Almost 5 years. Java 8's planned release for 2013 may be overly optimistic.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by amalter on Sunday April 01, 2012 @10:51PM (#3786046)
There was the small speedbump of Sun dying and being purchased by Oracle in the process.

I'm no Oracle fanboi, but I bet without the legal and corporate circus, they will iterate faster.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Friday March 30, 2012 @10:07AM (#3775963)
Not when you consider Java as a 'business' for Oracle.

And business planning is always done like this.

If Java no longer remains useful to Oracle expect the same thing what happened to things like flash.

It will be donated to Apache software foundation.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by floppydisk on Friday March 30, 2012 @10:54AM (#3776190)
Apache and the Open Source community already have a Java implementation in the Open JDK.

One thing not touched on in the article but would definitely be worth know is if Oracle will start inserting "pay-to-use" features in the language or release a solid JIT compiler and run time companies must pay for in order to use. I know it's been bandied about in the past that Oracle might start restricting access to some language features and with such a long term roadmap, I'm wondering if they're thinking about making some of these selling point features into business revenue features.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by benjarrell on Friday March 30, 2012 @12:03PM (#3776623)
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by jrockway on Friday March 30, 2012 @12:40PM (#3776813)
Java is already 30 years behind the state of the art, so planning 10 years ahead is very easy. Just do what other languages were doing 20 years ago.

(Fuck boxed primitive types. How about generics that weren't designed by drunk retarded monkeys?)

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by spacemanaki on Friday March 30, 2012 @05:32PM (#3778190)
Yep, Gilad Bracha, Philip Wadler, Martin Odersky... all drunken, retarded monkeys.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Friday March 30, 2012 @10:04PM (#3779060)
The problem really isn't with a particular component in Java. The problem with Java is, Java came as a quick relief to people who had problems with managing memory themselves. Java solved what seemed to be the most pressing problem at that time. Times have changed, today I have completely forgotten some thing called as 'memory management by programmer', today its a given that a modern language today should do that by default.

The problem with Java today is how big and bloated it has become while it doesn't solve fundamental problems programmers face. Its growingly becoming impossible to program in Java without an IDE. Only Java ninjas can probably program Java with a Text editor. Its XML mess all over the place.

Now it takes several tens of lines of code to do trivial file operations and other trivial tasks. This problem was long solved with languages like Perl and Python around 20 years back. Its almost two decades and Java still hasn't caught up. There are still no practical lambdas and good functional programming capabilities.

The issue is something like this. By asking everything to become an API of some sort and writing so many method calls both my unit tests and exception handling code bloats like crazy. My eyes cringe every time I open a Java class file and nearly 60% of the code in there is either try/catch statements or some form get/set methods.

The code to boilerplate ratio is too high. And it just doesn't feel like a language that belongs to the 2010's. Java and its community also promotes heavy use of XML's often used as bad replacements for RDBMS, this leads to building of small buggy and wrongly built DSL equivalents of small parts of SQL all the time.

The path from now is not the make the language bloat like crazy and then provide IDE's to handle that. It is to make the language syntax intelligent enough to take care of many problems you have to other wise worry about. If you see the whole concept of Lisp and other extensible languages like Perl are all about. To provide forms of extensibility that solve the code scalability problem.

And lastly and unfortunately the Java market is full of substandard programmers whose life begins and ends inside eclipse.

A manager or a pointy haired boss might prefer Java for hiring cheap programmers and the 'Oracle factor'. But Java is dead for Start up's and other sexy glorious projects.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by mark_l_watson on Saturday March 31, 2012 @10:20AM (#3780339)
I hear you re: code bloat with too much boilerplate.

I stopped using get/set methods years ago in favor of public instance variables. Yeah, I understand the potential problems with kicking encapsulation to the street and into the gutter (I have written several Java books and I have done many projects in Java, so I am not a noob).

I have also started to favor using unchecked exceptions - that also makes code a lot shorter. This is also Controversial.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Saturday March 31, 2012 @11:34AM (#3780518)
Forgive my brevity, mate!

Its been a long day, I've been working non stop since 6 am this morning(I stay in India, Bangalore) and its 9 in the night now. I've been working on some Java code.

The AbstractSomethingFactoryFactoryFactoryClasses.java have taken a toll on me. I'm yet to rewind from the depth's of piles and piles of try/catch statements and Object.someMethod() methods buried deep in abyss of com.something.somethingElse.somethingInWonderland.whereTheHellAreWe folders.

But I will take your advice seriously though.

EDIT : After reading your bio and looking at your work on your site. I am your new fan :)

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by gsharm on Saturday March 31, 2012 @08:23AM (#3780158)
What are your thoughts on C#?
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by jrockway on Friday March 30, 2012 @10:00PM (#3779049)
So you're saying that type erasure makes programming easier and less error prone?
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by spacemanaki on Friday March 30, 2012 @11:15PM (#3779213)
No, did I say anything like that? I was merely bemused that you called the designers of generics "drunk retarded monkeys", when they are clearly anything but, based on their work before and after.

Name calling isn't really helpful. I don't like Java either, but there are a lot of very smart people who worked on it, and many of them labored under constraints I do not envy. That's all.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by ootachi on Friday March 30, 2012 @10:34PM (#3779126)
What choice did they have? Either break compatibility, or use type erasure.
Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Friday March 30, 2012 @10:46PM (#3779148)
Oracle's primary concern isn't to rewrite Java or to spend resources to make Java awesome enough to compete with the latest stuff that is coming.

Their fundamental concern is to milk Java as much and as long as they can to drive their sales for Oracle DB and associated business products. And that makes perfect sense too, they are in business to make money anything else and they won't be doing their job properly. Don't you see what has become of Sun Microsystems? They were making awesome stuff by the day for somebody else's profits. Oracle is not going to make the same mistake again.

Java is oracle's strategic investment in using that as a leverage to drive sales else where. And looking at their segment, its mean't mostly for large corporate programmers and not hacker, start ups and alike.

I bet IBM makes sufficient contribution to COBOL still just to keep their mainframe sales alive and not because they want COBOL to be awesome enough to rule the world.

Similarly Oracle's contributions and investments to Java are going to be for driving their sales not for sake of making Java awesome.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by spacemanaki on Friday March 30, 2012 @11:19PM (#3779223)
I basically agree with almost everything you wrote here and in the other long one you posted replying to me up thread.

But I downvoted you because this has almost nothing to do with ootachi's comment about the realities that the designers of generics had to cope with. You're just regurgitating the same criticisms that has been leveled against Java for years.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by kamaal on Friday March 30, 2012 @11:41PM (#3779269)
It has a answer to ootachi's comment.

>>What choice did they have?

The only choice Oracle has is to invest in Java in areas that is going to help them sell their products.

That is the only choice Oracle has.

Re:Java 9 with GPU processing, Java 10 will be all-OOP witho... by spacemanaki on Saturday March 31, 2012 @12:28AM (#3779352)
> It has a answer to ootachi's comment.

ootachi was was referring to the designers of Java generics, who were working sometime before Java 1.5 was released in 2004, long before Oracle bought Sun.