An unofficial, read-only Hacker News reader.

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

338 points by todsacerdoti 1 day ago | blainehansen.me | 314 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. This looks interesting, I've been wanting a TypeScript-like language which compiles to native without all the baggage of JavaScript. Does it also support generating native binaries, or only WASM?

    edit: I looked at the features on the website, I don't see anything about multi-threading, is it supported? And how about interoperability with native libraries like SQLite/QT/etc?

    Replies (1)
    1. It only supports Wasm for now. There are Wasm-to-native compilers, like Wastrel [1], which is my preferred approach to supporting native, but I haven't tried it yet. I don't think it would be too difficult these days to plug into LLVM either, but that greatly complicates the toolchain. Right now the compiler and every related tool runs as Wasm.

      WebAssembly is pretty core to my main goals with Zena though: being able to run plugins, generated code, on-demand loaded apps, and other untrusted code is the whole reason why I use Wasm, and wanting a great language for Wasm is the whole reason I'm making Zena. Compiling to native would leave a lot of that out.

      There's no multi-threading or any parallelism yet. Wasm GC doesn't support threads yet, and that's a while out if it ever lands, so we'll need some kind of worker/actor system. I don't just want to copy JS workers though, since those are so difficult to use. I'm much more interested in the type system encoding whether data is parallel-safe so I've been working on ownership/borrowing, value types, and immutable types to hopefully come together to form a one-writer / multi-reader, or shared immutable data, worker API, enforced by the type and borrow checker.

      [1]: https://www.wingolog.org/archives/2025/10/30/wastrel-a-profl...

      Replies (1)
      1. Thanks! I am not a Rust programmer but I hear that it has a pretty safe and solid multi-threading system. Might be something you can take inspiration from. Also, Kotlin coroutines are nice, but I am not sure if they are true multi-threading or just single-thread like JS. Overall the project looks nice, definitely filling a gap in the language ecosystem.