A Tour of ZIO

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

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

  • @doug4328
    @doug4328 5 лет назад +8

    Scala newbie here, and i must say, this library will be very welcoming to newbies wanting to advance their scala knowledge. The error handling is top notch, nothing I've seen so far. Thanks John

  • @axiom66
    @axiom66 3 года назад +1

    ZIO truly addresses composability in functional programming and this presentation does an awesome job in revealing what can be accomplished. It provides motivation for learning about the functional methods of map, flatMap, zip and fold and leveraging them within a robust composable context with the syntatic sugar of for comprehensions.

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

    Remember having to solve that Philosopher diner problem in plain C with Pthread for a school project. It was a huge pain and felt like magic with locks and conditional variable ... Impressed to see a one line solution to that :)

  • @ramavishal8605
    @ramavishal8605 6 месяцев назад

    very nice detailed explanation for beginners

  • @imranfp
    @imranfp 4 года назад +1

    Nice Explanation and I was going to start reading zionomicon book but want a good strat and this video gives mouthful to get started ! Thanks

  • @msharno
    @msharno 5 лет назад +2

    Wow, I'm very impressed with the capabilities of ZIO, hope I can utilize it in a project soon

  • @amittripathy
    @amittripathy 4 года назад +1

    Very impressive. I am attempting to rewrite my akka/spark/kafka application using ZIO. There is nothing wrong with my application, however, I want to explore what it takes to design in a purely functional way, and manage mutable state without actors. Please advise me with any other materials or books if you have any on ZIO.

  • @vasyan123
    @vasyan123 3 года назад +2

    I'm trying to understand Dining Philosophers implementation and I don't completely see how blocking in takeForks works. It retries on left/right fork TRef[Option] until its Some(...) yet I do not see anywhere in the code where it is set to None in the first place so blocking part never happens. In fact if you run implementation, it shows "Philosopher N eating..." for all philosophers and then "Philosopher n is done eating" as if none of them are blocking each other from using forks. Am I wrong on this or takeForks should look like this:
    def takeForks(
    left: TRef[Option[Fork]],
    right: TRef[Option[Fork]]
    ): STM[Nothing, (Fork, Fork)] =
    for {
    leftFork fork
    }
    _

  • @WellSaint001
    @WellSaint001 5 лет назад +2

    I don't do scala (yet), and this library is the only reason I want to learn scala

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

      You can also use Matechs-effect in typescript, or arrow-fx in Kotlin

  • @omarkhalidkhan1851
    @omarkhalidkhan1851 3 года назад

    overriding method run in trait App of type (args: List[String])zio.URIO[zio.ZEnv,zio.ExitCode] , i am getting this compile time error when replication your example, can anyone help

  • @pawepanasewicz7679
    @pawepanasewicz7679 3 года назад +1

    What is that IDE John is using?

    • @Aditya-kq5fe
      @Aditya-kq5fe 3 года назад +1

      Vscode with metals plug-in I think

  • @einfacherkerl3279
    @einfacherkerl3279 3 года назад +2

    excellent and elegant, but doesn't it look like too much to do simple things? printing on screen should be about just that but here it seems like you print, in an effect that maps ... apart from elegance, this is just quite a price to pay for elegance in terms of computations involved. Yes people would say who cares about few ms and such but every function call takes time. I would go for a mix of Functional and Object Oriented in the real world apps - elegance + practicality

  • @anagram81
    @anagram81 4 года назад +1

    "[…]And we don't have to do anything of that with STM; we just open up a fork-comprehension…"

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

    Repo with code github.com/jdegoes/zio-intro-game

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

    How to put 5 likes