this post was submitted on 10 Aug 2025
828 points (95.0% liked)

Programmer Humor

25699 readers
1273 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
(page 2) 45 comments
sorted by: hot top controversial new old
[โ€“] goatinspace@feddit.org 5 points 4 days ago

That works great ๐Ÿ‘

[โ€“] OpenStars@piefed.social 6 points 5 days ago

Wait, but I don't see how it's relevant in the smallest of ways... OOOOOH! (/s, bc obviously we all knew that already:-P)

[โ€“] pheggs@feddit.org 4 points 4 days ago (8 children)

not a big fan of rust personally. I think it would be much smarter to bring borrow checking to C through annotations. That way we would not have to rewrite the whole world

[โ€“] jkercher@programming.dev 7 points 4 days ago* (last edited 4 days ago)

I don't think you would get much traction on C developers' existing projects. C gives you the option to do everything your way. If the developer's paradigm doesn't agree with the borrow checker, it could become a rewrite anyway.

Most projects don't use the newer c standards. The language just doesn't change much, and C devs like that. This might get a better response from the modern C++ crowd, but then you are missing a large chunk of the world.

[โ€“] Oinks@lemmy.blahaj.zone 5 points 4 days ago* (last edited 4 days ago)

No C program is written to satisfy a borrow checker and most wouldn't compile with one, so adding it would require rewriting the world anyways. At that point why not choose a language that, in addition to being memory safe, also drastically cuts down on other kinds of UB, has sum types, sane error handling, a (mostly) thread safe standard library, etc.?

[โ€“] stingpie@lemmy.world 5 points 4 days ago* (last edited 4 days ago) (2 children)

I struggle to learn rust because the semantics and syntax are just so awful. I would love to be enthusiastic about rust, since every seems to love it, but I can't get over that hurdle. Backporting the features into C, or even just making a transpiler from C to rust that uses annotations would be great for me. But the rust community really does not seem interested in making stepping stones from other languages to rust.

[โ€“] pheggs@feddit.org 6 points 4 days ago

I learned a bit of rust and I think it's just about getting used to it. It's fairly subjective, and people say the same about C++. I also prefer the C syntax because I find it's simplicity extremely elegant and prefer it to have fewer features. And I like it for it's consistency, on linux the FHS is based up on C, and it just somewhat feels ugly to break that consistency.

But I also acknowledge the advantages of rust.

[โ€“] banshee@lemmy.world 4 points 4 days ago

I've personally become pretty fond of the syntax and incorporation of FP features. In all fairness though, I haven't written much C or C++ for the last two decades.

Rust incorporates some of my favorite features from FP with handy green thread ergonomics. I'm not a fan of Go, so this gives me a great option for microservices when I can avoid Node.js.

[โ€“] anton@lemmy.blahaj.zone 2 points 4 days ago

C++ already has much more of the required language constructs, which is why there is already an attempt to add borrow checking to C++ called circle. Until that standardizes, I wouldn't expect it in C.

load more comments (4 replies)
[โ€“] ChickenLadyLovesLife@lemmy.world 3 points 4 days ago (1 children)

Where is Visual Basic in this diagram? Does nobody enhance blurry license plate pics any more?

load more comments (1 replies)
[โ€“] xiwi@lemmy.dbzer0.com 3 points 5 days ago
[โ€“] bacon_pdp@lemmy.world 1 points 4 days ago

Needs that plucky mrust project holding up rust

load more comments
view more: โ€น prev next โ€บ