[Haskell] Haskell Weekly News

Kim-Ee Yeoh ky3 at atamo.com
Wed Mar 4 19:44:55 UTC 2015


*Top picks:*
Jasper Van der Jeugt <http://jaspervdj.be/posts/2015-02-24-lru-cache.html>
shows how you can write an intuitive, obviously correct LRU cache perfectly
polymorphic in both the key and value types of the cache lookup
function. (Reddit
discussion.)
<http://www.reddit.com/r/haskell/comments/2wz4tj/writing_an_lru_cache_in_haskell/>

Core is broken! Well, no, ticket 9858
<https://ghc.haskell.org/trac/ghc/ticket/9858> reported previously is still
open, and it's about translating an exotic species of Haskell into Core.
But Javran Cheng <https://ghc.haskell.org/trac/ghc/ticket/10121> found out
that the documented specification of Core's operational semantics is
incomplete.

Neil Mitchell
<http://neilmitchell.blogspot.com/2015/02/making-withsocketsdo-unnecessary.html>
removes the error-prone wart of withSocketsDo
<http://hackage.haskell.org/package/network-2.6.0.2/docs/Network.html#v:withSocketsDo>
in Windows network programming. Moving in for the kill is the triple combo
of evaluate, NOINLINE, and unsafePerformIO. (Reddit discussion.)
<http://www.reddit.com/r/haskell/comments/2x7js6/making_withsocketsdo_unnecessary/>

Can you write a sorting algorithm? Can you write a fancy sorting algorithm?
Can you write a sorting algorithm so fancy it hides a subtle bug? Can you
write a sorting algorithm so fancy that it hides a bug so subtle
<https://github.com/timjb/haskell-timsort/commit/d9c3e1e454c7d338320f8c2aa12e882921d42828>
that it evades even QuickCheck because the smallest testcase is 2^49 big?
But the good news is that QuickCheck doesn't see any regression in the
bugfix. (Hacker News discussion.)
<https://news.ycombinator.com/item?id=9100107#up_9112425>

The consequence of misspelling pragmas
<https://ghc.haskell.org/trac/ghc/ticket/10106>, Or: when stumped on a
compile error, turn on -Werror to see if you aren't missing something
obvious.


*Quote of the week:*garry__cairns
<https://twitter.com/garry__cairns/status/571087073739976704>: The trouble
with learning #haskell is the more I expose myself to it the more I dislike
what I have to work with to pay the bills.

*Repo of the week: *Kalium <https://github.com/int-index/kalium>: Turn
Pascal <https://int-index.github.io/kalium/examples.html> into Haskell


-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell/attachments/20150305/1ed3194c/attachment.html>


More information about the Haskell mailing list