language-lua
moonscript
Our great sponsors
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 | - |
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.
language-lua
We haven't tracked posts mentioning language-lua yet.
Tracking mentions began in Dec 2020.
moonscript
-
Best Websites For Coders
A programmer-friendly language that compiles to Lua.
- data types in function definition
-
A MiniTron In 47 Lines
This is a sample code for learning, written in Moonscript for TIC-80:
-
They hated him because he told the truth
MoonScript (a CoffeeScript-like classful dialect of Lua): https://github.com/leafo/moonscript
-
Lua, a Misunderstood Language
I highly recommend if you're interested in Lua checking out a few of my favorite Lua projects...
1. [Moonscript](https://moonscript.org/) the compile-to-lua language powering Itch.io, 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?
Unless Luathonistas have no better way of accomplishing the same thing, or if Moonscript just compiles to bad Lua, the examples (https://moonscript.org/) 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
-
How Do I Create A programming Language In Lua?
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. https://moonscript.org
-
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?
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?
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?
Yuescript - A Moonscript dialect compiles to Lua.
TypeScriptToLua - Typescript to lua transpiler. https://typescripttolua.github.io/
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.