Fabio Labella-How do Fibers Work? A Peek Under the Hood

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024
  • НаукаНаука

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

  • @AmarjeetKapoor1
    @AmarjeetKapoor1 4 месяца назад +2

    Great explanation. Would love to listen to more internals of Cat-effects and related libraries? Are there other talks which explain the internal workings of Cats-effects, apart which were skipped?

  • @miguelmarcelino2449
    @miguelmarcelino2449 22 дня назад

    Brilliant. Always wanted to know how these things work.

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

    this is wonderful, thank you! looking forward to next episode abour blocking and resource safety if possible.

  • @klasus2344
    @klasus2344 Год назад

    Insanely good explanation of async and concurrency!!

  • @Argcz
    @Argcz 5 лет назад +5

    Awesome! Thank you!

  • @amislouma
    @amislouma 2 года назад

    Thanks

  • @Ruzveld83
    @Ruzveld83 Год назад

    So, where can I found explanation what is going on under the hood to avoid blocking a platform thread when when a code invokes a real blocking code inside a fiber?

    • @Ruzveld83
      @Ruzveld83 Год назад

      Here you go: typelevel.org/cats-effect/docs/thread-model#thread-blocking

    • @Ruzveld83
      @Ruzveld83 Год назад

      I found the answer at Thread Model section of Cats Effect doc

  • @kubukoz_
    @kubukoz_ 4 года назад +2

    Just noticed, in `spawn` around 54:00, the return type is `IO[Unit]`, not `IO[A]`. The result of the `IO[A]` is discarded (in `_ => ()`).

  • @ayushmittal2581
    @ayushmittal2581 5 лет назад +1

    30:39 ..why does the API have a def unsafeRunSync(fa: IO[A]) : A ?? the method should be on a IO[A] and not require a IO[A].

    • @gvolpe87
      @gvolpe87 5 лет назад +7

      He's just implementing *The Simplest IO* and that's a design decision. You can choose to have a RTS (runtime system) like ZIO does, define it in IO like cats-effect does or just have a single method in your simple API like in this talk. There's not one single way to do it.

  • @sergeibatiuk3468
    @sergeibatiuk3468 2 года назад

    meow