4 ms·
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
by rdtsc 14y ago
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
- cft 14y agoGo, 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.
- cageface 14y agoPython 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.
- justincormack 14y agoLuaJIT is a performance counterexample for dynamic typing, being around the same as Java.
- PommeDeTerre 14y agoLuaJIT 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.
- justincormack 14y agoI 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.
- protomyth 14y agoStrongtalk is another example that can be given of dynamic performance.
- vineet 14y agoGoogle 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.
- rdtsc 14y agoYeah 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.
- tjoff 14y ago"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.
- djhworld 14y agoThe 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.
- cliffu 14y agoA phone in either Smalltalk or Lisp would be awesome IMO.
- dlitz 14y agoDid 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?