News for hackers. Stuff that matters.
Re:Why is Swift so slow (timeout) in compiling this code? by quic5 on Tuesday May 30, 2023 @09:43AM (#36124803)
The biggest bottleneck in Zig's case is LLVM. That's why they implement fast alternative backends for development. See: https://kristoff.it/blog/zig-new-relationship-llvm/
Re:Why is Swift so slow (timeout) in compiling this code? by bsaul on Tuesday May 30, 2023 @09:53AM (#36124926)
looks like the project's now abandonned :

https://github.com/ziglang/zig/projects/2

Re:Why is Swift so slow (timeout) in compiling this code? by hsn915 on Tuesday May 30, 2023 @10:16AM (#36125145)
This comment suggests otherwise:

https://github.com/ziglang/zig/issues/89#issuecomment-122118...

Although I'm not sure the "self hosted compiler" is the same as "llvm free backend".

Re:Why is Swift so slow (timeout) in compiling this code? by stefncb on Tuesday May 30, 2023 @11:16AM (#36125866)
It's not. The self-hosted compiler still uses llvm, and it's still slow because of it.
Re:Why is Swift so slow (timeout) in compiling this code? by TUSF on Tuesday May 30, 2023 @02:39PM (#36128736)
"self-hosted compiler" in this case means moving all the non-LLVM code (which was previously in C++) to Zig itself.
Re:Why is Swift so slow (timeout) in compiling this code? by Patrickmi on Wednesday May 31, 2023 @05:33AM (#36136339)
One thing I hate about LLVM is that once you get into the ecosystem to get “another alternative” or “abandon LLVM” it’s like hell, you get all these nice cool features then implementing a custom compiler for debugging can be much much harder than that