Live data from Hacker News

Lua 5.4.0 beta

lua-users.org

1–10 of 103 posts

Re: Lua 5.4.0 beta

#2
Main changes

- new generational mode for garbage collection

- to-be-closed variables

- const variables

- userdata can have multiple user values

- new implementation for math.random

- warning system

- debug information about function arguments and returns

- new semantics for the integer 'for' loop

- optional 'init' argument to 'string.gmatch'

- new functions 'lua_resetthread' and 'coroutine.close'

- coersions string-to-number moved to the string library

- allocation function allowed to fail when shrinking a memory block

- new format '%p' in 'string.format'

- utf8 library accepts codepoints up to 2^31

Re: Lua 5.4.0 beta

#8
post #3

It's nice and all, but I'll be over here using LuaJIT.

why?

I use FFI and LuaJIT is significantly faster on my embedded platform. Also, you can yield in coroutines in places where you can not with the standard Lua VM, such as across pcall, xpcall, iterators, and in metamethods.

It is fantastic software.

Re: Lua 5.4.0 beta

#9
post #3

It's nice and all, but I'll be over here using LuaJIT.

Why wouldn't you be able to use this with LuaJIT? I thought LuaJIT was just a compiler for the Lua language.
Post reply on HN