4 ms·
https://github.com/racket/zuo/blob/main/local/tree.zuo https://github.com/racket/zuo/blob/main/local/tree.zuo is a pretty good example. It’s nothing like Bash;
by strenholme 4y ago
https://github.com/racket/zuo/blob/main/local/tree.zuo https://github.com/racket/zuo/blob/main/local/tree.zuo is a pretty good example.
It’s nothing like Bash; it’s a Lisp dialect.
The obvious comparison is Lua, which is generally the standard embedded language people use when a scripting language needs to be tiny. I compared its size; Zuo is 55% the size of Lua, so apples to apples, Zuo is only a little over half the size of Lua. On the other hand, Lua uses a Pascal like syntax which is a good deal more Bash like than Zuo.
- cheaprentalyeti 4y agoZua?
- strenholme 4y agoIs Zua a Lua variant the size of Zuo? I like the idea. Going back to the Bash comparison, Bash is huge but the subset ash is pretty small, somewhat smaller than Zuo. Busybox’s AWK is, as I recall, about half the size of Zuo. We can have a POSIX compliant scripting setup (ash + AWK) using around the same amount of space Zuo takes up.
- tekknolagi 4y agoThere's minilua (https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/host/minilua.c https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/host/minilua....) which is used to build LuaJIT (dynasm, etc)