Slashdot Mirror


A TCP/IP Stack and Web Server In BASIC

A writes "Back in the day, a BASIC interpreter was standard on every home computer system and everyone had to know at least a little BASIC to be able to use their computer. But who would have thought that you could write some serious networking code in BASIC over 20 years later? Just a few days ago, Lee Davison released the BASIC source code for his 6502-based Ethernet web server. The web server runs under his EhBASIC interpreter on the 1 MHz 6502 CPU and is able to blast out web pages at an amazing speed of 20-35 seconds per page!" Sure, it's not really practical, but I give it cool points.

15 of 251 comments (clear)

  1. Down in three seconds flat by mcgroarty · · Score: 5, Funny

    If you want to slashdot it, the IP address is visible in some of the screen shots. It's 169.254.226.132, but I'm not cruel enough to actually turn that into a hyperlink. :-)

    1. Re:Down in three seconds flat by ultrapenguin · · Score: 5, Informative

      NetRange: 169.254.0.0 - 169.254.255.255
      is one of those "non-routable private IP address spaces".

      RTFRFC

    2. Re:Down in three seconds flat by Anonymous Coward · · Score: 5, Funny

      If you want to slashdot it, the IP address is visible in some of the screen shots. It's 169.254.226.132, but I'm not cruel enough to actually turn that into a hyperlink. :-)

      Here you go :)

    3. Re:Down in three seconds flat by FyRE666 · · Score: 5, Funny

      If you want to slashdot it, the IP address is visible in some of the screen shots. It's 169.254.226.132, but I'm not cruel enough to actually turn that into a hyperlink. :-)

      Yeah, and anyone stupid enough to believe it'll work outside of a local network should also try 127.0.0.1 for a cool Pr0n site!

    4. Re:Down in three seconds flat by beebware · · Score: 5, Funny

      Cool - you're right - there is some really good porn on http://127.0.0.1/ , but it must be a really old site and I'm sure I've seen it before...

  2. To quote Zahpod Beeblebrox... by Kevinv · · Score: 5, Funny

    ten out of ten for style, but minus several million for good thinking.

    I actually have some Apple //e's lying around. Maybe I'll dig up an ethernet card and see if i can get this to work.

  3. Imagine.. by iLEZ · · Score: 5, Funny

    Imagine a beowulf cluster of... Nah...

    --
    You cant fight in here, its a war room!
  4. 20-35 Seconds Per Page?!? by travail_jgd · · Score: 5, Funny

    "Pre-slashdotted for your convenience."

  5. I get a slightly faster transfer speed by dbleoslow · · Score: 5, Funny

    with my fax machine. It's not nearly as cool though.

  6. Looks more like assembler to me... by dioscaido · · Score: 5, Interesting

    Can the code really be called BASIC? It looks more like tons of in-line assembly code, wrapped in a few ifs and loops.

  7. Source code has no copyright notice by Mostly+a+lurker · · Score: 5, Funny

    Isn't he worried about someone else commercialising this?

  8. I must be getting rusty. by mhandlon · · Score: 5, Funny

    I've looked at assembly and not understood it, I've looked at C and not understood it, and I think every time I have looked anything in perl I've not understood it. But, now the unthinkable has happened and I've looked at basic and not understood it.

    --
    Nyquil = Nectar of the devil
  9. data statements by magarity · · Score: 5, Informative

    It's the chuncking through those data statements at the end that helps really beats up performance. Defining all those as strings at the beginning will ameliorate that problem.

  10. EhBASIC by iantri · · Score: 5, Funny

    And here I was thinking this was some sort of obscure Canadian BASIC..

  11. Re:How long til it gets slashdotted? by gellenburg · · Score: 5, Funny

    Hmm... you're right.

    This "BASIC" Webserver & TCP/IP Stack will go down in the annals of History as being the first ever webserver to become /.'ed before it's address even makes it to /. to begin with. :-)