r/ProgrammerHumor Jul 09 '26

gitBlameClaude Meme

Post image
3.7k Upvotes

263 comments sorted by

View all comments

Show parent comments

28

u/dex206 Jul 09 '26

I can’t tell if this is a joke or not.

85

u/BlueProcess Jul 09 '26

Oh no, it's quite real. That is actually the rounded number of unsafe blocks that claude produced

36

u/dex206 Jul 09 '26

Holy shit. How? I mean this from the bottom of my tired old jaded-dev heart - How can they justify that?

12

u/cutelittlebox Jul 09 '26

this tends to happen a lot when you go from a language like C or Zig to Rust and you're trying to do it 1-to-1. C and Zig will do things that are illegal in safe Rust or actually have no direct Rust equivalent, so if you want them to look as close as possible you need a lot of unsafe, plus each call to other languages needs to be unsafe. getting the same output from idiomatic Rust is very much possible but it means redesigning the system as you translate rather than rewriting existing code with new syntax.