News for hackers. Stuff that matters.
Re:Python 3 can revive Python by orangecat on Monday May 26, 2014 @11:04PM (#7802656)
Exactly. Python and JavaScript is a perfect demonstration of "worse is better". Python 2 is a vastly better language than JS, avoiding nearly all of its design misfeatures and having actually useful built-in types and standard libraries. Yet while Python spent a decade to go from 95 to 99 percent purity, JS took over the world through sheer ubiquity.
Re:Python 3 can revive Python by mixmastamyk on Tuesday May 27, 2014 @12:33AM (#7802873)
Javascript won the "language lottery" when it was created for the web browser, how would another language capitalize on that?
Re:Python 3 can revive Python by cookiecaper on Tuesday May 27, 2014 @06:11AM (#7803714)
Exactly. JavaScript has attained ubiquity through convention only. It has nothing to do with its intrinsic qualities or deficiencies. A great many languages are preferable to JavaScript.
Re:Python 3 can revive Python by alexchamberlain on Tuesday May 27, 2014 @08:29AM (#7804099)
So we need to get Python embedded into a couple of major browsers?

Edit: Asked on twitter for any work on this: https://twitter.com/alexchamberlain/status/47126815887225241...

Re:Python 3 can revive Python by ciupicri on Tuesday May 27, 2014 @03:49PM (#7806438)
There used to be something for Internet Explorer 4 and above. All you had to do was to set the language attribute of the <script> tag to Python. See "Python Programming On Win32: Help for Windows Programmers", page 437 [1].

[1]: http://books.google.ro/books?id=fzUCGtyg0MMC&pg=PA437

Re:Python 3 can revive Python by goldfeld on Tuesday May 27, 2014 @12:57AM (#7802934)
Given that the functional programming story in JavaScript is much more developed, "vastly better language" may be true as long as you only consider the object-oriented side of it.
Re:Python 3 can revive Python by Derbasti on Tuesday May 27, 2014 @01:09AM (#7802972)
How is it "much more developed", without providing generators, coroutines, or comprehensions?

Just having to use functions to emulate all of these (and many more) is not what functional programming is all about.

Re:Python 3 can revive Python by oleyb on Tuesday May 27, 2014 @01:34AM (#7803047)
ECMAScript 6 has generators, and they are already available in Node.js.
Re:Python 3 can revive Python by 1ris on Tuesday May 27, 2014 @03:55AM (#7803397)
Javascript seems to go the opposite way of python: instead of ironing the warts out, it adds them. The DOM-API is nonsensical and ugly? Why not add language features so we can implement it in pure JS? Sounds like a great idea.
Re:Python 3 can revive Python by mikegirouard on Tuesday May 27, 2014 @05:24AM (#7803610)
While I agree mostly with your point, I think the DOM example isn't going to work. The DOM is a spec and doesn't really have anything to do with JavaScript.
Re:Python 3 can revive Python by anton-107 on Tuesday May 27, 2014 @10:27AM (#7804641)
The DOM API has nothing to do with JS.
Re:Python 3 can revive Python by JeremyBanks on Tuesday May 27, 2014 @04:53AM (#7803543)
How does that relate to ES6 generators?