home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / forth / 3083 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  4.7 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!gatech!pitt!willett!ForthNet
  2. From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
  3. Newsgroups: comp.lang.forth
  4. Subject: An Open ANSI Forth Implementation
  5. Message-ID: <4043.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 6 Sep 92 13:07:26 GMT
  7. Organization: EIEI-U
  8. Lines: 84
  9.  
  10. Category 10,  Topic 41
  11. Message 77        Fri Sep 04, 1992
  12. B.DUNN5 [Brian]              at 07:38 EDT
  13.  
  14.  
  15.  >  Clearly we are at the point now where it should be
  16.  > possible to come up with library routines which provide similar
  17.  > functionality between the Mac, Intuition, Windows, Gem and maybe X.
  18.  > Or maybe I'm just naive.
  19.  
  20. I am naive too.  I made a little Forth shell overlaying Atari ST Gem calls in
  21. a generic manner.  Basic window and event handling.  Mike Hore is working on a
  22. similar shell for Mac's OS and his MOPS Forth.  A little game which uses
  23. windows and mice and events via the generic words is working on both systems,
  24. from the same Forth source code.
  25.  
  26. Neither one of us wrote windows from scratch.  We just used the same name and
  27. parameters for existing functionality.  All the sudden, generic window and
  28. event handling is portable.
  29.  
  30. Some systems do funny things with windows, which would have to be broken to
  31. support a generic interface ( for example, Mach2 ties windows and tasks
  32. together on a one to one basis, rather than allowing any task to use any
  33. window ).  For most systems, all it takes is matching parameters and names of
  34. your existing GUI interfaces to some agreed on base.
  35.  
  36. I can post a quick list of the names and stack diagrams which I used, and the
  37. ST source is on GEnie's download area.
  38.  
  39. ANS-Fig Forth could use the same names for the same functions on many systems,
  40. and large applications could use the same portable source on many platforms,
  41. for windows, device handling, file selectors, menus, random numbers, input
  42. output conversions, special keycodes, structures, arrays, simple task
  43. handling, basic sounds, fixed point trig, SQRT, sort, etc.
  44.  
  45. Every Forth has them, they just call them different things.  A conversion
  46. shell could be supplied with each vendor's Forth for use with portable source,
  47. while maintaining the special features provided by the particular vendor.
  48.  
  49. ANS-Fig Forth is a great idea.  People can write portable code usable on many
  50. machines, and college students need not pay a bundle.
  51.  
  52. Vendors still have plenty of room for things like those Amiga multitasking
  53. tricks, network packages, fancy editors, optimization, assemblers, enhanced
  54. sound and graphics, databases, expert systems, multiuser systems, preemptive
  55. taskers, bizzare dictionaries, host object module linking, 3d graphics,
  56. elaborate debuggers, music languages, AI enhancements, support for many
  57. platforms, support for fancy PC expansion cards, good software floating point,
  58. MMU and other co-processor tricks, and whole applications.  This is the stuff
  59. which a person would pay for.
  60.  
  61. ANS-Fig Forth could draw lines and circles in a generic window while beeping
  62. and buzzing.  A vendor Forth could draw filled and shaded 3d graphics at
  63. blinding speed on a page flipped display with a scrolling background and multi
  64. voice stereo sound.  ANS-Fig Forth could have a standard way to send a
  65. character to a modem, while a vendor Forth could be running a ham radio AX-25
  66. packet radio node using out of the box software.  ANS-Fig Forth could have a
  67. simple text editor with cut and paste. A vendor Forth could have multi
  68. windows, execute a line at a time, have outlining and formatted printout,
  69. keyboard macros, and be able to compile and patch single definitions.
  70.  
  71. ANS-Fig Forth would be sufficient for most college programming projects, and
  72. could be used for sharing portable source code.  In the meantime, if there
  73. were a $200 vendor Forth for my machine which made good use of every special
  74. piece of hardware I had plus provided a slick editor and debugger and
  75. optimized linkable object code and all the rest, while ALSO having a shell to
  76. run ANS Fig code, I would snatch that up in an instant.
  77.  
  78. You public domain Forth implementers: let's agree on something more than DUP. 
  79. Let's have portable structures to catch up with C, and portable windows to
  80. perhaps pass them.  All we have to do is agree.
  81.  
  82. You vendors: give us something we can't make ourselves in our spare time. Give
  83. us something which can make our machines smoke along in full color, stereo, FP
  84. copro'ed, MMU controlled, multiwindowed, AI driven glory.
  85.  
  86. As was quoted previously:
  87.  > Or maybe I'm just naive.
  88.  
  89. -----
  90. This message came from GEnie via willett.  You *cannot* reply to the author
  91. using e-mail.  Please post a follow-up article, or use any instructions
  92. the author may have included (USMail addresses, telephone #, etc.).
  93. Report problems to: dwp@willett.pgh.pa.us
  94.