3 ms·
Interesting. Why do you think that files are good abstraction for a web shell?
by qznc 12y ago
Interesting. Why do you think that files are good abstraction for a web shell?
- tubelite 12y agoIt's the old "if you have a hammer, everything looks like a nail". Since I'm a filesystem engineer, everything looks like a file :) Seriously though: the file is a powerful and familiar abstraction. The primary motivation for pigshell was to provide a common minimum abstraction across different web APIs which would enable basic data movement and backup. That said, pigshell commands actually pass objects across the pipeline; files are a kind of object. For instance, cat http://pigshell.com/sample/life-expectancy.html | table2js -e "tr" foo country data | head | printf extracts data from an html table, converts them to plain Javascript objects and prints their json representation.
- judk 12y agoAre you familiar with Plan9? Everything is a file. Everything.