• mox@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    9 hours ago

    The best production compiler to study is LLVM

    Look, I love LLVM!39 In many ways, it’s pretty educational. But it’s a monstrosity! That’s because LLVM is applied to so many use cases. LLVM is used from embedded systems to Google’s data centers, from JIT compilers to aggressive high-performance scenarios, and from Zig to Rust to <name the next new language>.

    This seems like a good time to point out that even Zig has run into problems with LLVM. Its limitations are significant contributors to the removal of async from the language.