Top
Best
New

Posted by modeless 11 hours ago

We tasked Opus 4.6 using agent teams to build a C Compiler(www.anthropic.com)
456 points | 420 commentspage 4
storus 8 hours ago|
Now this is fairly "easy" as there are multitude of implementations/specs all over the Internet. How about trying to design a new language that is unquestionably better/safer/faster for low-level system programming than C/Rust/Zig? ML is great in aping existing stuff but how about pushing it to invent something valuable instead?
small_model 11 hours ago||
How about we get the LLM's to collaborate and design a perfect programming language for LLM coding, it would be terse (less tokens) easy for pattern searches etc and very fast to build, iterate over.
WarmWash 11 hours ago||
I cannot decide if LLMs would be excellent at writing in pure binary (why waste all that context on superfluous variable names and function symbols) or be absolutely awful at writing pure binary (would get hopelessly lost without the huge diversification of tokens).
anematode 11 hours ago|||
Binary is wayyy less information dense than normal code, so it wouldn't work well at all.
small_model 10 hours ago|||
We would still need the language to be human readable, but it could be very dense. They could build the ultimate std lib, that goes directly to kernels, so a call like spawn is all the tokens it needs to start a co routine for example.
copperx 11 hours ago|||
I'm surprised by the assumption that LLMs would design such a language better than humans. I don't think that's the case.
hagendaasalpine 9 hours ago||
what about APL et al (BQN), information dense(?)
polskibus 9 hours ago||
So did the Linux compiled with this compiler worked? Does it work the same as GCC-compiled Linux (but slower due to generating non optimized code?)
throwaway2027 11 hours ago||
I think it's funny how me and I assume many others tried to do the same thing and they probably saw it being a popular query or had the same idea.
personjerry 8 hours ago||
> Over nearly 2,000 Claude Code sessions and $20,000 in API costs

Well there goes my weekend project plans

degurechaff 4 hours ago|
well, you can use jules and spend zero dollar on it. I also create similiar project like this, c11 compiler in rust using AI agent + 1 developer(https://github.com/bungcip/cendol). not fully automated like anthophic did, but at least i can understand what it did.
stevefan1999 5 hours ago||
I tried writing a C compiler in Rust in the spirit of TCC, but I'm just too lazy to finish it.
cuechan 9 hours ago||
> The compiler is an interesting artifact on its own [...]

its funny bacause by (most) definitions, it is not an artifact:

> a usually simple object (such as a tool or ornament) showing human workmanship or modification as distinguished from a natural object

exitcode0000 9 hours ago||
Cool article, interesting to read about their challenges. I've tasked Claude with building an Ada83 compiler targeting LLVM IR - which has gotten pretty far.

I am not using teams though and there is quite a bit of knowledge needed to direct it (even with the test suite).

casey2 2 hours ago||
Interesting that they are still going with a testing strategy despite the wasted time. I think in the long run model checking and proofs are more scale-able.

I guess it makes as agents can generate tests, since you are taking this route I'd like to see agents that act as a users, that can only access docs, textbooks, user forums and builds.

mucle6 6 hours ago|
This feels like the start of a paradigm shift.

I need to reunderwrite what my vision of the future looks like.

More comments...