oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.85k stars 158 forks source link

native libraries support? / ctypes #786

Open andychu opened 4 years ago

andychu commented 4 years ago

This is a huge stretch, but bash supports it via "custom commands" written in C.

Like Python's ctypes, this can crash the process, which I don't particularly like. Maybe it's possible to have the app be a coprocess ? Still need to work on coprocess support.

https://github.com/taviso/ctypes.sh/wiki

https://github.com/taviso/ctypes.sh/blob/master/test/gtk.sh

andychu commented 2 years ago

I think we care more about #848 and #1026

This could be done as an optimization to the external process of #1026 , but it shouldn't be a primary way of doing things (as it isn't in bash)