News for hackers. Stuff that matters.
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by agnosias on Wednesday August 19, 2015 @12:56PM (#10086816)
Could you describe in more details how you got burned? (I have never done anything big in haskell)
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by seertaak on Wednesday August 19, 2015 @01:02PM (#10086863)
It was a while ago, and I tried using it at work -- for simple tasks, tasks that would have taken tens of minutes using either Java or Python. With Haskell it would invariably take much, much longer. It would look really beautiful at the end, but the truth is the extra amount it took couldn't be justified.

Specific problems were extending a program to do "just one more thing", as is commonly the case for more "scripty" tasks. This often caused severe refactoring, as what was suddenly a simple function or IO/ST monad now had to include another monad and it all would become a bit of a mess. In general I find combining monads in Haskell pretty unpleasant, especially when you consider that this kind of stuff is so trivial in other languages that you don't even think about it. To put it shortly, I would spend too many brain cycles wrestling with Monads and strictness and Haskelly concepts, and too little on my actual problem.

But hey, that was some time ago and YMMV.

Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by kmicklas on Wednesday August 19, 2015 @01:31PM (#10087091)
> It was a while ago, and I tried using it at work -- for simple tasks, tasks that would have taken tens of minutes using either Java or Python. With Haskell it would invariably take much, much longer. It would look really beautiful at the end, but the truth is the extra amount it took couldn't be justified.

The productivity curve for Haskell is exactly the opposite of something like Python. You spend a lot of time at the beginning writing all your fancy types, monads, etc. Then later when you have thousands of lines of code you can make non-trivial changes with the ease with which you could write a tiny one-off Python script.

Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by jerf on Wednesday August 19, 2015 @03:21PM (#10087771)
I also think it's important to tell people that there is a learning curve on that, too, even after the learning curve of learning Haskell. It takes some time to figure out how to write the idiomatiac Haskell code that factors correctly to make those changes.

It's a fantastic exercise to get to that point in Haskell, and the skills carry over in surprising ways to conventional languages too, so I unequivocally recommend it to anyone with at least, oh, say, 4 years of experience in "conventional" programming, to get you to the next level of programming skill. But make no mistake, it is quite the learning curve. I think this is a positive thing, though... the reason why it is such a learning curve is precisely that you are learning, in exactly the way you really aren't learning anything when you pick up your fifth object-oriented imperative language.

Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by agumonkey on Wednesday August 19, 2015 @08:28PM (#10089399)
Do you have any references on that ? books, papers or even blog posts.
Re:Mozilla's Servo Engine Now Capable of Rendering GitHub by jerf on Wednesday August 19, 2015 @08:36PM (#10089423)
Start with Learn You a Haskell, IMHO. Best starting explanation of that sort of stuff.

Then you actually have to use it for a while.