Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Implementing (part of) a BitTorrent client in Rust

Автор: Jon Gjengset

Загружено: 2023-10-19

Просмотров: 108609

Описание:

In this stream, we're doing the "implement BitTorrent" challenge from https://app.codecrafters.io/join/bitt... in Rust. Essentially, we're implementing a BitTorrent client from scratch by following a test-guided set of steps. This is a way of learning I really like (and encourage others to try), and after this stream I'm comfortable saying that this is also a good implementation of that learning mechanism — props to CodeCrafters!

It's worth noting that this is not a sponsored stream, at least not directly. I got no money to make it. CodeCrafters reached out to me after the fly.io distributed systems challenges video (   • Solving distributed systems challenges in ...  ) and suggested I might be interested in trying their thing and, crucially, giving my honest opinion of what they'd built. Since I deeply believe in this learning path, and want to help those enabling it, I took them up on it! I do get a referral bonus for those who choose to sign up for this through the link above after watching the video (so please use it if you do decide to sign up), but hopefully that's an informed choice after watching this :p And you can of course always just stick to their free challenges! The BitTorrent challenge is also available openly here: https://github.com/codecrafters-io/bu...

Also, I managed to fix the code for the "download a piece" bit at the end, and it was indeed mostly a (set of) off-by-one errors. You can see the final changes here: https://github.com/jonhoo/codecrafter...

0:00:00 Introduction
0:03:15 Project setup
0:04:33 Decode bencoded strings
0:10:58 Decode bencoded integers
0:18:28 Decode bencoded lists
0:36:39 Decode bencoded dictionaries
0:40:42 Parse torrent file
1:24:24 Calculate info hash
1:38:55 Piece hashes
1:41:35 Discover peers
2:35:13 Peer handshake
2:52:55 Download a piece
4:07:05 Concluding thoughts

Live version with chat: https://youtube.com/live/fhEHBQog-Cc?...

Implementing (part of) a BitTorrent client in Rust

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

impl Rust: One Billion Row Challenge

impl Rust: One Billion Row Challenge

Implementing (parts of) git from scratch in Rust

Implementing (parts of) git from scratch in Rust

Making the (partial) Rust BitTorrent client more reasonable

Making the (partial) Rust BitTorrent client more reasonable

How 1 Software Engineer Outperforms 138 - Lichess Case Study

How 1 Software Engineer Outperforms 138 - Lichess Case Study

Асинхронность в Rust

Асинхронность в Rust

impl Rust

impl Rust

Solving distributed systems challenges in Rust

Solving distributed systems challenges in Rust

A Simpler Way to See Results

A Simpler Way to See Results

Stop Using Rust Use C++ | Prime Reacts

Stop Using Rust Use C++ | Prime Reacts

Implementing TCP in Rust (part 1)

Implementing TCP in Rust (part 1)

Полиморфизм на основе Rust ⚡️ с чертами

Полиморфизм на основе Rust ⚡️ с чертами

Crust of Rust: Iterators

Crust of Rust: Iterators

Создание клона Redis с помощью Zig и Codecrafters, часть 1

Создание клона Redis с помощью Zig и Codecrafters, часть 1

Implementing a Lox interpreter in Rust

Implementing a Lox interpreter in Rust

Rust’s most complicated features explained

Rust’s most complicated features explained

The Windows 11 Disaster That's Killing Microsoft

The Windows 11 Disaster That's Killing Microsoft

Использовать дугу вместо вектора

Использовать дугу вместо вектора

Отправка HTTP-запросов в приложениях Rust 🦀 Учебник Rust для разработчиков

Отправка HTTP-запросов в приложениях Rust 🦀 Учебник Rust для разработчиков

Implementing and Optimizing a Wordle Solver in Rust

Implementing and Optimizing a Wordle Solver in Rust

Создать веб-сервер Axum в Rust легко!

Создать веб-сервер Axum в Rust легко!

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com