Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

A TCP/IP Stack and Web Server In BASIC

CowboyNeal posted about 11 years ago | from the rebirth-of-the-line-editor dept.

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

cancel ×

251 comments

Sorry! There are no comments related to the filter you selected.

GNAA Announces acquisition of SCO (-1, Troll)

Anonymous Coward | about 11 years ago | (#6711928)

GNAA Announces acquisition of SCO
By Tim Copperfield
New York, NY - GNAA (Gay Nigger Association of America) today announced acquisition of The SCO Group [yahoo.com] for $26.9 million in stock and $40 million in gay niggers.

GNAA today announced it has signed a definitive agreement to acquire the intellectual property and technology assets of The SCO Group, a leading provider of Fear, Uncertainty and Doubt, based in Lindon, Utah. GNAA's acquisition of SCO technology will help GNAA sign up more members worldwide. In addition to developing new solutions, GNAA will use SCO engineering expertise and technology to enhance the GNAA member services.

"I'd love to see these GNAA types slowly consumed by millions of swarming microbes and converted into harmless and useful biochemicals." said an anonymous slashdot poster, blinded by the GNAA success in achieving first post on a popular geek news website, slashdot.org [slashdot.org] .

"This GNAA shit is getting out of hand. Slashdot needs troll filters. Or better yet a crap flood mod that I can exclude from my browsing. Seriously, a good troll is art, what you dumb fucks are doing is just plain stupid." said spacecowboy420.

macewan, on linuxquestions [linuxquestions.org] said "Thanks for that link to the SCO quotes page. My guess is that they want to be bought out. Hrm, think they want GNAA to buy them??"

After careful consideration and debate, GNAA board of directors agreed to purchase 6,426,600 preferred shares and 113,102 common shares (the equivalent of 150,803 ADSs) of SCO, for an aggregate consideration of approximately US$26.9 million and approximately $40 million for gay niggers that were working in Lindon, Utah offices of The SCO Group.

If all goes well, the final decision is to be expected shortly, followed by transfer of most SCO niggers from their Lindon, UT offices to the GNAA Headquarters in New York.

About GNAA
GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the first organization which
gathers GAY NIGGERS from all over America and abroad for one common goal - being GAY NIGGERS.

Are you GAY [klerck.org] ?
Are you a NIGGER [mugshots.org] ?
Are you a GAY NIGGER [gay-sex-access.com] ?

If you answered "Yes" to any of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!
Join GNAA (GAY NIGGER ASSOCIATION OF AMERICA) today, and enjoy all the benefits of being a full-time GNAA member.
GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the fastest-growing GAY NIGGER community with THOUSANDS of members all over United States of America. You, too, can be a part of GNAA if you join today!

Why not? It's quick and easy - only 3 simple steps!

First, you have to obtain a copy of GAY NIGGERS FROM OUTER SPACE THE MOVIE [imdb.com] and watch it.

Second, you need to succeed in posting a GNAA "first post" on slashdot.org [slashdot.org] , a popular "news for trolls" website

Third, you need to join the official GNAA irc channel #GNAA on EFNet, and apply for membership.
Talk to one of the ops or any of the other members in the channel to sign up today!

If you are having trouble locating #GNAA, the official GAY NIGGER ASSOCIATION OF AMERICA irc channel, you might be on a wrong irc network. The correct network is EFNet, and you can connect to irc.secsup.org or irc.isprime.com as one of the EFNet servers.
If you do not have an IRC client handy, you are free to use the GNAA Java IRC client by clicking here [nero-online.org] .

About SCO
The SCO Group [SCOX [yahoo.com] ] helps millions of gay niggers in more than 82 countries around the world grow their penises everyday. Headquartered in Lindon, Utah, SCO has a network of more than 11,000 nigger resellers and 8,000 developers. SCO Global Services provides reliable nigger support and services to prospective members and customers.
SCO and the associated SCO logo are trademarks or registered trademarks of The SCO Group, Inc. in the U.S. and other countries. UNIX and UnixWare are registered trademarks of The Open Group in the United States and other countries. All other brand or product names are or may be trademarks of their respective owners.

This news release contains forward-looking statements that involve risks, uncertainties and assumptions. All statements other than statements of historical fact are statements that could be deemed forward-looking statements. These statements are based on management's current expectations and are subject to uncertainty and changes in circumstances. Actual results may vary materially from the expectations contained herein. The forward-looking statements contained herein include statements about the consummation of the transaction with SCO and benefits of the pending transaction with SCO. Factors that could cause actual results to differ materially from those described herein include the inability to obtain regulatory approvals and the inability to successfully integrate the SCO business. GNAA is under no obligation to (and expressly disclaims any such obligation to) update or alter its forward-looking statements, whether as a result of new information, future events or otherwise.


If you have mod points and would like to support GNAA, please moderate this post up.

________________________________________________
| ______________________________________._a,____ |
| _______a_._______a_______aj#0s_____aWY!400.___ |
| __ad#7!!*P____a.d#0a____#!-_#0i___.#!__W#0#___ |
| _j#'_.00#,___4#dP_"#,__j#,__0#Wi___*00P!_"#L,_ |
| _"#ga#9!01___"#01__40,_"4Lj#!_4#g_________"01_ |
| ________"#,___*@`__-N#____`___-!^_____________ |
| _________#1__________?________________________ |
| _________j1___________________________________ |
| ____a,___jk_GAY_NIGGER_ASSOCIATION_OF_AMERICA_ |
| ____!4yaa#l___________________________________ |
| ______-"!^____________________________________ |
` _______________________________________________'

good subject (-1, Offtopic)

Anonymous Coward | about 11 years ago | (#6711935)

early post in the early AM for kat being annoying

Down in three seconds flat (5, Funny)

mcgroarty (633843) | about 11 years ago | (#6711938)

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

Re:Down in three seconds flat (5, Informative)

ultrapenguin (2643) | about 11 years ago | (#6711947)

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

RTFRFC

Re:Down in three seconds flat (0)

Anonymous Coward | about 11 years ago | (#6711960)

o/` You have been trol-led o/`

Re:Down in three seconds flat (5, Funny)

Anonymous Coward | about 11 years ago | (#6711955)

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 [169.254.226.132] you go :)

Re:Down in three seconds flat (4, Funny)

Kevinv (21462) | about 11 years ago | (#6711957)

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

Re:Down in three seconds flat (5, Funny)

FyRE666 (263011) | about 11 years ago | (#6711959)

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!

Re:Down in three seconds flat (5, Funny)

beebware (149208) | about 11 years ago | (#6712029)

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

Re:Down in three seconds flat (2, Funny)

fredrikj (629833) | about 11 years ago | (#6712061)

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

Re:Down in three seconds flat (2, Funny)

Isbiten (597220) | about 11 years ago | (#6712171)

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

Re:Down in three seconds flat (1)

mcgroarty (633843) | about 11 years ago | (#6712075)

Erm -- whoever moderated this "informative" missed the joke. :-) Someone mod it back down?

How long til it gets slashdotted? (2, Funny)

gellenburg (61212) | about 11 years ago | (#6711940)

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

Re:How long til it gets slashdotted? (1)

Stephen Samuel (106962) | about 11 years ago | (#6712134)

but how do you tell the difference between slashdotting, and a regular page load? Just double-clicking on the link is likely to result in TC/IP timeouts.

Slow (1)

tomstdenis (446163) | about 11 years ago | (#6711941)

25 seconds per page?

That seems very slow even for an 8-bit MCU. Maybe his basic interpreter just sucks?

Or, were these like huge ass PHP pages with mysql running in the background? :-)

Tom

Re:Slow (1)

imsabbel (611519) | about 11 years ago | (#6711988)

I remember owning a 8 bit computer that needed 2 seconds to display a 40*25 page of text in a wordprocessor.
So i would say 30 sec per page is OK for a 1MHz 8 bit cpu running a BASIC (!!!!) Webserver

Re:Slow (0, Informative)

brrrrrrt (628665) | about 11 years ago | (#6712066)

I'm not sure now if the 6502 was only inwardly 8 bits, but outwardly 4. But I know it ran at a little over 1 Mhz, so with a comparatively huge interpreted basic program running on it, I can see why it's slow.

Re:Slow (1, Informative)

Anonymous Coward | about 11 years ago | (#6712223)

How can someone's bad memory-musings be modded informative? A simple Google will reveal the 6502 is indeed an 8 bit CPU with an 8 bit bus. Sheesh.

To quote Zahpod Beeblebrox... (5, Funny)

Kevinv (21462) | about 11 years ago | (#6711942)

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.

Re:To quote Zahpod Beeblebrox... (1, Interesting)

Ed Avis (5917) | about 11 years ago | (#6711981)

Since the code seems to be mostly direct memory access, CALL, and USR, wouldn't it have made more sense simply to write it in assembly language?

You can use a BASIC dialect that has a built-in assembler and so still get suitably old-school source code.

Re:To quote Zahpod Beeblebrox... (1)

AndroidCat (229562) | about 11 years ago | (#6712127)

It could have been worse: It could have been machine code buried in BASIC REM statements ZX81-style.

Hmm, a network card for my MC-10 micro Coco, it'll just have to wait until after I do the LCD display.

No .Net support!? (-1, Troll)

Anonymous Coward | about 11 years ago | (#6711943)

Must be a Lindows funded project!

Imagine.. (5, Funny)

iLEZ (594245) | about 11 years ago | (#6711944)

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

Re:Imagine.. (0)

Anonymous Coward | about 11 years ago | (#6711984)

Commodore 64s !)

Re:Imagine.. (1)

ihummel (154369) | about 11 years ago | (#6712108)

ENIACS!

how? (1)

Tirel (692085) | about 11 years ago | (#6711946)

is it written in basic or is it compiled and just provides an API? I would think the latter, but I'm not sure.

Re:how? (0)

mcgroarty (633843) | about 11 years ago | (#6711970)

The source code is here [lycos.co.uk] . See for yourself. :-)

Re:how? (2)

mcgroarty (633843) | about 11 years ago | (#6711979)

Fat-fingered the paste. Rather, the source code is here [lycos.co.uk] .

I'd give it (-1, Troll)

Anonymous Coward | about 11 years ago | (#6711948)

crap points. Really. Thats not as bad a waste of time as me posting here, but almost.

20-35 Seconds Per Page?!? (5, Funny)

travail_jgd (80602) | about 11 years ago | (#6711952)

"Pre-slashdotted for your convenience."

Cowabunga! (2, Funny)

Anonymous Coward | about 11 years ago | (#6711963)

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

I get a slightly faster transfer speed (5, Funny)

dbleoslow (650429) | about 11 years ago | (#6711966)

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

Re:I get a slightly faster transfer speed (1)

texaport (600120) | about 11 years ago | (#6712250)

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

You could probably reach an effective throughput of 4MHz on that 6502 by running 16-bit 68000 software emulation, on a 32-bit 68030 add-in board running at 25MHz and modded up to 33MHz with proper cooling.

What? (0)

Anonymous Coward | about 11 years ago | (#6711968)

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

What days were these that you needed BASIC to actually run the machine? What did you used to do, fire up the interpreter and write a mini-shell or something? In BASIC??

Re:What? (1, Informative)

waitigetit (691345) | about 11 years ago | (#6711980)

No it booted right into the basic interpreter of the BIOS

Re:What? (1, Informative)

Anonymous Coward | about 11 years ago | (#6711999)

What days? CAMMOROMU 64 days. When you switched the power on to Commodore C64 all you got was the basic interpreter.

But already in 1984 was introduced SHARP MZ-821 that only had assembler monitor. You had to load Basic if you didn't want to write Assembly programs.

Cammoromu C64 was bad because the build in Basic hogged memory of course. With Sharp you had all the 64 kilobytes to yourself.

Re:What? (1)

usotsuki (530037) | about 11 years ago | (#6712185)

With the Apple //e you could have 60K of RAM in state at once (the other 4K was memory-mapped I/O). Usually only 48K was active. It's possible to upgrade the //e to 3.1 MB RAM (as in fact EMU][ emulates).

-uso.

cool! (-1)

waitigetit (691345) | about 11 years ago | (#6711969)

10 PRINT "POEP"
20 GOTO 10

Looks more like assembler to me... (5, Interesting)

dioscaido (541037) | about 11 years ago | (#6711978)

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

Re:Looks more like assembler to me... (2, Interesting)

taybin (622573) | about 11 years ago | (#6712009)

Well, that's BASIC for you. It doesn't have very good library support. As far as I know, it didn't have any library support if it wasn't built into the interpretor.

Re:Looks more like assembler to me... (1)

dodell (83471) | about 11 years ago | (#6712111)

That's exactly correct. Basically, anybody claiming to write any libraries with any speed or usability in BASIC are just writing a ton of in-line assembler. For instance, if you look online now, people claim to have their own 3d libraries in BASIC. They sure do, but it's just a bunch assembler wrapped up in SUBs.

Re:Looks more like assembler to me... (1)

reallocate (142797) | about 11 years ago | (#6712161)

What's your point? Everything is object code in the end.

Re:Looks more like assembler to me... (4, Interesting)

yellowstone (62484) | about 11 years ago | (#6712170)

Can the code really be called BASIC?
Old-skool BASIC was really heinous:
  • Variable names limited to two characters
  • Only data types are integers and strings
  • No structured data types, only (fixed size) arrays
  • No names in control flow, just GOTO 100 and GOSUB 9000. No parameters for subroutines.
  • Plus, it was typically interpreted, for extra slowness at run time.
It looks more like tons of in-line assembly code
It's worse than assembly. At least in assembly, you can have longer identifiers, and use them in data and control flow statements.

WOW! And they said.. (1, Funny)

Anonymous Coward | about 11 years ago | (#6711982)

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?

Re:WOW! And they said.. (2, Interesting)

DoctorPepper (92269) | about 11 years ago | (#6712026)

Yes, actually. Look in your ports collection. A real quick grep turned this up:

$ ls | grep basic
bwbasic/
gnomebasic/
pbasic/
wxbasic/
y abasic/

Thanks! (0)

Anonymous Coward | about 11 years ago | (#6712034)

Thanks dude! I know what I'll do on this weekend now!

Re:WOW! And they said.. (3, Funny)

BabyDave (575083) | about 11 years ago | (#6712098)

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

ehhh, that basic is too advanced for my taste (1)

taybin (622573) | about 11 years ago | (#6711992)

I saw a bunch of GOSUB statements in there. Wimp! We don't need no stinkin' pseudo-functions! At least he didn't use RealBasic, which is more on the level of Pascal nowadays.

BBC Basic was like that (4, Interesting)

DrSkwid (118965) | about 11 years ago | (#6712143)

inline-assembler
definable functions
re-entrant procedures

http://www.bbcbasic.com/

Sophie Wilson did a great job and did anyone at school in the UK who was interested in computing the biggest favour of all - she gave us the gift of learning structured programming from day 0

fp (-1, Offtopic)

Anonymous Coward | about 11 years ago | (#6711997)

fp

Better for MS (-1, Troll)

famazza (398147) | about 11 years ago | (#6712002)

Now Microsoft can drop TCP/IP stack BSD-licensed code from Windows, and then cosider all FreeSoftware licensesas potencially viral.

TCP/IP stack in VB! That would be great!

Next... (2, Interesting)

ihummel (154369) | about 11 years ago | (#6712014)

someone will come up with a shell script webserver.

Re:Next... (0)

Anonymous Coward | about 11 years ago | (#6712037)

how about an ms-dos .bat web server?

Re:Next... (1)

slartibartfastatp (613727) | about 11 years ago | (#6712054)

No doubt about it: Here's [pugo.org] a web server written in postscript language. hee hee hee ;-)

Re:Next... (3, Interesting)

FnordPerfect (240722) | about 11 years ago | (#6712065)

done already. This one is in bash...

http://linux.umbc.edu/~mabzug1/bash-httpd.html

Re:Next... (1)

ihummel (154369) | about 11 years ago | (#6712088)

Ah, but can you tell me where to find a webserver written for the original Bourne shell?

Re:Next... (0)

Anonymous Coward | about 11 years ago | (#6712145)

It could be done easily enough with a TUN driver.

No I'm not going to do it.

Source code has no copyright notice (5, Funny)

Mostly a lurker (634878) | about 11 years ago | (#6712017)

Isn't he worried about someone else commercialising this?

Re:Source code has no copyright notice (2, Informative)

henrik (98) | about 11 years ago | (#6712172)

You don't need any copyright notice. You always own the rights to your original work no matter what.

Re:Source code has no copyright notice (0)

Anonymous Coward | about 11 years ago | (#6712180)

I can see the pitch discussion now:

"... so, as you can see, the original author of this amazing code didn't copyright his work. And, therefore, you can ....."
"Greg ..."
".. you can imagine the enormous financial potential ..."
"Greg ..."
"... yeah .. yes, sir?"
"You're fired, Greg."
"....... yes, sir."

interesting (1, Interesting)

Anonymous Coward | about 11 years ago | (#6712019)

I'd like to see how this benchmarks on a 1Ghz modern processor or better. ANyone planning on setting this up and benchmarking it BEFORE posting it on slashdot?

Please (1)

niom (638987) | about 11 years ago | (#6712020)

Somebody should implement a webserver using trained monkeys with abacuses. That should put an end to these "duct-tape and hamster webserver" boring stories.

Re:Please (0)

Anonymous Coward | about 11 years ago | (#6712140)

>> That should put an end to these "duct-tape and hamster webserver" boring stories.

Hey, cool! Maybe I try this to cope with NY's recent power outage...

Hmmm, on a second thought, it might be useful to have a spare hamster as "power backup". Also, if I train them to enter a running hamster wheel, I guess I can avoid reboots!

I have the Basic source code for pre-DOS (0)

Anonymous Coward | about 11 years ago | (#6712021)

Pretty impressive. But I've got something better. I've got the Basic source code for pre-DOS. The one that Bill Gates "stole" from the dumpster.

I can see it now... (0, Redundant)

lalonso (672311) | about 11 years ago | (#6712024)

Today Microsoft announced that it has contracted Lee Davison to write a brand new TCP/IP stack for upcoming versions of the Windows operating system, including Longhorn and a service release of Windows 2003 Server. "We hope that this ground breaking technology will usher in a new era of reliability and speed for our enterprise-level server products as well as our consumer operating systems," said a Microsoft spokesman....

Re:I can see it now... (1)

Idealius (688975) | about 11 years ago | (#6712071)

lmfao.

*sigh*

It's funny because it's likely.

NOTICE! (-1, Offtopic)

Anonymous Coward | about 11 years ago | (#6712025)

I've started a police investigation of who is behind these GNAA Troll posts. It is illegal to spread rasistic material like that.

Not really that uncommon (2, Informative)

i_really_dont_care (687272) | about 11 years ago | (#6712048)

A lot of microcontrollers can be programmed in Basic-like languages. It's easy to write basic interpreters/compilers because of the limited features of the language. Remember that "pure" basic doesn't have a subroutine concept at all (besides the very limited GOSUB), and no local variables. Commercial PLC systems have been using Basic as the "high-level"-language of choice for ages. Though they are now more and more moving to IEC-61131-compatible languages like ST ("structured text") and graphical languages.

Re:Not really that uncommon (1)

AndroidCat (229562) | about 11 years ago | (#6712183)

If by '"pure" basic', you mean Microsoft, that's probably correct, however I'm pretty sure DTSS BASIC 6th edition (i.e. original) had full subroutine calls (and was compiled).

Re:Not really that uncommon (1)

reallocate (142797) | about 11 years ago | (#6712207)

You're confusing "pure" BASIC with line-numbered BASIC from a quarter century ago. ANSI BASIC or any commercially available dialect have long supported true procedures, functions, etc.

Re:Not really that uncommon (1)

i_really_dont_care (687272) | about 11 years ago | (#6712255)

You're confusing "pure" BASIC with line-numbered BASIC from a quarter century ago. ANSI BASIC or any commercially available dialect have long supported true procedures, functions, etc.

Infact, I ment the old Basics as implemented on the Amstrad/Schneider CPC, the ZX spectrum, the early IBM PCs (GWBASIC/BASICA), the C64 etc. After all, these were the "golden times" of Basic.

At the time where BASIC interpreters/compilers actually got all the fancy features, it was already dying (replaced by Turbo Pascal f.e.)...

Good agains DOSS attacks (1)

acegik (698112) | about 11 years ago | (#6712049)

This server might be the soltution for DOSS attacks since he will responde too slowly to the request - its like an old man in the supermarket, takes his time and doing his job :D

Oh good... (1)

WWWWolf (2428) | about 11 years ago | (#6712055)

I was looking at the 6502 part and immediately thought "Commodore BASIC". So they made their own BASIC interpreter, very cool!

And since they made a custom BASIC, I had to take a look at the language reference. To be honest, it doesn't look that much advanced compared to Commodore BASIC v2 (apart of being custom-made and thus being way cooler), apart of some interesting machine language-related functions (word poke/peek). It may be whole lot better engineered and more efficient than the Microsoft-Commodore monstrosity, but there sure aren't that much more language features. You know, the kind of BASIC that Dijkstra called "mental mutilation", not the ones that are produced today.

So, it seems like a limited BASIC interpreter, which makes coding this server thing extremely impressive.

Back 15-10 years ago I was coding simple text adventures in Commodore Basic. Those worked just fine. A few months back I got a crazy idea to code a Tetris clone. That was painful. Very painful. Especially to someone who has, during these long years, got used to luxuries offered by C and Perl - simplest example of these would be local variables and named+parametrized subroutine calls.

A homebrew BASIC interpreter is nice, while it's a shame it's not as feature-packed; Writing a server in this thing is amazing.

Re:Oh good... (2, Informative)

AndroidCat (229562) | about 11 years ago | (#6712234)

You might want to do a search on "Tiny Basic". After BillG wrote his snooty anti-piracy letter way back when, some of the first open source projects were a number of Tiny Basic interpreters. (It's how Dr. Dobb's got its start.)

They were slow and limited, but playing with them and extending them was a great way to learn. After those came the Small C compilers--never looked back.

Damn (0, Flamebait)

(insert nick here) (14693) | about 11 years ago | (#6712070)

Why can't everyone just agree that BASIC is dead, should stay dead and preferably staked through the heart?

I personally can't see any use at all for BASIC.

My Comment (1)

retrogramer (697803) | about 11 years ago | (#6712160)

Whoever wrote that must have had a lot of spare time on their hands! I can't even get a simple game to work in BASIC without LOTS of debugging of problems that are problems because of the stupid nature of the language!

Re:Damn (2, Interesting)

Dogtanian (588974) | about 11 years ago | (#6712178)

Why can't everyone just agree that BASIC is dead, should stay dead and preferably staked through the heart? I personally can't see any use at all for BASIC.

I'd probably agree with you on that one.... but it's interesting to note that many of the commonly-criticized features of Basic were the result of memory-kludges and featuritis, that the original designers of Basic did not approve of at all (according to their book 'Back to Basic').

Unfortunately, I don't have the book to hand to check out the details, but here's a link [amazon.com] to it anyway.

morons use basic (math) to cypher ppm ratio (-1, Flamebait)

Anonymous Coward | about 11 years ago | (#6712074)

of unprecedented evile vs. the rest of us.

that's right. the phonIE fauxking georgewellian fuddite southern baptist freemason execrable, produces terabytes of greed/fear based misinformation daily.

you'd think that we'd reject all that Godless hypenosys, but then where would you go for the facts?

quite a FUDgeCycle, however some of us (a huge # actually) are beginning to see the light. living in fear/avoidance of the facts, will not improve the situation.

the lights are coming up now.

you can pretend all you want. our advise is to be as far away from the walking dead contingent as possible, when the big flash occurs. you wouldn't want to get any of that evile on you.

as to the free unlimited energy plan, as the lights come up, more&more folks will stop being misled into sucking up more&more of the infant killing barrolls of crudeness, & learn that it's more than ok to use newclear power generated by natural (hydro, solar, etc...) methods. of course more information about not wasting anything/behaving less frivolously is bound to show up, here&there.

cyphering how many babies it costs for a barroll of crudeness, we've decided to cut back, a lot, on wasteful things like giving monIE to felons, to help them destroy the planet/population.

no matter. the #1 task is planet/population rescue. the lights are coming up. we're in crisis mode. you can help.

the unlimited power (such as has never been seen before) is freely available to all, with the possible exception of the aforementioned walking dead.

consult with/trust in yOUR creator. more breathing. vote with yOUR wallet. seek others of non-aggressive intentions/behaviours. that's the spirit, moving you.

pay no heed/monIE to the greed/fear based walking dead.

each harmed innocent carries with it a bad toll. it will be repaid by you/us. the Godless felons will not be available to make reparations.

pay attention. that's definitely affordable, plus you might develop skills which could prevent you from being misled any further by phonIE ?pr? ?firm? generated misinformation.

good work so far. there's still much to be done. see you there. tell 'em robbIE.

mynuts won, phlame on (-1, Offtopic)

Anonymous Coward | about 11 years ago | (#6712103)

just because va lairIE's whoreabully infactdead pateNTdead PostBlock(tm) devise is such a pathetic failure, there's no need to lowrate us. 0, there must be some reasoning attached?

no way of knowing for sure, as the big fauxking deals hereabouts appear to be invisibull.

not like the old daze at all. small wonder why all these billyonerrors need to remain 'above' the fray, & let their thinking/behaviours be dictated buy 'bankers' & phonIE scriptdead ?pr? ?firm? execrable. they do it for the monIE.

scripting language (1)

slartibartfastatp (613727) | about 11 years ago | (#6712079)

the first-choice scripting language would be basic. no, it would be too slow. maybe 6502 assembly... ;)

Just tell me how... (1)

dubbayu_d_40 (622643) | about 11 years ago | (#6712080)

... 'stack' is in any way appropriate to describe TCP drivers.

Re:Just tell me how... (1)

Atzanteol (99067) | about 11 years ago | (#6712179)

The 'stack' refered to is typically the OSI stack. The TCP/IP protocols are built on top of other layers (being parts of the layers themselves).

See here [wikipedia.org] for more info.

I must be getting rusty. (5, Funny)

mhandlon (464241) | about 11 years ago | (#6712085)

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.

Re:I must be getting rusty. (1, Funny)

Bake (2609) | about 11 years ago | (#6712141)

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

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

data statements (5, Informative)

magarity (164372) | about 11 years ago | (#6712086)

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.

Re:data statements (1)

Atzanteol (99067) | about 11 years ago | (#6712195)

He may not have the memory to do all that though. He doesn't mention what exactly he's running on (sounds like a Commodore, but I could be wrong).

Memories. (1)

CFBMoo1 (157453) | about 11 years ago | (#6712087)

Oh this just takes me back.. Back to when I was in elementry school in the early 80's and working on an old NCR with two 5.25" floppy disk drives. Coded a text RPG on that in basic with two full levels.

Then I got a Radio Shack color computer 2 with a tape cassette drive and a thermal printer that made like a cash register tape. Also had a nice 13" color tv monitor to hook it to. Luxury computing... mmmmmm... 16k of memory.

Coded a light cycles of Tron game on that cause I got tired of plopping quarters in the arcades. My elementry school teacher never got over the day I handed her a roll of paper that looked like a grocery reciept when it was actually a typed and printed book report from my Coco2. :D

I don't know, guys... (1)

Talia Starhawke (650311) | about 11 years ago | (#6712093)

from the rebirth-of-the-line-editor dept.

Sounds a bit more like it should be from the "reinventing-the-wheel dept."

Brainfuck webserver? (1)

fezadow (468592) | about 11 years ago | (#6712117)


That BASIC stuff is boring (eg too easy to understand <g />)...

Has anyone seen a webserver written in brainfuck [muppetlabs.com] yet? That would be real fun!

Sweet Deal (1)

tomakaan (673394) | about 11 years ago | (#6712120)

It's interesting just because of the fact that it can be done. Impractical, but I'd be interested in seeing what else he can do with this thing (since he states that it is not finished yet, and just provided as a proof of concept). I don't forsee it ever becoming practical.

What makes me laugh is that when I was using BASIC, I was printing a man to the screen as he went through the positions of a jumping jack. Clearing the screen after each position made it seem as though he was doing a jumping jack because of the processing speed.

It's amazing what some people will do to waste...errr, entertain themselves.

What next? (1)

hak hak (640274) | about 11 years ago | (#6712131)

So what's the next revolution? A web server written in Brainf**k [muppetlabs.com] ?

EhBASIC (5, Funny)

iantri (687643) | about 11 years ago | (#6712133)

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

Re:EhBASIC (0)

Anonymous Coward | about 11 years ago | (#6712177)

I've just looked at the source (and saved it), gonna have a go at translating it for my Sinclair +3 (shouldn't be too difficult) with its 9600 baud modem... atlast! Some good use to put all those old boxen to! Now I won't have a static museum anymore!

Next:...
Imagine a Beowulf cluster of... aw, fergeddit!

QBasic Gorillas - now in 3D! (-1)

Channard (693317) | about 11 years ago | (#6712151)

Well, it could happen.. given how so many retro games are getting remade, Gorillas can only be next, complete with bump-mapped bananas on a minimum spec of a GeForce 4 with a PIII 1.7Ghz.

On another note, this guy's achievement may be impressive, but it stands out as a challenge. I wouldn't be at all surprised if someone - in all seriousness - was trying to do the same on the ZX Spectrum.

EhBasic? (4, Funny)

headkase (533448) | about 11 years ago | (#6712156)

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

BasicX Server (1)

SiliconRedox (231604) | about 11 years ago | (#6712162)

This reminds me of a similar project I did about 6 months ago. A Webserver on the Bx24 [digilutionary.net] microprocessor. The whole system fit on a 1.5 inch by 3.5 inch breadboard and served pages off of an EEPROM. The TCP/IP stack was handled by the ethernet controller thank god, but that made room on the processor for a really lame inline assembly like script that could embed into pages being served. Here is the only picture of the server I can find [jtnimoy.com]

Note to self... (1)

Pedrito (94783) | about 11 years ago | (#6712166)

Don't write TCP/IP stacks and web servers in Basic!

My Version (-1, Redundant)

Anonymous Coward | about 11 years ago | (#6712193)

10 SERVEWEBPAGE
20 GOTO 10

Not new (4, Informative)

wumpus188 (657540) | about 11 years ago | (#6712217)

Actually, Parallax [parallax.com] was doing this since what... 1992? They got TCP/IP stack for their BasicStamps too. But of course, their stuff runs a bit faster than 1MHz... :)

it isn't complete (4, Funny)

BoneFlower (107640) | about 11 years ago | (#6712252)

Until it breaks mozilla while running fine in IE.
Load More Comments
Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>