News for hackers. Stuff that matters.
Re:Moonshine – A lightweight Lua VM for the browser by drivingmenuts on Tuesday April 01, 2014 @09:01AM (#7507716)
It would be nice to see other languages available as real languages, not compiled down to Javascript. I love me some javascript, but it would be nice to work in Python, in the browser.
Re:Moonshine – A lightweight Lua VM for the browser by neovive on Tuesday April 01, 2014 @09:04AM (#7507732)
It would be nice to see Lua embedded as an option within browsers, since it's such a small language and already designed to be embedded.
Re:Moonshine – A lightweight Lua VM for the browser by fit2rule on Wednesday April 02, 2014 @04:27PM (#7518747)
Lua is indeed, embeddable anywhere. Its such an elegant little VM, and you can just put it wherever you want. It is some sort of mad invasive engine .. you use it once, and from that point on you pretty much can't see anywhere else you wouldn't just use it, of course .. if you had to, or wanted to, and .. the more you use the Lua VM stack, the more you just want to keep doing things that way. It is neat.
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.

Re:Moonshine – A lightweight Lua VM for the browser by greyfade on Tuesday April 01, 2014 @02:24PM (#7510528)
Personally, I'd like to see a Scheme or ML dialect, but I'm not one to exclude good languages: I'd love to see some way to portably, reliably, and safely extend all browsers to support new language VMs - including languages like Dart, Python, Ruby, Lisp, etc. - without resorting to huge blobs of JavaScript that half-heartedly implement a half-useful language.

Things like ASM.js are interesting, but not really helpful, in my mind, as it just adds another unnecessary layer of overhead just to be able to implement something interesting in a language suited to it. I just wish browser vendors saw this the way I do.

Re:Moonshine – A lightweight Lua VM for the browser by chc on Tuesday April 01, 2014 @02:42PM (#7510675)
What is the difference between a "real language" and "compiled down to JavaScript"? Like, every language is either interpreted or compiles down to something else. I'm not clear on what the real distinction is here. Are ClojureScript, Dart and Scala not real languages since they compile to JavaScript?
Re:Moonshine – A lightweight Lua VM for the browser by drivingmenuts on Friday April 04, 2014 @09:08AM (#7531093)
"Real" is probably the wrong term, chosen too quickly. Byte-code compatible is probably a better descriptor.
Re:Moonshine – A lightweight Lua VM for the browser by CmonDev on Tuesday April 01, 2014 @12:56PM (#7509727)
That would be an actual true Open Web. It's not going to happen.