fullmoon
moonscript
Our great sponsors
fullmoon | moonscript | |
---|---|---|
13 | 35 | |
632 | 3,118 | |
- | - | |
7.0 | 4.4 | |
8 days ago | 6 months ago | |
Lua | Lua | |
MIT 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.
fullmoon
- Fast and minimalistic Redbean-based Lua web framework in one file
-
Redbean – Single-file distributable web server
You can use the excellent fullmoon framework that takes care of a lot for you
https://github.com/pkulchenko/fullmoon
Then using lua is not much different than python/flask
-
Ask HN: What Are You Working on This Year?
My goal is similar to Joseph's (a platform for local first applications using CRDTs), but the approach is slightly different, as I'm building it based on SQLite synchronization using its session extension (https://www.sqlite.org/sessionintro.html) as the encoding mechanism. I plan to incorporate this sync functionality into my web framework (https://github.com/pkulchenko/fullmoon) to allow any application built with it to become "sync-enabled" with just a couple of additional lines of code.
-
redbean: a single-file actually portable web server with Lua, HTTPS and SQLite
Found it whilst checking out a web framework specifically for redbean: https://github.com/pkulchenko/fullmoon
- Show HN: Redbean web server debugging with ZeroBrane Studio
-
I just published 'Reimagining front-end web development with htmx and hyperscript' on hashnode
This may be of interest to you then: https://github.com/pkulchenko/fullmoon
-
Redbean 2.0 Release Notes
I've been having a lot of fun with this developing tiny webapps using Fullmoon[1]. I love Lua, but I frequently bounce between a Windows PC and a Linux PC. Having redbean + Fullmoon has made it a breeze switching back and forth without having to deal with system Lua installs. SQLite and the thorough amount of built-ins[2] is also a dream.
[1] https://github.com/pkulchenko/fullmoon
[2] https://redbean.dev/#functions
-
Fullmoon – Redbean-based Lua web framework deployed as single file
Yes, that register patch may be needed on some Linux systems; I'll add this to the documentation.
Redbean can't use the system Lua, so it comes bundled with its own Lua interpreter (Lua 5.4; there is also work being done to allow LuaJIT or Luau to be embedded instead).
The modules need to be put in the .lua directory within redbean archive; redbean searches within its archive, so you don't need to set LUA_PATH/LUA_CPATH. I have instructions on how to get examples working included in the examples (https://github.com/pkulchenko/fullmoon/tree/more-links#examp...) section.
In terms of the size, this includes MbedTLS and SQLite, so if you don't need those modules, you can compile redbean without them, which should reduce the size considerably.
- Fullmoon: A Redbean Web Framework
moonscript
-
Why Fennel?
Now I like lua, and think single pass is the way to go for interpreted, since you don't have the disadvantage of a slow compile time no matter how big your codebase gets, BUT its not great to write in. things like +=, ++, are not possible, which means the only solution is to transpile into it, which has led to some good languages like moonscript[0], teal[1] which offers static type checking, an absolute must as your codebase grows.
[0]: https://moonscript.org/
-
Forth: The programming language that writes itself: The Web Page
That can be very productive and clever, but be - and stay - aware that such polyglot solutions tend to be maintenance headaches in the longer run.
There is a really nice open source project out there that allows you to train your hearing and your sightreading, but it's written in the authors own language which in turn compiles to JavaScript and the headache to set up their toolchain is such that I haven't bothered fixing any of the bugs that I'm aware of (and there are plenty).
https://sightreading.training/
https://github.com/leafo/sightreading.training
It's written in a language called 'Moonscript':
https://github.com/leafo/moonscript
Which compiles to Lua. Which compiles to JS.
Madness. Nice madness, but still, it stopped me from being a contributor.
-
Lua: The Little Language That Could
RE: the cost of switching at this point, what about languages that compile to Lua? Like https://moonscript.org/. That would let you keep the legacy code, no?
-
Trying to make a website with Lapis
In the case of Lapis, it is actually written in Moonscript, which needs a few more things.
- Launch HN: Moonrepo (YC W23) – Open-source build system
- Using Lua with C++
-
Using other languages
There's also some languages made to compile straight to Lua: - MoonScript is the most popular Lua wrapper - it's built to be more Python-like, featuring indentation-based scopes, function calls without parentheses, lambda syntax, list comprehension, and much more. - Yuescript is a modern update to MoonScript that adds more features (I haven't used it myself, so I'm not entirely sure exactly how it differs from MS). - Teal is a version of Lua that adds static typing for better code standards.
-
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:
What are some alternatives?
redbean-docker - Docker image for redbean from the "scratch" container
Yuescript - A Moonscript dialect compiles to Lua.
cosmopolitan - build-once run-anywhere c library
nelua-lang - Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code.
Fennel - Lua Lisp Language
TypeScriptToLua - Typescript to lua transpiler. https://typescripttolua.github.io/
lua-style-guide - Olivine Labs Lua Style Guide
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua
openresty - High Performance Web Platform Based on Nginx and LuaJIT
TIC-80 - TIC-80 is a fantasy computer for making, playing and sharing tiny games.
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
LuaJIT - Mirror of the LuaJIT git repository