Haskell for Imperative Programmers #36 - Category Theory (Functors, Applicatives, Monads)

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 27

  • @SorokinAnton
    @SorokinAnton 4 ปีที่แล้ว +17

    9:20 maybe map f . map g , not map f (map g)

    • @xenopheliac7202
      @xenopheliac7202 4 ปีที่แล้ว

      map (f . g) ?

    • @philipphagenlocher
      @philipphagenlocher  4 ปีที่แล้ว +15

      Indeed, "map f (map g)" is incorrect. What I wanted to specify was "\x -> map f (map g x)".
      Thanks for spotting that!

    • @MsKarlason
      @MsKarlason 4 ปีที่แล้ว +2

      @@philipphagenlocher or map f . map g

  • @tatechin9268
    @tatechin9268 4 ปีที่แล้ว +12

    I've been following your tutorial for like a week now. Probably one of the best tutorials for haskell. Thank you so much!

  • @AlexandreCassagne
    @AlexandreCassagne 3 ปีที่แล้ว +1

    Your tutorials are fantastic. Thank you for releasing them, they are a rare mix of theory and application that distils the essence of things. More TH-cam channels should embrace this method instead of duplicating concepts unnecessarily (as in the ‘tutorial’ culture).

  • @battatia
    @battatia 3 ปีที่แล้ว +2

    Really liking this series and getting a lot out of it. This is the first where its started to go over my head. Will check out recommended resources and give it another go. Thank you for all of your Haskell content!

  • @Fanaro
    @Fanaro 3 ปีที่แล้ว +3

    How do you create your slides? With LaTeX? If you make it with code, could you please share them as well?

    • @philipphagenlocher
      @philipphagenlocher  3 ปีที่แล้ว +6

      For the slides I use LibreOffice Impress. For syntax highlighting I use this extension: extensions.libreoffice.org/en/extensions/show/code-highlighter

  • @mamo1671
    @mamo1671 4 ปีที่แล้ว +4

    Your videos are truly great. This is the first one I didn't quite understand. I'll have to try to rewatch it and read the linked resources.
    As a request, are you planning to talk about the State monad or the Arrow class in the future?
    Thank you so much for your great videos, keep it up!

    • @philipphagenlocher
      @philipphagenlocher  4 ปีที่แล้ว +2

      Thank you so much!
      Arrows might be a fitting topic for the next video acually! The State Monad will probably find it's way into a video (not as a single video, but as a side note somewhere!). Stay tuned! ;)

    • @mamo1671
      @mamo1671 4 ปีที่แล้ว

      @@philipphagenlocher Great! Thank you!

  • @AlessandroZir
    @AlessandroZir 2 ปีที่แล้ว

    marvelous, I loved those schemes in the beginning!! ❤❤🦊

  • @VuVietran
    @VuVietran 3 ปีที่แล้ว +2

    At 18:55, is this a bit misleading because putStrLn getLine is of type IO (IO ()) which doesn't really do anything unless you "join" the IO? To print, surely you need getLine >>= putStrLn?
    Many thanks for your vids btw!

    • @Bratjuuc
      @Bratjuuc 3 ปีที่แล้ว +1

      Yeah, this works.
      You can join it yourself with
      join :: Monad m => m (m a) -> m a
      join = (>>= id)

    • @shutterrecoil
      @shutterrecoil 2 ปีที่แล้ว

      Control.Monad.join (putStrLn ((++) getLine getLine))

  • @hotdog9259
    @hotdog9259 7 หลายเดือนก่อน

    At 10:00, you say that the tensor product is a functor, but maps objects of C. My understanding is that would be a morphism, not a functor? Or am I misunderstanding

  • @torsten_dev
    @torsten_dev ปีที่แล้ว +4

    21:10
    So a monad is just a monoid in the category of endofunctors?

  • @vicissitude1210
    @vicissitude1210 3 ปีที่แล้ว +3

    Can I download these slides from somewhere?

  • @ambatimeghana6980
    @ambatimeghana6980 2 ปีที่แล้ว

    Your tutorial awesome.
    Can you suggest reference books related to this topic.

  • @exbibyte
    @exbibyte 5 หลายเดือนก่อน

    🔥thank you for the videos

  • @Bratjuuc
    @Bratjuuc 3 ปีที่แล้ว

    What does "muT" mean? Mu is a natural transformation, while T is a functor. Does this T in muT mean id_T ?

  • @saltrocklamp199
    @saltrocklamp199 3 ปีที่แล้ว +1

    Sorry to double comment. Are there sensible English pronunciations for $, , , **, and ?

    • @Bratjuuc
      @Bratjuuc 3 ปีที่แล้ว +3

      $ - apply
      - fmap
      - applicative application
      I don't use the rest at all

  • @flash-gz1hu
    @flash-gz1hu 4 ปีที่แล้ว +3

    Drive by category theory😁

  • @segersbenny
    @segersbenny 3 ปีที่แล้ว +1

    Bartosz has lectures on category theory TH-cam as well, very interesting

  • @nincako
    @nincako 4 หลายเดือนก่อน

    this video is NOT about application. The codes given are just definitions and it is heavily based on describing something very abstract. Please do not waste your time.