News for hackers. Stuff that matters.
Re:Moonshine – A lightweight Lua VM for the browser by ojii on Tuesday April 01, 2014 @09:22AM (#7507889)
There's http://www.skulpt.org/for Python in the browser.
Re:Moonshine – A lightweight Lua VM for the browser by Cederfjard on Tuesday April 01, 2014 @09:38AM (#7508029)
You happened to append for to the url. As a convenience:

http://www.skulpt.org

Re:Moonshine – A lightweight Lua VM for the browser by CmonDev on Tuesday April 01, 2014 @12:59PM (#7509751)
That stuff uses JS. It would be nice to see a Python runtime in-browser with no JS involved whatsoever.
Re:Moonshine – A lightweight Lua VM for the browser by chc on Tuesday April 01, 2014 @02:49PM (#7510733)
How do you envision this happening? Either the runtime would have to be written in JS or you'd have to get all the browser implementers to adopt your virtual machine — which, I mean, why would they?
Re:Moonshine – A lightweight Lua VM for the browser by CmonDev on Wednesday April 02, 2014 @07:28AM (#7514802)
"why would they" - and that is the saddest part. We are locked-in now.
Re:Moonshine – A lightweight Lua VM for the browser by chc on Wednesday April 02, 2014 @01:30PM (#7517276)
I agree and used to agree very enthusiastically, but now I kind of understand the browser makers' position. Like, I don't love having my favorite runtimes locked out, but I also don't think having 15 virtual machines bundled with every browser would be a great outcome either. We've already seen how in-browser VMs turn out when they're not adequately maintained with Flash and Java, and it isn't pretty and it leads to people's money getting stolen. So I can't really blame the browser makers for not wanting to go down that road.

What we have now isn't the very best thing I can imagine, but I think it's an OK compromise. We have a set of runtimes that implement a fairly consistent Turing-complete set of instructions, so we can implement just about anything we want and express it almost any way we want. And in the end, I think that's the most important thing.