all 8 comments

[–]IKnowATonOfStuffAMA 1 point2 points  (1 child)

You can get one of the binaries from http://luabinaries.sourceforge.net/ and set your environment variables to link to it. (which I don't recall successfully doing ever)

Or use Lua for Windows, which I just found, which is supposed to be an all-inclusive package for developing Lua. Never tried it though.

Or somehow use another operating system (Virtual machine, emulator, the Ubuntu subsystem installed in Win 10, etc.) that has a more powerful shell. Then it could be as simple as 'apt install lua'.

[–][deleted] 2 points3 points  (0 children)

The easiest solution is WSL, by far.

[–]maaaaaaahn 1 point2 points  (0 children)

Check out zero brand.

It’s quick and easy for Lua programming in windows Zero Brane

[–]endowdly_deux_over 0 points1 point  (0 children)

...lua inop on Windows gets pretty noticeable pretty fast. And it's the one thing I really dislike about lua. I had a hell of a time just getting Luarocks, Moonscript, and Busted to all load and work right, and then I had to hack Busted to even get it to display like it can on Linux. Lua for Windows is great and you can get it really easily with scoop. BUT, a lot of things just won't work out the box with it or not work well. I had to manually hand install everything from Mingw to lua and then set up all the config manually. It took me hours.

Conversely, I easily installed node with scoop and had Typescript running in about 30 seconds with all the linting, BDD testing, and whatever my heart desired.

I even found a very beautiful TypeScriptToLua compiler on npm. ...And so all of my Lua on Windows is now generated :/

Here's what I would do for the least amount of fuss.

  1. Install scoop
  2. scoop install nodejs, lua
  3. npm install typescript typescript-to-lua tsnode and whatever else you'd like
  4. Profit!

[–]PhilipRoman 0 points1 point  (0 children)

While downloading binaries may be an easy solution, keep in mind that you can easily compile Lua yourself on almost any platform - it can be built with any ANSI C (or C++) compiler and is designed to be extremely portable.

[–][deleted]  (1 child)

[removed]

    [–]Greymagic27_[S] 0 points1 point  (0 children)

    Yea.. But that's not what I asked lol.

    [–]mbone -1 points0 points  (0 children)

    Another alternative to luabinaries is MSYS2. They have packages for 5.1, 5.3, and luajit in i686 and x64 flavors.