6 ms·
Is worse really better though? Imagine C was designed the MIT way. Sure it would have taken a few more years, but maybe we could have avoided the billions of da
by typon 6y ago
Is worse really better though? Imagine C was designed the MIT way. Sure it would have taken a few more years, but maybe we could have avoided the billions of damages in security bugs and productivity loss. I think worse is better if you want to win the Silicon Valley race, but not if you want to design something useful for society.
- ZitchDog 6y agoThe problem is that something worse will always get made more quickly and gain traction.
- BrendanEich 6y agoThe "gain traction" part requires more care to assert, it's not just something worse getting made that ensures this. Bad is just bad, and so sometimes worse is not better ;-). What RPG described was good-enough but worse in New Jersey vs. MIT sense, not the cathedral or Fabergé egg: the farmer-hack from Murray Hill. Good enough + "Who's on first" and iteration win.
- bsdetector 6y agoAda was designed a few years before C and it could do much more than C and without the problems you mentioned. So we don't have to wonder at all, it would have turned out exactly the way it did and the reason is because things like undefined behavior, zero terminated strings, null pointers, etc have positive utility underappreciated by academics.
- csb6 6y agoThat’s not really a good comparison. The reason C has been so prevalent is because it was used to make Unix, which was distributed widely for decades, and because it was relatively simple to write compilers for it/port it to new platforms. Ada doesn’t exist in the same context; compilers were expensive and not widely distributed, there wasn’t a free, open-source compiler until GNAT in 1995, and Ada was never the default systems language for any widely distributed OS. I mean the circumstances could not be more different. If C had been designed as a safer language (with even just small improvements that would not have been hard to implement), it would still be widely used and there would be fewer security problems associated with it. It is the Just World Fallacy [0] to assume that the most widespread language became so on its merits and not based on its historical context. [0] https://en.m.wikipedia.org/wiki/Just-world_hypothesis https://en.m.wikipedia.org/wiki/Just-world_hypothesis
- jecel 6y agoThe connection with Unix was indeed a huge factor in the popularization of C. About Ada, it is actually a decade newer than C. In 1982 I was part of a group that was keeping track of its development and had learned C from old Bell Journals. I was able to a buy a book on Ada and the famous K&R C book and decided I preferred simplicity, so I donated the Ada book and dropped out of the study group. It is ironic that the even more complex (than Ada) C++ was what eventually became popular.
- BrendanEich 6y agoC history: https://www.bell-labs.com/usr/dmr/www/chist.html https://www.bell-labs.com/usr/dmr/www/chist.html Ada history: https://www.adahome.com/History/ https://www.adahome.com/History/ FYI, I worked on a self-hosted Ada compiler as a grad student intern at Rolm (the Mil-Spec computer side, not the digital PBX side) in the summer of 1984.
- csb6 6y agoVery cool! I’ve used Ada in my spare time, and it has a lot of good features that I wish C-family languages had (like strong typedefs, no implicit conversions, better ways to do things than passing pointers around, arrays that don't decay into pointers, and types constrained to ranges). It is a lot more complex than C, but it feels a lot easier to read, and while it takes longer to write (for me) than C, it has a lot fewer weird edge cases/quirks to it than C does. It also seems to have more powerful ways to set the exact machine representation of types than C.
- bdavis__ 6y agoIn the early 1990's a hardware vendor demo'ed an ada compiler at a customer site. Fortran compile of a subroutine was about 30 seconds, link of an executable was about 5 minutes. We booted the ada disk first thing in the morning, changed some writeln() statements, and kicked off the build. After lunch, the executable was ready (this was not "hello world", but a system with maybe 50K SLOC. Not practical on that date, with machines that existed. As for writing code that worked, and eliminating defects by language design, ada has no peer. Even in 2021. Today compile time is not a problem.
- throwawayboise 6y agoAt around that time, I would see multi-hour delays on compiles of COBOL code on a busy mainframe. Not because the compiles really took a long time, but because the development region could not keep up with the submission rate of compile jobs from developers. That aside, work got done. You spent a little more time checking your code for errors instead of letting the compiler do it.
- adolph 6y agoThe curious task of economics is to demonstrate to men how little they really know about what they imagine the can design. https://www.goodreads.com/author/quotes/670307.Friedrich_A_Hayek https://www.goodreads.com/author/quotes/670307.Friedrich_A_H... Did you listen to Eich’s statements acknowledging the errors and also the hypothesis of what would have been if not JavaScript? Since you have done some accounting, what have been the productivity gains and new frontiers opened by C? What is the amortization of damage over the length of delay?
- BrendanEich 6y agoRichard P. Gabriel observed WiB in era of Lisp vs Unix, MIT vs New Jersey. Silicon Valley on the other coast and small then. Also see Dorothy Denning, talking about the Windows PC era. https://faculty.nps.edu/dedennin/publications/National%20Computer%20Systems%20Security%20Award%20Speech.htm https://faculty.nps.edu/dedennin/publications/National%20Com... Redmond is in WA not CA. If your point is about commercial pressure, not just SV bashing, then please listen to my tale of David Hyatt and grad school friend (Hyatt writing draft code and rewriting five times) from the interview with Lex. That was an academic assignment, not commercial work.
- BrendanEich 6y agoHyatt anecdote at https://www.youtube.com/watch?t=6855&v=krB0enBeSiE&feature=youtu.be https://www.youtube.com/watch?t=6855&v=krB0enBeSiE&feature=y.... The point is not about Silicon Valley, commercialization of the Web (although as Dorothy Denning observed, the pre-Web Academic Internet was a more secure world only because not many attackers yet), or academic pressure. WiB applies to biology. I have friends at a synth-bio startup, one tweeted humorously the other month about how bad a hack evolution is!