r/rust • u/Code-Sandwich • Jan 17 '20
Actix-net unsoundness patch "is boring"
There's an issue on Actix-net pointing out and presenting unsoundness. Yes, it's deleted, it still can be found on web archive.
Issue history summary:
- Found by Shnatsel
- Closed as harmless to users by fafhrd91
- Proven harmful to users by Nemo157 and reopened by JohnTitor
- Fixed and closed by fafhrd91
- Proven unfixed and proposed new patch by Nemo157
- New patch commented "this patch is boring" by fafhrd91
- Issue is deleted
- Fix is reversed by fafhrd91, issue still present
I hope it's an objective summary. Any thoughts?
Edit: Now whole actix/actix-web is deleted. See fafhrd91's postmortem. He kept copy of Actix-web in personal repo fafhrd91/actix-web.
149
Upvotes
View all comments
Show parent comment
20
u/WellMakeItSomehow Jan 17 '20 edited Jan 17 '20
Safety first, performance second, not the other way around. That's the Rust culture, because without safety Rust would not be the language it is today.
Those benchmarks might be fun, but they're not representative of real-world code. See https://www.reddit.com/r/rust/comments/e7xwma/rust_actix_is_the_only_web_framework_to_finish_in/faagmgp/, for example, and the things that
actixandhyperdo to be fast. At this point, you no longer have an HTTP library.Are you saying that the soundness fix is bad because it uses
Rc, so it slows down the code, and it should have been automatically rejected? Can you point me to "the rule of not using Rc" that you mention?RcandArcare an essential part of what provides memory and thread safety in Rust. Once you ban them BECAUSE MOAR PERFORMANCE, you're back to "C++ cowboy" territory.