Hacker News new | ask | show | jobs
by warricksothr 1973 days ago
I'm also pleasantly surprised by this transpiler discovery.

4 years ago I was managing a Feed The Beast (A heavily modded and themed Java Minecraft version) server and in that mod packages was OpenComputers (https://ocdoc.cil.li/) which exposed a lua api and in game computers to the players. The OpenComputers Package Manager (https://github.com/MightyPirates/OpenComputers/blob/master-M...) became a limiting factor to my players as they wanted some ability to load from other sources so I converted the program to MoonScript (https://moonscript.org/) and maintained a fork with modifications for them.

MoonScript was certainly more pleasant to write and maintain (compared to Lua), but type safety would've definitely helped squash some of the weirder side effect driven bugs. That said, I still think MoonScript is a great middle ground for things that are written in Lua but need some extra organizational tools.