this post was submitted on 24 Feb 2025
132 points (99.3% liked)

Programmer Humor

20829 readers
1442 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
 

I've spent months working on this program. I've long thought that "how fast can you make a FizzBuzz" would be a really interesting question for learning about high-performance programming, and when I subsequently saw this question posted on CGCC, I pretty much had to try.

This is so beautiful 🥹

edit: outjerked yet again https://codegolf.stackexchange.com/a/269772

top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 32 points 4 days ago (2 children)

Why did you post that implementation and not David Frank's with 1.7 Terrabit/s ?

[–] [email protected] 12 points 4 days ago (1 children)

I saw it before that one, and by that time i already posted. I think deleting and reposting is a little weird so I guess I'll have to make due X)

I'll mention it in the post body though, thanks lol

[–] [email protected] 4 points 4 days ago (1 children)

Didn't realise that it's yours! Kudos :)

[–] [email protected] 3 points 4 days ago (1 children)

I didn't make it, sorry 😅 I found it since i like to browse codegolf (and PCJ, i also saw it before from there) and decided to upload it here because it always makes me crack up. If only i were this dedicated 😂

[–] [email protected] 3 points 4 days ago

Sorry 😅

Yeah, I haven't solved puzzles like that in a while either

[–] [email protected] 6 points 4 days ago (1 children)

Can we get a tldr for the approach used?

[–] [email protected] 8 points 4 days ago

hand-optimized SIMD-instructions probably

[–] [email protected] 20 points 4 days ago (1 children)

I already have a master's thesis. This was harder.

Lmao

[–] [email protected] 5 points 4 days ago

God I miss PCJ 😭

[–] [email protected] 16 points 4 days ago (1 children)

This isn’t even really C, it’s a bunch of assembly instructions jammed into C

Not that it’s not impressive… but still.

[–] [email protected] 26 points 4 days ago (1 children)

Correction: This is not C. It may seem so because of the #include's and #define's but this is just standard gnu assembler syntax. You can notice that the included files are all in asm/ and the macros are just valid assembly.

It's built with GCC instead of as because gcc links the standard library (which include those asm/ files) for you. Though you can build it normally with as, too.

Heavy, iirc. I haven't done this stuff in a while so please correct me if i'm wrong.

[–] [email protected] 5 points 4 days ago* (last edited 4 days ago)

Oh dang ok. TIL

I saw gcc and assumed c or c++ but it didn’t look like cop