4 ms·
I feel like Lua is absolutely underrated. I just wish one of the mainstream browsers actually puts their foot down and starts supporting Lua as scripting langua
by maxpert 9mo ago
I feel like Lua is absolutely underrated. I just wish one of the mainstream browsers actually puts their foot down and starts supporting Lua as scripting language.
- klysm 9mo agoCurious how this fits in with WASM
- 1313ed01 9mo agoIf they can lock it to some version to avoid breaking code every time there is a new Lua version. Or Lua stop making breaking changes.
- tormeh 9mo agoYpu could probably run it in wasm. Of course, without access to the DOM it won't go any further than anything else on wasm. The whole thing is nuts if you ask me. So much lost potential.
- NuclearPM 9mo agoWhat is nuts?
- NooneAtAll3 9mo agolost potential of wasm not being allowed access to dom
- enricotr 9mo agoMeans like "a crazy thing" in slang, I think.
- bigstrat2003 9mo agoThat is correct. Not sure about all dialects of English but in American English, "nuts" is a slang synonym for "insane". So to say "the whole thing is nuts" could be rephrased as "the situation is crazy".
- bfkwlfkjf 9mo agoIt's slang, it's a reference to legumes I think. https://en.wikipedia.org/wiki/Legume https://en.wikipedia.org/wiki/Legume
- fullstop 9mo agoI transpiled the runtime into wasm and made an interactive shell: https://thecatbutt.com/lua/ https://thecatbutt.com/lua/
- sellmesoap 9mo agoI think that's doable. https://github.com/zacharie410/lua-browser-dom-demo https://github.com/zacharie410/lua-browser-dom-demo
- mjmas 9mo ago(Using https://github.com/fengari-lua/fengari-web https://github.com/fengari-lua/fengari-web )
- inejge 9mo ago> I feel like Lua is absolutely underrated. This sounds like an offhand Youtube comment, I'm afraid. Underrated how? Its principal strength, easy embedding with the ability to work as an extension language, is well known in the circles where it matters. The authors never gave an impression that they'd aim to make it a language to bury all other scripting languages, which I find refreshing in the winner-take-all culture of programming language discussion. Lua is modest and works well for what it is. No need to go all grandiose. > I just wish one of the mainstream browsers actually puts their foot down and starts supporting Lua as scripting language. I sincerely hope not, that would be a very counterproductive dilution of effort. Browser authors already have their plate full with all other web platform problems.
- bsimpson 9mo agoThat was originally what Dart was created for. Beside all the rabblerousing that it came from the same company as Chrome, there was a real concern about compatibility and spreading the platform too thin, if every engine had to maintain multiple VMs in parallel. It seems like the only language browsers will ever have is JavaScript (although it's still up to us to decide how that language evolves over time).
- esrauch 9mo agoOne of the super powers of Lua is that it doesn't need to be very stable: because you are always embedding an interpreter your code and interpreter have a matching version. That's directly contrary to what would make it acceptable as a web spec, compared to e.g. wasm being powerful enough to be a compile target that can support wasm.
- irishcoffee 9mo agoKind of feels like they would pick python before lua.