News for hackers. Stuff that matters.
Re:Defold game engine source now available and free to use f... by 29athrowaway on Tuesday May 19, 2020 @01:07PM (#23237261)
Is MoonScript like CoffeeScript for Lua?

CoffeeScript development was one of the most regretful experiences I've had. Delimiters are optional even when invoking functions. A statement like f(g(h(x))) becomes painful to read. Plus, sometimes you want to use a function as a parameter, how do you reason about that? Welcome to the Twilight zone.

Whitespace in CoffeeScript has a meaning. In Python, that is the case too, but it only applies to statement blocks. In CoffeeScript, the situations you will find are just absurd, such as the fact that inconsistent indentation is allowed.

Code is written once, read many times. CoffeeScript emphasizes rapid writing not reading. In that sense, CoffeeScript is to JavaScript what Stenography is to Writing.

Re:Defold game engine source now available and free to use f... by vanderZwan on Tuesday May 19, 2020 @01:32PM (#23237614)
Yes, although my experience with Moonscript does not match yours with Coffeescript.

What I personally like a lot is how it makes it easier to write efficient Lua by because (for example) it makes local variables the default.

Also, FWIW the LuaRocks server is written in Moonscript, and that's a pretty important bit of Lua infrastructure I'd say.

[0] https://moonscript.org/reference/

[1] https://github.com/luarocks/luarocks-site

Re:Defold game engine source now available and free to use f... by minxomat on Tuesday May 19, 2020 @01:45PM (#23237799)
Not to mention itch.io, which is maybe more relevant to the topic of this thread.

Nitpick: The server is openresty (Nginx). The web-framework is Lapis, which is Lua and can be developed on with Lua or Moonscript.