Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #6462

Re: filters

From cri@tiac.net (Richard Harter)
Newsgroups comp.lang.c
Subject Re: filters
Date 2011-06-19 19:02 +0000
Message-ID <4dfe4436.110931874@text.giganews.com> (permalink)
References <87d3ibxx7e.fsf@yun.yagibdah.de> <0.73ef43262f8e8ca91f31.20110618113752BST.87ei2r77cv.fsf@bsb.me.uk> <4dfcd34d.16486840@text.giganews.com> <0.dffdcd7defee49bd5572.20110618231353BST.8739j67ppa.fsf@bsb.me.uk>

Show all headers | View raw


On Sat, 18 Jun 2011 23:13:53 +0100, Ben Bacarisse
<ben.usenet@bsb.me.uk> wrote:

>cri@tiac.net (Richard Harter) writes:
>
>> On Sat, 18 Jun 2011 11:37:52 +0100, Ben Bacarisse
>> <ben.usenet@bsb.me.uk> wrote:
>>
>>>lee <lee@yun.yagibdah.de> writes:
>>>
>>>> it´s probably a FAQ, though I haven´t found any good info on it: How do
>>>> you go about writing a filter, i. e. a program that reads data from
>>>> stdin and processes it?
>>>
>>>This is not really a C question.  I suggest to ask it in
>>>comp.programming which deals with this sort of question.  I've set
>>>follow ups there.  Maybe you had a C-specific question in mind.  If so,
>>>please ignore the followup-to header and reply with the more specific
>>>question.
>>
>> In my generally excellent opinion, it is a C question rather than a
>> general programming question.  The concept of a filter (or function)
>> is general; the implementation issues are language dependent.  See
>> James's excellent little article on the C specific issues.
>
>I invited the OP to ignore the follow ups header and post something more
>specific because I thought it would help everyone to know more about the
>C issues the OP though he or she had.  Without more information one
>would just have to assume some C question which is what James did.
>That's fine, and his excellent answer may well be useful even if the
>assumption behind it is wrong, but answering a general question with
>some C specifics does not make the question a C one, it simply makes the
>answer topical!  I did not feel like guessing today.

But I disagree with you about what is topical.  OP is asking (or so I
am reading him) "What sort of C design pattern should I use for
writing a filter program?"  That sort of question, and I am going to
be dogmatic about it, is topical.  If OP were to write a filter
program in Fortran, a quite different answer would be needed, and if
in Ocaml yet another kind of answer.  In short, the question is about
writing a filter program as a general question, it is specifically
about writing one in C.  That's why it is topical.

 
>
>> IMGEO (:-)) people are often too quick to say something is a
>> programming question rather than a C question, perhaps because they
>> feel that the are about the technicalities of the C standards.
>
>I am ludicrously prone to making typos so I can usually unravel them in
>other people's posts, but something has gone wrong here that defeats me.

Cutting and pasting is not always your friend.  :-)
At this point reconstructing the original is quite beyond me.
>
>> Present company excepted, of course.
>
>That's everyone reading this, right? :-)

Exactly.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

filters lee <lee@yun.yagibdah.de> - 2011-06-18 12:15 +0200
  Re: filters Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-06-18 11:37 +0100
    Re: filters cri@tiac.net (Richard Harter) - 2011-06-18 18:42 +0000
      Re: filters Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-06-18 23:13 +0100
        Re: filters cri@tiac.net (Richard Harter) - 2011-06-19 19:02 +0000
          Re: filters Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-06-19 21:16 +0100
            Re: filters lee <lee@yun.yagibdah.de> - 2011-06-20 16:06 +0200
              Re: filters Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-06-20 15:53 +0100
                Re: filters lee <lee@yun.yagibdah.de> - 2011-06-27 22:20 +0200
  Re: filters Francois Grieu <fgrieu@gmail.com> - 2011-06-18 13:56 +0200
    Re: filters "Bill Cunningham" <nospam@nspam.invalid> - 2011-06-18 14:24 -0400
      Re: filters Angel <angel+news@spamcop.net> - 2011-06-18 18:51 +0000
        Re: filters Keith Thompson <kst-u@mib.org> - 2011-06-18 11:55 -0700
          Re: filters Angel <angel+news@spamcop.net> - 2011-06-18 19:46 +0000
            Re: filters Keith Thompson <kst-u@mib.org> - 2011-06-18 13:18 -0700
      Re: filters Lew Pitcher <lpitcher@teksavvy.com> - 2011-06-18 14:55 -0400
  Re: filters James Kuyper <jameskuyper@verizon.net> - 2011-06-18 10:14 -0400
    Re: filters cri@tiac.net (Richard Harter) - 2011-06-18 19:58 +0000
    Re: filters Tim Rentsch <txr@alumni.caltech.edu> - 2011-06-19 16:09 -0700
      Re: filters Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-06-20 07:51 +0000
        Re: filters Tim Rentsch <txr@alumni.caltech.edu> - 2011-06-20 12:33 -0700
  Re: filters Nobody <nobody@nowhere.com> - 2011-06-18 15:25 +0100
  Re: filters gordonb.f4hvo@burditt.org (Gordon Burditt) - 2011-06-18 15:17 -0500

csiph-web