by VeejayRampay · 13y ago · 0 comments
The only real thing I think it is missing is a "high productivity" application framework like Rails to elevate it from "damn, I'm impressed" to "it would be ill advised to use almost anything else".
</reluctant fanboy rave>
They also combine the nice conciseness of Python, with great concurrency (better than Go) and a lot more safety (less late night crashes).
I also challenge your "better concurrency" claim.
I never said the Go runtime will crash, but your programs will, because of unsafe nullability, mutability in the concurrently shared state, and various other problems in Go.
Better concurrency in Haskell: In addition to having light-weight threads like Go and channels like Go, Haskell also has software transactional memory which Go lacks. Haskell also has `par` annotations on pure expressions that allow parallelization with guaranteed lack of effect on program semantics. Haskell also has data parallelism.
So as far as I can tell, the pros of using Haskell over Go would be
1) More safety from crashes
while the Cons of Haskell would be
1) Slightly slower than Go at HTTP
2) Far, far slower than Go at database queries
3) Much steeper learning curve
4) Based on the history of ML languages, will never be popular. Go is gaining popularity quickly.
I think recommending Haskell to someone for a real project is bad advice from the above. Recommending Haskell to someone for self enrichment is another story, and I can get behind that one.
2. If you look at the Benchmarks game, you will actually see that Haskell beats go there.
I think this benchmark is far narrower than the Benchmarks game and is thus less representative.
3. shouldn't really be a serious consideration for a career programmer (weeks to a couple months of learning to be more effective for years to come is a no-brainer).
4. is untrue, Haskell has already gained more popularity than the ML languages had in the past. And so is F#.
Development Status: Early adopters only. Pull requests welcome. Development is closing in on the "final" 1.0 design, but the rate of change is still high. Expect to get your hands dirty.
Wouldn't quite appeal for people looking for a Go based Rails yet, but I would have to agree.. it does look very promising.