30
submitted 7 months ago* (last edited 7 months ago) by devraza@lemmy.ml to c/opensource@lemmy.ml

"Anything that can be written in Rust will eventually be written in Rust"

you are viewing a single comment's thread
view the rest of the comments
[-] anzo@programming.dev 19 points 7 months ago

Can you share what would be a concrete example of the risk taken by running a RM program with a memory leak or dangling pointers? I fail to see, by my own ignorance, the benefit of memory safety everywhere. But I do enjoy the rust rewrites of shell tools because of the ergonomics, speed, and new functionalities. I'm asking because the first thing you mentioned as a benefit was memory safety.

[-] devraza@lemmy.ml 6 points 7 months ago* (last edited 7 months ago)

This probably isn't the answer you're looking for, but vpr being memory-safe isn't a benefit that it has over rm, since rm apparently doesn't allocate any memory (as @radiant_bloom@lemm.ee wrote).

the first thing you mentioned as a benefit was memory safety.

Looks like I worded my project description poorly. As I wrote in another comment, I meant that this alternative is memory-safe (being written in safe Rust), but not that rm isn't.

edit: I've updated the post's title to clear things up

load more comments (1 replies)
this post was submitted on 12 Apr 2024
30 points (78.8% liked)

Open Source

31088 readers
735 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS