Hacker GitHub

← All repos

quchen/articles

View on GitHub ↗ ★ 1,307 Haskell

Miscellaneous articles. The readme is the table of contents.

22 mentions on Hacker News by 19 people: 12 stories, 10 comments · first 2013-08-12 · latest 2026-10-05

Mentions per year 22 mentions · busiest year 2014 (3)
20082026
  1. …implement arbitrary traversals of lists, including foldl' or list traversals that exit early. See https://github.com/quchen/articles/blob/master/useful_techni...
    comment by s-zeng · 2026-10-05 · in Differences Between `Foldl` and `Foldr`
  2. …there were problems involving circuits of gates that were elegantly solved using the Löb function: https://github.com/quchen/articles/blob/master/loeb-moeb.md
    comment by taolson · 2025-11-30 · in Advent of Code 2025
  3. …players perception of efficiency, but I find it fun. https://en.wikipedia.org/wiki/PID_controller https://github.com/quchen/articles/blob/factorio/factorio/ci...
    comment by willis936 · 2020-08-18 · in Factorio and Software Engineering
  4. …don't carry semantic information. Same goes for `Optional<T>` in an argument position, though https://github.com/quchen/articles/blob/master/algebraic-bli...
    comment by Tarean · 2018-06-27 · in Anti-If: The missing patterns (2016)
  5. …counterparts. The fact that it uses constant space is an implementation detail of GHC. Reference: https://github.com/quchen/articles/blob/master/fbut.md#seq-d... Structural recursion always terminates in SML. Supporting infinite/cyclic…
  6. …Löb function over (Haskell) functors implements spreadsheet-like computations in an unexpected way: https://github.com/quchen/articles/blob/master/loeb-moeb.md ex. loeb [const 1, const 2, \xs -> x !! 0 + x !! 1] gives you [1, 2, 3].…
    comment by rfw · 2015-07-24 · in How to implement a spreadsheet
  7. …than Lisp stacks of parentheses. - ByteString.Char8 is usually a wrong choice, more on that here: https://github.com/quchen/articles/blob/master/fbut.md#bytes... - If you count to "length x" then often there's a more elegant solution that…
  8. If you really want to go down the rabbit hole on stuff like this, check out bouncy folds https://github.com/quchen/articles/blob/master/useful_techni...
  9. I heartily recommend this short accessible article to anyone interested in loeb: https://github.com/quchen/articles/blob/master/loeb-moeb.md
    comment by maninalift · 2014-08-31 · in Twitter waterflow problem and loeb (2013)
  10. …times, I wrote together a file that guides me through the process, which you can find here: https://github.com/quchen/articles/blob/master/install_haske...