Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is this part of the long-term plan for zig to get rid of the dependency on clang/llvm?

https://github.com/ziglang/zig/issues/16270



No. Or rather, only the preprocessor.


Yes.


Does Zig already compile without LLVM, even if not by default?

Also, do you know when the changes Andrew mentioned in his "Data Oriented Design" are going to be released in the zig compiler?

I would expect that when both of the above are done, compiling Zig will be really, really fast compared to anything we currently have.


The Zig compiler has used Data Oriented Design for a long time, so any recent version has that, yes. The most substantial part of running the compiler right now is LLVM, hence the focus to provide an alternative. The other big focus right now is incremental compilation, which will make recompilations very fast.


The talk I am referring to is from 2024 and shows some metrics improving by 30% or more. And Andrew said that's not yet shipped:

https://www.youtube.com/watch?v=IroPQ150F6c

So, are you sure about that??

EDIT: ok, the talk was uploaded just last week, but someone in the comments clarified that:

> The original talk is from 2021.. Thank you for reuploading.

I feel stupid now :/


Recently Andrew posted that the compiler can compile itself without LLVM in under 10 seconds: https://mastodon.social/@andrewrk/112752924367683101


Don’t


It's the major area of focus right now. You can track the issues with this tag/link if you'd like:

https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen...




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

Search: