Earlier quoted context omitted.
There are many, here's a simple Google search: https://github.com/jyn514/saltwater https://github.com/ClementTsang/rustcc https://github.com/maekawatoshiki/rucc
I found this one too: https://github.com/PhilippRados/wrecc
We tasked Opus 4.6 using agent teams to build a C Compiler
321–330 of 787 posts
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#322I spent a good part of my career (nearly a decade) at Google working on getting Clang to build the linux kernel. https://clangbuiltlinux.github.io/ This LLM did it in (checks notes): > Over nearly 2,000 Claude Code sessions and $20,000 in API costs It may build, but does it boot (was also a significant and distinct next milestone)? (Also, will it blend?). Looks like yes! > The 100,000-line compiler can build a bootab…
This is getting close to a Ken Thompson "Trusting Trust" era -- AI could soon embed itself into the compilers themselves.
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#323Earlier quoted context omitted.
If you read the entire GCC source code and then create a compatible compiler, it's not clean room. Which Opus basically did since, I'm assuming, its training set contained the entire source of GCC. So even if they were actively referencing GCC I think that counts.
What if you just read the entire GCC source code in school 15 years ago? Is that not clean room?
I'd argue that no one would really care given it's GCC.
But if you worked for GiantSodaCo on their secret recipe under NDA, then create a new soda company 15 years later that tastes suspiciously similar to GiantSodaCo, you'd probably have legal issues. It would be hard to argue that you weren't using proprietary knowledge in that case.
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#324I spent a good part of my career (nearly a decade) at Google working on getting Clang to build the linux kernel. https://clangbuiltlinux.github.io/ This LLM did it in (checks notes): > Over nearly 2,000 Claude Code sessions and $20,000 in API costs It may build, but does it boot (was also a significant and distinct next milestone)? (Also, will it blend?). Looks like yes! > The 100,000-line compiler can build a bootab…
It’s cool but there’s a good chance it’s just copying someone else’s homework albeit in an elaborate round about way.
But I wonder how it would fare given a language specification for a non-existent non-trivial language and build a compiler for that instead?
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#325Earlier quoted context omitted.
This is firmly where I am. "The wonder is not how well the dog dances, it is that it dances at all."
"It's like if a squirrel started playing chess and instead of "holy shit this squirrel can play chess!" most people responded with "But his elo rating sucks""
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#326Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#327Earlier quoted context omitted.
> C compiler is one of the most rigorously specified pieces of software out there /me Laughs in "unspecified behavior."
Undefined is absolutely clear in the spec. Unspecified is whatever you want it to mean. I am also laughing, having never heard "unspecified" before.
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#328Earlier quoted context omitted.
> This was a clean-room implementation This is really pushing it, considering it’s trained on… internet, with all available c compilers. The work is already impressive enough, no need for such misleading statements.
I'm using AI to help me code and I love Anthropic but I chocked when I read that in TFA too. It's all but a clean-room design. A clean-room design is a very well defined term: "Clean-room design (also known as the Chinese wall technique) is the method of copying a design by reverse engineering and then recreating it without infringing any of the copyrights associated with the original design." https://en.wikipedia.or…
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#329I spent a good part of my career (nearly a decade) at Google working on getting Clang to build the linux kernel. https://clangbuiltlinux.github.io/ This LLM did it in (checks notes): > Over nearly 2,000 Claude Code sessions and $20,000 in API costs It may build, but does it boot (was also a significant and distinct next milestone)? (Also, will it blend?). Looks like yes! > The 100,000-line compiler can build a bootab…
This is getting close to a Ken Thompson "Trusting Trust" era -- AI could soon embed itself into the compilers themselves.
Re: We tasked Opus 4.6 using agent teams to build a C Compiler
#330> The generated code is not very efficient. Even with all optimizations enabled, it outputs less efficient code than GCC with all optimizations disabled. Worse than "-O0" takes skill... So then, it produced something much worse than tcc (which is better than gcc -O0), an equivalent of which one man can produce in under two weeks. So even all those tokens and dollars did not equal one man's week of work. Except the on…
Claude is only a few years old so we should compare it to a 3 year old human's C compiler
Train Claude without the programming dataset and give it a dozen of the best programming books, it'll have no chance of writing a compiler. Do the same for a human with an interest in learning to program and there's a good chance.