Slashdot Mirror


TwIP - An IP Stack In a Tweet

Adam Dunkels writes "Inspired by the Twitter-sized program that crashes Mac OS X, I just wrote a really, really rudimentary IP stack called twIP, small enough to fit in a Twitter tweet. Although twIP is very far away from a real IP stack, it can do the first task of any IP stack: respond to pings. The entire source code can be found in this 128-character-long tweet. For those who are interested in low-level network programming, a code walkthrough with instructions on how to run the code under FreeBSD is available here. The FAQ: Q: why? A: for fun."

2 of 81 comments (clear)

  1. similarly big accomplishment by AlgorithMan · · Score: 4, Funny
    hey, I wrote a webbrowser in 8 bytes of BATCH: here's the source code:

    IEXPLORE

    impressive, huh?

    --
    The MAFIAA is a bunch of mindless jerks who will be the first up against the wall when the revolution comes
  2. Re:At least 3 ways to make it smaller: by Mozk · · Score: 4, Funny

    Yeah, but for(;;) loops forever, whereas while(1) only loops while 1 is true. It's completely different! What if 1 becomes false?!

    --
    No existe.