←back to thread

218 points generichuman | 2 comments | | HN request time: 0.455s | source
Show context
90s_dev ◴[] No.44000882[source]
I'm so relieved to see more types being added to good languages.

So Teal is to Lua as TypeScript is to JavaScript. Which means it automatically plays well with any Lua environment. Unlike luau and nelua which are also statically typed but have their own runtimes.

What version of Lua does it use? Lua gets new versions every few years so I don't know why so many impls don't continuously upgrade to the latest version.

replies(5): >>44000888 #>>44000949 #>>44001419 #>>44004694 #>>44005269 #
0cf8612b2e1e ◴[] No.44001419[source]
Each new Lua version has breaking changes that are of dubious value to keep on the upgrade treadmill. Something like a Python2->3.

LuaJIT is famously on 5.1 with no signs of moving.

replies(1): >>44002874 #
1. bondant ◴[] No.44002874[source]
Not moving straight to a more recent version, but still cherry-picking some parts of them. You can see some functionalities from Lua 5.2 and 5.3 are working in Luajit: https://luajit.org/extensions.html
replies(1): >>44004702 #
2. 90s_dev ◴[] No.44004702[source]
I guess all of this means Lua has "flavors" more than "versions".