by cs702 · 6y ago · 0 comments
I'm sooo tempted to dive into Rust head-in. Have only dabbled a bit with it so far. The main thing holding me back at this point is that Rust seems to lack a decent ecosystem for data science and AI/DL/ML (in particular, a set of crates that has proven useful and stable in real-world AI/DL/ML applications).
Your reaction to arewelearningyet is similar to how I feel about:
However, at least for GUI I know that Raph Levien is really pushing a focus on GUI at the moment. https://raphlinus.github.io/rust/druid/2019/10/31/rust-2020....
I wish I could contribute more. You really summed up how I feel about Rust: "It seems every day I see a new shiny thing made with Rust that was developed remarkably quickly, runs quite smoothly, and appears to be magically bug-free."
Even the maligned actix web framework in Rust is still leading performance benchmarks: https://www.techempower.com/benchmarks/#section=data-r19&hw=...
As far I know there aren’t any good computer vision libraries for Rust?
The only other "fast, practical, memory-safe, widely used language" that looks like a real alternative to Rust is Swift. But unlike Swift, rust was designed from the ground up for for data parallelism and other forms of concurrency with "zero-cost abstractions" the allow "fearless concurrency" (e.g., take a look at https://github.com/nikomatsakis/rayon/ to get an idea of what's possible), and for predictable performance (e.g., compiled code doesn't suddenly slow-down to collect garbage or synchronize reference counts among CPUs). Concurrency appears to have been an afterthought in Swift's case, explicitly: https://gist.github.com/lattner/31ed37682ef1576b16bca1432ea9... . See also https://doc.rust-lang.org/book/ch16-00-concurrency.html and https://blog.spencerkohan.com/impressions-of-rust-as-a-swift...
Data parallelism and other forms of concurrency should become more and more important over time as models grow larger and larger, well beyond GPT-3's 175 billion parameters. This would favor rust.
That being said, you should definitely give Rust a try. I find it to be an absolute joy to use
PS. The link shared by dabreegster has a fairly detailed list of missing facilities: https://news.ycombinator.com/item?id=23615175