4 ms·
> idiomatic Haskell is going to be much faster than what most people are using. I am not trying to be pedantic, but your point is moot if you consider what "mo
by jimmy1 8y ago
> idiomatic Haskell is going to be much faster than what most people are using.
I am not trying to be pedantic, but your point is moot if you consider what "most people" are using are not dynamically typed interpreted languages like Python Ruby or PHP, but rather statically typed, compiled languages like Java, C#, and C++. Java by itself dwarfs Python and Ruby combined.
- tathougies 8y agoIME, Haskell and Java are about on par, especially for basic things like http serving. Actually, Haskell is typically faster, because it compiles into much better machine code. That's just my experience as a professional Haskell developer. This is a combination of the fact that Haskell often compiles to really good machine code, and that Haskell is better at parallelization and multi-core workloads (async by default, for example). Here are some benchmarks: https://github.com/jakubkulhan/hit-server-bench https://github.com/jakubkulhan/hit-server-bench. As you can see, warp is on par, if not better than, many of the common JVM based options. I'm not arguing Haskell is necessarily better than Java in all benchmarks (or C#). Merely that IME, most people dismiss Haskell as slow because it's a functional language, despite increasing evidence to the contrary. It is certainly capable of standing on its own against popular languages.