home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / forth / 3061 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  2.7 KB

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