13 ms·
A Plea for Lean Software (1995) [pdf]
- Rochus 6y ago> Nikolaus Wirth: A Plea for Lean Software (1995) He spells Niklaus, see https://en.wikipedia.org/wiki/Niklaus_Wirth https://en.wikipedia.org/wiki/Niklaus_Wirth. And yes, he has a sound, pragmatic attitude towards software systems. Nikolaus is another famous person.
- tosh 6y agoty!
- jll29 6y agoNikolaus with an "o" aka St. Nicholas or (Saint) Nicholas of Bari, was an early Christian bishop of Greek descent based in what is now Demre, Turkey.
- Rochus 6y agoLong before computer science, even though the ideological attitudes might be similar ;-)
- zeveb 6y ago> (Saint) Nicholas of Bari Of Myra, actually — his relics were stolen from his tomb in Myra by sailors from Bari, where they remain today, but he probably never even visited there.
- wombatmobile 6y agoIn 1931 the Coca-Cola Company began placing Coca-Cola ads in popular magazines. Archie Lee, the D'Arcy Advertising Agency executive working with The Coca-Cola Company, wanted the campaign to show a wholesome Santa who was both realistic and symbolic. So Coca-Cola commissioned Michigan-born illustrator Haddon Sundblom to develop advertising images using Santa Claus. For inspiration, Sundblom turned to Clement Clark Moore's 1822 poem "A Visit From St. Nicholas" (commonly called "'Twas the Night Before Christmas"). Moore's description of St. Nick led to an image of a warm, friendly, pleasantly plump and human Santa. (And even though it's often said that Santa wears a red coat because red is the color of Coca-Cola, Santa appeared in a red coat before Sundblom painted him.) In the beginning, Sundblom painted the image of Santa using a live model — his friend Lou Prentiss, a retired salesman. When Prentiss passed away, Sundblom used himself as a model, painting while looking into a mirror.
- kummappp 6y ago'strongly typed language increases the productivity' How was this tested? Was there a control group? I would argue that currently Javascript and Python have been greatly improving the productivity. The type system works well in the maintenance, API definitions and 'no unit tests' scenarios, but when you have to do something you don't have yet any clue about -for exmple at the start of a years long app development project, the type system is just in the way.
- Rochus 6y agoI assume we agree that "productivity" doesn't just cover writing code, but also avoiding/finding bugs and maintaining the code over a long period by different people. TypeScript is a big progress over JavaScript in this respect.
- mcv 6y agoThat's not my experience, sadly. We switched from Javascript to Typescript over a year ago, on a fairly new project, but it mostly results in more errors that need to be fixed, that wouldn't have been errors in Javascript. Being able to specify interfaces is absolutely nice, but overall I'm not convinced it's worth the trouble.
- Sharlin 6y agoWhat sort of errors wouldn’t have been errors in JS?
- AnIdiotOnTheNet 6y agoThe ones that are hellishly difficult to diagnose bugs waiting to be discovered I'll bet.
- mcv 6y agoNo, just the trivial boilerplate stuff. Forgetting to declare `this` as a parameter, for example.
- jll29 6y agoIt is worth re-posting this, and re-reading Wirth's works every couple of years. The module concept of Oberon's predecessor Modula-2 is still unrivalled today: .def modules that specify the interface and that can be compiled separately from their .mod implementations, which may not even exist when a client application can already be coded against the compiled interface in a type-safe way. Also, Wirth's book Compilerbau (in German, not sure if it was translated) is a piece of pristine clarity; at just ~100 pages in pocket paperback form, everyone reading it immediately feels writing a compiler or byte-code interpreter is simple and they can do it.
- Rochus 6y ago> The module concept of Oberon's predecessor Modula-2 is still unrivalled today The module concept of Oberon is also very good (leaner than Modula's). There are also other languages with good module concepts, e.g. Ada, or the CLR based languages. > Wirth's book Compilerbau ... is a piece of pristine clarity For a certain type of compiler (rarely used today).
- mhd 6y agoThat would be "Compiler Construction", the last version being freely available[1]. Given that Oberon is a simpler language than pretty much all of its predecessors and that the latest revision went even further, I'd be interested what Wirth does think about contemporary strongly typed system languages like Rust or Go (the latter being quite, erm, influenced by Oberon). Or heck, Eiffel, being the language of his successor at ETH Zürich. IIRC he didn't have a high opinion of functional programming. [1]: https://people.inf.ethz.ch/wirth/CompilerConstruction/index.html https://people.inf.ethz.ch/wirth/CompilerConstruction/index....
- mhd 6y agoAh, found it here[1]: "To postulate a state-less model of computation on top of a machinery whose most eminent characteristic is state, seems to be an odd idea, to say the least. The gap between model and machinery is wide, and therefore costly to bridge." [1]: https://people.inf.ethz.ch/wirth/Articles/GoodIdeas_origFig.pdf https://people.inf.ethz.ch/wirth/Articles/GoodIdeas_origFig....
- wombatmobile 6y ago"With Project Oberon we have demonstrated that flexible and powerful systems can be built with substantially fewer resources in less time than usual. The plague of software explosion is not a "law of nature." What then, in the software world, is a "law of nature", and how might we discover such a law/s by examining evidence, such as, the evidence deposited over the last 25 years of software proliferation? Might we examine source code, or executable code? Or number of users? Or revenue from sales? Or aesthetic qualities of the source code, such as structure, legibility, or maintainability, or portability; or qualities of the executable code, such as size, performance, or intuitiveness of the UI?
- eterps 6y agoOne thing that has been sorely missing IMO in the last 25 years of software proliferation is a complete usable system that can be understood in its entirety by a single human being in one lifetime. It doesn't have to be your day-to-day desktop, but for learning, research and experimenting I think solutions with that goal would still be worthwhile.
- chriswarbo 6y agoViewpoints Research Institute (VPRI) tried to make such a system around 10 years ago http://www.vpri.org http://www.vpri.org (e.g. http://www.vpri.org/pdf/tr2012001_steps.pdf http://www.vpri.org/pdf/tr2012001_steps.pdf ) IIRC it bootstraps from a prescheme-like language into a Smalltalk-like dynamic language ( https://www.piumarta.com/software/maru https://www.piumarta.com/software/maru https://www.piumarta.com/software/cola https://www.piumarta.com/software/cola ), and uses PEG parsers ( https://en.wikipedia.org/wiki/OMeta https://en.wikipedia.org/wiki/OMeta ) to implement domain-specific languages, e.g. the Nile graphics language ( https://github.com/damelang/nile https://github.com/damelang/nile )
- eterps 6y agoThanks, I am aware of the research at VPRI. However nothing coherent seems to have come out of it. Yet I am running a complete Oberon system on my laptop as we speak. And all source and documentation is available at http://www.projectoberon.com http://www.projectoberon.com I really liked the idea though.
- dzonga 6y agocrazy back then, people were still complaining about c and c++. c, easy language to get started, but a bazooka to your foot and head.
- hinkley 6y agoDidn't we just complain about C++ this weekend?
- Gibbon1 6y agoI feel like C is like the old joke where a man goes to the doctor and says, doc I got broken bones in a dozen places. And the doctor says, well stay out of them places.
- pjmlp 6y agoSee Azure Sphere for such example, while MSR advocates moving away from it, the Azure Sphere team has decided otherwise, advocating its use as main SDK language, due to market culture. The expected end result, in spite of the mitigations put in place, is the Azure Sphere 20.07 Security Enhancements bug fixes release. https://techcommunity.microsoft.com/t5/internet-of-things/azure-sphere-20-07-security-enhancements/ba-p/1548973 https://techcommunity.microsoft.com/t5/internet-of-things/az...
- Gibbon1 6y agoJoke cuts both ways. I write firmware in C because flash memory costs us money. I wouldn't recommend C or C++ otherwise. Stay away. On the other hand C is kind docile as long as you avoid doing 'insert long list of sketchy stuff'.
- theptip 6y agoI don't really buy the core premise that "Enhanced user convenience and functionality supposedly justify the increased size of software, but a closer look reveals these justifications to be shaky". Users can still choose to use vi, or emacs, or textpad, or whatever stripped-down, fast, minimalist software they prefer; the old stuff hasn't gone away. Meanwhile, my IDE re-compiles/re-parses my program as I type, and tells me immediately if there are errors. I choose to use the bigger, "slower" program because it makes me dramatically more productive. Sure, input latency might not be as good as a barebones editor, but that cost more than pays for itself (as always, for me -- YMMV). I can appreciate the aesthetic desire for a lean, minimal program, but to ignore the very real productivity benefits that come from tolerating larger programs is, I think, myopic. This comes up around here a lot in the context of slow web pages; a very important thing to note that I think is often overlooked is that it's not just the user's productivity that matters. If developers have to spend 2x the time optimizing their code to fit in a limited memory allocation, then that's 2x the cost to the consumer for the same amount of features (or 1/2 the features for the same price). If speed/performance is a feature that your customers want to pay for, they will let you know. If it's not, then your competitor will eat your lunch by building more features that users actually care about, while you optimize your existing feature-set. Programs are bounded by "feels slow" on one side, and "expensive to optimize further" on the other. If 99.9% of your users (i.e. the lay users, excluding the experts in the HN crowd) don't perceive your program/page to be slow, why would you optimize further? Sure, if you're Google, a few ms faster can equate to millions of dollars of revenue, but that's not the fitness landscape that most software evolves in.
- minimuffins 6y ago> "If speed/performance is a feature that your customers want to pay for, they will let you know. If it's not, then your competitor will eat your lunch" This doesn't really disagree with the argument from the piece. You could summarize this line of thinking this way: The pressures at work in the software market drive us to create slower and slower software. It seems like everyone actually agrees on that point. The only real disagreement seems to be how to respond to the fact. It's either, "Well shucks, that's just the way it is. At least I have auto-complete" or a feeling that, despite the pressures to just bloat and expand and slow down forever, it would be nice if we tried to combat it.
- dang 6y agoIf curious see also 2018 https://news.ycombinator.com/item?id=17872400 https://news.ycombinator.com/item?id=17872400 2014 https://news.ycombinator.com/item?id=8537970 https://news.ycombinator.com/item?id=8537970 2014 (and better) https://news.ycombinator.com/item?id=8301511 https://news.ycombinator.com/item?id=8301511
- mro_name 6y agothank you very much for this official resource, I just knew djb's copy. There's also the predecessor in german reading "Die Software Explosion" https://darknet.mro.name/1994-wirth-explosion.txt https://darknet.mro.name/1994-wirth-explosion.txt IMO a great read for everybody interested in long-term reliability or sustainability.