7 ms·
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 https://github.com/ziglang/z
by livrem 2y ago
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 https://github.com/ziglang/zig/issues/16270
- Laremere 2y agoYes.
- brabel 2y agoDoes 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.
- samatman 2y agoIt'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+label%3Abackend-self-hosted+ https://github.com/ziglang/zig/issues?q=is%3Aissue+is%3Aopen...
- Laremere 2y agoThe 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.
- brabel 2y agoThe 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 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 :/
- szundi 2y agoDon’t
- hiccuphippo 2y agoRecently Andrew posted that the compiler can compile itself without LLVM in under 10 seconds: https://mastodon.social/@andrewrk/112752924367683101 https://mastodon.social/@andrewrk/112752924367683101
- AndyKelley 2y agoNo. Or rather, only the preprocessor.