Live data from Hacker News

Build your own BitTorrent

app.codecrafters.io

41–50 of 136 posts

Re: Build your own BitTorrent

#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.

Re: Build your own BitTorrent

#42
Can anyone comment as to how far one can go before paying for the codecrafters service?

The crowd that is interested in these kinds of experiences may also like Protohackers, which is completely free.

Re: Build your own BitTorrent

#43
I wish more folks distributed Linux ISOs via Bittorrent since it has an integrity check built into the protocol -- messing with PGP is hard and showing me an MD5 sum over a self signed certificate is... just special.

Re: Build your own BitTorrent

#44
post #15

Is this BitTorrent course free (as beer)? I can see a neighbour course about HTTP server "free during beta".

Having done a couple of their courses without paying: You are expected to complete the project in steps they define (so for their Redis project, step 1 is to bind to a port, step 2 is to respond to a PING command, etc). If you choose not to pay, you can only complete one step per day, even if you submit code which would pass future steps. This can be quite frustrating, since each step is often very simple, and IMO di…

Do submissions have deadlines?

Re: Build your own BitTorrent

#46
post #42

Can anyone comment as to how far one can go before paying for the codecrafters service? The crowd that is interested in these kinds of experiences may also like Protohackers, which is completely free.

The Build your own HTTP Server challenge is currently completely free.

Otherwise, you can do the first 2 stages of any challenge without paying. You can also check out all the prompts and overview for all challenges without a paywall, and you can attempt beyond stage 2 if you have the membership.

You might also find tutorials here useful https://github.com/codecrafters-io/build-your-own-x

Re: Build your own BitTorrent

#47

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.

Finding peers is somewhat slow. When downloading via torrent it takes a while to really ramp up in speed. With a centralized repository you can start downloading basically right away. For many small files the latency is more important than the bandwidth, given that most repositories are not short on bandwitdth.

Re: Build your own BitTorrent

#48

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/

You might also find tutorials here useful https://github.com/codecrafters-io/build-your-own-x

Re: Build your own BitTorrent

#50
post #2

Why in the world does this want access to my github account, with 0 explanation as to why.

Looks like one reason is Codecrafters is a learning site which uses Github to store users code, instead of hosting it themselves. This post is about one project which is at Codecrafters They should explain why though

By default, you're not required to publish your code to GitHub (although you can sync with a couple clicks). By you get a repo for you to work out of, which is hosted on CodeCrafters' git servers.
Post reply on HN