this post was submitted on 11 Mar 2025
162 points (100.0% liked)

Linux

6659 readers
101 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 weeks ago (4 children)

Rust doesn't help with accessibility its just as easy if not easyer to write c. Its just that when u write bad c u have real serious issues.

[–] [email protected] 10 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

that's odd most people praise rust for being incredibly easy to install and build any project with rustup and cargo

you can do remarkably sophisticated things using a few crates, simple data structures and types and at C speeds or faster

i think you're wrong

[–] [email protected] 7 points 2 weeks ago

Rust allows you to create more powerful abstractions, which can allow you to express your intent in a clearer way. C code can feel like you're bogged down by details all the time. C is on the other hand a smaller language, so just getting to the point where you "know" the language is a lot easier.

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

I'm not talking about building I'm talking about programming. I defiantly agree rust has some very nice tooling but the language itself has quite a steep learning curve that isn't kind to newcomers.

[–] [email protected] 9 points 2 weeks ago

both C and Rust have learning curves that get steep after the initial trivial stuff

with C as soon as you're in array/string/pointer land, you're in a world of seg faults

you can get so much more done as a beginner in Rust before you get anywhere near dealing with ownership or creating advanced generics

[–] [email protected] 8 points 2 weeks ago (1 children)

Have you used both languages before?

[–] [email protected] 4 points 2 weeks ago (2 children)

Yeah. I prefer rust but I defiantly had a far easier time learning c and apply my existing programming knowledge. Getting my head around the borrow checker was one hell of a pain in the ass.

[–] [email protected] 12 points 2 weeks ago

The thing is that "learning C" means "I can write C code that compiles and might be full of bugs", whereas "learning Rust" means "I can write Rust code that compiles and has a small number of bugs". It's not apples-to-apples.

It's like saying "I found it easier to learn primary school maths than I did to learn a physics degree".

[–] [email protected] 7 points 2 weeks ago

I defiantly had a far easier time learning c and apply my existing programming knowledge. Getting my head around the borrow checker was one hell of a pain in the ass.

What specifically was difficult to understand about the borrow checker? Much of what the borrow checker requires you to do are things that you still need to do in C just without compiler support.

[–] [email protected] 8 points 2 weeks ago

Rust doesn't help with accessibility

when u write bad c u have real serious issues

I hope you recognize the irony.

[–] [email protected] 3 points 2 weeks ago

Well, I did mean accessible in terms of feeling semi-confident to contribute to a project with users. If you end up writing code that takes longer to review than it would've taken the reviewer to write it themselves, that's always kind of unfortunate...