Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Haskell
Haskell

543
505
+ 1
424
Rust
Rust

985
1.1K
+ 1
625
Add tool

Haskell vs Rust: What are the differences?

Haskell: An advanced purely-functional programming language. ; Rust: A safe, concurrent, practical language. Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.

Haskell and Rust can be primarily classified as "Languages" tools.

"Purely-functional programming " is the primary reason why developers consider Haskell over the competitors, whereas "Guaranteed memory safety" was stated as the key factor in picking Rust.

Rust is an open source tool with 36.9K GitHub stars and 5.81K GitHub forks. Here's a link to Rust's open source repository on GitHub.

Sentry, Dropbox, and Roundscope Ukraine Labs are some of the popular companies that use Rust, whereas Haskell is used by thoughtbot, DoxIQ, and Wagon. Rust has a broader approval, being mentioned in 38 company stacks & 102 developers stacks; compared to Haskell, which is listed in 33 company stacks and 45 developer stacks.

- No public GitHub repository available -

What is Haskell?

What is Rust?

Rust is a systems programming language that combines strong compile-time correctness guarantees with fast performance. It improves upon the ideas of other systems languages like C++ by providing guaranteed memory safety (no crashes, no data races) and complete control over the lifecycle of memory.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Haskell?
Why do developers choose Rust?

Sign up to add, upvote and see more prosMake informed product decisions

Sign up to add, upvote and see more consMake informed product decisions

What companies use Haskell?
What companies use Rust?

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Haskell?
What tools integrate with Rust?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Haskell and Rust?
Scala
Scala is an acronym for “Scalable Language”. This means that Scala grows with you. You can play with it by typing one-line expressions and observing the results. But you can also rely on it for large mission critical systems, as many companies, including Twitter, LinkedIn, or Intel do. To some, Scala feels like a scripting language. Its syntax is concise and low ceremony; its types get out of the way because the compiler can infer them.
Clojure
Clojure is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language - it compiles directly to JVM bytecode, yet remains completely dynamic. Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system.
Erlang
Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems.
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
OCaml
It is an industrial strength programming language supporting functional, imperative and object-oriented styles. It is the technology of choice in companies where a single mistake can cost millions and speed matters,
See all alternatives
Decisions about Haskell and Rust
StackShare Editors
StackShare Editors
Lua
Lua
Rust
Rust

To handle its growing observability needs, Postmates created and open sourced Cernan, a telemetry and logging aggregation server. Ceran is built on Rust and Lua, and can ingest data from many sources and then push or exposes what it’s collected to many destinations, or “sinks.” It can also create or manipulate in-flight data with programmable Lua filters.

See more
James Cunningham
James Cunningham
Operations Engineer at Sentry · | 18 upvotes · 54.3K views
atSentrySentry
Python
Python
Rust
Rust

Sentry's event processing pipeline, which is responsible for handling all of the ingested event data that makes it through to our offline task processing, is written primarily in Python.

For particularly intense code paths, like our source map processing pipeline, we have begun re-writing those bits in Rust. Rust’s lack of garbage collection makes it a particularly convenient language for embedding in Python. It allows us to easily build a Python extension where all memory is managed from the Python side (if the Python wrapper gets collected by the Python GC we clean up the Rust object as well).

See more
marcoalmeida
marcoalmeida
Go
Go
C
C
Python
Python
Rust
Rust

One important decision for delivering a platform independent solution with low memory footprint and minimal dependencies was the choice of the programming language. We considered a few from Python (there was already a reasonably large Python code base at Thumbtack), to Go (we were taking our first steps with it), and even Rust (too immature at the time).

We ended up writing it in C. It was easy to meet all requirements with only one external dependency for implementing the web server, clearly no challenges running it on any of the Linux distributions we were maintaining, and arguably the implementation with the smallest memory footprint given the choices above.

See more
C++
C++
Rust
Rust

Initially, I wrote my text adventure game in C++, but I later rewrote my project in Rust. It was an incredibly easier process to use Rust to create a faster, more robust, and bug-free project.

One difficulty with the C++ language is the lack of safety, helpful error messages, and useful abstractions when compared to languages like Rust. Rust would display a helpful error message at compile time, while C++ would often display "Segmentation fault (core dumped)" or wall of STL errors in the middle. While I would frequently push buggy code to my C++ repository, Rust enabled me to only even submit fully functional code.

Along with the actual language, Rust also included useful tools such as rustup and cargo to aid in building projects, IDE tooling, managing dependencies, and cross-compiling. This was a refreshing alternative to the difficult CMake and tools of the same nature.

See more
Vadim Bakaev
Vadim Bakaev
Haskell
Haskell
Scala
Scala

Why I am using Haskell in my free time?

I have 3 reasons for it. I am looking for:

Fun.

Improve functional programming skill.

Improve problem-solving skill.

Laziness and mathematical abstractions behind Haskell makes it a wonderful language.

It is Pure functional, it helps me to write better Scala code.

Highly expressive language gives elegant ways to solve coding puzzle.

See more
Dan Larsen
Dan Larsen
CTO at FlowStack · | 7 upvotes · 57.5K views
atFlowStack ApSFlowStack ApS
Go
Go
Rust
Rust
C
C
C++
C++

At FlowStack we write most of our backend in Go. Go is a well thought out language, with all the right compromises for speedy development of speedy and robust software. It's tooling is part of what makes Go such a great language. Testing and benchmarking is built into the language, in a way that makes it easy to ensure correctness and high performance. In most cases you can get more performance out of Rust and C or C++, but getting everything right is more cumbersome.

See more
Interest over time
Reviews of Haskell and Rust
No reviews found
How developers use Haskell and Rust
Avatar of Marc3842h
Marc3842h uses RustRust

Rust is used in Shirogane (https://github.com/Marc3842h/shirogane).

Shirogane is a osu! beatmap mirror built for shiro. We use Rust because of memory safe but still low level and high performance.

Avatar of Vagner Oliveira
Vagner Oliveira uses HaskellHaskell
Avatar of Tinkhaven
Tinkhaven uses HaskellHaskell

Backend logic (REST, Auth0, Redis, Postgres, functional graph library (fgl), ...)

Avatar of RELEX Solutions
RELEX Solutions uses HaskellHaskell

Our internal deployment tool, called Mordor, is written in Haskell.

Avatar of Zetaops
Zetaops uses HaskellHaskell

Still experimental work for multikernel OS.

Avatar of Metrix Financial Reporting Solutions UG
Metrix Financial Reporting Solutions UG uses HaskellHaskell

Don't worry, be type-safe.

How much does Haskell cost?
How much does Rust cost?
Pricing unavailable
Pricing unavailable
News about Haskell
More news