4 ms·
I always thought it'd be cool if all programs implemented external apis this way. Kind of like how applescript works, but, for a mail program, for instance, wr
by jimktrains2 15y ago
I always thought it'd be cool if all programs implemented external apis this way. Kind of like how applescript works, but, for a mail program, for instance, write "Hacker News" to /proc/n/query and it'd return the data. Or write 'message 1' to /proc/n/open and it'd open or return it.
- p9idf 15y agoYou wouldn't put those sorts of things in /proc, but that's basically how things work. And since it's a filesystem, you can export your API effortlessly over the network. http://plan9.bell-labs.com/magic/man2html/4/upasfs http://plan9.bell-labs.com/magic/man2html/4/upasfs http://plan9.bell-labs.com/magic/man2html/4/webfs http://plan9.bell-labs.com/magic/man2html/4/webfs
- jimktrains2 15y agoI imagined them in proc because i imaged them being exported by the application. Reading your links now. Edit: Yeah, that's pretty much what I was envisioning. I need to play with plan9 more:-\