Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Download Accelerator – Async Rust Edition (ochagavia.nl)
9 points by wofo on June 23, 2024 | hide | past | favorite | 3 comments


Clicked on this as I've fond memories of download managers, though I was more interested in resuming downloads across many dial up sessions than throughput improvements. It's a good tip how they can apply to blob storage.

Nit: As someone new to rust, I was a bit confused by the "clone the semaphore" part (as that would be a bit self defeating), but it turns out you're not actually cloning it. Rather the Arc wrapper is being cloned and managing access/lifetime of a single semaphore instance.

There's a detailed explanation on stack overflow here that make it click for me https://stackoverflow.com/questions/40984932/what-happens-wh...


I love async Rust, but no, you don't _need_ it to build something like this.

You can create 50 kernel threads in a millisecond. I doubt the user is going to notice the difference in implementation.


See point 2 in the Background section.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: