Patrick Quist
partouf.bsky.social
Patrick Quist
@partouf.bsky.social
Dev
I just realized I read this question entirely wrong. I read "who's writing C compilers INSTEAD of Rust these days"... :facepalm:
May 15, 2025 at 10:41 PM
Even if it's hard. 8/8 I guess... I'll be honest, I forgot what point I was trying to make. I think I was heading somewhere, but it's really all just nonsense.
May 15, 2025 at 10:26 PM
Have exotic arch target support, sure. Have better warnings? It already doesn't compile on the tinyest type mismatch. What is there really to gain but just experience that compiler writing is harder than you think, in whatever language you choose. At least in C/C++ there's still things to gain. 7/x
May 15, 2025 at 10:26 PM
The question is how can you variate on the original product; maybe have a non ABI breaking compiler? That heavily goes against the mainline. Have a better optimizer? It's already using LLVM that has way more resources to make that happen by just using a newer LLVM commit. 6/x
May 15, 2025 at 10:26 PM
Rust is not at that point. It has some kind of standard, but the mainline (main org compiler) deprecates code so hard with the endless supply of new versions of compilers and editions - it is hard to "Compete", because any new compiler is "not as up to date as the default cargo + rustc". 5/x
May 15, 2025 at 10:26 PM
and not ISO, the amount of vendors that want to invest in producing compilers are still limited. There's much to say about ISO and how slowing it is for progress, and how much you can say about the bad basis and defaults of C and C++, if you have money you can read the docs and write a compiler. 4/x
May 15, 2025 at 10:26 PM
But the only Language that ... I think ... has actual future, is the one that is able to propagate by multiple vendors producing compilers of said language. Now... Rust Does have multiple vendors creating compilers.. But, as it's more standardized in the sense of C# (.net vs mono) 3/x
May 15, 2025 at 10:26 PM
And then some new language developers develop the same language compiler but then with an llvm backend, or maybe a new variation, in the spirit of "we from toilet duck advise toilet duck" en.wikipedia.org/wiki/Toilet_... kind of compiler. 2/x
May 15, 2025 at 10:26 PM
I have learned very early on that everyone and their mom(s) write new languages and subsequently compilers, it's the nature of developers, they think everything that exists is bad and that they can do better. And occasionally singular language compilers get hyped up, even for a decade like rust 1/x
May 15, 2025 at 10:26 PM
[long answer deleted] iso C is better than non-iso Rust (though I would advise writing C++ compilers over C compiler)
May 15, 2025 at 8:51 PM
I think the z formatting warning/error is only a bug in the actual detection and not in the implementation itself, it appears to just work godbolt.org/z/jqrjh9PKW (CE uses mingw ucrt as well, dont know if same exact build) - still a silly warning ofcourse
Compiler Explorer - C
int main() { size_t x = 0xffffffff; // printf("Hello %d\n", x); printf("Hello %zu\n", x); printf("Hello %zd\n", x); return x; }
godbolt.org
April 18, 2025 at 5:11 PM
Which version of mingw?
April 18, 2025 at 12:04 PM
Like all the best practices from other languages that prevent me to make a unmanageable buggy mess out of the code, just goes out of the window when it comes to python
April 11, 2025 at 5:25 PM
Oh actually... CXX might not work. We have this nonsense setup github.com/compiler-exp... and a bunch more exceptions for Windows and MSVC
infra/bin/lib/library_builder.py at main · compiler-explorer/infra
Infrastructure to set up the public Compiler Explorer instances and compilers - compiler-explorer/infra
github.com
April 7, 2025 at 1:32 AM
It depends on PATH probably, GH actions Windows machines have all the compilers and things. Gotta specify CXX and point to the right cl.exe, or filter things you dont want out of PATH and what not
April 7, 2025 at 1:29 AM
Glhf!
April 4, 2025 at 7:27 AM
And without a Hari Seldon to map us a way out of this mess.
April 3, 2025 at 10:15 PM
It’s like all the drama’s combined in real life. It would be like all the backstabbing in Game of Thrones, but there’s perhaps not enough literal blood for that and definitely no long winter. Perhaps it’s more like Foundation but without the space travel.
April 3, 2025 at 10:12 PM