The Challenges of Introducing Virtual Threads to the Java Platform - Project Loom

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

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

  • @deploydesexta
    @deploydesexta Год назад +3

    Diving very deep in Virtual Threads! Tks a lot for the class!!

  • @danielrehmann7295
    @danielrehmann7295 Год назад +3

    Hey Java Team, I actually got wondering after reading and hearing so many bad things about Thread Locals in combination with virtual thread, what you think about MDC logging. Having meta information in the logs is such a great help but moving them everywhere explicitly is such a pain. So the MDC was always a necessary evil I guess. Is there a suggested replacement in a virtual thread environment? Do we need to wait for scoped variables to get a performant replacement?

    • @--Nath--
      @--Nath-- Год назад +1

      Yeah, I wondered the same thing.. although wouldn't the thread local stuff just be copied with the stack stuff on and off when it is swapped off being tied to a OS thread?

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

      In kotlin coroutines there's coroutines scope and that's where you keep the map. i suppose something like that will exist for vthreads.

  • @spreadkit
    @spreadkit Год назад +6

    Damn, a pretty good video, pretty smart community, and you would think people would comment anything better than "Nth comment". What a shame...
    Eighth comment !!

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

    Can I use Loom for Android if I'm using Kotlin? Is there any advantage of using it over coroutines?

  • @afoo
    @afoo Год назад +1

    not stable before 20, at least in my usage on server with vertx

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

    Java tries so hard to stay relevant but this time I think you overdid it a little bit. VIrtual threads should have been made a separate API (maybe even not be called a "thread") not some wierd type of Thread so that everyone now has to deal with differentiating between the two. LIke he said, it breaks thread-locals and a couple of other things anyway. It's a leaky abstration now.
    Also: platform threads should have been called native or system threads IMO - nobody else calls them platform threads.

  • @shivamdeepgarg7323
    @shivamdeepgarg7323 Год назад +3

    Sixth Comment.

  • @mohamed-gara
    @mohamed-gara Год назад

    Virtual first comment 😂

  • @aksh1618
    @aksh1618 Год назад +2

    Seventh comment.

  • @Mohamedrasvi
    @Mohamedrasvi Год назад +2

    Fourth comment

  • @RajanSingh-yg7eb
    @RajanSingh-yg7eb Год назад +2

    Third comment.

  • @noritakakagei
    @noritakakagei Год назад +2

    Fifth comment.

  • @dumdumdumdum8804
    @dumdumdumdum8804 Год назад +3

    First Comment.

  • @googleuser1195
    @googleuser1195 Год назад +2

    Second comment.