Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] linux@example.com How many widely can we do that?
- Date: Wed, 28 Oct 2009 15:10:22 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] linux@example.com How many widely can we do that?
- References: <20091025150358.ac21a898.attila@example.com> <20091025144342.GB29599@example.com> <20091025160621.089f04b4.attila@example.com> <f8b14cb80910252012m5cffe9a6m160c086910717cba@example.com> <a690a4c90910252029j41411fal15dc23c037b9a331@example.com> <87d44aagym.fsf@example.com> <a690a4c90910252228u7ae9a907g2a1900ed0839d43b@example.com> <874opmabcp.fsf@example.com> <20091028025424.GB8540@example.com> <87ws2g6tqw.fsf@example.com> <20091028051651.GH8540@example.com>
Curt Sampson writes: > On 2009-10-28 13:13 +0900 (Wed), Stephen J. Turnbull wrote: > > In many cases the .h is easier to read [than the generated docs] > > (assuming you can program in C, which almost goes without saying > > in this context). > > Oh, well if that's the case, they ought just to declare the .h files the > documentation. Indeed, that was my whole point (at first, but I have some other bones to pick now :-). > I suspect even you would prefer to put a BNF into a parser generator > than attempt to write a C program that does what the BNF specifies. Of course. I don't have an objection to formal specifications. But note that to the extent that a BNF is "executable code", the output is boolean! ie, "parse succeeded" vs. "parse error". yacc input is something else; I would object to calling that a (good form of) specification. > > But what's really bad about it is that if changing the .h > > automatically updates the documentation, the developer of client code > > is completely hung out to dry. There is nothing left that can be > > considered an independent specification of the behavior. > > Right, which is a good thing, IMHO. Code is, de facto, a specification. > If you have an independent specification, now you have two > specifications, which is very much like having two clocks. Yikes! If the code is *the* (not *a*) specification, as soon as you make a change you have two specifications: the pre-change spec, and the post-change spec. Make another change, and you have either three or four specs (depending on whether you think of the changes as a linear branch, or as two patches that can be mixed and matched). > > Even backward compatibility can be immediately disposed of as "we > > changed unspecified behavior, you really shouldn't be depending on > > that!" because *everything* is unspecified. > > Well, only if you refuse to admit that your code is also a spec. Of course I admit it is *a* spec. There is a place for reference implementations. The problem is that if you have 1,000 revisions in your repo, you have 1,000 specs (or maybe a *lot* more if you consider the implied combinatorics of the patches). Don't you think that is too many specs?
- Follow-Ups:
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Curt Sampson
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Edward Middleton
- References:
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Attila Kinali
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Christian Horn
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Attila Kinali
- Re: [tlug] linux@example.com How many widely can we do that?
- From: andrew holway
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Michael Bitker
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Stephen J. Turnbull
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Michael Bitker
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Stephen J. Turnbull
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Curt Sampson
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Stephen J. Turnbull
- Re: [tlug] linux@example.com How many widely can we do that?
- From: Curt Sampson
Home | Main Index | Thread Index
- Prev by Date: [tlug] Subversion to Git Conversions
- Next by Date: [tlug] Subversion to Git Conversions
- Previous by thread: Re: [tlug] linux@example.com How many widely can we do that?
- Next by thread: Re: [tlug] linux@example.com How many widely can we do that?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links