810
submitted 1 day ago* (last edited 1 day ago) by not_IO@lemmy.blahaj.zone to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] Flipper@feddit.org 114 points 1 day ago* (last edited 1 day ago)

Has the same vibes as anthropic creating a C compiler which passes 99% of compiler tests.

That last percent is really important. At least that last percent are some really specific edge cases right?

Description:
When compiling the following code with CCC using -std=c23:

bool is_even(int number) {
   return number % 2 == 0;
}

the compiler fails to compile due to booltrue, and false being unrecognized. The same code compiles correctly with GCC and Clang in C23 mode.

Source

Well fuck.

any llm must have several C compilers in its training data, so it would be a reasonably competent almost-clone of gcc/clang/msvc anyway, right?

is what i would have said if you didn't put that last part

[-] racketlauncher831@lemmy.ml 2 points 13 hours ago

This is so fucked up. The AI company has the perfect answer and yet it rolls the die to recreate the same thing by chance. What are they expecting, really?

[-] into_highest_invite@lemmygrad.ml 1 points 13 hours ago* (last edited 13 hours ago)

they don't care. they expect to be able to say "our AI agent made a C compiler that passed 99% of our tests"

load more comments (3 replies)
load more comments (4 replies)
this post was submitted on 22 Feb 2026
810 points (99.2% liked)

Programmer Humor

29947 readers
763 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS