Re:Bayard: a full-text search and indexing server written in...
by h91wka on Sunday November 03, 2019 @08:36AM
(#21433781)
Gosh, Rust evangelists did a really good job brainwashing the community. Take a look at big Rust projects that do anything useful, like Tokyo. You'll find dozens of unsafe blocks everywhere, so much for static analysis. True, in the most simple cases linear types will slap you on the wrist, but most bugs happen in the complex parts of code anyways.
[ Parent
| on HN ]
Re:Bayard: a full-text search and indexing server written in...
by iopq on Tuesday November 05, 2019 @04:14PM
(#21456771)
You're talking about a library that is forming the base of multithreaded applications. 99% of other libraries don't have nearly as much unsafe
Re:Bayard: a full-text search and indexing server written in...
by brobinson on Sunday November 03, 2019 @01:08PM
(#21435475)
I'm not part of the Rust "community" and don't participate in any of its fora, I just like a lot of the ideas it's pushing forward (see sibling comment). "unsafe" doesn't dIsAbLe AlL pRoTeCtIoNs like the anti-Rust crowd likes to say. I've written a few small (5,000+ LOC) programs in Rust over the last five years or so and I've only personally had to dip into unsafe once in my own code. I didn't claim that Rust prevents all bugs, I pointed out that Rust programs are more stable in the case of _runtime type errors and data races_ (which they are).