News for hackers. Stuff that matters.
Re:Edsger Dijkstra – The Man Who Carried Computer Science on... by amw-zero on Friday October 30, 2020 @09:00PM (#24948233)
I wouldn’t say he tried to destroy functional programming. If you read his response he pretty clearly says that he just thinks that FP as a solution to all problems is “overselling” the solution.

And I 100% agree. Thinking that functional programming solves all problems is a fundamental misunderstanding of computation.

The first thing that opened my eyes to the overselling of FP as a panacea was reading Leslie Lamport’s work, specifically Computation and State Machines: https://lamport.azurewebsites.net/pubs/state-machine.pdf. Specifically, in Section 3: Programs as State Machines, he demonstrates how the same algorithm for computing factorials can be implemented via mutation or recursion.

With TLA+, Lamport also showed that mutation and state can be reasoned about mathematically, contrary to the central claim of functional programming purists.

The point is simple: functional programming doesn’t in any way _inherently_ help with correctly implementing programs. The fact that FP is currently in vogue is simply another example of how humans don’t require any evidence of anything at all before following a belief system blindly.

FP does prevent certain classes of mistakes from happening, i.e. unintentional bugs due to mutation creating implicit state machines. But preventing bugs and aiding in correctness aren’t exactly the same thing.

Re:Edsger Dijkstra – The Man Who Carried Computer Science on... by User23 on Saturday October 31, 2020 @01:11AM (#24949275)
Lamport is a giant and one of the greatest living computing scientists. He's also getting more and more Dijkstra-like. I say that with full admiration.
Re:Edsger Dijkstra – The Man Who Carried Computer Science on... by amw-zero on Saturday October 31, 2020 @05:01PM (#24955169)
Even if I don’t use it at work, learning TLA+ has changed the depth of my understanding of software.