3 ms·
Sorry, but bash isn't a "niche language" and it doesn't have an FFI story.
by otabdeveloper4 2y ago
Sorry, but bash isn't a "niche language" and it doesn't have an FFI story.
- jchw 2y agoI don't know how to tell you this, but, you don't need to implement an RPC protocol in bash, nor do you need FFI. You can use CLI tools like `dbus-send`. I pray to God nothing meaningful is actually doing what you are insinuating in any serious environment.
- otabdeveloper4 2y agoI'm trying to tell you that something that isn't straceable and greappable shouldn't belong in your system services stack.
- jchw 2y agoStrace/ptrace is awful, and I don't know what "greappable" means here. Nothing stops us from adding DTrace probes.
- eep_social 2y agoBehold, FFI for bash: https://github.com/taviso/ctypes.sh https://github.com/taviso/ctypes.sh
- ChoHag 2y agoFFI is the shell's only job.