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

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

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

  • @AmarjeetKapoor1
    @AmarjeetKapoor1 หลายเดือนก่อน +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?

  • @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

  • @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 `_ => ()`).

  • @Ruzveld83
    @Ruzveld83 11 หลายเดือนก่อน

    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 11 หลายเดือนก่อน

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

    • @Ruzveld83
      @Ruzveld83 11 หลายเดือนก่อน

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

  • @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 ปีที่แล้ว

    meow