Zig's I/O and Concurrency Story - King Protty - Software You Can Love 2022

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

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

  • @tenthlegionstudios1343
    @tenthlegionstudios1343 Год назад +12

    came to this talk before I knew what tiger beetle was - since then I have watched almost all the tiger beetle videos and looked into the code. TigerBeetle is legit - your consensus algorithm is one of the most straightforward beautiful things, the two LSM tree's built in house plus all IO optimizations plus all the memory safety are so cool. View Time Stamped replication is amazing. State replication machines and protocol aware recovery - so cool. Also, love this talk and am coming back for a second time to watch it again. Thanks!

  • @d0m96
    @d0m96 2 года назад +20

    Awesome talk! Thanks for putting it together, learned a lot :)

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

    Oh nice another lecture by King! I love hearing him talk! He as a knack for doing complex material in a very airy funny way. I love it!

  • @10e999
    @10e999 2 года назад +27

    Hum I'm not at the level required to follow this talk properly.
    that said, I'm glad Zig conf tackle advance topics. It's motivating to slowly understanding more about system programming.

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

      Same boat but now I have some language to use for reading :D

    • @10e999
      @10e999 Год назад

      @@sanador2826 Great mantality !

    • @10e999
      @10e999 6 месяцев назад +1

      I'm back! Great talk !

  • @Pascal-uq8gw
    @Pascal-uq8gw Год назад

    What an information bomb! 🎁 A lot of things are starting to make sense now. Keep it up.

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

    Great talk . Thank you 😀

  • @marijnstollenga1601
    @marijnstollenga1601 2 года назад +2

    Can't wait for this! Sounds like with this you would have amazing performance simply by embracing async in your pograms

  • @michaelravits2309
    @michaelravits2309 2 года назад +5

    Thanks! Very clear explanation.

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

    Awesome talk King!

  • @vladyslav007
    @vladyslav007 2 года назад +2

    Yey, cool to see some zig talks again

  • @nickdhrones6425
    @nickdhrones6425 2 года назад +1

    New to zig! Learned a lot.

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

    Lots of context and knowledge. Very interesting :)

  • @beauteetmusculation8191
    @beauteetmusculation8191 2 года назад +2

    Thanks for the video. I've worked a bit with the network API of the Zig standard library and it was somewhat confusing to me. Ended-up using a very simple poll(2) syscall and call it a day. I know it's not AT ALL efficient, but at least it's available everywhere and is pretty simple.
    I really hope there will be a way, someday, to make efficient network applications without having to dig into very obscure, non-portable APIs. For now, the Zig standard networking API seems at an early stage.

  • @13madman37
    @13madman37 2 года назад +8

    I always find it interesting to see that people stop at Overlapped IO when talking about non-blocking IO on Windows. APIs like Registered IO (now available for well over 10 years) and IoRing (okay, this is something new right now) are available too and are very similar to io_uring which everyone seems to talk about...

    • @kprotty6828
      @kprotty6828 2 года назад +5

      AFAIK (correct me if i'm wrong here), windows RIO requires registered buffers which wouldn't fit zig's intrusive memory model + would hit the locked memory limit on linux for general purpose use. IoRing is getting there but currently only documents/supports reads and requires windows 11.

    • @13madman37
      @13madman37 2 года назад +2

      @@kprotty6828 Thanks for the reply. I mainly wanted to make the general observation that Registered IO and IoRing were not mentioned in the talk as it seems to be the case everywhere. These APIs always seem to be overlooked. And yes, Registered IO works with physically locked buffers and I only worked with it in specific contexts where this wasn't an issue (never tried to build a library on top of it). While writes are now supported by IoRing, they are still not documented in the Win32 API (took this info from the windows-internals blog).

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

    "I own concurrency". Only 15 secs in, a sudden tsunami of respect thrusting my way.

  • @Pismice
    @Pismice 9 месяцев назад

    Hey I’m new to concurrency and I’m trying to wrap my heads about all the concepts surrounding this topic. Do you have any good books or blogs or whatever so that I can understand it deeper ?

  • @cdrbvgewvplxsghjuytunurqwfgxvc
    @cdrbvgewvplxsghjuytunurqwfgxvc 4 месяца назад

    True that. Techempower benchies is what we use 😅

  • @nathanfranck5822
    @nathanfranck5822 2 года назад +6

    20:12 Jared Sumner just hates Windows confirmed

  • @realsong-fake
    @realsong-fake 2 года назад

    I would like to see a runtime with dynamic amount of io reactors. a single poll based event loop can stop to scale completely when many fd given. On the other hand thread per io reactors can be waste of resource as you don't always need io throughput.

  • @doge6363
    @doge6363 2 года назад

    gr8 talk

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

    I am not nearly as deep into zig as you guys but as someone who came from outside I have to say that asyncio seems to be a big mistake imho. Zig is supposed to be "simple" but even after that shirt period of evolvment time zig seems to be more and more cluttered with optional/secondary stuff.

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

    One question, why TigerBeetle didn't go straight with DPDK. Sacrificing cross platform, but kinda makes sense in your case, no?

    • @tigerbeetledb
      @tigerbeetledb 2 года назад +8

      Great question! We were aware of it, but our philosophy is to work on commodity hardware, targeting slow/small hardware as well, and being fast like that (e.g. thinking about disk/memory access patterns). With large enough disk blocks (64 KiB) and with io_uring, performance is almost also on par, from what we have read. TigerBeetle was designed just as io_uring was out, so we were also lucky that we had the benefit of being able to target it.

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

    If you were hoping to learn how to write some specific Zig code, you won’t see it in this talk. Zero lines of ZIP Code are displayed.

    • @Peter-bg1ku
      @Peter-bg1ku 8 месяцев назад

      Yes, zero lines of "ZIP Code" displayed, you are correct ..

  • @abanoubha
    @abanoubha 2 года назад

    great talk 🤍