5 ms·
> but then they proceed to forget that concatenative, logic, array and message passing OO also exist. Right. I think, in general, PFP (pure-FP, i.e. Haskell an
by pron 12y ago
> but then they proceed to forget that concatenative, logic, array and message passing OO also exist.
Right. I think, in general, PFP (pure-FP, i.e. Haskell and a few more obscure languages) sells itself as a solution to a problem and some people start believing it's the only solution to the problem, rather than one of many (and probably not the best one, at that). Not that Haskell's virtues aren't real -- they are -- but they come at significant cost, and are often available come much cheaper with other approaches. For example, referential-transparency-everywhere is just one of several solutions to the problem of mutable shared state, and, IMO at least, not among the best solutions. Even when it comes to provable correctness, which Haskell touts as a relatively unique feature (at least relative to mainstream languages) people forget -- or more likely, don't know -- that there are fully verifiable imperative languages out there (with their own serious problems -- correctness is never free), that have actually been used by the industry to write some very important, safety-critical software, and have been actually put to the test much more than Haskell.
In fact, one of Haskell's marketing advantages is that, after 20 years, it is still at the stage of selling the dream. Because it has hardly been used where its strengths are supposed to matter most (complex programs employing a lot of concurrency), it gets to sell its "promising initial results" without having to contend with too much disappointment, which invariably arrives once a technology has been well tested. It's the promising NBA rookie who got picked first in the draft but has never played a full quarter, getting people to say, "if only they'd get him off the bench...".
- jcadam 12y ago> that there are fully verifiable imperative languages out there (with their own serious problem -- correctness is never free), that have actually been used by the industry to write some very important, safety-critical software, and have been actually put to the test much more than Haskell. Ada is absolutely painful to work with as a developer (I used to work in Aerospace). But if you could get your code to compile, it stood a very good chance of just working.
- dragonwriter 12y agoI would just like to point out that, for the number of time you have say, in different phrasing, that Haskell is not the best solution to the problems it aims to solve, you provide not one bit of argument or evidence to support that for any of the areas you say it about. Anyway, lots of the reported production uses of Haskell are in exactly the areas it is supposed to be strong; the problem for sharing that experience is many of them are in internal proprietary systems, not publicly-available or open-source software, so external evaluators don't have the code -- or even, often, a chance to interact with the software.
- pron 12y ago> you provide not one bit of argument or evidence to support that for any of the areas you say it about. Well, this isn't a very technical discussion, but I can quickly list them: for shared mutation I think the Clojure approach of transactional/atomic mutation everywhere rather than RT-everywhere is simpler; for correctness/side-effects, imperative effect systems may be easier (well, they don't quite exist other than in a very limited, experimental form, in Koka and Java 8's pluggable type systems -- but Haskell doesn't provide a very fine-grained side-effect-control either). For correctness, Esterel (which has been well proven) and its descendants, seems a lot more sophisticated in terms of proving correctness, while being more intuitive (of course, Esterel introduces a limited computation model, but so does Haskell -- or languages in the same vain -- if they are to be decidable). > the problem for sharing that experience is many of them are in internal proprietary systems Yes, that, too, is a problem, but the bigger problem is that uses in the industry are vanishingly rare -- and the bigger the domain challenge, the rarer still they are. For example, I don't think there exists a single case of a Haskell program that tackles complexity in such a way that implementing it in, say, Java or Clojure, is prohibitively expensive.
- creichert 12y agohttps://github.com/commercialhaskell/commercialhaskell https://github.com/commercialhaskell/commercialhaskell Among the companies listed are Facebook and Microsoft. This list may not be long or exhaustive but it does show a number of companies who are publicly willing to say they use Haskell. It was started in January. I can personally attest to several companies I have worked with not mentioned in the list which also use Haskell internally. Haskell is not always the bread and butter of the business software. However, it often has an extremely strong presence for developing internal tools, compilers for DSL's, and (micro)services for various tasks.
- pron 12y ago> as an extremely strong presence for developing internal tools I wouldn't go there. Awk has an extremely strong presence in internal tools; Haskell has some minor presence if you squint hard enough. If the unconventional language promising to help tackle software complexity in this modern age is used as an Awk replacement (or TCL, or Perl) then what are we doing here? The real story is that Haskell may well be an excellent first step towards the future of programming and a great breakthrough -- or it may be a dead end -- we simply don't know because it's never really been tried. Putting it in the ring with Awk or Perl -- where it's losing, BTW -- is an insult to both Haskell and Awk. Using Haskell as one more language for "small stuff" is not using it at all, because that's not what it's meant to do, and it's certainly not where it can fulfill its promise.