[DLang Episode 112] Special guests Ali and Steve on Deserialization and Multitasking!

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

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

  • @wiktorwektor123
    @wiktorwektor123 2 หลายเดือนก่อน +4

    Thanks Mike, I've learned some new things feom Ali and Steve

    • @MikeShah
      @MikeShah  2 หลายเดือนก่อน

      Cheers!

  • @GaryChike
    @GaryChike 2 หลายเดือนก่อน +6

    D'awesome double sauce! Both Ali and Steve are not only very talented programmers but really nice guys and very approachable - they have always been super helpful on the Dlang forum!

    • @MikeShah
      @MikeShah  2 หลายเดือนก่อน +1

      100% both of them are awesome members of the community 🙂

    • @bsdooby
      @bsdooby 2 หลายเดือนก่อน +2

      ...and also on Discord

    • @MikeShah
      @MikeShah  2 หลายเดือนก่อน

      @@bsdooby Absolutely!

  • @kyleheaser2385
    @kyleheaser2385 2 หลายเดือนก่อน +2

    At 45:25 of Ali's talk, he mentions A's stack and B's stack. When greetMoon is spawned, does that mean a stack C is created? Is there a stack per thread? How about a stack per core? Are these physical stacks or virtual stacks? My head is spinning but in a good way.

    • @MikeShah
      @MikeShah  2 หลายเดือนก่อน

      Correct, each thread has its own local stack space. 50 threads (i.e. 50 calls to spawn) mean 50 individual stacks would be allocated. I believe a heap allocation is made for each thread to otherwise manage the stack.

    • @alicehreli5017
      @alicehreli5017 2 หลายเดือนก่อน +1

      A stack per core would not work because the very low number of cores are working for a very high number of threads.

    • @disdroid
      @disdroid 2 หลายเดือนก่อน +1

      It's the same in every language. At runtime each core has a stack assigned, and this can be modified. each thread has memory assigned for it's stack, and when that thread is executed by a core then the stack pointer is set to the correct value before your code gets executed.

  • @kyleheaser2385
    @kyleheaser2385 2 หลายเดือนก่อน +1

    Finally, I know how to pronounce Schveighoffer. :)

  • @philtoa334
    @philtoa334 2 หลายเดือนก่อน +1

    Nice.