An unofficial, read-only Hacker News reader.

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

343 points by todsacerdoti 2 days ago | blainehansen.me | 318 comments on HN

View full thread · View on Hacker News

Comment thread (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.