r/programming • • Mar 15 '09
Dear Reddit I am seeing 1-2 articles in programming about Haskell every day. My question is why? I've never met this language outside Reddit
245
Upvotes
r/programming • • Mar 15 '09
18
u/sisyphus Mar 15 '09
The languages we use every day aren't usually very interesting. I'd rather see Yet Another Why Haskell Rocks article than Yet Another Why PHP/Perl/Java/MyWorkLife sucks article.
62
u/weavejester Mar 15 '09
Because whether or not its a practical language to build things in, it's certainly an interesting language, and "interesting" tends to get modded up.
161
u/ssylvan Mar 15 '09 edited Mar 15 '09
I find that Haskell is one of those languages that offer a very strong "conversion experience" precisely because it's so different. So the timeline for the typical person learning Haskell is something like this:
Or, the alternative version for those learning it at university:
259
u/[deleted] Mar 15 '09
Because Haskell is one of those languages that you spend more talking about programming in than actually programming in.
10
u/thisisnotmyname Mar 15 '09 edited Mar 15 '09
Because you come to reddit to read hopefully interesting articles about things you wouldn't encounter ordinarily?
8
u/hacksoncode Mar 15 '09
I think there's a much more straightforward answer:
Up until the last few years, there hasn't been much point for the vast majority of engineers to worrying about the non-parallelizability of programming languages (as a practical matter, not theoretically... all languages are equally capable theoretically).
Now that Moore's Law has stopped going in the "faster pussycat, kill, kill" direction, and instead is creating extremely underutilized multiple (slower) cores on chips, many of the smarter programmers are starting to be legitimately worried that they will need to start parallelizing their programs rather than relying on faster processors to cure their bloat.
So they go searching, and find Haskell, which at least in theory has some serious advantages in the parallelizability category.
I'm not sure it really wins you that much, in practice, with normal humans writing the code instead of 99th percentile programmers. But at least if you're a 99th percentile programmer it's a huge win.
And those are the programmers other reddit programmers tend to admire.
Q.E.D.
14
u/Peaker Mar 15 '09
Because it makes programs (including real-world ones):
43
u/[deleted] Mar 15 '09 edited Mar 15 '09
Haskell is also the place where a lot of innovations are happening that later get adopted by other, more mainstream languages. For example, Haskell was one of the early languages with list comprehensions, but now they're in Python too. It's also a place where interesting work with software transactional memory and other new concurrency abstractions is happening, and these might end up in something like Java 10 or C# 7. Also, LINQ in the newer versions of .NET is based on monads, which were pioneered in Haskell.
This means that it deserves and gets more attention than one would expect based on market share.
23
u/Porges Mar 15 '09 edited Mar 15 '09
Perhaps because it is at the moment being quite actively developed (and discovered). It's not like there are currently big changes going on in the C world, or that there are people writing blog posts saying “hey guys, look at this awesome new language I discovered... it has pointers and null-terminated strings!” (;])
12
u/[deleted] Mar 15 '09
I know many Haskell programmers in real life, but that's probably because I'm a useless academic. =\
12
u/crux_ Mar 15 '09 edited Mar 15 '09
Late-to-the-party, career-oriented answer: Because Haskell is one of a few languages that, although they are far from mainstream, are pointing where the mainstream will be.
Language features like: generics (Java 1.5; C# 2.0; C++ templates sort of), list comprehensions (Python's for-comprehensions; C#'s LINQ), closures (C# 2.0; hotly debated for a future Java, anonymous inner classes can fake it; Python & Ruby), higher-order functions.... guess where they come from?
Joe Programmer can work with these as mysterious black boxes, but Sally the Haskell programmer will be able to take them apart, reassemble them, and make them dance.
Not to mention that learning an entirely different way to program is fun.
(Note: I don't use Haskell much myself; instead I use a lot of O'Caml and Scala these days.)
5
u/[deleted] Mar 15 '09
Bitches don't know about my
loeb :: Functor a => a (a x -> x) -> a x.28
u/daybreaker Mar 15 '09
Haskell is the Ron Paul of programming languages.
22
u/guapoo Mar 15 '09
Why? Dons. That's why.
14
u/chneukirchen Mar 15 '09
Because this subreddit is about programming, and not the real world.
4
u/djork Mar 15 '09
As one Haskell book put it: you'll see the features that make Haskell unique in mainstream programming languages ten years from now.
68
u/samlee Mar 15 '09 edited Mar 15 '09
Dear Sydd,
It means 1-2 people are positing Haskell related articles here everyday. And a few more people are upvoting the posted articles. Of course, there are many who down vote Haskell related articles. However, number of upvoters are greater than number of downvoters.
I think that's why you see them on this subreddit.
To summarize, there are people submitting those links and there are people upvoting those links. That's my conclusion.
Some might say that Reddit is affiliated to Haskell and they just boost up Haskell articles unfairly. I do not work for Reddit and I can't comment on that.
It's pretty simple. When time passes, you get old. When wind blows, you can feel it. When people submit Haskell articles and enough people upvote, you see them here on Reddit.
I think you are actually asking why there are people who submit and upvote Haskell articles here in Reddit. This can be answered by studying demographics of Reddit users. If many Haskell programmers who are interested in Haskell articles are using Reddit, some of them could be submitting/upvoting Haskell articles because they are interested in Haskell articles.
So, maybe you are asking why on earth Haskell programmers come to Reddit. Probably they have enough time to come here.
And you confess that you've never met this language called Haskell outside Reddit. You can meet Haskell on Facebook, the Internet, Wikipedia, and many other places.
So, I assume that you don't go to Facebook, the Internet, Wikipedia and other places. Be more social. Get out more. Get out from your usual social gathering places like 4chan, Digg, Slashdot, and go to Facebook, the Internet, Wikipedia and other places. I am sure you can find Haskell if you go out more.
Lastly, to answer your question "why?", I have to point to your social behavior and demographics of Reddit. Many things are cause and effect. And, to my knowledge, your experience with Haskell and Reddit is such because of your social ring and current demographics of Reddit.
Wait.. I think I should add that there might be shy ATS developers here on Reddit who would love ATS articles, but they are too shy to post ATS articles. Maybe there are relatively few people interested in Haskell articles. But all of them are so active here on Reddit posting/upvoting Haskell articles.
Man, I don't think I can fully answer your question. I just noticed so many fallacies of my comment. I think I should stop writing because I am making fun of myself by writing further.
To really answer your question, you should close your eyes and feel it. Feel why the universe is as it is... Why Reddit is as it is.. Why you are who you are.. Why Haskell is.... you're falling asleep.. Tender.. Tenderly.. 3.. 2.. 1.. zzZ
14
u/benz8574 Mar 15 '09
Yes, it does seem to be a reddit idiosyncrasy. I think there are just more Haskell users here than on other websites.
10
u/DGolden Mar 15 '09
I first encountered haskell in the 90s. The fact you've never met the language outside reddit is just you, shrug.
6
u/BONUS_ Mar 15 '09
I don't actually know Haskell, I just pretend to for cred.
11
u/GunnerMcGrath Mar 15 '09
I think sydd was asking WHY so many of you are infatuated with the language. Short summary about why you think it's worth looking into, please? So far all the comments have just been "It's super hard to learn and you'll hate it until you love it and we'll all have a circle jerk about it." It's like smokers or coffee drinkers talking up how much they like their particular disgusting, acquired taste of a vice. =)
So, anyone have anything to say that might actually make someone want to look into the language? Anyone creating real world applications in it? Why Haskell over any other language in that case?
9
u/Random Mar 15 '09
I'll answer the meta question for you.
There are many many languages that are outside of the mainstream. I think it is fair to characterize the mainstream as Java, C++, C, Fortran (in science labs), PHP/PERL (web), Python...
Many of these languages are radically different in how you should attack problems - they have different affordances for the programmer - and that is a good thing if those correspond to things that you need.
Think of this like the OOP versus non-OOP languages: programming a GUI in non-OOP is a pain because objects just correspond to screen objects well.
So here's the thing. Programming in a non standard language, even if you then go back to your other language will make you a better programmer, because it makes you see your language as an approach, rather than as the whole world.
Concept languages come and go on Reddit. In the last 5 or so years I can recall waves of posts on LISP, erlang, smalltalk, ruby, scheme, lua, and haskell. Plus the subdued but continual buzz about python.
Haskell is a pain to learn but ... to match the pain is the gain.
(this philosophy is essentially from Eric Raymonds rant on the programming languages everyone should learn)
7
u/oldfashionedguy Mar 15 '09
5
u/drguildo Mar 15 '09
But... but... xmonad!
5
u/tejoka Mar 15 '09
It's interesting.
What do you WANT submitted? The 15 blog posts written today about how PHP sucks ad infinitum? zzzz
28
u/TrueTom Mar 15 '09
The reason is that certain people spam /r/programming with everything that contains the word 'Haskell' in order to promote the language.
Sometimes there is a nice article among them, but most of the stuff (especially the 5 lines mailing list posts) should go to /r/haskell.
10
u/[deleted] Mar 15 '09
This has many parallels to the atheism subreddit.
If you surround yourself with religious folks and read only the mainstream media, atheists are invisible. But there is a whole different world out there, and you have to go through a wormhole (such as Reddit) to the other side.
You will notice that O'Reilly -- a purveyor of popular books on tools (Make, X Windows, Perl) -- is selling out Real World Haskell. Sort of like the God Delusion. There are a lot of people questioning the status quo.
I suppose the same question and answer could apply to Lisp (see Clojure, Practical Common Lisp) and Erlang as well.
5
u/jsnx Mar 15 '09 edited Mar 15 '09
It is because of our powerful
lambdabot, which has cracked the Reddit algorithm. Soon, very soon, we will be at the top of the front page...Then we will demand one million dollars!
5
u/Tommstein Mar 15 '09
Because Haskell users are unemployed with nothing better to do than spam their language at a per capita rate 1,000 times higher than other languages?
4
u/beltingorion Mar 15 '09 edited Mar 15 '09
That's because when we REALLY need to get work done in a functional language we use Erlang. (ducks)
4
u/[deleted] Mar 15 '09
Get out more, they teach it as part of Comp Sci at my local Uni (Nottingham, UK)
4
u/davebrk Mar 15 '09
Something that always bothers me. You see a lot of people mentioning Haskell's great performance on the Shootout, but if you look at underlying haskell code, not all of it is elegant and you can spot quite a few go to's and C like code blocks...
6
u/[deleted] Mar 15 '09
that's because such a large number of people in academia are working on functional programming and haskell is a functional programmer's language of choice.
See for example here why functional programming is all the rage now
3
u/Poddster Mar 15 '09
Does anyone have any examples of useful things (programs or tools) that have been created in Haskell?
5
u/[deleted] Mar 15 '09
Because its milkshake brings all the boys to the yard.
4
u/[deleted] Mar 15 '09
Pfft, Haskell is for people who can't understand [Erlang | Io | Scheme | Brainfuck].
4
u/OpenMindedCitizen Mar 15 '09
Haskell: The Ron Paul of programming languages.
3
u/srparish Mar 15 '09
Because r/programming != infoq. There are other places its mentioned a lot, ultimately due to lambda, but i won't name locations as you'd dilute the discussion there like the discussion here has been diluted.
3
u/bbibber Mar 15 '09
Typical real world vs academia disconnect. You probably have a real job with real world needs that need to be filled in a practical way today. So you frequent a social circle where Haskell is not a solution and hence not talked about. The average r/Haskell pusher on the other hand...
2
u/bleahy Mar 15 '09
This is probably a meaningless generalization but what the hell...Haskell is a functional language like ML, Scheme, Lisp and some others. It is supposedly pure but I will leave that whole discussion for language narcs. But in general people who use these languages often use recursion...a lot. People love recursion, are ambivalent towards recursion or hate/don't get recursion. What is recursion? Suppose you have a list of numbers and you want the sum. Many people quickly see the idea of creating an extra variable, let's call it sum. Now we go through the list one element at a time and add each number to sum. Seems logical. But that's not recursion. Recursion is realizing that if the list contains no elements its sum is 0 otherwise its sum is the sum of the first element and the sum of the rest of the list. Or sum(list) = 0 if empty?(list) is true otherwise = first(list) + sum(rest(list)). If you thought that was the coolest thing you have ever seen you might like Haskell. If you thought it seemed like kind of complex and idiotic way to find a sum then Haskell is probably not your cup of tea.
2
u/[deleted] Mar 15 '09
Because it doesn't really exist outside of Reddit X-D
2
u/zorglub421 Mar 15 '09
reddit was one programmed in lisp if I remember correctly, attracting some functional programming interest. Then moved to python. There are sometime article about Caml, too.
2
u/ayrnieu Mar 15 '09
You have a single-minded publicist, a humorless voting bloc, and then Haskell's hype base: people who hem and haw and say, well, there must be something to this! I mean: it's got all these singly interesting features -- surely any manner of amalgamation of them would also be interesting? Every time I put my finger in it I withdraw bleeding sores... but who can say why that is? And all these other hype-users seem to want to learn it. With any other language in the world, they'd've just gone out and learned it, reported back with their confident newbie distortions, and never have maintained this "aww, one day I'll learn X" for very long. That you never see these kind of reports with Haskell must mean that it's really good!
1
u/[deleted] Mar 15 '09
I had to learn it for a class last term, didnt work out great in the exam... funny to see it featured so often at reddit
1
u/[deleted] Mar 16 '09
I found reddit from talk on #haskell and Haskell somehow when I searched for interesting languages to learn.
0
u/lukasmach Mar 15 '09
Because the relation "Haskell vs. Other programming languages" is equivalent to "Particle physics vs. Engineering". The latter is useful, the former is beautiful.
(Now, of course, Haskell should really be replaced by "purely functional languages".)
1
u/[deleted] Mar 15 '09
Haskell rocks. It's the new sliced bread!
If you want to write less code in a high level language, Haskell is the way to go and GHC produces smoking fast performance(look at the language shootout).
If you want to write high level assembly go with C++ and you will slit your wrists eventually and regret your choice of C++ instead of Haskell.
0
u/flkdsjflsd Mar 15 '09 edited Mar 15 '09
I've done Haskell in uni and probaly will (gladly) never and ever use it again. I think it's good for social website like this for people to contribute what they're passionate about. There is a reason why there is an up and down button.
1
u/[deleted] Mar 15 '09
I bet most of these people saying that Haskell isn't usable for real world applications have never tried it.
1
u/logrus101 Mar 15 '09
Remember Scheme?
Yeah, some CS guru comes up with a new language every decade that allows other CS gurus to code eloquently for a certain set of problems.
The rest of us cobble together serpentine "if" statements in Python, VB, Java and Perl.
1
u/shea241 Mar 15 '09
Haskell spontaneously formed itself. Nobody created it, and it was only recently discovered.
1
u/RalfN Mar 15 '09
Then you haven't been to college yet.
1
u/[deleted] Mar 15 '09 edited Mar 15 '09
2 weeks ago didn't someone post a self.programming about how proggit used to be so much better when there were links about Haskell instead of _________?
0
u/[deleted] Mar 15 '09
It's the language of these damn reddit domestic terrorists, that hate our freedoms!
0
u/randomb0y Mar 15 '09
Because the universe was programmed entirely in Haskell.
0
u/neoabraxas Mar 15 '09
Is there an actual application written in Haskell? Can anyone point to it?