• thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    Well guess what, that’s a huge benefit for Lua because its entire total size is around 500 KB.

    Filesize doesn’t matter, if the functionality is missing. Lua is just not a direct comparison and replacement for Python. Penlight isn’t standard library. In example if I want to write a commandline script, I better off doing it in Python. The language is much better to me, has better features, has a standard library builtin and is even installed in all Linux distributions.

    Lua is meant to be embedded into other applications, not meant to be used on its own.

    Lua’s problems with the absence of popular libraries aren’t because of any language issues (even the lack of null can be dealt with), but solely due to its non-adoption in the masses.

    Wrong. This is a design choice, because Lua isn’t meant to be used by its own. The embedded environment is meant to provide the functionality. In example in Neovim they provide their own functionality embedded within the editor. I can’t use that script on a different environment.

    • SlurpingPus@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      2 days ago

      Filesize doesn’t matter, if the functionality is missing.

      Lua is meant to be embedded into other applications, not meant to be used on its own.

      Wrong. Lua is meant to be used on its own, because it’s so freaking good. It provides everything one needs to begin, while allowing for a wide array of libraries to be made. But I know you haven’t made any serious number of scripts in either language, simply because you claim ‘filesize doesn’t matter’, while Lua is so fast partly because of its size.

      This is a design choice, because Lua isn’t meant to be used by its own.

      Wrong again. Lua is amazing on its own, but third-party libraries make it even better.