1. 9
  1. 5

    I wasn’t too fond of this article for a few reasons:

    • The opening example with Codec isn’t a monoid and doesn’t have anything to do with the rest of the blog. Also, you don’t need an ABC or decode to elegantly serialize objects to bytes. That’s what the __bytes__ method is for!
    • The post is all about how efficient monoids and thunks are but that’s only true if you have an FP-first language! If you wanna make Python fast you gotta use imperative code. A simple while-loop factorial was ten times faster than the thunked version on my computer.
    • They never explained why the thunk variable needed to be covariant.
    1. 1

      Great criticisms!

    2. 1

      Really enjoyed this article. Also the title. Big fan.