An unofficial, read-only Hacker News reader. Join the beta →

The need for a formally verifiable mainstream programming language (opens external site)

321 points by todsacerdoti 1 day ago | blainehansen.me | 303 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. The way I see it is that there are 2 places where formal methods help: - Proof the absence of runtime-errors/panics - Proof functional correctness

    The sweet spot for many users is the first. Make sure that the application cannot crash. No array-out-of-bounds read/write, no memory issue on ANY input, formally proven at compile time.

    This requires additional work in the program to annotate (in SPARK at leasts) and knowledge from the programmer, which meant that there was a barrier to entry.

    Well, LLMs COMPLETELY remove this barrier to entry. You can write the logic and have the LLM add the contracts to get to the proof. This works in most cases.

    And then, for truly critical code, you can look at functional correctness as a cherry on top of your cheesecake.