News for hackers. Stuff that matters.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by rdtsc on Sunday March 31, 2013 @03:20AM (#5467996)
If they had to redo it today, what could it be instead?

* Javascript -- I hate the language, it has enough warts to make it unpalatable

* Dart -- I can see it, that would be great, still kind of new though

* Python -- I understand they could have done it, but it was a political decision not to (at least according to Guido's remark during one of the PyCon's), performance might not be up to par on some devices

* Go -- too low level perhaps, but it would be cool

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cft on Sunday March 31, 2013 @03:59AM (#5468055)
Go, C/C++, but in the ideal world- Python (they would have to very seriously tweak the interpreter)- imagine how easy app creation would have become with Python? They would have a huge advantage over iOS by lowering the entry thresholds for developers.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cageface on Sunday March 31, 2013 @04:30AM (#5468100)
Python is neither fast enough or robust enough to use as the foundation for an OS. You need static typing and strong tooling both for performance and for correctness. Those that disagree with this need only point me to a successful counter-example.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by vineet on Sunday March 31, 2013 @11:35AM (#5468916)
Google has modified Java for Android. They could have instead modified Python. There have been academic papers that have shown that Python can be made to be statically typed (ignoring one or two keywords, like eval).

Assuming that Google had done these, there should be no reason that Python would not be fast or robust enough.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by rdtsc on Sunday March 31, 2013 @08:47PM (#5470842)
Yeah Guido was basically asked this at a PyCon in the past. He was working for Google and at some point he probably had brought up the question. Someone in the audience asked about it and his comment was that it was "political". In other words technically possible but powers that be decided against it for other reasons. It is also important how he said it, he was very calm before and after, but when answering that question he was visibly upset. You could tell it was a sore topic for him that made him pretty angry.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by justincormack on Sunday March 31, 2013 @07:08AM (#5468355)
LuaJIT is a performance counterexample for dynamic typing, being around the same as Java.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by PommeDeTerre on Sunday March 31, 2013 @09:15AM (#5468552)
LuaJIT may make the performance of Lua better or even just acceptable in some cases, but it does nothing to help ensure correctness. Correctness is almost always more important than performance. It most cases it is useless to do something quickly, but to also be doing it incorrectly.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by justincormack on Sunday March 31, 2013 @10:17AM (#5468670)
I was responding to the OP who said static typing was necessary for performance, by providing a counterexample.

And "better or just acceptable" is rather dismissive of the facts.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by protomyth on Sunday March 31, 2013 @10:45AM (#5468750)
Strongtalk is another example that can be given of dynamic performance.
Re:Developer Freedom At Stake As Oracle Clings To Java API C... by tjoff on Sunday March 31, 2013 @11:48AM (#5468966)
"They would have a huge advantage over iOS by lowering the entry thresholds for developers."

Low entry thresholds for developers is nothing but poison for a platform.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by djhworld on Sunday March 31, 2013 @06:07AM (#5468254)
The advantage the DVM has is it's a baseline that developers can work with instead of worrying about hardware.

This was probably very desirable to Google in 2005 as it gave them the chance to court mobile manufacturers with the promise that their operating system can be deployed across a range of devices and theoretically all apps etc should remain functional, regardless of hardware as it's the VM that's the deployment target, not the phone.

Remember that back in those days the mobile OS world was god awful, Symbian was abysmal, JavaME was broken and Windows CE....well let's not go there.

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by dlitz on Sunday March 31, 2013 @03:53PM (#5469952)
Did they really have to pick one language to rule them all?

It seems odd to me to design a platform that only supports one programming language. What happens when people find better ways of expressing their intent?

Re:Developer Freedom At Stake As Oracle Clings To Java API C... by cliffu on Sunday March 31, 2013 @08:48AM (#5468506)
A phone in either Smalltalk or Lisp would be awesome IMO.