|
|
|
|
|
by simonask
14 days ago
|
|
Haskell has existed for a long time, yet never had a breakthrough. When I learnt it 20 years ago, it was basically the same as it is now. It's a great language, but it's a research language. Had it been suitable for the types of projects that get written in Rust or C++ (and it very definitely isn't), people would have adopted it a long time ago. I know that there is a bit of persecution complex among haskellers, and I'm sympathetic, but perhaps it's worth looking at the practicalities before drawing conclusions. As a craftsperson, I'm not extremely interested in whatever interesting monads you can come up with, when there are lazily evaluated O(n^2) bombs hiding under the carpet. |
|
In 2019 my colleagues made a Byzantine fault tolerant database with 16K+ TPS throughput, using PBFT-like consensus implementation and signed transactions. It was capable for such throughput being geodistributed.
Some 16+ years ago I was very interested in electronic hardware design. One of the typical errors in this area is the use of values from different clock domains. By using phantom clock parameter in the Wire type, I prevented this particular class of errors.
What I've found in my line of work, is that simple implementations of parser combinators in the style of Parallel Parsing Processes [1] had quadratic complexity for regular parts of context-free grammars when implemented with C++ and C#, but superlinear and subquadratic (around O(N^1.4)) complexity when implemented with Haskell.
[1] https://www.cambridge.org/core/services/aop-cambridge-core/c...
I use Haskell first for all my side projects, because I usually very interested in having something implemented correctly to check whether I understand the idea and then whether idea is worth pursuing at all. I do that for 28 years now.