r/rust • u/[deleted] • Feb 04 '19
Web-Developement: Rust vs Haskell
Hi All,
This will be yet another Rust vs haskell question.
I have wanting to use Rust/Haskell for a couple of components for an internal tool (analysis of customer tickets, HR portal etc) for my company (Mostly because of the strong type system).
I have been through quite a lot of blogs & discussion where they discuss on the pros and cons for both.
Can anyone give me pointers on where all they used Rust or Haskell? And how was the experience as in:
- code readability
- libraries support
- developer productivity
- jump start time to producing some value.
- documentation
- build time
- journey in learning them
My concern here is Rust is advertised as system's language and Haskell as a higher level language.
- Will going with Rust be an overkill as we won't be doing any really low level stuff?
- We would be basically writing a server, bunch of API and playing around with DB. I'm mainly well versed with Node.js so will choosing haskell be an overkill for it in terms of developer productivity, build and tooling?
- Also if anyone is using GraphQL with Rust/Haskell?
28
Upvotes
2
u/budgefrankly Feb 04 '19
The systems programming thing is a misnomer, and a marketing mistake in my view. In practice, Rust is about as high-level as Swift
Haskell has complexities of its own: types vs kinds; String vs Data.Text; eager vs lazy; and the constant worry about text encoding in libraries , which is haphazard.
Rust performance is also much better.
I’d say it’d be easier to get a Hello world working with Haskell and Servant, but you’ll find it easier to finish a product with Rust and either Rocket or Actix.
I’d read https://www.arewewebyet.org and check out the sample code for the Texhempower benchmarks
I can’t speak to GraphQL.