clunk
fullmoon
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.
clunk
-
Ask HN: What Are You Working on This Year?
An app for quickly and collaboratively drawing maps for tabletop RPGs.
I run a tabletop RPG for some friends over the Internet using Roll20. As a player in other (in-person) games, there have been times where we've collaboratively made a map as we've gone along rather than the GM providing one, and I wanted to be able to provide a similar experience for my players. Since we found Roll20 didn't really work for this use case, I'm cobbling together an app that tries to make the experience as fluid as possible. It's only really intended for my group when I'll be on hand to explain how it works and I'll be the only one deploying it, so the docs are somewhat sparse, but in case anyone is interested:
https://github.com/mwilliamson/ttrpg-map-sketcher
I've also been working on a compiler for the most boring programming language in the world: https://github.com/mwilliamson/clunk
I maintain a library with ports to multiple languages (JavaScript, Python, Java). They have very similar structure, which means doing the same thing in pretty much the same way three times each time I make a change.
The idea I wanted to test with my language is: is it possible to extract a common subset that compiles into reasonably idiomatic code for those target languages? The compiled interfaces should be sensible (i.e. use of the code from the target language should be as good as if written in the target language directly), while implementations can be a little less tidy, but ultimately still readable and easily refactorable if the user ever decides to eject from my language and write everything in the target language(s) instead.
I doubt I'll ever use it in anger, and since it's nowhere near ready for use of any kind there aren't really any docs. In the unlikely event someone is interested, the most illuminating thing to look at would be the very beginnings of the reimplementation of the aforementioned library. Since I use snapshot testing with examples, you can see the source code, generated code and result of running the compiled test suite in one file:
Java: https://github.com/mwilliamson/clunk/blob/main/snapshots/%5B...
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
What are some alternatives?
redbean-docker - Docker image for redbean from the "scratch" container
cosmopolitan - build-once run-anywhere c library
Fennel - Lua Lisp Language
lua-style-guide - Olivine Labs Lua Style Guide
openresty - High Performance Web Platform Based on Nginx and LuaJIT
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
makeself - A self-extracting archiving tool for Unix systems, in 100% shell script.
moonscript - :crescent_moon: A language that compiles to Lua
speaklikeabrazilian.com - Speak Like A Brazilian
zsh - Mirror of the Z shell source code repository.
mbedTLS - An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.
cosmopolitan