←back to thread

451 points birdculture | 9 comments | | HN request time: 0s | source | bottom
Show context
cadamsdotcom ◴[] No.43979523[source]
Rust is wonderful but humbling!

It has a built in coach: the borrow checker!

Borrow checker wouldn't get off my damn case - errors after errors - so I gave in. I allowed it to teach me - compile error by compile error - the proper way to do a threadsafe shared-memory ringbuffer. I was convinced I knew. I didn't. C and C++ lack ownership semantics so their compilers can't coach you.

Everyone should learn Rust. You never know what you'll discover about yourself.

replies(5): >>43979578 #>>43979674 #>>43980750 #>>43982334 #>>43996710 #
1. gerdesj ◴[] No.43979674[source]
"Rust is wonderful but humbling!"

It's an abstraction and convenience to avoid fiddling with registers and memory and that at the lowest level.

Everyone might enjoy their computation platform of their choice in their own way. No need to require one way nor another. You might feel all fired up about a particular high level language that you think abstracts and deploys in a way you think is right. Not everyone does.

You don't need a programming language to discover yourself. If you become fixated on a particular language or paradigm then there is a good chance you have lost sight of how to deal with what needs dealing with.

You are simply stroking your tools, instead of using them properly.

replies(2): >>43980034 #>>43980418 #
2. kupopuffs ◴[] No.43980034[source]
Wow who pissed in your coffee? he likes rust ok?
replies(1): >>43980075 #
3. codr7 ◴[] No.43980075[source]
And he's telling other people they should like it as well, because he has seen the light.

My gut feeling says that there's a fair bit of Stockholm Syndrome involved in the attachments people form with Rust.

You could see similar behavioral issues with C++ back in the days, but Rust takes it to another level.

replies(2): >>43980264 #>>43980332 #
4. awesome_dude ◴[] No.43980264{3}[source]
> You could see similar behavioural issues with C++ back in the days

I think that it's happened to some degree for almost every computer programming language for a whiles now - first was the C guys enamoured with their NOT Pascal/Fortran/ASM, then came the C++ guys, then Java, Perl, PHP, Python, Ruby, Javascript/Node, Go, and now Rust.

The vibe coding people seem to be the ones that are usurping Rust's fan boi noise at the moment - every other blog is telling people how great the tool is, or how terrible it is.

5. galangalalgol ◴[] No.43980332{3}[source]
I think most of us enamoured with rust are c++ refugees glad the pain is lessened. The tooling including the compiler errors really are great though. I like the simplicity of c, but I would still pick rust for any new project just for the crates and knowing I'll never have to debug a segfault. I like pytorch and matlab fine for prototyping. Not much use for in-between languages like go or c# but I like the ergonomics of them just fine. I don't think it is at all weird for people coming from c++ or even c to like rust and prefer it over those other languages. We have already paid the cost of admission, and it comes with real benefits.
replies(1): >>43989040 #
6. cadamsdotcom ◴[] No.43980418[source]
@gerdesj your tone was unnecessarily rude and mean. Part of your message makes a valid point but it is hampered by unnecessary insults. I hope the rest of your day improves from here.

I don’t specifically like Rust itself. And one doesn’t need a programming language to discover themselves.

My experience learning Rust has been that it imposes enough constraints to teach me important lessons about correctness. Lots of people can learn more about correctness!

I’ll concede- “everyone” was too strong; I erred on the side of overly provocative.

replies(2): >>43983682 #>>43990116 #
7. prmph ◴[] No.43983682[source]
It does not teach you any fundamental lessons about correctness. It teaches you lessons about correctness within the framework Rust imposes; that's all
8. ModernMech ◴[] No.43989040{4}[source]
Yes! 100% this!

For me, programming with C++ was like building castles out of sand. I could never make them tall enough before they would collapse under their own weight.

But with Rust, I leveled up my abilities and built a program larger than I ever thought possible. And for that I'm thankful to Rust for being a language that actually makes sense to me.

9. gerdesj ◴[] No.43990116[source]
"@gerdesj your tone was unnecessarily rude and mean."

"You" are not human.