home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!decwrl!pa.dec.com!sousa.ltn.dec.com!kxovax.enet.dec.com!secrist
- From: secrist@kxovax.enet.dec.com (Strong datatypes for weak minds.)
- Newsgroups: comp.lang.forth
- Subject: Guerrilla Forth ! (Was "Re: $15 Forth-like Language...)
- Message-ID: <1678@sousa.ltn.dec.com>
- Date: 2 Sep 92 18:10:51 GMT
- Sender: newsa@sousa.ltn.dec.com
- Organization: Digital Equipment Corporation
- Lines: 48
-
-
- meyer@dbsun.uucp (Don Meyer) writes:
-
- ; Hopefully I'm wrong, but if it was truly easy to convert
- ; from "C++" to C than I suspect one of two situations exist.
- ; Either it is an application that really doesn't lend itself
- ; to the strengths of C++, or it is badly written C++. :-(
- ; To be fair, a third possibility is that you (the converter)
- ; are really, really fast! :-)
-
- In short, he uses C++ as an enhanced C compiler so the
- conversion is trivial. UNTIL is meant as the kernel for an
- embedded applications language, so that does not mean that
- this concept doesn't "lend itself to the strengths of C++."
- Quite the contrary, Forth -- or in this case something like
- it -- lends itself well to that paradigm. In the True Forth
- Ethic he just doesn't force you into doing it that way.
- Likewise I challenge your notion that well-written C is
- necesarily "badly written C++." Get a life ! ;-)
-
- ; How FORTH-like is it? I'm still intending to get a small
- ; FIG-like :-) FORTH up and running on a 68k platform. The
- ; "real" code for the instrument is written in C++, but I'd
- ; like to tuck a small subversive FORTH environment on the
- ; board for debugging etc. Even though I'm paid to write
- ; C/C++, FORTH was my first "real" language and I miss it!
-
- It's very Forth-like, and the author makes no bones about
- it -- he talks about Forth outright and even mentions FIG
- someplace (okay, he's a card-carrying member !). You can
- either create colon definitions called "macros" or add your
- own C routines to the base code to make new primitives.
- It is quite evident that the author, like you, is paid to
- write C/C++ by people who would be scared off by "Forth,"
- and so he wrote this tool for embedding a logical Forth in
- his applications -- only he could say it was written in C
- and featured some extensive "application macros." If
- you're careful about your compiler options I'm confident
- it'd fit in a ROM, but I haven't thought much about any
- code changes which might be required to use it that way.
- If you're looking to "tuck a small subversive FORTH
- environment" into your work, then this guy is after your
- heart ! I believe the only requirement, much like what
- Mitch Bradley does, is that you include a copy of his book
- with every copy of your product that you sell.
-
- Regards,
- rcs
-