News for hackers. Stuff that matters.
Re:MoonScript - A programmer friendly language that compiles... by silentbicycle on Thursday August 11, 2011 @09:35AM (#2872734)
It'd make more sense to me if it were compiling a very different kind of language, such as a Constraint/Logic programming language. I really like Lua for scripting, as-is.

Lua's portability & smooth C integration make it an interesting code generation target (not to mention LuaJIT's performance). And however you feel about working in Lua, its code is straightforward to generate - the syntax is refreshingly free of odd corner cases.

Re:MoonScript - A programmer friendly language that compiles... by jethroalias97 on Thursday August 11, 2011 @11:37AM (#2873308)
It is odd the designer decided to compile to lua. It's probably because it's easier to knock out the language fast that way. Although usually when someone wants to do this they compile to C and use gcc from there (this is what go did in the beginning), but they also usually admit this is a hack, not a feature and that they will later compile directly to assembly.