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

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

КОМЕНТАРІ • 35

  • @tenthlegionstudios1343
    @tenthlegionstudios1343 Рік тому +11

    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!

  • @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 3 місяці тому +1

      I'm back! Great talk !

  • @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!

  • @d0m96
    @d0m96 2 роки тому +17

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

  • @baobaobiz
    @baobaobiz 11 місяців тому

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

  • @michaelravits2309
    @michaelravits2309 2 роки тому +5

    Thanks! Very clear explanation.

  • @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

  • @hbobenicio
    @hbobenicio 2 роки тому +4

    Awesome talk King!

  • @vladyslav007
    @vladyslav007 2 роки тому +2

    Yey, cool to see some zig talks again

  • @RobertLJ11
    @RobertLJ11 2 роки тому +4

    Great talk . Thank you 😀

  • @nickdhrones6425
    @nickdhrones6425 Рік тому +1

    New to zig! Learned a lot.

  • @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).

  • @Pascal-uq8gw
    @Pascal-uq8gw Рік тому

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

  • @beauteetmusculation8191
    @beauteetmusculation8191 Рік тому +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.

  • @origamibulldoser1618
    @origamibulldoser1618 Рік тому

    Lots of context and knowledge. Very interesting :)

  • @Pismice
    @Pismice 6 місяців тому

    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 ?

  • @nathanfranck5822
    @nathanfranck5822 2 роки тому +6

    20:12 Jared Sumner just hates Windows confirmed

  • @cdrbvgewvplxsghjuytunurqwfgxvc
    @cdrbvgewvplxsghjuytunurqwfgxvc 2 місяці тому

    True that. Techempower benchies is what we use 😅

  • @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 Рік тому

    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 5 місяців тому

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

  • @abanoubha
    @abanoubha Рік тому

    great talk 🤍