News for hackers. Stuff that matters.
Re:The Rule of Silence (2006) by patmcguire on Tuesday December 13, 2016 @06:17PM (#13172209)
How about protocol buffers and content negotiation? Your pipe figures out a proto that program a can emit and program b can consume.

ls -> repeated FileDescriptor files; | repeated string names;

Where FileDescriptor is whatever it needs to be, has all the info ls -l does. You have a heirarchy of outputs: if the next takes FileDescriptors, you give it FileDescriptors, if it doesn't you give it strings.

What would go to stdout goes through a toString filter.

There are no comments on this comment yet.