News for hackers. Stuff that matters.
Re:Hello Haskell, Goodbye Lisp (2009) by jonathansizz on Saturday May 03, 2014 @12:22AM (#7689559)
I keep hearing over and over about how great Haskell is, and yet nobody can ever show me anything written in it other than yet another compiler.

Haskell is never going to go mainstream. Stop pushing it, because it's getting really tedious.

Re:Hello Haskell, Goodbye Lisp (2009) by phaer on Saturday May 03, 2014 @12:32AM (#7689578)
> and yet nobody can ever show me anything written in it other than yet another compiler.

http://johnmacfarlane.net/pandoc/

http://git-annex.branchable.com/

http://jaspervdj.be/hakyll/

You are welcome :)

Re:Hello Haskell, Goodbye Lisp (2009) by bilalq on Saturday May 03, 2014 @12:57AM (#7689652)
I had no idea pandoc was written in Haskell. I've found it to be an incredibly useful tool.
Re:Hello Haskell, Goodbye Lisp (2009) by dave809 on Saturday May 03, 2014 @01:58AM (#7689802)
Not incredibly popular but Nikki and the Robots is a game written in haskell that has recently been greenlit on steam

http://steamcommunity.com/sharedfiles/filedetails/?id=107105...

Re:Hello Haskell, Goodbye Lisp (2009) by jonathansizz on Saturday May 03, 2014 @12:34AM (#7689588)
Best of luck. Let me know if any of your projects gain any traction.
Re:Hello Haskell, Goodbye Lisp (2009) by chrisdone on Saturday May 03, 2014 @01:31PM (#7691592)
Hm, both git annex and pandoc already have traction for their respective use-cases.
Re:Hello Haskell, Goodbye Lisp (2009) by Pacabel on Saturday May 03, 2014 @01:15AM (#7689698)
It's a shame to see that comment getting modded down. It's absolutely valid and correct. The three examples given in that other comment are pretty much unknown. xmonad might be a slightly better example, but it's still pretty much unknown, too.

While Haskell has seen some usage, of course, we really haven't seen any major and widely-used non-compiler software developed using it. It's perfectly legitimate to point this out, and using very obscure counterexamples doesn't change this reality.

Re:Hello Haskell, Goodbye Lisp (2009) by xooyoozoo on Saturday May 03, 2014 @01:53AM (#7689789)
I don't use or know about any of the other tools mentioned, but Pandoc isn't exactly someone's pet project.

It may be niche, but it's not unknown. If you need to convert markdown/rest/latex/etc to pdf/html/epub/etc, Pandoc's gonna come up.

Re:Hello Haskell, Goodbye Lisp (2009) by saryant on Saturday May 03, 2014 @01:20AM (#7689715)
> It's perfectly legitimate to point this out

There's a difference between pointing it out and being a jerk while pointing it out.

Hence the downvotes.

Re:Hello Haskell, Goodbye Lisp (2009) by enoch_r on Saturday May 03, 2014 @01:12AM (#7689694)
The measure of a programming language isn't whether it becomes "mainstream." It's whether it can be used to make useful programs. Others have already provided many examples of useful Haskell programs (none of which are "yet another compiler"), so I'm not sure what else needs to be said.

By the way, I don't know Haskell, but I am writing this comment from XMonad. :)

Re:Hello Haskell, Goodbye Lisp (2009) by marcosscriven on Saturday May 03, 2014 @12:27AM (#7689566)
To put a more positive spin on this, I'd be interested if someone could point to a practical, in use, open source project written in Haskell that I could learn from please?

All the tutorials and theory make sense, but making the jump to what I can do with other languages still seems a big one.

Re:Hello Haskell, Goodbye Lisp (2009) by louthy on Saturday May 03, 2014 @01:52AM (#7689787)
I'm a relative newbie when it comes to Haskell; I've found it's best to just get stuck in - pick a project and just go for it. Especially if you're doing real-world stuff, because you'll just get sick to your back teeth of yet another fibonacci tutorial. Once you get stuck-in you'll find yourself on the Hackage docs site a lot, click on the Source link on the top right of every page, you'll find gold in there.

A real world thing I did this week (which unfortunately is proprietary so I can't share), was a distributed configuration system for our cluster. It uses the RabbitMQ library[1][2] and Acid-state library[3] to have a per-node config-DB and uses RabbitMQ's guarantees for delivery of updates to the nodes. Messages are serialised using Aeson[4], the Haskell JSON library. I implemented a vector-clock versioning system on top of the Acid-state store to allow the clients to do conflict resolution. It really was a joy to write (around 350 lines of code). The C# client less so, 1000s of lines of boilerplate.

I think there's something really impressive about haskell; I tend to have significantly more trust in the code I write because mostly I know the edge cases don't exist. 9 times out of 10 if your code compiles it will work. Although be prepared for the compiler to hate you when you first start. The beatings are worth it though.

There's some basic code samples in the links:

[1] https://github.com/hreinhardt/amqp

[2] http://videlalvaro.github.io/2010/09/haskell-and-rabbitmq.ht...

[3] http://acid-state.seize.it

[4] https://github.com/bos/aeson

Re:Hello Haskell, Goodbye Lisp (2009) by phaer on Saturday May 03, 2014 @01:10AM (#7689689)
Pandoc, which I linked above fits into your question nicely. And because you specifically asked about something to learn from: there are some well made Youtube videos which explain some of the code in pandoc and xmonad: https://www.youtube.com/watch?v=FEFETKhhq8w
Re:Hello Haskell, Goodbye Lisp (2009) by marcosscriven on Saturday May 03, 2014 @02:10AM (#7689824)
Wow - that video was brilliant, thanks for the recommendation. (Subscribed to Jekor's channel)
Re:Hello Haskell, Goodbye Lisp (2009) by platz on Saturday May 03, 2014 @12:34AM (#7689586)
Re:Hello Haskell, Goodbye Lisp (2009) by gamegoblin on Saturday May 03, 2014 @12:34AM (#7689587)
Very popular tiling window manager: http://en.m.wikipedia.org/wiki/Xmonad
Re:Hello Haskell, Goodbye Lisp (2009) by lispm on Saturday May 03, 2014 @04:09AM (#7690033)
So Xmonad is running correctly after a compile?

Google searches with Xmonad would then find no matches with Xmonad and crash or freeze?

Re:Hello Haskell, Goodbye Lisp (2009) by jonathansizz on Saturday May 03, 2014 @12:35AM (#7689593)
Very popular? If you insist.
Re:Hello Haskell, Goodbye Lisp (2009) by pcmonk on Saturday May 03, 2014 @12:40AM (#7689606)
In the world of tiling window managers, there are a few well-known names. Xmonad is one of them.
Re:Hello Haskell, Goodbye Lisp (2009) by Pacabel on Saturday May 03, 2014 @01:38AM (#7689765)
I think that's backing up the point he's making, though. When considering the big picture, tiling window managers are quite minor and relatively infrequently used.

Having a small amount of influence within a rather obscure field ends up translating to basically no importance in practice.

There are many examples of very large and critical software systems implemented in languages like C, C++, Java, C#, Perl, Python, Ruby, and others. We just don't see anything like this when it comes to Haskell, however. The examples that do exist are quite minor in reality, and this will naturally make some people skeptical about Haskell's practicality.

Re:Hello Haskell, Goodbye Lisp (2009) by chrisdone on Saturday May 03, 2014 @01:35PM (#7691614)
That kind of stuff just takes a bit of time. It's kind of irrelevant to the language itself. Python and Ruby didn't hit the mainstream until the 2000's, despite being invented in the 90's. C# and Java both have huge company backing, and C and C++ have had traction since the 80's and earlier. And we all know sysadmins love Perl. Haskell's popularity is only a recent thing. It only kicked off with a few proper books in the past few years.
Re:Hello Haskell, Goodbye Lisp (2009) by Pacabel on Saturday May 03, 2014 @02:06PM (#7691747)
I wouldn't exactly call Haskell "popular". It isn't as obscure as some programming languages, but realistically, it sees comparatively little use in practice.

And Haskell predates Python, Ruby, JavaScript, Java and C#. It has had a very long time to become more widely used, yet we just haven't seen this happen. It's not like people don't know about it; many students, academics and practitioners have been exposed to it for years now, and it does get a fair amount of hype for a language that has experienced limited use in practice.

I just don't think it offers enough benefit for the cost involved with learning and using it. If the balance were better, we'd see it being used. But that isn't the case, so it sees minimal usage.

Re:Hello Haskell, Goodbye Lisp (2009) by lispm on Saturday May 03, 2014 @03:11AM (#7689938)
Stumpwm is another. Which is written in Lisp.
Re:Hello Haskell, Goodbye Lisp (2009) by jonathansizz on Saturday May 03, 2014 @12:45AM (#7689622)
And are any tiling window managers popular? Didn't think so.
Re:Hello Haskell, Goodbye Lisp (2009) by sgeisenh on Saturday May 03, 2014 @01:19AM (#7689712)
Check out /r/unixporn. There are some excellent setups in there. I think the lack of a standout tiling window manager might be the result of the quantity of excellent WMs in existence. Regardless, if you've never had an experience using a tiling window manager, I would highly recommend it. Once you get past a certain threshold, your productivity skyrockets!
Re:Hello Haskell, Goodbye Lisp (2009) by lispm on Saturday May 03, 2014 @04:12AM (#7690040)
Sure, my Symbolics Lisp Machine had a tiling window manager 30 years ago. Today I could use Stumpwm, written in Common Lisp. It's just that I don't use X that much...
Re:Hello Haskell, Goodbye Lisp (2009) by chongli on Saturday May 03, 2014 @12:37AM (#7689598)
Why you gotta hate? Seriously, if you're tired of posts about Haskell then stop reading them.
Re:Hello Haskell, Goodbye Lisp (2009) by Pacabel on Saturday May 03, 2014 @01:19AM (#7689713)
I don't see much "hatred" there at all.

He's merely pointing out the very real fact that Haskell's adoption is quite limited, and the fact that there really isn't much truly critical software written using it, despite the hype surrounding it and its age.

I'd say it has made more of an impact by influencing other, more pragmatic languages than it has by software written using it.

Re:Hello Haskell, Goodbye Lisp (2009) by jonathansizz on Saturday May 03, 2014 @12:41AM (#7689608)
I didn't read it. I just took a wild guess that the post was desperately trying to convince someone (anyone) that Haskell was worth learning.

Five years on, they posted it again, because maybe there's some new suckers out there.

Re:Hello Haskell, Goodbye Lisp (2009) by shawnz on Saturday May 03, 2014 @12:59AM (#7689659)
How did you go from "never going to go mainstream" to "not worth learning"?

First of all, you are right. Haskell is never going to become as common as C or Java, and I don't think anybody is claiming that it will. It is a language that is designed around theoretical concerns rather than being pragmatic. But that is exactly what makes it so valuable to learn.

Re:Hello Haskell, Goodbye Lisp (2009) by Pacabel on Saturday May 03, 2014 @01:28AM (#7689739)
Realistically, I don't think that knowing Haskell really would benefit most programmers, especially those working on typical, everyday software systems.

There are some relatively niche situations where it might be a good choice, but those are few and far between.

We've seen the most useful and practical features offered by Haskell make their way into other more mainstream languages over the years. The more theoretical features haven't made this transition because they really aren't all that practical.

At this point, most programmers would be better off learning more about security, cryptography, databases, networking and other everyday topics than they would be by learning about the more theoretical functionality offered by Haskell.

Re:Hello Haskell, Goodbye Lisp (2009) by chongli on Saturday May 03, 2014 @01:03PM (#7691462)
Realistically, I don't think that knowing Haskell really would benefit most programmers, especially those working on typical, everyday software systems.

Just curious. How much Haskell/FP experience do you have?

Re:Hello Haskell, Goodbye Lisp (2009) by Pacabel on Saturday May 03, 2014 @01:56PM (#7691708)
A fair amount. I used ML and Haskell in the 1990s in an academic setting, and have since used Haskell, Erlang, and Scala at various times while in industry. And I've tried out a number of other functional languages out of interest, as well.

Functional programming does offer some benefits, in some cases. I'm not suggesting that it doesn't. And while I don't think it'd be harmful to know Haskell, I'm not convinced that the benefit it would bring is necessarily worth the effort involved, especially for programmers who are already busy with work and other commitments.

Re:Hello Haskell, Goodbye Lisp (2009) by wyager on Saturday May 03, 2014 @12:41AM (#7689610)
Xmonad is a good example.

Just because not a lot of programmers understand the language yet doesn't mean that programmers in the future can't learn it and take advantage of it. I hope they do, because just by programming in haskell, you automatically rule out entire classes of bugs.

Re:Hello Haskell, Goodbye Lisp (2009) by adito on Saturday May 03, 2014 @02:57AM (#7689916)
this reminds me of someone who trolling #haskell irc channel https://gist.github.com/quchen/5280339
Re:Hello Haskell, Goodbye Lisp (2009) by jonathansizz on Saturday May 03, 2014 @01:09AM (#7689685)
"Avoid success at all costs".

Well, they certainly did that.

Re:Hello Haskell, Goodbye Lisp (2009) by dang on Sunday May 04, 2014 @04:50AM (#7693737)
Please stop.