home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!news
- From: exuhag@exu.ericsson.se (James Hague)
- Newsgroups: comp.lang.forth
- Subject: Re: Sampler Forth
- Message-ID: <1992Sep10.142241.11172@exu.ericsson.se>
- Date: 10 Sep 92 14:22:41 GMT
- References: <1992Sep9.174552.22223@tree.UUCP>
- Sender: news@exu.ericsson.se
- Reply-To: exuhag@exu.ericsson.se
- Organization: Ericsson Network Systems, Richardson, TX
- Lines: 55
- Nntp-Posting-Host: s09a05.exu.ericsson.se
-
- Excellent post, Alan, which hit the nail right on the head.
-
- I agree that most Forth implementations are severely misguided.
- (I am not talking about Forths for embedded use here, but Forth
- as a general purpose programming language.) I'm of the "Forth
- should be small and understandable" school, but this doesn't
- mean that a Forth system has to be as rickety as the Apple II
- ML monitor.
-
- Speed *is* overrated. It is mostly a psychological thing; people
- for some reason, no matter how fast their processor may be, hang
- on to the same misconceptions: BASIC is slow, LISP is slow, C is
- super-fast. etc. And they are willing to trade convenience and
- ease-of-use for every extra bit of speed. Indirect-threaded FIG
- Forth on a 6502 was a very usable system--much faster than interpreted
- BASIC. Yet on an 80386 it isn't fast enough and we have to resort
- to all sorts of fancy inline code schemes.
-
- I'd like to see the following features in a Forth implementation
- (I do most of my non-work programming under MS-DOS, so keep this
- in mind):
-
- * Crashproof (FORTHMACS does this, so I hear). You shouldn't
- be able to type a word from the keyboard and bring down the
- whole system.
-
- * An editor which is well-integrated into the system and takes
- advantage of available features: color, arrow keys for cursor
- motion, etc. I don't consider loading an external editor to
- be good integration. It doesn't need to be fancy, just _solid_.
-
- * A better alternative to FORGET. There's no reason any more to
- stick to the old linear dictionary model, IMO. All you want to
- do is create and delete words. Use the heap.
-
- * One-key meta or true compilation. The resulting executables should
- be as small as possible. I can't stand 150K "hello world" programs.
-
- * A nice environment, something more than just being able to
- enter Forth words. Use the up/down arrows to scroll through
- a history list. Have a pop-up window to let you visually select
- files. Tab for filename completion. A DOS shell.
-
- * Ability to switch between environment screen and screen of running
- program. Graphics settings and such are automatically saved without
- hassle.
-
- These are the sort of things I would expect from a modern Forth
- implementation. I think you could get everything listed above into
- a 50K exectuable without any problems. I don't see many problems with
- Forth itself (i.e. RPN, etc.), just the usual programming environment.
-
- --
- James Hague
- exuhag@exu.ericsson.se
-