language-lua VS moonscript

Compare language-lua vs moonscript and see what are their differences.


Lua parser and pretty-printer (by glguy)


:crescent_moon: A language that compiles to Lua (by leafo)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
language-lua moonscript
0 27
10 2,899
- -
0.0 0.0
almost 2 years ago 3 months ago
Lua Lua
BSD 3-clause "New" or "Revised" License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.


Posts with mentions or reviews of language-lua. We have used some of these posts to build our list of alternatives and similar projects.

We haven't tracked posts mentioning language-lua yet.
Tracking mentions began in Dec 2020.


Posts with mentions or reviews of moonscript. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-25.
  • Best Websites For Coders
    51 projects | | 25 Jan 2023
    A programmer-friendly language that compiles to Lua.
  • data types in function definition
    12 projects | | 13 Jan 2023
  • A MiniTron In 47 Lines
    2 projects | | 11 Jan 2023
    This is a sample code for learning, written in Moonscript for TIC-80:
  • They hated him because he told the truth
    5 projects | | 29 Nov 2022
    MoonScript (a CoffeeScript-like classful dialect of Lua):
  • Lua, a Misunderstood Language
    9 projects | | 29 Sep 2022
    I highly recommend if you're interested in Lua checking out a few of my favorite Lua projects...

    1. [Moonscript]( the compile-to-lua language powering, it's amazingly pleasant to work with and I was amazed porting a JavaScript tool to Moonscript that the moon version was more readable despite my lack of familiarity with the language.

  • What do you think about MoonScript?
    3 projects | | 15 Jul 2022
    Unless Luathonistas have no better way of accomplishing the same thing, or if Moonscript just compiles to bad Lua, the examples ( seem compelling - Moonscript's definitely a great deal more readable than Lua. If typical Lua code is really that unreadable, no wonder it's niche. Moonscript's colons and => seem a little confusing and quirky. But if Moonscript can be zero-indexed, I'm sold
  • Redbean 2.0 Release Notes
    15 projects | | 16 Jun 2022
  • How Do I Create A programming Language In Lua?
    5 projects | | 5 May 2022
    I recommend starting with moonscript, which is a language that is made in lua, and “compiles” to lua. Modify the crap out of it until you get what you want.
  • SNOWBOL -- Need your opinion on a future project I'm planning on building. Would you use a language which is basically just COBOL but with simplified syntax?
    2 projects | | 23 Apr 2022
    I think it would make a lot more sense to make a language with similar semantics to COBOL, but modernized syntax. Instead of Typescript, a better model might be Coffeescript or Moonscript, which have a nearly 1:1 semantic mapping with their target language, but offer a more ergonomic and less verbose syntax. I haven't worked with COBOL at all, but I think the verbose syntax is probably one of the most offputting parts of the language. Stuff like move 1 to fact or multiply num by fact is tedious to type and read compared to fact = 1 or num *= fact. It's similar to how a mathematician would write equations like "z = x1.5 + y" instead of "z is equal to the sum of x raised to the power of 1.5 and y". The shorter form is not only quicker to write, but also easier to understand once you're familiar with the notational conventions.
  • LuaJIT for backend?
    6 projects | | 2 Jan 2022
    I did this with my programming language Nomsu. I took a lot of inspiration from Moonscript. Using lua/luajit as a backend was the right choice for my project because I was using LPEG for parsing and I wanted to interoperate with lapis (a Lua web framework). I think overall, I do not regret my choice to use lua as a backend. It worked pretty well for me. However, I wouldn't recommend it if you're making a strongly typed language (because you'd miss out on some potential performance optimizations), but for a dynamically typed language, it's a good option. One thing that was really handy was Lua's goto, which made it easy to do custom control flow (e.g. break out of nested loops).

What are some alternatives?

When comparing language-lua and moonscript you can also consider the following projects:

Yuescript - A Moonscript dialect compiles to Lua.

TypeScriptToLua - Typescript to lua transpiler.

nelua-lang - Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code.

LuaJIT - Mirror of the LuaJIT git repository

TIC-80 - TIC-80 is a fantasy computer for making, playing and sharing tiny games.

liquidhaskell - Liquid Types For Haskell

luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua

nvim-lspconfig - Quickstart configs for Nvim LSP

nvim-compe - Auto completion Lua plugin for nvim

Fennel - Lua Lisp Language

Aegisub-Motion - Lua plugin for Aegisub auto4 that parses motion tracking data and applies it to selected subtitles.