1. 22
    1. 3
      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 
      

      Source

      1. 1

        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

    2. 1
      1. 3

        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.

        1. 1

          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

          1. 2

            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.

            1. 0

              luasocket doesnt appear to be useful for larger files

              https://github.com/diegonehab/luasocket/issues/291

              1. 0

                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.

                1. 1

                  It doesn’t have progress…

          2. 1

            You can run apt install lua-curl.

            1. 1

              Cygwin doesnt offer a lua-curl package.

      2. 1

        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…