Hacker News new | past | comments | ask | show | jobs | submit login

Any examples that would help to compare against other forms of scripting (e.g. bash)?



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.


Zua?


Is 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.


There's minilua (https://github.com/LuaJIT/LuaJIT/blob/v2.1/src/host/minilua....) which is used to build LuaJIT (dynasm, etc)




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: