Redbean web server debugging with ZeroBrane Studio
notebook.kulchenko.com
notebook.kulchenko.com
Paul has been very foundational to a positive spirit in the cosmo/redbean community. Besides this cool work, they're also the author of fullmoon, a web framework for redbean
The team is like nuts aliens and I admire their brains.
This would have been a reasonable claim even a few years ago but specifically because of m1 macs arm is becoming much more common. It also prevents it from being used in one of the situations where you would most want a high performance standalone binary server & environment: raspberry pi.
There are technical solutions to this limitation and they are fine. But they significantly break the universality illusion and benefits.
If you can point me to any place where we've claimed it's "universal" rather than "runs on nearly all PCs and servers" then let me know and I'll correct the language. It wasn't my intent to put Redbean on the same level as Turing's universal machine. Systems engineering isn't the same thing as computer science, but I think Redbean will help elevate it as a field.
Lua code pretty much always ends up tightly coupled to the embedding environment and the API exposed by it. Running a bare lua script against an unmodified interpreter supplied by the OS is just not the normal use case, though certainly possible.
So it's as portable as all lua code, which is up to you but there's rarely a reason to prioritize that too highly. For example the two kinds of lua I've done professionally are web servers and industrial automation. What does it even mean for code to be "portable" between those two? A web server doesn't have a motor and so doesn't expose functions to control one. A conveyor belt doesn't handle http requests so has no functions to send one.
You can definitely come up with library code-type functionality that you'd want in both, and if you write it carefully not to depend on anything outside of the core lua implementation it will run on both. Nothing special about redbean here among the many many other niche uses of lua.
If you want to move your code to a different Lua environment, then you can take our APIs with you. For instance, our enhancements to Lua are all open source and built on standardized interfaces. We even offer a 420kb build of just the lua command + our unix module, in the event you ever need just Lua but not the web server too. https://redbean.dev/lua.com