home.social

#monads — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #monads, aggregated by home.social.

fetched live
  1. For the Haskellers out there, if you care even a little about performance, remember to unroll your monad transformer stacks!

    Just unrolling one transformer stack (ReaderT r (ExceptT e (StateT s m))) into a single CPS monad gave a 50% performance improvement in a Haskell implementation of a logic programming language

    The best part is that much of the time you don't have to change any code that uses it, since you can implement MonadState, MonadReader, etc.

    #Haskell #monads

  2. I keep wanting to add dry-monads to work projects but always end up not doing it, because it just doesn't feel right, when you can just do `return unless thing`, instead, and move on with your life, nil be damned. I also feel like misusing `yield` like that is just too much to ask from my fellow developers. Maybe Ruby is too *pragmatic* of a language for this type of fuckery. 🤔
    #ruby #monads #functionalProgramming #dryRB #theWorkshop

  3. "When you write HelloWorld in Haskell, as a first example, you cannot explain easily what it does."

    #UndoneCS #monads

  4. From 14:30 to 15:30 on Wednesday, March 18, the PLUSLE reading group will discuss "Notions of Computation Determine Monads" by Gordon Plotkin and John Power.

    plsl.acp.sdu.dk/posts/2026-03-

    #PLUSLE #algebraicEffects #effectSystems #monads

  5. @Ryanbigg

    re:
    > How developers sound to non-developers when you talk shop

    Ohh yeah! the Rockwell retro encaburator, I featured that in my 2022⁺ #RubyConf talk while talking about #Monads in #ruby

    Never again without a contract: dry-validation

    rubyevents.org/talks/never-aga

    where I also featured your work, Ryan :)

    ⁺ wow almost 3 year ago to the date.
    #dryrb

  6. Practical Free monads in Java

    higher-kinded-j shows you how to:
    • Build composable DSLs
    • Transformations as interpreters
    • Stack-safe (10k+ ops verified)
    • Test effectful code purely

    Complete guide:
    higher-kinded-j.github.io/mona

    #Java #FunctionalProgramming #Monads #AdvancedJava

  7. :scala: 📣 It gives me great pleasure in welcoming @armanbilge of @typelevel to #BayAreaScala #meetup with a highly anticipated talk on:

    :scala: Calico: my love letter to the Resource monad :scala:

    For full details of his talk and other speakers can be found here: https://luma.com/9ww60v3l

    #scala #fp #functionalprogramming #SanFrancisco #typelevel #Monads

    cc @scala_lang @scala_space

  8. But before you get mad at me!

    «#Monads are not like burritos»

    byorgey.github.io/blog/posts/2
    > Of course there are lots of people who still understand that it was all just a silly joke. Recently, however, I’ve seen several instances where people apparently believe “monads are burritos” is a real, helpful thing and not just a joke meme. For example, see this thread on lobste.rs, or this Mastodon post

    > So, to set the record straight: “monads are burritos” is not a helpful analogy! Why not, you ask?

  9. #Monads are like burritos
    blog.plover.com/prog/burritos.

    > A monad is a special kind of a functor. A functor F takes each type T and maps it to a new type FT. A burrito is like a functor: it takes a type, like meat or beans, and turns it into a new type, like beef burrito or bean burrito.

    Here's a comic strip version:

    chrisdone.com/posts/monads-are

    If you think a out it, that last post made a burrito out of the text version.

  10. 🤓 Oh no, hide the kids! #Monads are apparently wreaking havoc with their overwhelming power! Who knew Haskell's beloved magic beans could be too "expressive" for their own good? Maybe next time, just stick to plain old loops? 🤯
    chrispenner.ca/posts/expressiv #Haskell #programming #expressiveness #tech #humor #coding #challenges #HackerNews #ngated

  11. My partner just said "Sedges have edges and are graminoids in the order Poales" so I responded "monads are monoids in the category of endofunctors"

    #monads #nonsense

  12. 🚨 Breaking News: #ML, a language nobody uses, also has monads! 🎉 Spoiler: #Monads are just fancy-wrapped functions in libraries, not divine gifts from the #Haskell gods. Turns out, #programming #languages can share features without becoming a cult. 🤯
    existentialtype.wordpress.com/ #TechNews #HackerNews #ngated

  13. When Kyle Simpson wrote a book about monads, "Unwrapping Monads & Friends," I decided to read it. I'm done with monads in my life at this point, but I was curious how he tackled this. Kyle has a talent to nail various subjects without pretentiousness (and Lord only know how much of that there is around monads). I still think that monads are rather exotic concept in JS, but on a theoretical level, it's beneficial to be aware of it.

    leanpub.com/blog/new-book-laun

    #monads #JavaScript