Re:Linus Torvalds on Garbage Collection (2002)
by ilcavero on Friday April 22, 2011 @11:19AM
(#2474322)
~$5k for 7 KLOC of bug free C code is a steal, that's impossible to do in less than a couple of months
[ Parent
| on HN ]
Re:Linus Torvalds on Garbage Collection (2002)
by kragen on Friday April 22, 2011 @11:46AM
(#2474418)
It's nearly impossible to do in any timeframe. I can think of perhaps two examples in human history where I think it's been done: qmail and seL4. And there may still be bugs in qmail. There may be a few other non-public projects that have achieved less than one bug per 7000 lines of C, but probably not more than one or two.
Re:Linus Torvalds on Garbage Collection (2002)
by fanf2 on Saturday April 23, 2011 @04:40PM
(#2477549)
http://www.dt.e-technik.uni-dortmund.de/~ma/qmail-bugs
There are also some DNS-related bugs that are not on this list.
Re:Linus Torvalds on Garbage Collection (2002)
by kragen on Saturday April 23, 2011 @10:35PM
(#2478156)
Thanks! I hadn't seen those, although I knew of 1.4. I think 1.1, 1.3, and 1.4 are actual bugs, if the reports are accurate; I'm pretty sure Dan disagreed with Wietse about 1.1. Three bugs in about 15000 lines of code doesn't quite rise to the level of less than one bug per 7000 lines of code, so maybe that's only been done once, in seL4.
What are the DNS-related bugs?
Re:Linus Torvalds on Garbage Collection (2002)
by abcd_f on Friday April 22, 2011 @12:03PM
(#2474465)
Beg to differ on both points.
Ignoring the 7 KLOC metric (which is fairly useless in estimating the project value for the customer), $5K at $100/h rate of a senior C programmer on a contract works out to about 6 working days, which is a reasonable timeframe for writing well optimized XML-RPC protocol parser. In other words it's neither a steal nor does it take two months to write.
(edit) YMMV by a programmer, but that's what it would've taken me to write it (though I have written a good deal of protocol parsers).
1+KLOCs a day of C? WTF?
Re:Linus Torvalds on Garbage Collection (2002)
by rdouble on Friday April 22, 2011 @12:23PM
(#2474527)
Compared to other languages, C is pretty straightforward. You also have to write more of it to do less. I switched back to C after 12 years of using web scripting languages, and am surprised at how much more code I churn out per day.