3 ms·
Lua is a great language and this is cool research. But cool as it is, saying that Lua "now has optional typing" because a research extension to the language has
by StefanKarpinski 12y ago
Lua is a great language and this is cool research. But cool as it is, saying that Lua "now has optional typing" because a research extension to the language has implemented it isn't really realistic. By that token, you could say that Java has every imaginable language feature because in the 00's, adding features to Java was how most PL research was done. You can have Lua lots of ways: if you use standard Lua, then it comes with a large number of nice C libraries; if you use LuaJIT then it's very fast; if you use this research version, then it has optional types. But you can't have all of these ways at the same time.
- anonymoushn 12y agoFor the most part, you can. You can definitely use Typed Lua + nice C libraries or LuaJIT + nice C libraries. Typed Lua says it only works with Lua >= 5.2. LuaJIT runs a language that is somewhere between Lua 5.1 and Lua 5.2, so it's not clear whether it will work with Typed Lua. The 5.2 requirement may just be to run tlc (and not the code it outputs), in which case you could run LuaJIT + Typed Lua + nice C libraries.