Live data from Hacker News

Build your own BitTorrent

app.codecrafters.io

61–70 of 136 posts

Re: Build your own BitTorrent

#62

It seems to be failing to create a repository right now

We got a massive inflow of traffic from HN today and that seems to have hit some rate limits with GitHub. We're looking into it.

I think it's breaking some other things as well

[stage-1] Expected "\"orange\"\n" as stdout, got: "Hello World 2!\n"

Re: Build your own BitTorrent

#63

Earlier quoted context omitted.

Most linux distributions have a rather robust mirroring operation. This is much faster than bittorrent. Lots of cloud vendors provide a mirror endpoint for traffic within their network, and ISPs typically also have them. The network is fast enough for lots of small files to not really justify it.

I think that hundreds of thousands of peer machines would be way faster than a few centralized repositories... right? It seems you would have essentially unlimited bandwidth.

Picking a peer you have good bandwidth to is a hard problem.

Re: Build your own BitTorrent

#64
post #41

Does this include the DHT? BT, the protocol itself is not very interesting, it's just a very bad file access protocol over HTTP without DHT, which makes it really P2P.

(codecrafters dev here)

It doesn't, but will soon: https://app.codecrafters.io/vote/challenge-extension-ideas?c....

We release a set of "base" stages first, and then work on extensions based on demand. DHT is one of them, magnet links is another that folks have voted for.

Re: Build your own BitTorrent

#65
post #62

Earlier quoted context omitted.

We got a massive inflow of traffic from HN today and that seems to have hit some rate limits with GitHub. We're looking into it.

I think it's breaking some other things as well [stage-1] Expected "\"orange\"\n" as stdout, got: "Hello World 2!\n"

(codecrafters dev here)

This should only affect C# repositories, and we're working on a fix - C# support is relatively new, and looks like there are some teething issues with the caching mechanism we use to run tests (we aim to keep median response times <3s).

Re: Build your own BitTorrent

#66

It seems to be failing to create a repository right now

We got a massive inflow of traffic from HN today and that seems to have hit some rate limits with GitHub. We're looking into it.

(codecrafters dev here)

Rate limits issue should be fixed now!

Re: Build your own BitTorrent

#67
post #21

Oddly the uploading part is missing. To be a peer, an equal, things have to flow both ways. Bittorrent wouldn't work otherwise.

Yep, "Seeding files" is an extension: https://app.codecrafters.io/vote/challenge-extension-ideas?c.... Not supported yet, but will be available soon (we add new extensions based on user votes)

Re: Build your own BitTorrent

#68
post #21

Oddly the uploading part is missing. To be a peer, an equal, things have to flow both ways. Bittorrent wouldn't work otherwise.

Hi, course author here! You're right, this was left out initially to scope down the challenge (it's already quite long with 11 stages). We're planning to add it as a challenge extension, uploading is one of the highly voted challenge extension ideas by the community.

Re: Build your own BitTorrent

#70

what's with the sign in required, is this a paid tutorial? Here are some free tutorials: JS - https://allenkim67.github.io/programming/2016/05/04/how-to-m... GO - https://blog.jse.li/posts/torrent/ Python - https://markuseliasson.se/article/bittorrent-in-python/

Thanks
Post reply on HN