logoalt Hacker News

rurbanyesterday at 12:41 PM3 repliesview on HN

Already happened. My AI coded C compiler already bypassed gcc in less failures, compiles 10x faster, and with their new policy they'll fall far behind.


Replies

tavavexyesterday at 2:00 PM

Does your compiler replicate 100% of gcc's functionality? I've heard of similar compiler projects skimping on the lesser used functions and taking shortcuts. gcc is BIG.

But the real point is even if we get an ability to AI generate an accurate and fully-featured C compiler from scratch, everyone will keep using gcc. C compilers are solved, gcc is already here and it's pretty amazing. It's not flawed or in need of replacement, there's nothing for it to fall far behind on. We don't need another C compiler, the reason why AI users are attracted to the topic is just to "look ma, no hands!". And using gcc also ensures that I'm using something that has been looked at by thousands of qualified eyes in the past and will be looked at by thousands more for the foreseeable future. Will an AI compiler be comprehensible in ten years? Will every update be guaranteed to be better than the previous?

show 1 reply
Cthulhu_yesterday at 12:50 PM

A bold claim with no sources to back it up.

show 1 reply
ethinyesterday at 1:39 PM

Prove it and that your compiler is fully C compliant and can handle all possible inputs GCC can accept (and optimize as well as GCC), then we'll talk. Only then will your compiler risk leaving GCC behind.

show 1 reply