CppCon 2016: John Bandela “Channels - An alternative to callbacks and futures"

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 16

  • @jjurksztowicz
    @jjurksztowicz 8 років тому +13

    Some of those bad jokes could kill a horse. Sense of humour: extremely nerdy. Talk about channels: informative and interesting.

  • @YourCRTube
    @YourCRTube 8 років тому +25

    Mr. Bandela, Your talks are very interesting, but much like last year's Pattern Matching, contain way too much code to be fully comprehensible. I, personally, would have much preferred to see the distilled core idea presented, with some nice examples, then a full implementation, which is available online anyway.

    • @aroundyouaroundme
      @aroundyouaroundme 7 років тому +5

      It's not about implementation, it's about reasoning. So personally I'm glad to see that kind of presentations.

  • @shortbenjamin
    @shortbenjamin 8 років тому +1

    This is great, but makes me nervous that the concurrency community is moving in the wrong direction. Thank you for doing this talk!

    • @kwinzman
      @kwinzman 8 років тому +4

      Could you elaborate? Are you referring to future/promise performance?

    • @EdinburghGuy
      @EdinburghGuy 7 років тому +1

      The general trend is for new instructions to be added to CPU's and GPU's to handle mutex's, barriers, sync's and do things like thread wait, flush or wait for data blocks and instructions to complete. These will get mapped onto compiler intrinsics like having keywords in front of C++ instructions blocks eg. parallel { ... } or serial { ... }

  • @TomaszWota
    @TomaszWota 8 років тому +1

    This was pretty cool, I have to admit.

  • @Masleus
    @Masleus 8 років тому +1

    Amazing talk

  • @HUSTnewpoo
    @HUSTnewpoo 8 років тому +1

    What caused the bad performance for future comparing to callback? Could it be the dynamic memory allocation underlying future & promise?

    • @dafl00
      @dafl00 8 років тому

      Bo Liu mostly. but there's also a thread created

    • @HUSTnewpoo
      @HUSTnewpoo 8 років тому +2

      future/promise doesn't necessarily need to create threads.

    • @StackedCrooked
      @StackedCrooked 8 років тому

      The cost of thread wakeup.

    • @reinterpret_cast
      @reinterpret_cast 4 роки тому

      Memory allocation and locks

  • @jonthoroddsen6467
    @jonthoroddsen6467 7 років тому +2

    Well, this is some cool software engineering. But.. it's not exactly brain surgery, is it?