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.

26 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 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 :)

    2. Re:Down in three seconds flat by Kevinv · · Score: 4, Funny

      How could you tell if it were slashdotted? 20 seconds per page is already a slashdotted server....

    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...

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

      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!

      Well, if you'd open 127.0.0.1:31337 and discover a kiddie porn site, you can be pretty sure there's a trojan somewhere on your computer :P

      Unless, of course...

    6. Re:Down in three seconds flat by Isbiten · · Score: 2, Funny

      I just get an apache test page, are you sure it's up? ;)

      --
      I fought the corporate America, and the corporate America bought the law.
  2. How long til it gets slashdotted? by gellenburg · · Score: 2, Funny

    At 20+ secs per page - immediately?

    (I know the article isn't on the EhBASIC webserver - I was talking about any page served up by the webserver alone.)

    1. 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. :-)

  3. 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.

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

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

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

    "Pre-slashdotted for your convenience."

  6. Cowabunga! by Anonymous Coward · · Score: 2, Funny

    Seriously cool! I'm going to key it into my TRS-80 right now!

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

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

  8. WOW! And they said.. by Anonymous Coward · · Score: 1, Funny

    They said that you can't do any professional programming with Basic back in the old days. This is a great slap to the face of those people.

    BASIC rules!I want Basic back! Is there any Basic interpreters for my FreeBSD?

    1. Re:WOW! And they said.. by BabyDave · · Score: 3, Funny
      BASIC rules!I want Basic back! Is there any Basic interpreters for my FreeBSD?

      Screw that - I want a version of FreeBSD written in BASIC

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

    Isn't he worried about someone else commercialising this?

  10. 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
    1. Re:I must be getting rusty. by Bake · · Score: 1, Funny

      I think every time I have looked anything in perl I've not understood it.

      That's not being rusty, that's being normal. :-)

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

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

  12. EhBasic? by headkase · · Score: 4, Funny

    When I first read its name, I thought it was Canadian. :)

    --
    Shh.
  13. it isn't complete by BoneFlower · · Score: 4, Funny

    Until it breaks mozilla while running fine in IE.

  14. Am I the only one by pommiekiwifruit · · Score: 2, Funny

    Who saw that and thought lda #254, $e2 - wtf, illegal opcode? :-)

  15. Re:R *this* FRFC. by oldmildog · · Score: 2, Funny

    Ah, good link. Thanks. I always thought Microsoft pulled that IP address out of their ass for workstations that can't reach the DHCP Server. MS following an RFC... what a crazy world.

    --
    They have the Internet on computers now?
  16. Nooooooooo by cnb · · Score: 2, Funny

    A server written like...

    1248 goto 10

  17. This explains everything by extrasolar · · Score: 2, Funny

    I know rusty was trying to cut costs on kuro5hin.org, but this is rediculous.