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 (3)

  1. > Parsing, IR lowering, and scope resolution are all embarrassingly parallel

    Embarrassingly parallel?

    Replies (1)
    1. Replies (1)
      1. Yep. And in this case you can parse, resolve symbols, and lower each file without information from other files.

        Preserving that is one reason Zena has a very explicit import syntax and uses `this.x` like JavaScript: you have to name every symbol you import, and dereference all class members explicitly, precisely so you don't need other files to know if an identifier is valid.

        In a non-shared-heap language like Zena (because of Wasm GC), the question then becomes if the serialization cost of collecting those results into the checker thread pays for parallel parsing. So far it doesn't, so I haven't built workers for Zena just yet. That'll probably happen when I make the checker parallel.