Lua 5.5

lua.org

143 points by km a day ago


cturtle - a day ago

One of the new features I found interesting, declarations for global variables, is buried in the reference manual. Here's a link to the section that discusses it: https://www.lua.org/manual/5.5/manual.html#2.2

robofanatic - 25 minutes ago

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

maxpert - 37 minutes 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.

gucci-on-fleek - 17 hours ago

ConTeXt has been using beta versions Lua 5.5 for a few years now, so you can look through its source [0] or try running it [1] if you're curious what a large codebase written in Lua 5.5 looks like.

[0]: https://codeberg.org/contextgarden/context

[1]: https://wiki.contextgarden.net/Introduction/Installation

Kerrick - an hour ago

We never got a new edition of Programming in Lua for 5.4... does that mean we won't ever get one for 5.5?

ksymph - 18 minutes ago

> for-loop variables are read only

Seems like an odd change, I wonder what the rationale is. Just making it clear to people new to the language that you can't adjust it mid-loop to change the loop count I guess?

altairprime - an hour ago

List of changes: https://lua.org/manual/5.5/readme.html#changes

mysterEFrank - 10 minutes ago

OG torch strikes back?

parlortricks - 19 hours ago

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

gsck - a day ago

Cannot wait for another version of Lua to sit unused basically everywhere.

Truly is a shame, everything seems to have settled on 5.1 for the most part without ever being updated, or any intention of it being updated. Some really nice features post 5.1

I understand each version of Lua introduces breaking changes in the language, which isn't great as the language becomes fragmented (Or not really, once again 5.1 is pretty ubiquitous)

sunshine-o - 13 hours ago

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=0&sek...

artemonster - an hour ago

please resurrect Mike Pall

andrewmcwatters - a day ago

Interesting, it looks like you can use ´global myvar’ now, as compared to ´myvar’ implicit globals, say from back in 5.1, or ´local myvar’.

It’s worth noting that global is a reserved keyword now, so environments that had a ´global()´ function for escaping environments will now need to rename their helper function.