this post was submitted on 22 Apr 2024
562 points (99.0% liked)

science

13673 readers
560 users here now

just science related topics. please contribute

note: clickbait sources/headlines aren't liked generally. I've posted crap sources and later deleted or edit to improve after complaints. whoops, sry

Rule 1) Be kind.

lemmy.world rules: https://mastodon.world/about

I don't screen everything, lrn2scroll

founded 1 year ago
MODERATORS
 

Voyager 1 contact restored

you are viewing a single comment's thread
view the rest of the comments
[–] force 11 points 2 months ago (1 children)

rust programmers couldn't imagine the memory hacks smh

[–] ricdeh 11 points 2 months ago (1 children)

I know that this is supposed to be a joke, and I do find it funny, but I also find it sad that it carries a large dose of truth. C is such a "low-level" high-level language that it makes you deal directly with memory allocation and management as well as pointer arithmetic to advance addresses in the stack, which in my opinion is very important for programmers to gain an understanding of the actual hardware and architecture their programs are running on, because I feel that many don't have that understanding. Should Rust replace C in many applications, especially low-level, I fear that we will ultimately end up with worse code because of that. (BTW I know that Voyager's program is not written in C, this is just purely about your statement on Rust.)

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

C will never fully go away.

Constrained environments will always remain in C.

But RUST offers the best trade off today. It is way better than C++.

C IMO is not comparable to RUST.