logoalt Hacker News

spankalee • today at 7:11 AM • 4 replies • view on HN

Wow, I feel like Blaine is describe a language a lot like the one I'm working on now, Zena: https://zena-lang.dev/

I started Zena from wanting a TypeScript-like syntax that compiled to very efficient WebAssembly GC, and AssemblyScript had issues...

The motivation for targeting Wasm was as a good sandboxing and orchestration unit for AI-generated code. So, out of both general PL curiosity and enthusiasm, and an attempt to make a language that's good for AI generation, I started adding what I thought were the best features from other languages with a lot of focus on correctness, structure, and optimizability: pattern matching with exhaustiveness checking, ADTs and sum types via sealed classes, value types, async cancelation / structured concurrency, ownership and borrow checking for resources, unicode safe strings, and recently I added runtime contracts and I'll start on refinement types and some kind of proof system soon.

The idea is exactly to take a mainstream and familiar-looking language and add more cutting-edge and academic features that help with software correctness.

I wrote about some of this here, though not the formal methods parts: https://zena-lang.dev/blog/2026/09/languages-for-the-ai-era/


Replies

OJFord • today at 8:09 PM

This doesn't seem formally verified? (And as a new thing you're working on, inherently not mainstream.)

equinumerous • today at 3:32 PM

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?

BoingBoomTschak • today at 5:57 PM

Claude: 1,262 commits, 941,484 ++/598,077 --

➕ show 2 replies
latexr • today at 5:23 PM

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

Embarrassingly parallel?

➕ show 1 reply