Conversation
Notices
-
Embed this notice
what about a lua-like vm library, but, it's posix shell, and you can feed it c functions as built-ins, as well as call shell functions from c
-
Embed this notice
@navi Well bash has support for adding builtins so I guess it's kind of close? (And AFAIK it's bash-only so unlikely to get into POSIX soon)
Although full C from shell… I feel like it would make more sense to make something like `tcc -run` work closer to a repl.
-
Embed this notice
@navi yeah sadly calling C functions from another language isn't that easy, bit why Unixes still have a bunch of commands that are defined as just wrappers (bindings? ^^) on C functions (link, unlink, logname, sleep, nice, basename, …).
-
Embed this notice
@lanodan the idea is more of a vm which would mean you don't have to fork off a shell multiple times then pipe results back, aka using posix sh as your scripting language or smth