Тёмный

Making the (partial) Rust BitTorrent client more reasonable 

Jon Gjengset
Подписаться 87 тыс.
Просмотров 35 тыс.
50% 1

Наука

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@elgusanito6991
@elgusanito6991 10 месяцев назад
nice thumbnail
@HowDoYouUseSpaceBar
@HowDoYouUseSpaceBar 10 месяцев назад
😩
@elgusanito6991
@elgusanito6991 10 месяцев назад
​@@HowDoYouUseSpaceBar😩
@sifiso3223
@sifiso3223 10 месяцев назад
1:53:13 - the thumbnail
@twistedsector
@twistedsector 10 месяцев назад
Your videos are invaluable to the intermediate Rust community, Jon!
@haydenridd
@haydenridd 4 месяца назад
Thank god we replaced all those nasty single digit "8"s with a scoped constant and two nested casts
@driedurchin
@driedurchin 10 месяцев назад
How would you go about testing this implementation in a robust manner? Seems difficult to create all the edge cases of disconnections, retransmissions, etc.
@illeatmyhat
@illeatmyhat 6 месяцев назад
gut feeling tells me you want property-based testing, but agreed that the unknown-unknowns can be a real headache here.
@pdd9366
@pdd9366 10 месяцев назад
The thumbnail lol
@drvanon
@drvanon 10 месяцев назад
One architecture optimization (dont really know what to call this) i would make is to have a function called download block range and have that be where you deal with all the complex logic that you dealt with in downloaded. Then download all would just call the entire range and for any specific set of files you would figure out what blocks you need. Now, becuase of the possible overlap of pieces across blocks, it is possible that you download a block multiple times in a download all. Edit: or maybe I am misunderstanding how files/pieces/blocks work.
@codeplay4947
@codeplay4947 9 месяцев назад
Your colorscheme/theme is really niceeeeeeeeeeeeeeee!!!!! what is it, (it's not gruvbox) i checked your config files but cannot implement the same in mine, how can i get a theme like yours....
@vxcute0
@vxcute0 8 месяцев назад
could you make a video on implementing the Bittorrent DHT Protocol ? I would really love to see that on your channel :)
@CompletelyCovered3
@CompletelyCovered3 10 месяцев назад
A sequel to the famed classic!
@vaporif
@vaporif 9 месяцев назад
What did you mean by referring to async_channel as smoll-rs based one? It doesn't depend on smoll-rs runtime.
@JakWai01
@JakWai01 10 месяцев назад
Just wanted to say thanks for having made my Rust learning experience in the past really enjoyable. Totally unrelated question, but what kind of zip neck sweater are you wearing?
@simbiont777
@simbiont777 10 месяцев назад
self.offset in DownloadedIter equals to 0 and still unchanged or I missed something?
@driedurchin
@driedurchin 10 месяцев назад
Saw that too, only half-way through though.
@jonhoo
@jonhoo 10 месяцев назад
Good catch! Fixed in github.com/jonhoo/codecrafters-bittorrent-rust/commit/27aeebfb1d9ff2e9294406b332a76ef71e38f4c1. Not caught by the CI I think because CodeCrafters only has single-file download at the moment.
@raidensama1511
@raidensama1511 10 месяцев назад
🥤🍿
@tjoey6663
@tjoey6663 6 месяцев назад
really fascinating stuff, hoping to see more like this
@Dorumin
@Dorumin 10 месяцев назад
5:12 what was that voice
@alphabitserial
@alphabitserial 10 месяцев назад
I'd love to see what a 'from scratch' impl would look like as opposed to using (mostly) just the crates from the Codecrafters challenges. One example I could think of is using nom for bencode instead
@julienleclercq6809
@julienleclercq6809 10 месяцев назад
Isn't nom quite slow for a production software? Always read that it was more of a quickly prototype, don't care of parsing kind of thing.
@alphabitserial
@alphabitserial 10 месяцев назад
@@julienleclercq6809 Not that I'm aware of, it's zero-copy by design and usually almost as fast as a hand-written C parser
@julienleclercq6809
@julienleclercq6809 10 месяцев назад
@@alphabitserial Ah. yes indeed, I thought this was slower than serde, but it's actually quite the opposite. Thanks for the heads up!
@alphabitserial
@alphabitserial 10 месяцев назад
@@julienleclercq6809 Absolutely!
@Nunya58294
@Nunya58294 8 месяцев назад
Although I don't code in Rust this is really fascinating!
Далее
Airpod Through Glass Trick! 😱 #shorts
00:19
Просмотров 472 тыс.
Ко мне подкатил бармен
00:58
Просмотров 165 тыс.
Crust of Rust: Functions, Closures, and Their Traits
1:06:40
Microservices are Technical Debt
31:59
Просмотров 367 тыс.
Real Programmers Write Machine Code
26:25
Просмотров 113 тыс.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Decrusting the quickcheck crate
1:31:34
Просмотров 12 тыс.
Nix explained from the ground up
23:39
Просмотров 35 тыс.
Rust: When C Code Isn't Enough
8:26
Просмотров 168 тыс.
Crust of Rust: Channels
1:43:12
Просмотров 81 тыс.
Gitlab DELETING Production Databases | Prime Reacts
17:27