Hacker News new | ask | show | jobs
by larme 48 days ago
musl + lua + c library + all lua codes can produce single static binary for linux which I utilize a lot.
2 comments

I still remember when static linking was the only option compilers would give us.

Some of them had this cool modern idea of overlays, where we would manually manage loading additional code segments into the same process memory slot.

I just had a thought. I wonder if the idea of dynamically linked libraries in Unix and later of DLLs in Windows came somehow from the concept of overlays. And whether the overlay concept preceded (MS)-DOS.
Turbo Pascal 3.x had it.
Yes, indeed.
How well does Lua plug into Rust libraries? Also how good is Lua for UIs?
I've used Lua extensively with Rust via the mlua library and it's excellent and full-featured.

https://github.com/mlua-rs/mlua

Very interesting. I took a brief look.

What would be the effective use cases for this? - Obviously, for start up scripts (like lua was used with C/C++ traditionally)

I am interested in the the potential of a REPL running in my app which could dynamically execute Lua code. Like nrepl for clojure and Swank/Slime for common lisp.

Is that on the cards here?