DEV Community

Discussion on: Pitch me on Rust

Collapse
 
codewander profile image
codewander • Edited

Larger ecosystem than Haskell and Scala, embracing some similar ideas about type systems and some elements of expressive/functional programming. I would use rust instead of Haskell, Scala, or OCaml only because it's ecosystem is larger.

In an ideal world, one of the functional languages would have a huge ecosystem and rust would only be used for extreme performance and low level tools. At present, I would use rust for high level web programming as well, if I wanted to use Haskell, but I wanted as many libraries as golang or python. Rust might match golang's ecosystem size within three years.

Collapse
 
gklijs profile image
Gerard Klijs

Not larger than Scala. With Scala you can use anything JVM, which still is more/better in a lot of cases than Rust IMHO.

Collapse
 
codewander profile image
codewander

True. I usually only evaluate an ecosystem based on its native libraries, so I exclude java libraries when evaluating clojure, etc.

Collapse
 
leob profile image
leob

Yes - Rust embraces a LOT of FP concepts, but in a less "extreme" way than Haskell ... still waiting for FP to go mainstream, will it ever ... ?

Collapse
 
codewander profile image
codewander

With 80k packages, I think rust's flavor of FP is the closest to mainstream that functional has ever reached on the backend. Scala had a shot, then faded. Clojure just hasn't broken through. Elixir isn't breaking through.

Thread Thread
 
leob profile image
leob

I agree with you, seems Rust is the closest thing to FP (or a variant thereof) going mainstream :)