News for hackers. Stuff that matters.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cageface on Sunday March 31, 2013 @12:29AM (#5467705)
I've thought this myself lately but what alternatives did they really have? The only other real alternatives are C++ and C#, which are both problematic for different reasons.

I wouldn't mind seeing a new mobile OS build around Go but it's way too late for a change that fundamental for Android. For better or worse Java & Android are married now.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by fauigerzigerk on Sunday March 31, 2013 @02:45AM (#5467940)
"what alternatives did they really have?"

JavaScript

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cageface on Sunday March 31, 2013 @02:58AM (#5467965)
I really hope you're joking. No dynamic language is suitable for software engineering at that scale and particularly not one as badly flawed as JS.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by fauigerzigerk on Sunday March 31, 2013 @03:21AM (#5467997)
I'm not a huge fan of JavaScript (to say the least) but I'm not joking either. Most Android apps aren't exactly "software egineering at scale". Certainly no more so than a modern web app.

The first Dalvik versions didn't even have a JIT, so performance apparently wasn't the main concern. They could have added optional static typing to their JavaScript VM as well.

I think Google chose Java because many people know it and because the Java faction inside Google is powerful. But many people know JavaScript as well, and arguably the typical Java developer isn't exactly a UX guru. So JavaScript would have been a better fit for Android even though I (and you) don't like it.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cageface on Sunday March 31, 2013 @03:36AM (#5468027)
Actually a lot of apps are every bit as complex as a typical desktop app. I'm not sure if you've done much app development but many of the apps I've worked on have been pretty large.

Unless you propose writing the entire OS in JS then there's also a huge advantage in using the same language for core OS and APIs and for application development.

In any case as some of the more modest Java replacements like Xtend and Kotlin mature I expect to see Java the language recede in importance for Android.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by fauigerzigerk on Sunday March 31, 2013 @03:49AM (#5468042)
"there's also a huge advantage in using the same language for core OS and APIs and for application development."

I don't disagree, but the core OS is written in C, a language that scares off a lot of people.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cageface on Sunday March 31, 2013 @04:22AM (#5468088)
Sure but the bulk of the code above Linux + userland is Java and all the APIs are Java. In hindsight it might have been a better choice to just buy Mono but that ship has long since sailed, for better or for worse.