97 points · by dustingetz · 3y ago · 66 comments
Dijkstra was not always right and incontestably he had a taste for polemic, but damn the old man was wise.
The thing that the alchemists were on to was that the same ingredients can have different properties if you process them differently.
There was a lot they got wrong -- they were wrong about gold being a "property" of base matter that could be elicited by suitable processing, and they had no coherent model, and the field was rich with what we now understand to be superfluous mysticism. But, the argument goes, a clear-headed understanding of the situation would rank alchemy as a valid and legitimate precursor of modern materials science, alongside phlogiston and caloric theory. Wrong, to be sure, but far from stupid.
Dijkstra's critique is evidently, by his own analogy, along the lines of the critique of alchemy for being wrong, and assuming that in its wrongness, it therefore has no value at all.
But, taking the analogy more seriously, one can be more charitable. Modern programming is indeed alchemical in character, it captures important insights about what is possible at scale, and produces products that are useful. It lacks a model, there is no theoretical bridge yet between the foundations of logic and Dijkstra's Very Large Scale Applied Logic. It is instead a grab-bag of tools, and doubtless the domain of some superfluous mysticism.
A model is desirable, and putting programming practice on a sound logical footing is a fine idea. But we also should not let our prejudice for reductive solutions blind us to the utility of what has been achieved by the people forging ahead in their absence.
Many functional programming languages are based on formal logic. For example, Haskell is based on an augmented System-F.
However, by 2001, the failure rate was so high that the department moved to Java, much to Dijkstra's chagrin: https://chrisdone.com/posts/dijkstra-haskell-java/
The UTCS undergrad program has been "nerfed" twice since the 1990s - in 2001 and in in 2014. Various political interests during the first tech bubble - to produce more graduates - and later, to have more under-represented minorities, have dramatically reduced what Dijkstra pushed for.
This was the key fact. They knew how to program Pascal from Computer Science AP and got 5's on the AP exams and came into UT Austin with abundant confidence but when presented with hardcore mathematical logic data structures and algorithm analysis in functional programming starting week 1 of college they got the rug pulled out from the under them. Of course, this was real computer science, not "infantile" imperative/OOP programming.
Ham "Haskell" Richardson was a total fanboy of Dijkstra!
I will note that the current 1st UTCS course is a serious joke - CS312 was a remedial course, non-counting for major, before 2014, called CS 305J. It's an embarrassment compared to Berkeley's CS61A.
All this tells me is that if CS concepts don't click for you instantly you were out - even though this is a terrible heuristic for who would make a good engineer (or good computer scientist, whatever the goal is).
But for quite some, it was indeed eye opening and they left for something else. It is a bit brutal, but effective and it gets the message across. If you don't want to struggle to learn the basics, you are wrong in computer science.
That doesn't mean, you cannot become a programmer, there is another formal path of doing so, but attaining a university does mean playing at another level. (or well, if should mean that, I got to learn too many who just learned to play the bullshitbingo)
This question is worth taking seriously. I've seen a study of a slower course that found that, nevertheless, there was no difference in the number of students who could understand basic variable assignments between the start and at the end; either they "got it" straight away or not at all.
Computer Science != programming. This memo by Dijkstra is pretty much agreeing with that (though complaining about the existence of non-CS programming).
> Mathematical elegance, conceptual simplicity, and their companion, brevity of an unambiguous reference manual, are a condition sine qua non for any [software] product reliable enough to attain stability.
> Needless to say, this sober message is unacceptable. Simplicity requires hard work to be obtained and education for its appreciation, and complexity sells much better.
This is some hard-hitting stuff. Very interesting, thanks!
See, e.g., the ascendancy of Kubernetes.
For a product it in the end has to work in the real world, considering available time, resources and requirements (which often tolerate some failure rate)
Strict science is important for progress, engineering can bring it to application.
- EWD
A beautiful and scathing critique.
There's this quote that any sufficiently advanced tech is indistinguishable from magic. They probably didn't realize this was also true for the creators of that tech.
https://www.newyorker.com/magazine/2019/10/14/can-a-machine-...
https://twitter.com/ilyasut/status/1486728489319362571?lang=...
Knuth’s the Art of Computer Programming volume 3 has some more on this. Off the top of my head he writes that it took something like a decade from the first published binary search to the first correct for all inputs version.
This is a bar that you would expect a professor to be able to jump over, but it goes to show that sometimes a simple sounding algorithm can be exceedingly tricky to get right. In my experience some kind of Hoare triple derived methodology with invariants is the only reliable way to code a correct binary search from scratch, as opposed to simply having memorized a solution. Here[1] is what at a glance appears to be a readable and correct example of how one might do that.
[1] https://zhu45.org/posts/2018/Jan/12/how-to-write-binary-sear...
[1] Edsger Dijkstra interview, https://youtu.be/mLEOZO1GwVc?t=282
An approach that works best if you get to pick your own, narrowly defined problems, and do not deal with externally imposed, let alone changing, requirements. It utterly does not scale.
I'm not entirely sure when the last time was that Dijkstra actually typed a line of code into a computer (or punched it into a card, as the case may have been), but it appears to have been around the early 1970s. So, like the Pope's pronunciations on sex, Dijkstra's pronunciations on programming derive a lot of their clearcut purity by coming from a non-practitioner.
Are you aware that among the “narrowly defined problems, and do not deal with externally imposed, let alone changing, requirements” that Dijkstra solved are such doozies as distributed consensus, synchronization, and OS level hardware interrupt handling?
If you think solving problems by constant trial-and-error is the norm and Dijkstra's idealized mathematically disciplined systematic approach methods can well be ignored, then i fear you have not understood the difference between Science, Engineering and Craftsmanship/Tradesmanship (without formal training).
>I'm not entirely sure when the last time was that Dijkstra actually typed a line of code into a computer ... coming from a non-practitioner.
This is laughable. By this logic every code monkey today (including myself) is better than Dijkstra because we simply have written a larger volume of code and that too in many different languages!
One needs to practice Humility when approaching the Words/Works of Masters and try to understand them instead of being dismissive. I keep the following quote by Arthur Conan Doyle from the novel The Valley of Fear in mind when studying the Greats;
Mediocrity knows nothing higher than itself, but Talent instantly recognizes Genius.
You might find the following two papers relevant :
1) This paper gives a retrospective on a earlier seminal paper by the author himself (what he got wrong and what he got right) : Retrospective: An Axiomatic Basis For Computer Programming by C.A.R. Hoare - https://cacm.acm.org/magazines/2009/10/42360-retrospective-a...
2) A Rational Design Process: How and Why to Fake it by D. L. Parnas (pdf) - https://users.ece.utexas.edu/~perry/education/SE-Intro/fakei...
> The main difficulty is high dimensionality. We simply do not have mathematical frameworks to analyze structures in the 100s of dimensions.
The main difficulty in deep learning is the non-convexity of the optimization problem. We can handle simpler problems in high dimensions just fine. The oracle complexity bounds for projected gradient descent in convex optimization even hold for infinite-dimensional problems - see work of Nesterov.
Most of the hard questions about deep learning remain hard even for neural networks with low-dimensional inputs, outputs, and hidden layers. Also, some of the more fruitful approaches in deep learning theory involve taking the limit as the width of one network layer goes to infinity.
> For some reason, theoretical computer science seem to contribute quite little to the practical deep learning world, while primarily concerning itself with the complexity theory and computability questions. Fun stuff, but... Somebody needs to do this.
Lots of theoretical researchers are trying to figure out why deep learning works. Check out the work of Jason Lee, Simon Du, Sebastien Bubeck, etc. Most of these researchers have a CS background.
Does anyone know what study he was referring to?
One of my pet theories is that IT is a net loss for most businesses and that they would be better off with one designated computer for Excel batch jobs. Instead they should use cabinets, folders and paper mail.
Not joking and zero sarcasm.
The amount of work it takes to keep a paper based environment organised seems insane. The amount of work it takes to share information in a paper based is crazy. Maybe not so much if it's just a small business, but anything bigger you need to run your own postal service with people sending letters all the time to each other complemented with dedicated personnel for "bulk deliveries" (like bellboys they carry heaps of folders from room to room) and dedicated personnel to organise the archive and the retrieval. There's an insane latency when you're not in the same building and even when this is the case deliveries can still take a day or two. I only got a peek into the inner working of courts here when they were still very, very paper based (it change the last 5,10 years) and it felt like you were at some post logistics centre. People running around with luggage containers filled with files.
I have never seen this in a smaller setting, I imagine it's easier because you can just speak to each other.
My feeling is just that there is no order anymore.
When I visited my dad (DoD bureaucrat) or mum (dentist) as a child there were so much order with secretaries and file cabinet rooms.
The cost of sending letters or filing documents worked as a filter I guess. No data format was ever invalid. Just put the paper in the folder. There was no "computer says no" for the clerks. Also, there was a limit in how convuluted processes you can practically have without computer programs.
The main thing was probably that you had to have secretaries keeping order. They are gone now.
I have never experienced that order where I have worked (I am 34). But I see it in remaints of the late 90s early 00s documentation and old file cabinets for prior projects.
Nowadays everything just disappear in some network folder black hole and employee attrition.
Answer? > "..the alchemists, who, in their effort to make gold from cheap base materials, at least attack a problem of the highest social relevance, viz. enable the government to finance its wars without inflicting poverty on the people."
Supposedly the Roman Emperor Diocletian persecuted the alchemists of that era because he feared they'd be able to make gold and raise armies to attack the Roman Empire (and/or debase the Russian currency). This likely set back the state of chemical knowledge, possibly for centuries.
P.S. Nuclear transmutation of elements is now quite common; unfortunately nobody has figured out how to get just the desired isotopic species of an single element from nuclear reaction instead of a pile of unstable isotopes of mixed elemental identity.
I think centrifugation would get the job done, but it is just not worth the effort at those small quantities.
A lot of people would perhaps be initially impressed. But then they would grow to dislike the fact that the system encourages things like proofs of correctness.[1] They would dislike the fact, or the idea, that they would have to adopt to project conventions and processes that involved that kind of work in order to get their changes merged. That’s friction. And you have to deal with the intrinsic complexity more or less up-front.
Then some time passes and an alternative system comes out. But this system is easier to use. It’s easier to use because it helps you 90% of the way to write and implement those same ten different things. So maybe there are no specifications, and there are certainly no proofs, and certainly no guarantess that X will always be the case or that Y will never be the case. This lack of guarantees gets lauded as “pragmatic”.
In order to try to make up for the missing 10%, fuzzing libraries are written, CI pipelines are set up, everyone is encouraged to write more tests, and more process is added to code reviews. In part because “You are supposed to always do Z, anyway”.
A downside is that you went from having firm guarantees (even with asterisks since they would point you to things like trusted kernels) to having no guarantees. The only guarantee that you have is right after you have run your somewhat lean six minute test suite just before committing: you know that your changes are good modulo those tests since you just ran them. Then you submit a PR and the remote CI reruns the tests.
In the end, with all those code reviews and unit tests and whatnot, you look around and see only blobs of imperative code that could in principle do anything. So you add more sandboxes and security layers. Because, the low-level programmer interjects, “it’s all imperative code under the hood [anyway]”.
[1] Only “encourages” since you can e.g. write stringly-typed programs even in Idris.
Nit: likely Muslims did not burn down the library of Alexandria, it was burned many times before by Romans and other conquerors
Source: https://www.quora.com/Did-the-Muslims-destroy-the-library-of...
That would be the case if we had found a process that produces gold, but we would not have a way to explain it, right?
> "All stable processes we shall predict. All unstable processes we shall control." — JvN
* in which I learned, among many other things, about https://en.wikipedia.org/wiki/Klára_Dán_von_Neumann 's hacking skill.