News for hackers. Stuff that matters.
Re:Adding HLSL and DirectX Support to Clang and LLVM by pjmlp on Saturday March 12, 2022 @01:44PM (#30653685)
The only thing LLVM has over GCC is the license for companies that don't like sharing.

I can enjoy most of C++20 on GCC, whereas good luck waiting for clang to reach parity.

GCC has more frontends and backends available in total than LLVM has yet to achieve, despite being "better".

One of the reasons for Rust-GCC existence is exactly the lack of support for the backends that Linux kernel doesn't want to compromise only to allow Rust into the kernel.

Re:Adding HLSL and DirectX Support to Clang and LLVM by mhh__ on Saturday March 12, 2022 @02:21PM (#30654018)
LLVM is a better codebase than GCC despite all that. There is a real technical reason to not go with GCC as I have elaborated on above, the GCC codebase really does have its warts even if it's remarkably clear considering how old it is in places. Just read the code. It's obvious that LLVM has been structured around being consumed as a library, whereas GCC was famously not designed to do that - e.g. LOTS of preprocessor magic versus templates, it's a bit 1980s even if they have done a superb job cleaning it up.

I am a GCC fanboy too, but just be realistic.

Also GCC really needs a kick up the arse when it comes to onboarding new contributors and CI etc. They don't need to go full webscale but I think there's a real risk that GCC ends up being maintained by an increasingly small group of people who eventually just die/retire-off.

The way GCC is tested is quite dumb too, things are pulled but then weeks later someone finds out it failed on such and such a a target because they happened to run the testsuite. It's not terrible but I can't imagine it encourages new contributors.

Re:Adding HLSL and DirectX Support to Clang and LLVM by pjmlp on Sunday March 13, 2022 @03:53AM (#30658976)
I used to be quite comfortable with GCC source code back in the egcs wars.

GCC is doing quite alright, looking at upstream contributions for C++, Fortran and Ada compliance.

LLVM on the other hand, I guess those lechers are quite happy not having to upstream anything.