10
Wisecrack
149d

Lua rocks.

You know what also rocks?

Moonscript.

Imagine python if python minus the bad parts.

Comments
  • 17
    Python - Bad Parts = Blank File
  • 2
    (jk)
  • 3
    I fancy a world without Python at all.
  • 2
    You got me at script.
  • 2
    I don't understand the concept of Lua. The lack of type safety would put it in the category of compile targets from a type safe language, similarly to ASM or Javascript. It also makes it a horrible choice for configuration, because to organise a solution from prebuilt parts painlessly you need errors when you plug a square into a round hole, before you would try to drive that connection. The only goal that benefits from lack of tyoe safety is prototyping or throwaway calculations, but a good prototyping language also has convenient syntax and a huge STL, like Python.
  • 3
    Here's my issue with Python, Julia, Lua, etc...

    Who really gives a fuck?

    At some point, someone decided that language X should be used for project X and it will remain until the project dies or someone with real gumption comes along and decides it is worth a rewrite in some other language.

    How many of us really get to decide what language(s) we work in _at work_? I sure as hell don't. My shop uses MySQL, Java, some perl, some ruby, some python, and some C.

    Will we ever use Julia or Lua* or Scala? Probably not. So I can't get professional experience in those languages unless I leave and start over or get lucky enough to convince the PTB to try something newer.

    *Outside of Hammerspoon, which is a personal use thing on my mac
  • 2
    The lapis web framework looks cool but the setup never worked for me, so I couldn't really try
  • 2
    I want to be a Moonscript dev...just so I can describe myself as such.
  • 1
    Why use Moonscript when you have F#? 🤔
  • 1
    Nginx + lua = openresty
  • 3
    @homo-lorens Lua is intentionally tiny and minimal, relatively, because its main use (that it was designed for anyway) is being a quick, easy, low overhead embeddable scripting language for C/C++. It's way easier than embedding Python or JS in my exp. Great for when you need to host some scripting functionality in complex C/C++ software, like in a game engine (not wrapping up C/C++ to be called from another language, but hosting the interpreter as part of the C/C++ application).
  • 0
    I only use Lua to program computers in minecraft
  • 0
    @RememberMe is there any good books on embedding Lua into C/C++?
  • 0
    And what are the good parts of Python, pray tell?
Add Comment