Live data from Hacker News

Lua 5.5

lua.org

71–80 of 138 posts

Re: Lua 5.5

#71
post #30
post #26

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.

Ypu 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.

What is nuts?

Re: Lua 5.5

#72

Excellent new release, now for Fennel and Love2d to update, fun times!

Only a dabbler in Love2d here but I’d expect that update to be a bit down the line. If I’m not mistaken the current Love2d version 11.5 is (mostly) tied to Lua 5.1 because of LuaJIT, though I understand some later Lua features are backported. And the changelog for the in-dev 12.0 release talks about compiling Love2d for Lua 5.4 as if it’s an optional thing. I don’t really follow LuaJIT too closely so I’m not sure if…

It's best to say that its tied to luajit, because at this rate, luajit is its own mixture of lua features, which they backport from newer versions.

Re: Lua 5.5

#73
post #49

Earlier quoted context omitted.

Not true. It's getting a constant stream of bugfixes. It's also not "stuck" on Lua 5.1, but is deliberately not following Lua's path, except for some backports. There's also a recent post about how a LuaJIT 3 might work.

OK, then I got some wrong info. If it's stuck at it deliberately, then it's worse. May be someone should fork it and bring it up to date with recent Lua versions. Why is this split needed?

The language is different. The changes to environments in particular are a non-starter. Sandboxing is incredibly clunky in 5.2+, and we lost a lot of metaprogramming power and dynamic behavior.

Re: Lua 5.5

#74
For what kinds of applications is LuaJIT being used? I’ve always found the standard interpreter fast enough for my needs. Especially when compared to Python.

Re: Lua 5.5

#75
post #67

I recently happened into Balatro through a Game Pass trial. I fell deep down the rabbit hole of trying to get it to run on SteamOS. It's fascinating to see a commercial game whose source is easily read inside the application bundle, and all the modding opportunities it opens up. (It's written in Lua with LÖVE.) Balatro was one of the biggest games of last year, and I'm sure the tinkerability was a big catalyst to tha…

I managed to run Balatro on a Trimui Brick on a very minimalist Linux distro, steamos should be easy.

It's now on Portmaster if anyone is curious -

https://portmaster.games/detail.html?name=balatro

Re: Lua 5.5

#76
post #42

How hard is it to put a simple hello world example on the homepage.

Well. You’d have to demonstrate that a[1] is the first offset in an array, and it’s not a great curb appeal to anyone who has programmed computers before.

I don’t see a problem. That’s how people count.

Re: Lua 5.5

#77

I never coded in Lua but I found out recently that Lua is now in FreeBSD base [0] This is huge for Lua and FreeBSD. Now something that worry me is whenever you need to make an HTTP request or parse some JSON you need to go on a quest for a "library" on the Internet. It doesn't seems to have a (semi-)official "Extended Standard Library" I can quickly trust. - [0] https://man.freebsd.org/cgi/man.cgi?query=flua&apropos=…

You kind of always have to go on a quest for a library on the internet, why would lua be any different? For lua, luarocks is its module registry and you can sort by most downloads, which sometimes leads you to buggy modules, but what can you do.

Re: Lua 5.5

#78

How hard is it to put a simple hello world example on the homepage.

If you ever want to look at example code, try going to rosettacode instead of the handpicked selection on the homepage of many websites.

Re: Lua 5.5

#79

For what kinds of applications is LuaJIT being used? I’ve always found the standard interpreter fast enough for my needs. Especially when compared to Python.

If Python is your baseline, LuaJit is certainly going to be overkill. But to answer your question: when and where latency matters. Web apps, text editors, etc.

Re: Lua 5.5

#80

I recently happened into Balatro through a Game Pass trial. I fell deep down the rabbit hole of trying to get it to run on SteamOS. It's fascinating to see a commercial game whose source is easily read inside the application bundle, and all the modding opportunities it opens up. (It's written in Lua with LÖVE.) Balatro was one of the biggest games of last year, and I'm sure the tinkerability was a big catalyst to tha…

> get it to run on SteamOS

Huh? I had to do zero extra work to run it on the steam deck.

Post reply on HN