home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / forth / 3515 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  2.9 KB

  1. Path: sparky!uunet!gatech!pitt!willett!ForthNet
  2. From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
  3. Newsgroups: comp.lang.forth
  4. Subject: Graphics, GUIs, and Events
  5. Message-ID: <4163.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 22 Nov 92 21:04:58 GMT
  7. Organization: EIEI-U
  8. Lines: 64
  9.  
  10. Category 18,  Topic 2
  11. Message 52        Sat Nov 21, 1992
  12. ELLIOTT.C                    at 10:24 EST
  13.  
  14.  -----via CRS Premium Bulletin Board -
  15.  USR 16.8K Dual Standard  (416) 629-7000
  16.  
  17.  Date: 11-14-92 (21:00)
  18.    To: MIKE HAAS
  19.  From: MARCEL HENDRIX
  20.  Subj: GRAPHICS
  21.  
  22.  Mike Haas wrote, about Graphics
  23.  
  24.  mh> As an aside, I think it is interesting that Forth has no mh>
  25.  standard graphics interface, perhaps never will, and one mh> of
  26.  the most popular existing graphics languages is an interactive
  27.  mh> Forth-cousin called PostScript.
  28.  
  29.  If Postscript weren't so slow, we could run it as a secondary
  30.  process and send ASCII text commands to it.
  31.  
  32.  Our tForth graphics are handled by a ``library'' sort of
  33.  extension called GRAPHICS.FRT that relies on a driver file for
  34.  physical output. The default driver sends remote calls to our C-
  35.  server via the transputer host link, but it was not very
  36.  difficult to write a driver that translates the calls to
  37.  Postscript and writes that to a diskfile. So I did that(*). It
  38.  depends on the complexity of GRAPHICS.FRT of course, but our
  39.  driver fits into a 5775 byte text file. (I use very short lines
  40.  to plot pixels, because my knowledge of PS is, well, limited.
  41.  Also, I do not know how to handle color yet).
  42.  
  43.    (*) The slowness is due to the fact that I use GOSCRIPT to
  44.    convert the file to a binary for a HP LaserJet, which I then
  45.    display on my screen with a another Forth program that
  46.    interprets HP LaserJet files and writes them directly to screen
  47.    memory (using very dirty tricks).  What's clearly needed is a
  48.    fast Display Postscript program. Any volunteers :-)
  49.  
  50.  
  51.  The only point I want to make is that it is relatively easy to
  52.  have very nice, very high-quality graphics and text in Forth, and
  53.  using existing technology should not be that difficult. The only
  54.  thing needed is a group of knowledgeable people that can write a
  55.  specification of what is needed, preferably layered (must_have,
  56.  low_res, mid_res, high_res, full-ps). I know that some people in
  57.  this newsgroup were working on that a few months ago, but I do
  58.  not know what they finally came up with.
  59.  
  60.  Marcel Hendrix,          "Wisdom has never been known to enter
  61.       the head through an open mouth"
  62.  Dutch Forth Workshop     -- overheard somewhere.
  63.  
  64.  NET/Mail : FS FORTH Systeme BBS West Germany ++49 7667 556
  65.  ---
  66.   * The GrapeVine/Ferret Face BBS * NLR,ARK * 501-753-8121 DS *
  67.   * PostLink(tm) v1.03  GRAPEVINE (#318) : RelayNet(tm) Hub
  68.  
  69. -----
  70. This message came from GEnie via willett.  You *cannot* reply to the author
  71. using e-mail.  Please post a follow-up article, or use any instructions
  72. the author may have included (USMail addresses, telephone #, etc.).
  73. Report problems to: dwp@willett.pgh.pa.us
  74.