Hacker News (curated)new | past | comments | ask | show | jobs| show hidden

"portable" and "has ports" mean two different things. there might be targets Zig doesn't have great support for yet but what I meant is that bootstrapping a target to Zig is a simpler endeavor than it is for C


Is it? I think zig use llvm codegen. Once you got llvm for your architecture, you get 99% of modern language

LLVM codegen is optional, and LLVM is being turned into a runtime dependency.

Zig has its own compiler backend. With limited arch support of course. Only used in debug modes for now.

I think the most interesting part is they rely on WASM for bootstrapping so all you need to make to bootstrap Zig anywhere is a WASM interpreter (if I understand correctly).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact | github