News for hackers. Stuff that matters.
Re:Next generation Unix pipe by Alex Larsson by DHowett on Friday August 10, 2012 @10:14PM (#4369173)
I like the idea of processes dumping structured objects: pipes are rather often used for the processing of structured data, and while tabulated output certainly makes it easier, we still end up effectively using constants: cut to the third column, sort the first 10 characters, and print the first four lines.

This method is fragile when given diverse input: what if the columns could themselves contain tabs, newlines, or even nul bytes?

Passing objects as binary blobs, on the other hand, doesn't allow for ease of display or interoperability with other tools that don't support whatever format they happen to be. This, of course, can be rectified with a smart shell with pretty-print for columnar data (insofar as a shell could be charged with data parsing; you may imagine an implicit |dprint at the end of each command line that outputs blobs).

I'd also be interested in seeing a utility that took "old-format" columnar data and generated structured objects from it, of course, with the above format caveats.

Re:Next generation Unix pipe by Alex Larsson by chris_wot on Friday August 10, 2012 @10:22PM (#4369192)
Something like a cut, only we call it dcut? Actually sounds like a pretty good idea - that way those who don't want to switch to the new format don't have to, and you can pipe it through this program to create the new style structured output...
Re:Next generation Unix pipe by Alex Larsson by alexlarsson on Saturday August 11, 2012 @03:22AM (#4369657)
The inverse of dtable? Yeah, that would be very nice.
Re:Next generation Unix pipe by Alex Larsson by dfc on Friday August 10, 2012 @10:40PM (#4369225)
How would a column contain a newline?