Coding style - a non-issue
Hello,
wow, what a nice discussion. I am reading the l-k through an archive, so please forgive me if I am going to say something that was already said, but I did not yet read it.
Quoted 1 line · Linus
Don't underestimate the power of survival of the fittest.
Well, your theory is really an interesting view on the software development. However, I think that there are some points that need some more discussion.
First, you are probably right in the long-term. The nature did have enough time for excursions in one or another direction - the "project" of life is several orders of magnitude older than a single generation. You say that it is possible to help the evolution. But you still need many generations to be sure that a good result at some stage is not only some statistical variance.
The technology does not IMHO work that way - Linux (Unix in all its flavours, Windows, ...) is very young.
We are not in the stage where life exists for millions of years. We are in the stage where the first cells have formed and are still quite vulnerable. There is only a thin line between survival as a kind and extinction (sp?). I think that in this stage not ignoring the role of the design is a good thing (and no, I don't believe in God :-)).
Besides that, are you talking about evolution in general, or about evolution of a particular kind? The competition is not the same in these cases.
Quoted 1 line
- massive undirected parallel development ("trial and error")
This is not what is happening here. The parallelism does exist but is not massive in any way. There are not thousands of people writing the same stuff. There are not even thousands of people able to write a good bug report on a particular bug. There are maybe three (as in the VM recently) authors of some subsystem and in the end effect there is a God (or two after a brief disagreement :-)) that decides. No way is this analogous to the natural selection where the decision happens statistically on a whole population. This works between Linux and Windows, but not between implementation ideas.
Quoted 3 lines · Al Viro
Fact of life: we all suck at reviewing our own code. You, me, Ken Thompson, anybody - we tend to overlook bugs in the code we'd written. Depending on the skill we can compensate
Absolutely. But what I really miss is an early-warning system. No matter how good Linus might be in reviewing the submissions, he cannot catch it all - nobody is _that_ good.
What I feel hurts the Linux is that the testing standards are very, very low. Heck, Linus does not probably even compile the code he releases with the widely used configuration options (otherwise a non-compiling loop.o would not be possible).
Throwing releases onto the public is not testing. Saying "it works/does not work for me" is not testing. Testing is _actively_ trying to break things, _very_ preferably by another person that wrote the code and to do it in documentable and reproducible way. I don't see many people doing it.
Quoted 4 lines · Linus
And I will go further and claim that no major software project that has been successful in a general marketplace (as opposed to niches) has ever gone through those nice lifecycles they tell you about in CompSci classes.
Well, I don't know what they tell in the classes now - I am 33 and in this area the theories change much faster than practice :-)
Quoted 3 lines
Have you ever heard of a project that actually started off with trying to figure out what it should do, a rigorous design phase, and a implementation phase?
I have heard of projects that did succeeded doing well defined revision cycles with each cycle figuring out what more or better it should do, the design of it (more or less rigorous), implementation, then something what you forgot :-) - testing and deployment.
The project I am working on now (a process control system) exists for 15 years and is quite successful. It is vertical market, not horizontal, but hardly a niche. More control _did_ help it at one stage, where we had a little quality crisis.
Maybe it is just because people tend to forget the wrong things, but I have a strong feeling that Linux starts to have problems with quality that we did not see before, at least not in this amount. We are nearly a year in the stable series and we need to change fundamental things that broadly affect other parts - VM, devfs, ... This is not evolution, this is surgery. USB support was one big argument for 2.4, yet it is far from stable.
My opinion is, that you are _very_ good at maintaining general overview of a big chunk of code together with being able to maintain a general direction that makes sense. I don't think I know someone other that is able to do this. But I also think that the kernel is in the stage where this won't be much longer possible even for you. I have seen software projects going through some kind of crisis and the symptoms tended be very similar. In the early stages there are tools (version management, bug reporting system) and policies (testing standards) that can help. In the later stages the crisis is in the management. I cannot say from the outside (I am not doing active kernel development), in what stage (if in any) the kernel is. But I have the gut feeling that something should be done.
Evolution does not have the option to vote with its feet. The people do. While Linux is not much more stable than it was and goes through a painful stabilization cycle on every major release, Windows does go up with the general stability with every release. W2k were better than NT, XP are better than W2k. Windows (I mean the NT-branch) did never eat my filesystems. Bad combination of USB and devfs was able to do this in half an hour, and this was vendor kernel that did hopefully get more testing than that what is released to the general public. I surely cannot recommend using 2.4 to our customers.
And frankly, I see the Microsoft borrowing ideas from the open community. They make things more open - slow, but they are. They are going to give out compilers for free and charge for the (quite good and IMHO worth the money) IDE. They are building communities. Guess why?...
You might of course say that you don't care - the nature also basically does not care where the evolution is going. I would like to see more control in the kernel development, especially regarding quality standards.
Regards
Signature · 1 line
Stano
Quoted 5 lines
"it works/does not work for me" is not testing. Testing is _actively_ trying to break things, _very_ preferably by another person that wrote the code and to do it in documentable and reproducible way. I don't see many people doing it.
If you want a high quality, tested supported kernel which has been through extensive QA then use kernel for a reputable vendor, or do the QA work yourself or with other people. We have kernel janitors, so why not kernel QA projects ?
However you'll need a lot of time, a lot of hardware and a lot of attention to procedure
Alan
Quoted 10 lines · Alan Cox
Quoted 5 lines
"it works/does not work for me" is not testing. Testing is _actively_ trying to break things, _very_ preferably by another person that wrote the code and to do it in documentable and reproducible way. I don't see many people doing it.
If you want a high quality, tested supported kernel which has been through extensive QA then use kernel for a reputable vendor, or do the QA work yourself or with other people. We have kernel janitors, so why not kernel QA projects ?
I know a Co. that has its headquarters about 200 miles north of where I live that has the more organized development/qa cycle and still I won't change Linux for their kernel even under weapon menace.
- Davide
Quoted 9 lines
Quoted 5 lines
"it works/does not work for me" is not testing. Testing is _actively_ trying to break things, _very_ preferably by another person that wrote the code and to do it in documentable and reproducible way. I don't see many people doing it.
If you want a high quality, tested supported kernel which has been through extensive QA then use kernel for a reputable vendor, or do the QA work yourself or with other people.
Correct. But this has one problem - it is splitting resources. Pushing much of the QA work later in the process means that the bugs are found later, that there is more people doing this as absolutely necessary and that much more communication (and this can be the most important bottleneck) is needed as necessary.
The need of the VM change is probably a classical example - why was it not clear at the 2.4.0-pre1, that the current implementation is broken to the point of no repair? I am not seeking who is guilty, it is irrelevant, but I think there is a lesson to be learned and I would like to see the cause to be identified and steps to be taken that move such experiments into the development series. The 2.2 also had issues, but 2.4 has IMHO more issues that are not localized and fixable without affecting other parts.
Evolution does not need to be efficient. I still think that software development should be - if we loose half a year, the more organized competitor will be more than happy.
As a user of the vendor's kernel I have no idea what to do with a bug. The vendor kernel has hundreds of patches that are or are not, fully or partially merged into the mainstream for various reasons - you know this surely much better than I do :-) Now where do I send a bug report and - more important - where do I look when I want to have all available information to an issue, so I can be more specific (or cancel the report completely because it is clearly duplicate)? Should I consult my vendor's bugzilla, systems of all other vendors, l-k and specialized mailing lists of the given subsystem? I doubt that many of us will...
There is no single place where the bug reports are sent and - much more important - where their history can be viewed. The kernel itself has nothing but linux-kernel (overloaded with tons of non-relevant stuff such as this thread :-)) and probably various TODO lists of the developers.
I really feel that at least the information should be centralized so that the info can be hyperlinked. You work with the kernel so closely that you are probably able to keep the track of the important issues. 99% of users wanting to at least report bugs are not. Finding something in the l-k is hard, but even the managers can normally operate an issue tracking system - I see them doing it every day :-)
The classical tools such as version control or issue tracking system were discussed many times and were rejected - not by evolution, but by one-man decision. linux-kernel does not show me when and _why_ something was changed. Changelogs are big step in the right direction, but I think that more is needed. Frankly, I think that managing the submissions in a mail folder of Linus is not the right way of doing this for a project of this size.
I understand that it is impossible for Linus to write a meaningful comment and to check in a changeset each time he decides to accept stuff. I think that at some time he will be forced to give some write-access to a mainstream branch to a few other people (btw, this final review is imho in strong conflict with his evolution theory).
Quoted 1 line
We have kernel janitors, so why not kernel QA projects ?
Yes, this should be probably discussed. If a development can be distributed and quite organized at the same time, so can probably the testing. I have already seen such project somewhere on the web - no idea where they are now.
But an effective QA project is not possible without support from the developers themselves. Black-box testing is only one kind of tests. If a design is not documented, it is much more harder to try to break it.
Quoted 2 lines
However you'll need a lot of time, a lot of hardware and a lot of attention to procedure
I know - our QA department sits next door and this is userspace application, so hardware does not matter :-)
Regards
Signature · 1 line
Stano
Quoted 3 lines · Stanislav Meduna
The need of the VM change is probably a classical example - why was it not clear at the 2.4.0-pre1, that the current implementation is broken to the point of no repair?
It wasn't broken to the point of no repair until Linus started integrating use-once and dropping bugfixes.
Rik
Signature · 3 lines
Shortwave goes a long way: irc.starchat.net #swl http://www.surriel.com/ http://distro.conectiva.com/
Quoted 3 lines
The need of the VM change is probably a classical example - why was it not clear at the 2.4.0-pre1, that the current implementation is broken to the point of no repair? I am
Because nobody had run good test sets by then - anyway it was repairable. Linus kept ignoring, refusing and merging conflicting patches. The -ac tree since 2.4.9-ac or so with Rik's actual fixes he wanted Linus to takes passes the Red Hat test suite. 2.4.16 kind of passes it now.
It had nothing to do with the VM being broken and everything to do with what Linus applied. As it happens it looks like the new VM is better performing for low loads which is good, but the whole VM mess wasn't bad QA and wasn't bad design.
Linus was even ignoring patches that fixed comments in the VM code that referenced old behaviour. And due to the complete lack of VM documentation at the moment I can only assume he's been dropping Andrea's VM comments/docs too.
Alan
Quoted 3 lines
The -ac tree since 2.4.9-ac or so with Rik's actual fixes he wanted Linus to takes passes the Red Hat test suite. 2.4.16 kind of passes it now.
Is the test suite (or at least part of it) public, or is it considered to be a trade-secret of Red Hat? I see there is a "Red Hat Ready Test Suite" - is this a part of it?
Regards
Signature · 1 line
Stano
Quoted 3 lines
Is the test suite (or at least part of it) public, or is it considered to be a trade-secret of Red Hat? I see there is a "Red Hat Ready Test Suite" - is this a part of it?
The main Red Hat test suite is a version of Cerberus (originally from VA and much extended), its all free software and its available somewhere although I don't have the URL to hand, Arjan ?
Quoted 7 lines · Alan Cox
Quoted 3 lines
Is the test suite (or at least part of it) public, or is it considered to be a trade-secret of Red Hat? I see there is a "Red Hat Ready Test Suite" - is this a part of it?
The main Red Hat test suite is a version of Cerberus (originally from VA and much extended), its all free software and its available somewhere although I don't have the URL to hand, Arjan ?
I think it's at <http://people.redhat.com/bmatthews/cerberus/>
later,
chris
Signature · 7 lines
Chris Ricker [email protected] For if we may compare infinities, it would seem to require a greater infinity of power to cause the causes of effects, than to cause the effects themselves. -- Erasmus Darwin
From: Alan Cox <[email protected]>
Date: Sun, 2 Dec 2001 16:57:46 +0000 (GMT)
The main Red Hat test suite is a version of Cerberus (originally from VA and much extended), its all free software and its available somewhere although I don't have the URL to hand, Arjan ?
Quoted 1 line · Stanislav Meduna
"Alan Cox" at dec 01, 2001 09:18:15 said:
[...]
Quoted 10 lines
Quoted 3 lines
If you want a high quality, tested supported kernel which has been through extensive QA then use kernel for a reputable vendor, or do the QA work yourself or with other people.
Correct. But this has one problem - it is splitting resources. Pushing much of the QA work later in the process means that the bugs are found later, that there is more people doing this as absolutely necessary and that much more communication (and this can be the most important bottleneck) is needed as necessary.
Have you got any idea how QA is done in closed environments?
Quoted 3 lines
The need of the VM change is probably a classical example - why was it not clear at the 2.4.0-pre1, that the current implementation is broken to the point of no repair?
Perhaps because of the same phenomenon that made MS state "WinNT 4.0 has no flaws" when asked about a nasty problem shortly after release, and it is now at sp6a + numerous "hotfixes". Like Win2k which now has sp2. Like Solaris, which still is being fixed. Etc, ad nauseam. Complex software *has* bugs, bugs which aren't apparent except under unsusual circumstances are rarely found in the first round of bug chasing.
[...]
Quoted 2 lines
As a user of the vendor's kernel I have no idea what to do with a bug.
Report it to the vendor, through the documented channels?
Signature · 2 lines
Horst von Brand [email protected] Casilla 9G, Vin~a del Mar, Chile +56 32 672616
Quoted 1 line · Horst von Brand
Have you got any idea how QA is done in closed environments?
Yes I do. I write commercial sofware for 10 years and have experience with QA systems in two companies, one of them major. I think I have seen the full range of QA in various projects - from a complete negation to a silly buerocratic inefficient one.
Quoted 3 lines
Complex software *has* bugs, bugs which aren't apparent except under unsusual circumstances are rarely found in the first round of bug chasing.
Sure. But we now have 2.4.16, not 2.4.0 and guess what? - there is a big thread about fs corruption going right now in the l-k :-( This should _not_ happen in the stab{le,ilizing} series and if it happened, the cause should be identified and measures taken.
I for one think that the kernel has overgrown its current development model and that some _incremental_ steps in the direction of both more formal control and delegation of responsibilities are needed. I think that the most active kernel developers should discuss the future of the development model, as they are the only ones that can really come up with a solution.
It is of course only my opinion - if I am alone having it, forget it.
Quoted 4 lines
Quoted 2 lines
As a user of the vendor's kernel I have no idea what to do with a bug.
Report it to the vendor, through the documented channels?
Did this. It is two months, I did some cornering of the problem and augmented the report several times. The issue is still NEW, without any response asking to try a patch, supply more details or such. Yes, this speaks more of the vendor than of the Linux. But what impression do you think the average user gets from such experience?
Regards
Signature · 1 line
Stano
Quoted 1 line · Stanislav Meduna
Horst von Brand wrote:
[...]
Quoted 9 lines
Quoted 3 lines
Complex software *has* bugs, bugs which aren't apparent except under unsusual circumstances are rarely found in the first round of bug chasing.
Sure. But we now have 2.4.16, not 2.4.0 and guess what? - there is a big thread about fs corruption going right now in the l-k :-( This should _not_ happen in the stab{le,ilizing} series and if it happened, the cause should be identified and measures taken.
Glitches _do_ happen. IIRC, there have been _less_ in 2.4.x than before (might just be skewed perspective...).
Quoted 7 lines
I for one think that the kernel has overgrown its current development model and that some _incremental_ steps in the direction of both more formal control and delegation of responsibilities are needed. I think that the most active kernel developers should discuss the future of the development model, as they are the only ones that can really come up with a solution.
Right. Or somebody has to fork off a "QA-linux". Or people should help with QA (kernel-janitors, delelop tests, run tests and report back, ...)
[...]
Quoted 9 lines
Quoted 4 lines
Quoted 2 lines
As a user of the vendor's kernel I have no idea what to do with a bug.
Report it to the vendor, through the documented channels?
Did this. It is two months, I did some cornering of the problem and augmented the report several times. The issue is still NEW, without any response asking to try a patch, supply more details or such. Yes, this speaks more of the vendor than of the Linux.
Change vendor. That is one of the beauties of Linux: If your vendor doesn't get their act together, you can switch.
Quoted 2 lines
But what impression do you think the average user gets from such experience?
Bad, no doubt. But fear not, with the "marvelous engineering" of some vendors of closed products you wait for _years_ for fixes to severe bugs. So in perspective Linux only looks bad. They look horrible ;-/
Signature · 2 lines
Horst von Brand [email protected] Casilla 9G, Vin~a del Mar, Chile +56 32 672616
Quoted 6 lines · Stanislav Meduna
Throwing releases onto the public is not testing. Saying "it works/does not work for me" is not testing. Testing is _actively_ trying to break things, _very_ preferably by another person that wrote the code and to do it in documentable and reproducible way. I don't see many people doing it.
If someone sent me a whole slew of hardware and provided a me with a steady income so I didn't have to work, I could do this. But fact of the matter is, most of the people working on the kernel are doing it not for a living, but for fun or they enjoy it. They probably don't have the endless fields of hardware that vendors do. If the above is what you want, stick with vendor releases and not Linus (or maintainer) releases.
--
=====================================================================
Mohammad A. Haque http://www.haque.net/
[email protected]
"Alcohol and calculus don't mix. Developer/Project Lead
Don't drink and derive." --Unknown http://www.themes.org/
[email protected]
=====================================================================
Quoted 14 lines · Stanislav Meduna
Hello,
wow, what a nice discussion. I am reading the l-k through an archive, so please forgive me if I am going to say something that was already said, but I did not yet read it.
Quoted 1 line · Linus
Don't underestimate the power of survival of the fittest.
Well, your theory is really an interesting view on the software development. However, I think that there are some points that need some more discussion.
Quoted 7 lines
First, you are probably right in the long-term. The nature did have enough time for excursions in one or another direction - the "project" of life is several orders of magnitude older than a single generation. You say that it is possible to help the evolution. But you still need many generations to be sure that a good result at some stage is not only some statistical variance.
To make the process interesting long term, you need the periodic mass extinction to open up ecologic windows for new development. Absent that you would wind up stuck in some local optimum.
Quoted 10 lines
The technology does not IMHO work that way - Linux (Unix in all its flavours, Windows, ...) is very young.
We are not in the stage where life exists for millions of years. We are in the stage where the first cells have formed and are still quite vulnerable. There is only a thin line between survival as a kind and extinction (sp?). I think that in this stage not ignoring the role of the design is a good thing (and no, I don't believe in God :-)).
Quoted 7 lines
Besides that, are you talking about evolution in general, or about evolution of a particular kind? The competition is not the same in these cases.
Quoted 1 line
- massive undirected parallel development ("trial and error")
This is not what is happening here.
The current Linux environment is much like the accelerated change observed in directed breeding... say with breeding dogs or horses... with an "intelligence" pushing toward desired characteristics (instead of blind nature) progress is very rapid.
john alvord