16 ms·
Unbalanced post because it doesn't address evidence against Haskell. For example: - Performance is lower than most systems programming languages. - Performanc
by amelius 7y ago
Unbalanced post because it doesn't address evidence against Haskell. For example:
- Performance is lower than most systems programming languages.
- Performance is also more difficult to reason about.
- If Haskell is aimed at building large and complex systems, then where is the evidence, e.g. an operating system? (A compiler is just a pipeline so doesn't count; it is of a different kind of complexity)
- The GHC compiler internals are badly documented (despite some great books about its global architecture). Why do people who pursue clean software engineering methods not follow good software engineering practices?
- jose_zap 7y agoI’m a bit conflicted about your point here, because they seem cherry-picked to highlight disparate aspects of Haskell that don’t make it less interesting or important. Haskell is more often than not sued as a general purpose language, not as a systems language. Its performance is actually outstanding, usually equal to Java and often close to C. This means that Haskell can be safely used in any domain were java would be fast enough. I find also somewhat arrogant to claim that there are no complex systems built in it. Just take a look at the webpage publishing this article. They mention several projects of great complexity. Here’s an example: https://www.tweag.io/posts/2017-03-13-linear-types.html https://www.tweag.io/posts/2017-03-13-linear-types.html They are using Haskell as a prototyping language that lets the refactor and radically change the direction of their solutions at a low development cost. Haskell clearly is helping solve complexity here. Also, where did the claim that GHC is badly documented come from, and how is it relevant to Haskell being important? Just looking at randomly selected file in the repo, it looks actually quite well documented: https://gitlab.haskell.org/ghc/ghc/blob/master/compiler/simplCore/FloatOut.hs https://gitlab.haskell.org/ghc/ghc/blob/master/compiler/simp...
- amelius 7y ago> they seem cherry-picked to highlight disparate aspects of Haskell I only said that the article was unbalanced and provided some counter examples. I didn't say that Haskell does not have many good uses.
- mrkeen 7y agoUnbalanced comment because it doesn't address the good points of the article. Yawn.
- verttii 7y agoI feel you're unfairly comparing Haskell to the likes of C/C++ that it's not really a rival with. Haskell is a (very) high level language, not a procedural language to build systems on. A more appropriate comparison would be with commonly used high level languages such as Java and Python. The comparison here is meaningful because you'd build similar software with them as you would with Haskell.
- ncmncm 7y agoThere is no such language as C/C++. Well-written programs in C++ are very different from programs in good C. (Bad programs are all alike.) C++ programs may be easily as "high level" as Haskell ones, higher than is possible in Java. C++ is clearly the language to beat, as no mainstream production language rivals its performance or expressiveness.
- verttii 7y agoForgive my ignorance, but how can C++ programs be easily as high level as Haskell, which is declarative, garbage collected and curried by default? Does C++ even have algebraic data types, not to mention more advanced stuff like GADTs etc. that are incorporated in Haskell? I haven't been able to get exposure to a language that is comparable in abstraction power with Haskell, except for DSLs.
- ncmncm 7y ago"Declarative" is a means to an end. Imperative gets you there at the same rate. Garbage collection compensates for inadequate resource management facilities. Currying is a neat trick that is fun when you find a way to make it do something useful. Algebraic data types and GADTs are clever ideas very far removed from most real problems faced by real programmers, who have problems no language helps much with, and where the best we, as language designers, can do is try to keep the hell out of the way. C++ has lots of such stuff too, mostly in template land. They can be useful to maximize the generality of libraries -- sometimes enabling great libraries -- but for most programmers most of the time they are at best a distraction, and more typically generate mysteries that absorb unbounded time. Mark Dominus has some of the most insightful writing on the experience of coding Haskell.
- bctnry 7y agoProbably not relevant, OS written in Haskell does exists, though: https://en.wikipedia.org/wiki/House_(operating_system) https://en.wikipedia.org/wiki/House_(operating_system) And don't forget HalVM.