News for hackers. Stuff that matters.
Re:Haskell vs. Erlang for bittorent clients by CountHackulus on Saturday January 04, 2014 @12:03PM (#7011752)
This is very interesting and actually seemed like a fair comparison of the two languages.

Say I wanted to write my own bittorrent client for fun and to learn a new language, is there a good guide on bittorrent I can read?

Re:Haskell vs. Erlang for bittorent clients by jlouis on Saturday January 04, 2014 @12:32PM (#7011910)
https://wiki.theory.org/BitTorrentSpecification is by far the best starting point for the base protocol. Roughly, you can make certain short-cuts to get running quickly:

Don't cache anything. Write data directly to disk and use seeks. Request pieces at random and don't think about getting the rarest first. Skimp on the choking strategy and don't do anything clever, but pick a simple algorithm. Skip all the extensions until the other parts work.

Get the wire-protocol and bencoder up and running first. Then handle tracking. Then handle connections to peers. Then handle storage.