Lilush – LuaJIT static runtime and shell

(lilush.link)

46 points | by ksymph 3 days ago ago

10 comments

  • myrmidon a day ago ago

    I find it quite interesting how particular languages seem to disproportionally attract specific kinds of projects.

    From a first glance, this is the second somewhat opinionated, compact, minimal-dependency interpreter/shell/library bundle despite the Lua(JIT) ecosystem being tiny. The other example I have in mind for this would've been luapower, which sadly became somewhat inactive.

    I really like the simplicity of the language and the speed and compactness of its implementation. The JIT is also the real deal, with millisecond cold start execution delays unlike Julia, which masquerades as a JIT/interpreted language while featuring dog slow (by comparison) LLVM ("pre-")compilation under the hood (core language, type system, package management and interoperability concepts are admittedly nice in Julia though).

    • rainingmonkey 21 hours ago ago

      Also loosely related: Redbean is a webserver in a single-file that runs natively on six OSes for both AMD64 and ARM64

      https://redbean.dev/

    • trescenzi 21 hours ago ago

      This is what culture is right? Different sorts of people are attracted to different sorts of things and so the culture that builds around those things is somewhat self reinforcing. Lua's culture mirrors its core and attracts people who like simple extensible solutions to problems. This looks like a pretty compelling simple extensible tool. Hopefully the development continues and doesn't drop off like Luapower. I do wish it had first class fennel support but that's really easy to add.

    • tiffanyh 21 hours ago ago

      Lua is designed for the use case of being embedded.

      > "Lua: an extensible embedded language"

      https://www.lua.org/ddj.html

  • rainingmonkey 21 hours ago ago

    Does this run on bare metal? Are there any plans to include graphics primitives?

    As another comment suggested, Lua seems to lend itself to certain kinds of projects. This looks like it could mesh well with my forever project to rewrite userland in Love2d!

  • karteum 21 hours ago ago

    Speaking about "batteries included" LuaJIT, people might be interested in https://franko.github.io/gsl-shell

    • nyankosensei 13 hours ago ago

      I second this recommendation. For those interested, this is β€œAn interactive application for maths and graphics based on the Lua programming language and the GNU Scientific Library.” for both Windows and Linux. I installed it and keep a shortcut on my Windows desktop for quick calculations.

      https://github.com/franko/gsl-shell

  • pbohun 21 hours ago ago

    This looks very interesting. It says it has networking, cryptography, etc. Is there any documentation of the APIs? I can't try this out if I don't know what they are.