Nope, can't say I've needed to do any 2D pattern matching on the UNIX command line, ever. Sure back in age of dinosaurs when command line was being used for 2D graphics this may have been useful, but ... we have actual GUI interfaces to do that now.
Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
11–20 of 112 posts
Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#12Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#13Possibly true, but we have perl, python, ruby to deal with those cases which all embed regex in a structural way. Occasionally you can just convert it to lines first as well and problem solved.
You do realize that this paper is from early 80s and Perl, Python and Ruby did not exist, right? As for your second statement, if you would have read the paper you would have seen why it is not the case.
A bit late in the 80s, but still.
[Edit] I read your comment too quickly and hadn't noticed that you said "early 80s". My apologies.
Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#14Possibly true, but we have perl, python, ruby to deal with those cases which all embed regex in a structural way. Occasionally you can just convert it to lines first as well and problem solved.
When this was written companies were advertising "Cut and Paste" as a big feature for word processors.
Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#15Nope, can't say I've needed to do any 2D pattern matching on the UNIX command line, ever. Sure back in age of dinosaurs when command line was being used for 2D graphics this may have been useful, but ... we have actual GUI interfaces to do that now.
Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#16Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#17Possibly true, but we have perl, python, ruby to deal with those cases which all embed regex in a structural way. Occasionally you can just convert it to lines first as well and problem solved.
It's inelegant enough that I sometimes do a two-step process instead: 1) transform the input so that whatever view I want of it maps to a line-oriented format; and then 2) process the result in the standard Unix line-oriented fashion.
Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#18What Pike describes is analogous to the RecordReader in Hadoop.
Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#19Re: Rob Pike: "Current Unix tools are weakened by the built-in concept of a line"
#20Every scribd link is marked as private for me Hacker News for some reason, is this broken for anyone else or..?