← Back to Tech Radar
Hacker News tech

Why Writing Correct Software Is Hard

Trending on Hacker News: Why Writing Correct Software Is Hard (336 points / 150 comments, via pron.github.io)

In one line

We try to understand the relationship between programs and correctness, and in particular, why writing correct programs must be hard. We will review results from computability theory and complexity theory, and see that programs and complete understanding – which is required for correctness – are fundamentally at odds.

Opening excerpt

I was very happy to speak at Curry On once again. Last year, following our work with Quasar, I spoke on continuations vs. monads . This year I gave a talk about computational complexity results in software verification, a subject I became interested in while formally specifying and verifying our upcoming revamped version of Galaxy.

What follows is an extended version of the talk (embedded above), containing some additional proofs and results I didn’t have time to cover, complete with footnotes, for those wishing to study the topics further. Reading time: ~45 mins.

In this article, we try to understand the relationship between programs and correctness, and in particular, why writing correct programs is hard. We will review results from computability theory and complexity theory, and see that programs and complete understanding – which is required for correctness – are fundamentally at odds. The main contribution of this text is aggregating in one place some results (as well as some references) pertaining to the essential difficulty of producing correct software.

(Excerpted from the original; full article via the source link below.)

This story hit the Hacker News front page today (336 points / 150 comments, via pron.github.io). Our Tech Radar aggregates daily signals on AI engineering, backend architecture and DevOps — browse the related services and further reading below, or get in touch with our team.

Source: Hacker News

Related Services

Related Reading