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

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

308 points by todsacerdoti 19 hours ago | blainehansen.me | 299 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. Again the OP makes the provably incorrect assumption that the current state of code generation and validation cannot meet quality standards.

    I’ve been doing it with a custom engineering harness on top of Claude Code for a year.

    I certainly see the desire for a validation framework in code generation, but until we invent that and migrate the entire world to it, let’s focus on discipline.

    The reality the OP sees isn’t wrong. Most of what I see publicly is trash. Undisciplined vibe coders are in a death spiral of agentic madness.

    But if you bring discipline to software construction, you can extract high-quality results.

    We still need requirements. We still need invariants. We still need wireframes. We still need user experience design.

    Then we reach into history and bring back Functional Design Specifications.

    Add TDD, DDD, behavior testing, mutation verification. And finally people need to use it for the final validation.

    Now you have a disciplined approach that works today.

    Replies (2)
    1. I feel many, if not most, of these arguments basically reduce to some variant of “use Haskell/OCaml with spec-style tests”.

      Exhaustiveness guarantees, compiler verification and feedback, powerful language features to create high-level domain syntax and languages, pure functions commonly used, and specifications/tests that can be read aloud in English and understood by domain experts… they’re even token efficient.

      Replies (1)
      1. Having just designed and built a new modeling DSL for interactive fiction I can tell you that the ‘exhaustive’ part is infinite recursion.

        There will always be another use case.

        Maybe something like Lean can be achieved, but constructing software in relation to a business model is vastly more complex than math.

        We wouldn’t have Lean. We’d have Lean for every domain with variations for every business.

    2. > cannot meet quality standards

      I think it's more that many may argue we never really reached high enough quality standards, irrespective of vibe coding. I also think that with good usage, LLMs can produce good code, but if we could also raise the bar while we are at it, why not?

      Replies (1)
      1. This is true and all of the “weird” system failures recently are examples of decades of tech debt exposed by the latest LLMs.

        It’s a huge vindication of all the architects and engineers that expressed dismay at management for not providing time to address that tech debt in real-time.

        Even better. Management can never ignore tech debt ever again!

        But at the same time we (architects and engineers) will be responsible for hardening our deployed systems.

        I’m cool with that. That’s what I’ve been begging for my entire career.

        But the problem isn’t having a fancy DSL. It’s just old school, boring, engineering discipline.