Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Programming Links The Internet IT Technology

A TCP/IP Stack and Web Server In BASIC 251

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.
This discussion has been archived. No new comments can be posted.

A TCP/IP Stack and Web Server In BASIC

Comments Filter:
  • by xiangpeng ( 324117 ) on Saturday August 16, 2003 @11:05AM (#6712298) Homepage
    Well, ultimately it still have to go thru the ehBASIC interpreter, which more or less defines it as a "BASIC" program.

    Guess only BASIC purist will cry foul at this :)

  • by Anonymous Coward on Saturday August 16, 2003 @11:41AM (#6712438)
  • by pla ( 258480 ) on Saturday August 16, 2003 @01:21PM (#6712909) Journal
    VB is alive and well, and used for pretty much the same reason as original BASIC - simplicity.

    I would agree it still lives, but disagree about your reasons...

    VB strips away all the simplicity normally present in BASIC, in that if you know basic, you don't necessarily know VB (very similar to C vs JAVA... They have very similar atomic statements, but the different paradigm makes proficiency in one not map 1-to-1 to the other).

    VB excels in making pretty GUIs under Windows. I have yet to find a language that makes creating a spiffy user interface anywhere *near* so easy. People rave about JAVA for GUIs, but I would say that, line-for-line, it takes just as much work as using pure Win32. Tk does fairly well, as long as you like the system default of everything, but if you want more control, it makes you jump through all sorts of unpleasant hoops. But VB... Just no way to beat its level of GUI-oneness.

    Unfortunately, it crawls when it comes to execution speed. I remember writing an app for a professor back in college, did nothing but text processing and a few simple stats to compile student evaluation surveys. Running through a list of only 30-50 students took almost two minutes. Incidentally, I prototyped it in C (but he wanted a spiffy GUI, and I hadn't yet mastered raw Win32), and the same thing would finish in well under a second.
  • by MattBurke ( 58682 ) on Saturday August 16, 2003 @03:19PM (#6713431)
    34040 DATA "HTTP/1.0 200 OK",$,"Content-Type: text/html",$,$
    34041 DATA "<HTML><HEAD><TITLE>Error 404</TITLE></HEAD><BODY BGCOLOR=#"

    is it just me who's spotted that the 404 page isn't really a 404? ;)

The one day you'd sell your soul for something, souls are a glut.

Working...