P2P In 15 Lines of Code 418
nile_list writes "Edward Felten of the very fine Freedom to Tinker has written a 15 line P2P program in Python. From the post on Freedom to Tinker, "I wrote TinyP2P to illustrate the difficulty of regulating peer-to-peer applications. Peer-to-peer apps can be very simple, and any moderately skilled programmer can write one, so attempts to ban their creation would be fruitless." Matthew Scala, a reader of Freedom to Tinker, has responded with the 9 line MoleSter, written in Perl."
Not a good true complexity issue. (Score:2, Interesting)
The python code has
import sys, os, SimpleXMLRPCServer, xmlrpclib, re, hmac
The perl code puts multiple commands in one line.
Those are both cheating. And not really 15 or 9 lines of code. How many lines of code are just os.py alone? Using these upper level languages is not a good way to prove how simple these activates are because they use many complicated libraries preinstalled in the language. It is like saying I can write a webserver in 3 lines of code.
#!/UpperlevelProgrammingLanguage
Import webserver
Run Webserver
Version in lower level language like C with just say the <includes> are better but still a bit of cheating. If you did in in assembly then that is even fairer. The true test is how many lines of code in assembly without an OS.
When will this code be on a T-shirt? (Score:5, Interesting)
I can see P2P becoming the next DeCSS in the eyes of the courts and receiving similar treatment.
So when can I expect my shirt?
Re:Slashdot editors strike again! (Score:1, Interesting)
P2P tattoo (Score:4, Interesting)
Re:Code Size vs. Regulation... (Score:2, Interesting)
The goal of showing tha P2P applications are easy to write and can be extremely small is to say that you really can't ban P2P without banning the ability to transfer data over the internet in general. The idea here is that what's "core" to a P2P ap isn't all the fancy bells and whistles--it's a pretty simple and straightforward concept.
The idea here is that if someone wanted to ban text editors, since they could potentially be used to copy down copyrighted information. They may say that their war is with Microsoft, and specifically Word. But the point is that you don't have to be Microsoft to write a text editor, and all those bells and whistles Microsoft writes aren't what makes it a word processor--it's the really simple concept of modifying text in a file. "edit" isn't nearly as complex, but does the same thing. The problem isn't with the big pieces of software but with the underlying concept.
Re:Not a good true complexity issue. (Score:1, Interesting)
And as far as that goes, high level language code libraries aren't "hacks", they're a reality that has to be dealt with. The fact is, libraries for doing very compliated things exist and are easy to obtain. They make it possible for even people with limited programming experience to write fairly complicated programs without much effort.
That's where RIAA and it's band of merry men have made a miscalculation. They believe that developing a P2P client is a difficult task which can only be done by experienced programmers. Thus they would only have to police only a small segment of the population to enforce laws against developing them. But as the 15 line P2P client demonstrates, the increasing complexity of high-level languages (and their included libraries) makes it much easier to develop a client than they think. So enforcement would be like trying to move an ocean with an eyedropper.
Re:P2P Does Not Break the Law (Score:2, Interesting)
Re:Um, what point is this trying to make? (Score:3, Interesting)
TinyP2P requires you specify the server address and port. Um, how is this different then FTPing to a server? Or sending a file over some IM service? Or copying a file over a network share?
But, does there exist an ftp server you can trust? Seems like all of them have a root exploit discovered periodically. Likewise with the IM programs. However, 15 lines of code is pretty easy to audit.
P2P and getting payed (Score:3, Interesting)
Wasn't it on this veryè same slashdot, that not too long ago an article was mentioned about a site who was willing to pay a considerable amount of money to any coder willing to work on a OSS P2P system annex IM which was meant to be used in a small network of friends, and thus, below the radar of RIAA and co.
I gather the author in question isn't very interested in money, at least compared to 'status among peers' (something that seems to be typical of good coders working on OSS projects, like Linus). But I can't imagine that NO coder (at least the last time I checked) has taken that offer up for 1000 bucks, while this one makes a simple P2P prog in a matter of days, just to prove a point, or even just for the fun of it.
I'm not sure how it was called again, but some probably will remember and maybe post a link to it...now, the only thing to find are skala-type dudes - and getting a nice bonus on top. Volunteers?
Re:Both these programs are full of BS (Score:2, Interesting)