* 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
Thank you for posting this :)
It looks like a worthy upgrade, I wonder if the code is still able to be compiled on DOS? :O
Does Lua have a good package manager? I tried LuaRocks but it has… problems:
Keep in mind that maybe half the people using Lua are using it inside of some other system that may already have its own package manager (or strong opinions about packaging that don’t apply elsewhere). It’s designed for embedding as well as standalone use.
so whats a good way to deal with that problem? I need HTTP client and I dont think its built in - so i need to install
lua-http or lua-curl or similar
Lua libraries fall into two categories: single-file, zero-dependency (in which case I just plop it in the repo for the application I’m using) or libraries with really complex builds that interop with C code, in which case I use apt-get for them because they tend to be very mature and stable, and I never need the latest version. In your case luasocket falls into the latter camp, and it ships with an HTTP client.
luasocket doesnt appear to be useful for larger files
I wonder if this is a platform-specific issue or something; I can’t reproduce any problem with the snipped you pasted using the 100MB file.
It doesn’t have progress…
You can run apt install lua-curl.
Cygwin doesnt offer a lua-curl package.
It looks like you are trying to use LuaRocks on Windows with some “non-classical” setting.
I haven’t used Windows for about a year, but last time I did https://github.com/Tieske/luawinmulti was the best option. LuaRocks 3 supposedly makes it better but there may still be issues because afaik none of the core devs really uses Windows…