logoalt Hacker News

belisarius222today at 8:07 PM2 repliesview on HN

I generally agree. TypeScript is a great language, and JS runtimes have certainly had a lot of money and effort poured into them for a long time. I would add WASM to this category, as probably the closest thing to Mog. Write a program in some language, compile it to WASM, and load it into the host process. This is (probably) nice and safe, and relatively performant.

Since it's new, Mog will likely not yet beat existing systems at basically anything. Its potential lies in having better performance and a much smaller total system footprint and complexity than the alternatives. WASM is generally interpreted -- you can compile it, but it wasn't really designed for that as far as I know.

More generally, I think new execution environments are good opportunities for new languages that directly address the needs of that environment. The example that comes to mind is JavaScript, which turned webpages into dynamically loaded applications. AI agents have such heavy usage and specific problems that a language designed to be both written and executed by them is worth a shot in my opinion.


Replies

csjhtoday at 9:13 PM

Wasm is explicitly not designed for interpretation (https://arxiv.org/abs/2205.01183)

sjrdtoday at 8:25 PM

Wasm is definitely designed to be compiled, either ahead of time or JITed. Wasm interpreters are few and far between.

show 1 reply