News for hackers. Stuff that matters.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by bopbopbop7 on Thursday February 05, 2026 @09:17PM (#46908168)
100k lines of clean, bug free, optimized, and vulnerability free code or 100k lines of outsourced slop? Two very different price points.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by qarl on Thursday February 05, 2026 @09:20PM (#46908195)
A compiler that can build linux.

That level of quality should be sufficient.

Do you know any low quality programmers that write C compilers in rust THAT CAN BUILD LINUX?

No you don't. They do not exist.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by icedchai on Thursday February 05, 2026 @09:44PM (#46908368)
Yep. Building a working C compiler that compiles Linux is an impossible task for all but the top 1% of developers. And the ones that could do it have better things to do, plus they’d want a lot more than 20K for the trouble.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by vbezhenar on Thursday February 05, 2026 @11:39PM (#46909200)
What's so hard about it? Compiler construction is well researched topic and taught in the universities. I made toy language compiler as a student. May be I'm underestimating this task, but I think that I can build some simple C compiler which will output trivial assembly. Given my salary of $2500, that would probably take me around a year, so that's pretty close LoL.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by cma on Friday February 06, 2026 @11:25AM (#46914854)
You can one shot prompt a toy C compiler. Getting one that can compile Linux in a bootable way is significantly harder.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by f1shy on Sunday February 08, 2026 @08:03AM (#46933859)
Everybody talks as Linux is the most difficult thing to compile in the world. The reality is that linux is well written and designed with portability with crappy compilers in mind from the beginning.

Also, the booting part, as stated some times, is discutable.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by icedchai on Sunday February 08, 2026 @01:30PM (#46937076)
The reality is you can build Linux with gcc and clang. And that’s it. Years ago you could use Intel’s icc compiler, but that stopped being supported. Let’s stop pretending it’s an undergrad project.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by cma on Sunday February 08, 2026 @05:59PM (#46939483)
Just writing a non-toy C preprocessor is non-trivial.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by fsflover on Friday February 06, 2026 @03:04AM (#46910284)
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by icedchai on Friday February 06, 2026 @05:51AM (#46911330)
I’ll be shocked if they are able to do it in 4 months, never mind 4 weeks.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by f1shy on Sunday February 08, 2026 @08:08AM (#46933878)
Have you ever seen Tsoding youtube channel? I’m sure Mr Zosin can very much do it in one week. And considering russian salaries, it will be like an order of magnitude cheaper.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by rhubarbtree on Friday February 06, 2026 @03:06AM (#46910289)
Interesting, why impossible? We studied compiler construction at uni. I might have to dig out a few books, but I’m confident I could write one. I can’t imagine anyone on my course of 120 nerds being unable to do this.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by menaerus on Friday February 06, 2026 @04:58AM (#46910972)
You are underestimating the complexity of the task so do other people on the thread. It's not trivial to implement a working C compiler very much so to implement the one that proves its worth by successfully compiling one of the largest open-source code repositories ever, which btw is not even a plain ISO C dialect.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by rhubarbtree on Friday February 06, 2026 @08:40AM (#46912717)
I didn’t say it was trivial. Just that I thought my course mates would be able to do it.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by qarl on Friday February 06, 2026 @11:32AM (#46914941)
You thought your course mates would be able to write a C compiler that builds the Linux?

Huh. Interesting. Like the other guy pointed out, compiler classes often get students to write toy C compilers. I think a lot of students don't understand the meaning of the word "toy". I think this thread is FULL of people like that.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by icedchai on Friday February 06, 2026 @01:15PM (#46916163)
I took a compilers course 30 years ago. I have near zero confidence anyone (including myself) could do it. The final project was some sort of toy language for programming robots with an API we were given. Lots of yacc, bison, etc.

Lots of segfaults, too.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by stevejb on Friday February 06, 2026 @02:18PM (#46916939)
Hey! I built a Lego technic car once 20 years ago. I am fully confident that I can build an actual road worthy electric vehicle. It's just a couple of edge cases and a bit bigger right? /s
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by rhubarbtree on Saturday February 07, 2026 @07:11AM (#46923223)
That's really helpful, actually, as you may be able to give me some other ideas for projects.

So, things you don't think I or my coursemates could do include writing a C compiler that builds a Linux kernel.

What else do you think we couldn't do? I ask because there are various projects I'll probably get to at some point.

Things on that list include (a) writing an OS microkernel and some of the other components of an OS. Don't know how far I'll take it, but certainly a working microkernel for one machine, if I have time I'll build most of the stack up to a window manager. (b) implementing an LLM training and inference stack. I don't know how close to the metal I'd go, I've done some low level CUDA a long time ago when it was very new and low-level, depends on time. I'll probably start the LLM stuff pretty soon as I'm keen to learn.

Are these also impossible? What other things would you add to the impossible list?

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by icedchai on Saturday February 07, 2026 @02:30PM (#46926824)
Building a microkernel based OS feels feasible because it’s actually quite open ended. An “OS” could be anything from single user DOS to a full blown Unix implementation, with plenty in between.

Amiga OS is basically a microkernel and that was built 40 years ago. There are also many other examples, like Minix. Do I think most people could build a full microkernel based mini Unix? No. But they could get “something” working that would qualify as an OS.

On the other hand, there are not many C compilers that build Linux. There are many implementations of C compilers, however. The goal of “build Linux” is much more specific.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by rhubarbtree on Saturday February 07, 2026 @04:09PM (#46928055)
Minix is a fair example, or Herd. Something like that.

So what other projects are impossible? That was my question.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by rhubarbtree on Saturday February 07, 2026 @06:41AM (#46923067)
If it helps, I did a PhD in computer science and went to plenty of seminars on languages, fuzz testing compilers, reviewed for conferences like PLDI. I’m not an expert but I think I know enough to say - this is conceptually within reach if a PITA.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by f1shy on Sunday February 08, 2026 @08:10AM (#46933894)
They did bot compile the whole linux, mind you, just an absolute minimal kernel.

Doing a real compiler to be used by humans is difficult. Doing a compiler that “gets the thing done” is a different thing.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by menaerus on Tuesday February 10, 2026 @09:51AM (#46960427)
Nowhere did I imply it is production-ready. I said "working compiler" and by definition Claude built one since they booted up the kernel.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by viraptor on Friday February 06, 2026 @05:47AM (#46911299)
It's a bit more nuanced. You can build a simple compiler without too many issues. But once you want it to do optimisations, flow control protection, good and fast register allocation, inling, autovectoriasation, etc. that's going to take a multiples of the original time.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by rezonant on Friday February 06, 2026 @05:54AM (#46911345)
> Building a working C compiler ... is an impossible task

I think you might be thinking of C++

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by icedchai on Friday February 06, 2026 @06:01AM (#46911404)
I’m not. I’ve been working with C on and off for 30 years. Linux requires GNU extensions beyond standard C. Once you get the basics done, there’s still a lot more work to do. Compiling a trivial program might work. But you’ll hit an edge case or 50 in the millions of lines in Linux.

I also should’ve qualified my message with “in 2 weeks”, or even “in 2 months.” Given more time it’s obviously possible for more people.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by dgacmu on Friday February 06, 2026 @10:15PM (#46920972)
Some of the hardest parts of the compiler are optimization and clear error handling/reporting. If you forego those - because you're testing against a codebase that is already free of things that break compilation and have no particular performance requirements for the generated code - it's a substantially simpler task.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by f1shy on Sunday February 08, 2026 @08:05AM (#46933869)
Making a basic C compiler, without much error/warn detection and/or optimizations, is as a matter if fact no so difficult. In many Universities is a semester project for 2 to 3 students.
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by bopbopbop7 on Thursday February 05, 2026 @09:28PM (#46908261)
Do you think this was guided by a low quality Anthropic developer?

You can give a developer the GCC test suite and have them build the compiler backwards, which is how this was done. They literally brute forced it, most developers can brute force. It also literally uses GCC in the background... Maybe try reading the article.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by qarl on Thursday February 05, 2026 @09:34PM (#46908310)
HEH... I'm sorry man but I truly don't understand what point you're trying to make, other than change the subject and get nasty.

You take care now.

Re:We tasked Opus 4.6 using agent teams to build a C Compiler by bopbopbop7 on Thursday February 05, 2026 @09:36PM (#46908323)
The trick to not be confused is to read more than the title of the article.
[dead]
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by bopbopbop7 on Thursday February 05, 2026 @10:15PM (#46908626)
Speaking of obnoxious
Re:We tasked Opus 4.6 using agent teams to build a C Compiler by qarl on Friday February 06, 2026 @11:33AM (#46914958)
I love how I'm getting downvoted for calling him out for saying "read the article".

The people in here have gone entirely nuts.