F(by) 2017. Bartosz Milewski - A Crash Course in Category Theory.

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025

Комментарии • 10

  • @demokraken
    @demokraken 6 лет назад +12

    Bartosz is the man whenever it comes to refresh my knowledge about Category Theory. I do recommend his in-depth videos about the theory. Thank you for all the effort!

  • @pexoto5093
    @pexoto5093 2 года назад +1

    my man bartosz should have as much time as he wants cmon we love listening to him

  • @Olodus
    @Olodus 6 лет назад +2

    It feels like what he talks about on the last question fit very well into testing with QuickCheck in Haskell and its properties - category theory telling you what properties you can have as tests.
    I think I saw a another talk with a title sounding like it talked about that. Onto that one!

  • @lukaszstocki6998
    @lukaszstocki6998 4 года назад +3

    If by chance you language of choice is Swift then:
    "Void" is actually called "Never" (eg. fatalError "returns" Never).
    And Swift "Void" type is here called "Unit". As it has only one inhabitant namely an empty tuple: "()".
    :)

    • @roysmith5711
      @roysmith5711 4 года назад

      This is a good idea.
      So, for Rust it is.
      Void is None
      and
      Unit is () which is an empty tuple as well.
      Sums are Enums (since you have more than two, it has composition built in)

  • @pmcate2
    @pmcate2 5 лет назад

    So void goes to all other objects because every set has the empty set as a subset?

    • @serhiiovcharuk3954
      @serhiiovcharuk3954 4 года назад

      pmac rather because between any two sets there are an “empty” mapping (function), as empty subset of cartesian product, i. e. empty functional relation.

  • @giganetom
    @giganetom 7 лет назад +7

    $ ghci
    > import Data.Void
    > map absurd []
    Laugh. :D

    • @W1z3k
      @W1z3k 7 лет назад +1

      Haha, I was skeptical at first, but then I launched ghci and typed in what you wrote, and I did laugh indeed. :D

    • @muntoonxt
      @muntoonxt 6 лет назад

      That was super practical. I'm gonna run a %s/\[\]/(map absurd [])/g right now.