by yohanatan · 12y ago · 0 comments
I don't think it is at all obvious that Haskell won't become mainstream. It's already exerted a tremendous influence over many other mainstream languages and there's only so long that can happen before people just start going directly to the source of the innovations (or one of its direct descendants).
To wit, Lisp never became mainstream despite exerting a huge influence. Likewise Smalltalk.
I also said "or one of its direct descendants" (like Agda or Idris in all likeliness).
> To wit, Lisp never became mainstream
Clojure doesn't count? And the good parts of Perl, Ruby & Javascript are essentially Lisp without the homoiconicity.
Java happened. Business were already in the process of adopting Smalltalk.
Hotspot is a Smalltalk JIT compiler reborn.
Eclipse is Visual Age for Smalltalk reborn. It still keeps the old Smalltalk code browser.
Yeah, but nothing in it is Smalltalk-specific. It's not like Smalltalk survives in the mainstream because of Hotspot (in the way that, say, Algol survives).
[edit: survives, not "survices"]
Just go ahead and learn the typeclass hierarchy and such-- it really is quite a useful higher level of abstraction in whatever language you choose. And it definitely will enter the mainstream (even more than is already has [Swift, Scala & C# all have monadic constructs]).
> Haskell's memory footprint is extremely hard to reason about.
And you'd probably want to also throw runtime in there as well.
I think this is relative-- it's not "extremely hard" for everyone. Also, many structured programmers found object orientation "extremely hard" but somehow the industry managed to progress through that era.
Haskell is very good at a), and not bad at all at b). With the help of the profiler it shouldn't be that hard to determine a program's bottlenecks/leaks and fix them, as with any other language.
BTW, since you mention http, I have this reading on my back burner [1] but from skimming it found that for certain payloads a haskell http server may perform better than nginx (1.4, circa 2013?), which is an impressive feat.
I'd have thought that someone would pick the higher level language first, and go to the lower lever when in need of more control.