December 15, 2004

World's Smallest P2P Code.

Alex Halderman and Ed Felten have done it again. They have their fingers in lots of cool pies.... They've made the code available for download, or cut and paste to iron it onto your favorite old T-Shirt. Tasty.


Posted by Mary Hodder at December 15, 2004 02:13 PM | TrackBack

The code as reprinted here won't work, because the textual layout of the code doesn't match the original. (In Python, unlike most other programming languages, layout matters.) Working code is at

Posted by: Ed Felten at December 16, 2004 03:12 AM

Hmm, it's fun but I don't think it makes a very convincing "smallest", look at the stuff it's using:

import sys, os, SimpleXMLRPCServer, xmlrpclib, re, hmac

If that's acceptable, then surely so should be a one-line version something like :

import P2PClient, P2PServer

Posted by: Danny at December 17, 2004 03:43 AM