Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!husc4!hadeishi From: hadeishi@husc4.HARVARD.EDU (mitsuharu hadeishi) Newsgroups: comp.sys.amiga Subject: Re: How fast is AmigaBasic? Message-ID: <2460@husc6.UUCP> Date: Sat, 4-Jul-87 12:04:42 EDT Article-I.D.: husc6.2460 Posted: Sat Jul 4 12:04:42 1987 Date-Received: Sat, 4-Jul-87 20:06:35 EDT References: <1348@bath63.ux63.bath.ac.uk> Sender: news@husc6.UUCP Reply-To: hadeishi@husc4.UUCP (mitsuharu hadeishi) Distribution: world Organization: Harvard Univ. Science Center Lines: 62 Summary: Fast, but there's no comparison In article <1348@bath63.ux63.bath.ac.uk> pes@ux63.bath.ac.uk (Paul Smee) writes: . . . >The reason I ask is that I've seen adverts for a 3rd machine which include >comparative timings of their own BASIC on their hardware (the machine is >BASIC-oriented, that is it's intended as the main language) against standard >Atari ST-Basic and standard Amiga AmigaBasic. Their comparative timings >make their machine look like a bat-out-of-hell (well, they would, wouldn't >they?) and the ST and Amiga look like dead snails. . . . As a weekend programming project about a year ago I decided to implement a full-blown better-than-Infocom style text adventure parser. I did this is AmigaBasic because it wasn't really a serious project and I also wanted to develop in an interactive language (so I could do major modifications without having to wait for compilations.) The program with extensive comments was eventually about 120K long, and was a very very capable parser (by Zork standards.) Something you should know is that the AmigaBasic interpreter does some optimization AS IT RUNS. That is, the FIRST time you use some code, it takes some three to four times longer than it does the NEXT time. So my parser would have an initial response time of some twelve seconds or so (clearly unacceptably slow). However, after parsing the first sentence response time would steadily decrease as the parser used more and more of it's internal routines, and AmigaBasic optimized them. (The optimization consists of optimizing GOTO