4 ms·
So what is the advantage of an unsafe Rust implementation? Just to have done it?
by SoftTalker 1y ago
So what is the advantage of an unsafe Rust implementation? Just to have done it?
- cuu508 1y agoFrom the article: "The next goal is to convert the codebase to safe Rust."
- petrzjunior 1y agoIt is rewritten to a different language and many people find Rust easier to read, it has better type hint support for IDE etc. Also, you do not lose all the safety, there are still many rules enforced, such as safe linking, no undefined functions. Unsafe Rust means that all parts of code which do illegal pointer magic are explicitly marked with an "unsafe" keyword. You can now go one by one and fix them.
- johnisgood 1y ago[flagged]
- techbrovanguard 1y ago> chuckles jesus christ, you’re not light yagami—please stay on /g/
- johnisgood 1y ago[flagged]
- johnisgood 1y agoSomeone is going on a witch-hunt. Most of my comments under this submission are flagged, including this one: https://news.ycombinator.com/item?id=44464177 https://news.ycombinator.com/item?id=44464177. Crazy. They have gotten quite a lot of upvotes, for the record, but feel free to flag ALL of my comments. I wonder what is so wrong about asking if I cannot chuckle anymore, so wrong that it warrants it to be flagged. >> chuckles (written by me) > jesus christ, you’re not light yagami—please stay on /g/ (written by some individual) However, is not flagged. It would be hilarious if it was not so sad.
- deleted 1y ago[deleted]
- kevincox 1y agoOnce the codebase is all Rust you can start introducing Rust idioms and patterns. Basically step 1 is to get it working in Rust then step 2 is to clean up the Rust to actually take advantage of the language.
- sedatk 1y agoIn addition to other points about making it progressively safe, unsafe Rust is still safer than C. https://bsky.app/profile/ssg.dev/post/3lkjogvm2c222 https://bsky.app/profile/ssg.dev/post/3lkjogvm2c222
- Nadya 1y agoRust is like walking across a mine field with all the mines flagged for you. You can dig up the mine and remove the flags over time. Or at least know to avoid stepping carelessly around them. In C you only see the flags people know of or remembered to plant. There's an awful lot of mines left unflagged and sometimes you step on them. It's very obvious to me which would be more safe and I find myself questioning why it is isn't so obvious to others.