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

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

305 points by todsacerdoti 18 hours ago | blainehansen.me | 297 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. > ParticleDB’s home page advertised that ParticleDB was “formally proven” with a TLA+ proof. However, during our collaboration no TLA+ specification was available. It is unclear what properties might be proven, or whether they described ParticleDB as built.

    That link is a pretty weak strawman. Also TLA+ is special in that it (usually) does not directly verify the implementation but a model of it.

    Replies (1)
    1. You can instrument the code to capture production traces and then verify them against the TLA+ model though. I think a programming language with that baked in as a first class citizen would be compelling. That's sort of the direction this stuff is heading it feels like anyway. Model in a smaller language that's more precise, fits in the context window better, and can explore the state space much more quickly than reasoning token by token, then build the thing based off the model, then validate that the implementation conforms to the model.