Building a Parallel File Downloader with new async IO interface

Hello guys, I made a video about building a file downloader in Zig using async IO.

It covers parsing the URL, fetching file metadata, making ranged HTTP requests, verifying the file with hashes, and then downloading multiple chunks in parallel with the new async IO interface.

Any thoughts or feedback?

12 Likes

here’s the reference code if anyone wants to play around: code reference for parallel downloader video · GitHub

That’s really cool!

I wonder:

  • Why don’t you use init.io from juicy main? I think it makes sense for this kind of demo application
  • Why don’t you use Io.Group or something like that? Is there a reason you prefer creating a buffer of Io.Future?