‹ BackHN Continuity

Thread

What I did at Recurse Center

133 points · 43 comments · bingden

  1. rtpg · · focus · HN ↗
    > This included what was probably the most interesting part, writing the tricky recursive code to implement the match statement.

    Back in school I found this book[0], "The Implementation of Functional Programming Languages". Flipping through it was very neat because it kinda demystified the nuts and bolts of implementing the "fancier" functional programming features for me.

    Chapter 5 is about implementing pattern matching.

    You read this kind of stuff and realize how easy things become when you just tackle a problem with the right mindset and abstractions. And this is a book from 1987! We've always had decent answers for a lot of the stuff.

    I think it's interesting to flip through if you're a language implementer, though helps to be comfortable with reading some stuff sideways and not understanding every detail.

    [0] <a href="https:&#x2F;&#x2F;simon.peytonjones.org&#x2F;assets&#x2F;pdfs&#x2F;slpj-book-1987-searchable.pdf" rel="nofollow">https:&#x2F;&#x2F;simon.peytonjones.org&#x2F;assets&#x2F;pdfs&#x2F;slpj-book-1987-sea...

    1. jan_m_savage · · focus · HN ↗

      [dead]

      1. jonstewart · · focus · HN ↗
        The Reagan years were a golden age but not the 90s?
        1. jan_m_savage · · focus · HN ↗
          I meant the world, not the USA, but perhaps you think the world is all America.
      2. JackMorgan · · focus · HN ↗
        I think there&#x27;s a lot more to be blamed on a planet that&#x27;s getting hotter, pesticides in the food, lead in the soil, plastic in the food containers, hormones in the meat and cheese, and cost of living that goes up while salaries don&#x27;t. Social trust is at an all time low. 99% of the population gets poorer everyday and can feel it. There&#x27;s no hope of things getting better, so yeah plenty of people stop doing enriching activities.

        Porn isn&#x27;t the cause, it&#x27;s a symptom of a population losing hope that things will be better for their kids. Or that can&#x27;t afford kids at all.

        1. astrange · · focus · HN ↗
          This is slopulism, aka you read social media too much and got depression.

          &gt; 99% of the population gets poorer everyday and can feel it.

          Absolutely not true in the US. What did happen is that poor people&#x27;s incomes vastly increased since 2019, while upper middle class incomes stagnated.

          It may of course be true in some countries.

          &gt; Or that can&#x27;t afford kids at all.

          Birth rates declining is a sign of increased incomes, because people can afford entertainment, and prefer to consume it over having kids, which are kind of a bummer and mean you can&#x27;t have fun for the next 18 years.

          1. LoFiSamurai · · focus · HN ↗
            &gt; Birth rates declining is a sign of increased incomes, because people can afford entertainment, and prefer to consume it over having kids

            This is a ridiculous take.

            1. astrange · · focus · HN ↗
              <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Income_and_fertility" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Income_and_fertility
        2. jan_m_savage · · focus · HN ↗
          Eh, don&#x27;t please.

          Just look at the effect it has had on yourself. And tell me it didn&#x27;t depress you?

          I have clients telling me their lives were destroyed because they couldn&#x27;t stop the addiction.

      3. paulryanrogers · · focus · HN ↗
        Older people have trouble sleeping all night, walking, doing manual labor. Maybe the neighbor just ... transitioned to a different stage of life.
        1. jan_m_savage · · focus · HN ↗
          I know several older people who live active, happy lives. Why is it so hard to admit this filth causes depression? There is research evidence for it, you know, a google search away.
          1. paulryanrogers · · focus · HN ↗
            Survivorship bias is also a thing. I&#x27;m not saying this neighbor I&#x27;ve never met was happy. Just that many of these symptoms are signs of aging.

            If you&#x27;ve found some compelling evidence then please do share. Because all I&#x27;ve read about it is inconclusive.

            1. jan_m_savage · · focus · HN ↗

              [dead]

      4. vasco · · focus · HN ↗
        In a completely unrelated thread to the topic you wrote the word porn 5 times. Are you sure it&#x27;s the neighbours you need to worry about?
        1. jan_m_savage · · focus · HN ↗
          None of what I write is unrelated; if I wrote, there must have been a connection. Perhaps you can&#x27;t read?
          1. vasco · · focus · HN ↗
            Indeed there must be a connection, which is why I advised you to look inwards!
            1. jan_m_savage · · focus · HN ↗
              And you haven&#x27;t? You must be a saint, then.
    2. fifticon · · focus · HN ↗
      It is even worse, we had decent answers for some of the stuff back in the 40s, 50s and 60s (e.g. Dijkstra&#x27;s work on concurrency, before there even were computers to run them on.) Someone will reply to my comment with Lovelace or Babbage or Pascal :-&#x2F;
      1. rtpg · · focus · HN ↗
        Not super aware of what Djikstra&#x27;s work on concurrency you&#x27;re referring to are. I&#x27;ve had to try to implement things from CS research papers directly and have always had a _bit_ of trouble (disclaimer: I&#x27;m dumb), and appreciate this book getting down to the implementation details in a bit of a fool-proof way.

        Of course this book is a bunch of &quot;research papers&quot; stapled together in some sense but the act of curating is quite nice

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.