5 ms·
>Except macros are great for more than just lazy evaluation. Haskellers agree, that's why we have Template Haskell. We use it for all sorts of things, like aut
by coolsunglasses 12y ago
>Except macros are great for more than just lazy evaluation.
Haskellers agree, that's why we have Template Haskell. We use it for all sorts of things, like automatically implementing typeclasses (interface'ish) at compile-time.
> parallelism, sure Haskell can give that for free
Not really.
>The cost is you have to be pure about everything
Nonsense.
Boom, mutable variables:
http://bitemyapp.com/posts/2014-03-25-when-nested-io-actions-are-wanted.html http://bitemyapp.com/posts/2014-03-25-when-nested-io-actions...
>sometimes you want explicit control over your threads.
You can have that in Haskell. You can use green threads or OS threads and optionally pin OS threads to a particular CPU to avoid context-switching.
So you can know what you're talking about next time, my recommended guide for Haskell:
https://gist.github.com/bitemyapp/8739525 https://gist.github.com/bitemyapp/8739525
The concurrency primitives in Haskell are broad and deep, check this book out: http://chimera.labs.oreilly.com/books/1230000000929 http://chimera.labs.oreilly.com/books/1230000000929
--- an ex-Lisper
- xico 12y agoAutomatically implementing typeclasses can often be done with just generics http://www.haskell.org/haskellwiki/GHC.Generics http://www.haskell.org/haskellwiki/GHC.Generics
- djur 12y ago> So you can know what you're talking about next time, my recommended guide for Haskell: I like your guide, but is this really necessary? This isn't the first time you've been aggressively hostile to people expressing a preference for Lisp over Haskell, either.
- coolsunglasses 12y agoThere were untrue statements, I corrected them. Also you can't express a preference (up or down) for something you've never used. I'll elide the snark next time, but I'm not going to stop correcting false statements or sharing learning resources.
- chrisdone 12y agoI don't approve of the snark either. I think you can read it as zeal rather than bitterness, at least.
- chrisdone 12y agoConsider the comment you're replying to: > I have no doubts the Haskell community is great. You're not making a strong case for it, are you? ;-)
- coolsunglasses 12y agoIt was imperfectly stated and with unconstructive tone. I allowed my irritation at statements made about Haskell by someone that hadn't used it get to me. That's my fault. Would be nice if the culture could shift a notch or two towards, "know nothing -> say nothing" though.