jaredtobin

Joined 11 years ago

Karma
212
Submissions
15
Member since
Apr 21
https://jtobin.io

[ my public key: https://keybase.io/jtobin; my proof: https://keybase.io/jtobin/sigs/-hjJrUjcY3D4mJ-dbSuLxojYWSdAFBMzin1dUcvg4Ck ]

View on Hacker News

Recent submissions

Comment · 9 years ago
Comment · 9 years ago
Just conjecture, but I imagine that he got tired of the mods accusing him of trolling (in his uniformly high-quality and civil commentary) due to his non-standard political views.
Comment · 9 years ago
It's exactly a hylomorphism. Here's a possibly more familiar-looking Haskell form:

    {-# LANGUAGE DeriveFunctor #-}
    {-# LANGUAGE LambdaCase #-}

    import Data.Functor.Foldable
    import Data.List.Split

    data QuadTreeF a r =
        NodeF r r r r
      | LeafF a
      | EmptyF
      deriving Functor

    builder :: [a] -> QuadTreeF a [a]
    builder = \case
      []  -> EmptyF
      [x] -> LeafF x
      xs  -> NodeF a b c d where
        [a, b, c, d] = chunksOf (length xs `div` 4) xs

    consumer :: QuadTreeF a [a] -> [a]
    consumer = \case
      EmptyF            -> []
      LeafF a           -> [a]
      NodeF ul ur lr ll -> concat [ll, ul, ur, lr]

    rotate :: [a] -> [a]
    rotate = hylo consumer builder
Comment · 10 years ago
We even felt it up in Auckland. It woke my partner and I up and made the building creak and flex a bit.
Comment · 10 years ago
Discussions on this kind of thing probably largely settle into opposing "yay Soylent!" and "boo Soylent!" sides. When I look at this as a tidbit of news, however, it doesn't seem to say very much to me.

"Small percentage of consumers report dissatisfaction with product - company investigating."

Comment · 10 years ago
Comment · 10 years ago
I contributed, and I know what I know by virtue of playing with the technology, keeping up with the news in r/ethereum, etc. The usual kind of thing one does in smaller tech communities.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton