News for hackers. Stuff that matters.
Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @04:27AM (#1567169)
Haskell is not popular because to be popular you must cater to the average Joe. And to cater to average Joe your foremost goal must be not making him uncomfortable about himself. Never forget this.

And since most average Joes just work to pay their bills, they don't give a damn about technical superiority, you know.

Re:Why isn't Haskell popular in industry? by kunley on Monday August 02, 2010 @05:30AM (#1567235)
Yeah but still being hacker is to make oneself uncomfortable when not being skilled enough, then to overcome this by practicing the skill. So maybe we should say that it depends if someone is a hacker or a coding monkey. I've seen rates of about 20%-80% in the industry.
Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @07:30AM (#1567393)
That is implied in what I've said: hackers are a minority.
Re:Why isn't Haskell popular in industry? by zv on Monday August 02, 2010 @06:11AM (#1567295)
I'll have to correct you a bit. Judging by the article, Haskell currently isn't usable for work. So why should average Joe choose half-finished product? So why even the brightest hacker choose it when he already has all the tools he need?
Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @06:50AM (#1567331)
You made a point. I've been rumbling on this lately, and I'm sharing my current conclusion here to hear HNers' opinions.

Let's consider Common Lisp. Newcomers and outsiders complain that CL doesn't catch up because there aren't free CL environments around with a thoughtless setup (I've been in this camp too). However, if you read comp.lang.lisp, it jumps into your eyes that many lispers are accomplished and sharp programmers. Still, they haven't fixed such "issues" once and for all. So, what's the real deal? I think that here lies an explanation: such issues are not such an issue to experienced programmers. That is, if you can't setup a CL system, you simply are not skilled enough as a programmer. Get over it. I think the same applies to other systems like Haskell, GNU/Linux, Emacs and so on.

What do you think? Thanks.

EDIT: Of course, there are other causes to consider... for instance, since most CL developers work on *nix, there is less work done on Windows. I think that installing a CL environment kind of fires the Law of Leaky Abstractions: you'll have to deal with some nitty-gritty details...

Re:Why isn't Haskell popular in industry? by jacquesm on Monday August 02, 2010 @08:13AM (#1567429)
I don't think it works like that. Put enough barriers to adoption (lack of: easy install, good documentation, friendly community, good error messages, bug free implementation, good libraries) in front of your prospective hacker audience and you'll find that adoption will suffer.

Not because they're not experienced enough or because in principle they can't make it work (I'm sure they could) but simply because there is only so much time.

If you haven't reached a certain level of confidence that a path is the right one within a given amount of time the natural thing for an experienced programmer is to abandon the path, after all, there are so many technologies to choose from that you can't afford to invest too much time into something that feels like a dead-end, even if in the longer term it might turn out to be great.

Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @09:13AM (#1567532)
> I don't think it works like that. Put enough barriers to adoption (lack of: easy install, good documentation, friendly community, good error messages, bug free implementation, good libraries) in front of your prospective hacker audience and you'll find that adoption will suffer.

I can see your point, and I agree on principles. I disagree on "good documentation", "friendly community", "bug free implementation", "good libraries"... If there are either lacking of "good documentation" or "bug free implementation" or "good libraries", that just means a language either is academic or not ready yet for production, thus you'd better skip it. About "friendly community", I'd rather say that there are self-selecting communities. For instance, many people complain about "social problems" of Lisp, yet I had a very nice experience while asking even controversial questions on comp.lang.lisp.

> If you haven't reached a certain level of confidence that a path is the right one within a given amount of time the natural thing for an experienced programmer is to abandon the path, after all, there are so many technologies to choose from that you can't afford to invest too much time into something that feels like a dead-end, even if in the longer term it might turn out to be great.

That's why I've resolved to put my time only in both time and battle tested languages like Common Lisp and Erlang.

Thanks for sharing your view, Jacquesm :)

Re:Why isn't Haskell popular in industry? by ewjordan on Monday August 02, 2010 @01:57PM (#1568411)
That is, if you can't setup a CL system, you simply are not skilled enough as a programmer. Get over it.

"Can't" is not at issue here - with enough effort, anyone can do just about anything. The question is whether it's actually worth the effort.

Given a choice between languages A and B, both of which have very enthusiastic userbases that are utterly convinced that their language is the One True Programming Language, but neither of which I've actually spent enough time with to know whether it will be worth the investment, which one will I spend the time to learn to work with?

A smart programmer will pick whichever one gets up and running the quickest so that he can actually see what coding is like in that language, as opposed to configuring/installing/compiling sources/tracking down a supported version/etc. Why waste time doing all that stuff when if you just hop to the next language over you can have it all for free? Not to mention that problems setting up a dev environment are loosely predictive of future problems dealing with deployment, hiring extra hands, getting support when things go wrong, etc...

Common Lisp is getting its clock cleaned by Clojure because the Clojure folks know that lowering barriers to adoption is a critically important thing when people are faced with such a glut of choice.

But then again, I've never gotten the sense that the CL folks actually want more people using it, that community seems to be more than happy to remain an elite insider's-only club that is - obviously - smarter than everyone else. Which explains a lot of the hate for Clojure - it's bringing powerful tools to the unwashed masses, and it turns out they wield them quite effectively, shedding some serious doubt on the implicit assertion that you have to be really, really smart to use any sort of Lisp.

Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @04:57PM (#1569045)
> "Can't" is not at issue here - with enough effort, anyone can do just about anything. The question is whether it's actually worth the effort.

Perhaps I should have said "with little effort", then. If you can't setup a system with just little effort, you are not skilled enough as a programmer. See, Ewjordan, I understand your frustration. I've had my share with setting up "newbie-hostile" systems, and you know what? As a consequence, I now understand better how things work, and I can setup whatever system faster. I have "graduated" from Ubuntu to Debian user, I now use Emacs as my only editor, and so on. Little improvements... Still learning. Oh, and I'm faster at tracking down and fix issues which I or my coworkers stumble upon.

> A smart programmer will pick whichever one gets up and running the quickest so that he can actually see what coding is like in that language, as opposed to configuring/installing/compiling sources/tracking down a supported version/etc.

Would we really call her a smart programmer? A street-wise programmer maybe. Being such a programmer could be your goal? That's fine. Have fun and make a lot of money. I think a really smart programmer will pick the language which will pay more dividends in the long run. Kind of choosing a Vim clone over a regular editor.

> Why waste time doing all that stuff when if you just hop to the next language over you can have it all for free?

Because not all language are created equal and you sometime have to choose between fighting the system in the beginning and fighting the language in the long run.

Of course, you'll have an hear for practical considerations too. For instance, I'm currently learning Common Lisp over Scheme because even if I like Scheme better, CL has a wider user base and a proven track record.

> But then again, I've never gotten the sense that the CL folks actually want more people using it

I agree. Most of them don't seem interested. And I think I understand why. CLers are an old community and a lot of newbies jumped in, whined about things not working and left. Their hears are full. However, if you ask for help and ask for it smartly, you'll get answers, you'll - you won't believe this! - you'll get even code written for you.

P.S.: Sorry, but I don't have time to review this post. Bye.

Re:Why isn't Haskell popular in industry? by gaius on Monday August 02, 2010 @10:24AM (#1567701)
That is, if you can't setup a CL system, you simply are not skilled enough as a programmer

But these things are unrelated! Your ability as a Lisp programmer is entirely unrelated to your ability as a Windows/Linux/whatever sysadmin/build engineer/whatever. If anything it's the old "it works on my computer" excuse that (bad) tech support trots out. That's the thing that sets the Clojure guys apart, they actually are interested in making it possible to take it for a spin.

I'm reminded of the difference between PADI and BSAC, two competing dive schools. PADI says let's get you in the water as soon as we can, don't worry, it's only a swimming pool and we have instructors and lifeguards on hand, and when you're ready we'll go out to sea and continue learning there. BSAC says study in a classroom for 6 months, then let's go dive a wreck at 50m...

Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @11:38AM (#1567903)
> Your ability as a Lisp programmer is entirely unrelated to your ability as a Windows/Linux/whatever sysadmin/build engineer/whatever.

Are we sure? Isn't this a case of Law of Leaky Abstractions? We may think we can and should ignore issues related to underlying hardware, but reality is we can't and we shouldn't. As programmers we need a bit of knowledge about system administration too, even when we are working on a virtual machine.

Kudos to Clojurers! Maybe there is more enthusiasm and understanding about newcomers in Clojure because it is a new language. That is, the are not under the Curse of Knowledge.

We should acknowledge that Haskellers are trying to meet the needs of newcomers too, by releasing the Haskell Platform.

Re:Why isn't Haskell popular in industry? by zv on Monday August 02, 2010 @08:20AM (#1567438)
Yes and no. If you are experienced programmer, then you'll have no problems with "issues". On other hand, why should you waste your time with new language?

Each year there is new programming language or framework that "will change the computing". Oh come on. We all know that Windows will become lousy implementation of Unix. We also know that all programming languages eventually will have half-assed implementations of Lisp features. Why you should learn Haskell when Lisp is more superior?

Re:Why isn't Haskell popular in industry? by chc on Monday August 02, 2010 @02:28PM (#1568523)
It's clear to me that you haven't answered this question for yourself. Haskell has a lot of features that Lisp generally doesn't:

• A powerful type system with inference

• Purity

• Pattern matching baked into the language core

• Full laziness (such that "if" can be written as a pure function, no need for special forms or macro-like functionality)

• Curried functions and partial application (so, for example, Lisp's (defun double (n) (* n 2)) would be double = (* 2) in Haskell)

Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @08:44AM (#1567476)
I'd like to add that I've not said "average Joe" in a dismissing tone. I just meant that most people are not that interested in living their lives to their fullest, and are just not interested in asking deep questions in whatever domain.

Moreover, hating to feel uncomfortable about yourself is just a human trait and most people just like following the path of least pain (another human trait, I think).

Re:Why isn't Haskell popular in industry? by stonemetal on Monday August 02, 2010 @09:11AM (#1567531)
I just meant that most people are not that interested in living their lives to their fullest, and are just not interested in asking deep questions in whatever domain.

Now if that isn't an insult I don't know what one is. You don't have to grok Haskell to live your life to the fullest(especially if your Domain isn't programming languages.)

Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @09:17AM (#1567542)
Why an insult? Actions speak louder than words. How many people say health is one's most important asset, yet they don't take any action to really take care of it? Would you still think they care that much about their health? How many people would like to do that and that, still they don't take any action toward it? OTOH, if those same people were starved to near death, don't you think they would resort to extreme actions, because then their foremost interest would be getting food?

Again, I don't mean using a dismissive tone. If it feels like that, that's just because I'm not a native English speaker, and I already struggle to say what I think.

I do think that many people taking it easy are sorely needed by society. Innovative minds do push our culture forward, yet armies of "average Joes" - who just take every day as it comes - keep up with day-to-day tasks, are loving and unselfish people, and so on.

And of course you don't need to grok Haskell or even programming to live your life to the fullest.

Not being interested in some smart subject does not mean you're stupid.

Peace.

Re:Why isn't Haskell popular in industry? by CamperBob on Monday August 02, 2010 @06:58AM (#1567342)
Speaking as a very experienced average Joe, all I need to see is a use case that shows how learning all of the weirdness discussed in the other comments in this thread will help me do my job.

I can't remember the last time I had trouble getting something done in C because it didn't support Kleisli arrows, or whatever.

Re:Why isn't Haskell popular in industry? by lelele on Monday August 02, 2010 @07:40AM (#1567402)
Thanks for pointing this out, too.

Indeed Haskell lacks a proof of concept of its superiority. And you can't provide such a proof with a few lines of code.

When I studied Erlang, I was flabbergasted by both code size reduction and expressiveness thanks to pattern matching, by its fault tolerant capabilities, by its hot-code swapping... then reading how Yaws was alive and kicking long after Apache died under heavy load.

Re:Why isn't Haskell popular in industry? by gaius on Monday August 02, 2010 @10:11AM (#1567679)
OK, but one of the things that C programmers often say differentiates them from non-C-programmers is their ability to grok pointers.

E.g. "I can't remember the last time I had trouble getting something done in Pascal because it didn't support pointers" :-)