Re:Rob Pike: "Current Unix tools are weakened by the built-i...
by stcredzero on Thursday June 14, 2012 @04:02PM
(#4113256)
Or, one could write a library of standard parsers and serializers for the Unix tools that would parse and produce known JSON representations of data that could be passed between scripts.
[ Parent
| on HN ]
Re:Rob Pike: "Current Unix tools are weakened by the built-i...
by zem on Thursday June 14, 2012 @04:16PM
(#4113316)
i did something like that at my last job - the cluster manager was designed as a set of command line tools, and every program had a -j flag that would make it parse stdin as json and write json to stdout. we then wrote wrappers around all the linux utilities we were using, to enable the same behaviour. once the basic system was in place it let us experiment with new features very rapidly indeed because everything could be tested in isolation from the command line using automated test scripts. what was especially nice was that we could use the same test framework to chain several utilities together and test the combination, because it was all a black box with json going in and coming out.
Re:Rob Pike: "Current Unix tools are weakened by the built-i...
by Evbn on Friday June 15, 2012 @02:39AM
(#4115352)
That's recordstream
Re:Rob Pike: "Current Unix tools are weakened by the built-i...
by stcredzero on Friday June 15, 2012 @09:08AM
(#4116253)
recordstream seems to concentrate on lots of formats. Really, it should concentrate on lots of tools, with a shared repository of parsers for tools.
EDIT: Actually, they concentrate on JSON, but they also try to provide a generic set of tools for reading any format. I think this could be better structured to "just work."