home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15504 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  3.0 KB

  1. Path: sparky!uunet!decwrl!contessa!mwm
  2. From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
  3. Subject: Re: Scheme on Amiga (3000)!
  4. Newsgroups: comp.sys.amiga.programmer
  5. Distribution: world
  6. References: <49.1692@bdb.escape.de>
  7. X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
  8. Keywords: 
  9. Summary: 
  10. Message-ID: <mwm.2k5z@contessa.palo-alto.ca.us>
  11. Date: 7 Nov 92 00:59:05 PST
  12. Organization: Missionaria Phonibalonica
  13. Lines: 62
  14.  
  15. In <49.1692@bdb.escape.de>, h_hucke@bdb.escape.de (Henning Hucke) wrote:
  16. > Anybody out there using Scheme??
  17.  
  18. Yes. Yarn (currently posting from version 3.4) is written in Scheme.
  19.  
  20. > I do actually use the Scheme2C-bunch from Fish556-558 (which also
  21. > includes an interpreter). This port seams to be very good, but unlikely
  22.  
  23. That's nice to hear. Thank you.
  24.  
  25. > the SAVE-HEAP and LOAD-HEAP functions are disabled; and since they
  26. > are disabled and since the interpreter doesn't automaticly load an
  27. > initialization-file this makes it rather uncomfortable to use the
  28. > System.
  29.  
  30. The solution to this with Scheme->C is the compiler. You take the code
  31. you want loaded in the "initialized" version, and compile it with the
  32. "-i" flag. That generates an interpreter with all your functions
  33. already defined and compiled. If you have a main function you want
  34. invoked instead, drop the "-i" flag.
  35.  
  36. > I didn't try to recompile the System yet since I "only" have the DICE-
  37. > Compiler but I will try in later.
  38.  
  39. Have you tried compiling any of your Scheme code with DICE? I wouldn't
  40. expect it to work, but it's worth a try. BTW, for those of you using
  41. SAS/C 6.0 - it doesn't work; you've currently got to use 5.1.
  42.  
  43. > Is there any better PD- or Freeware-Scheme out there 
  44.  
  45. There are _different_ ones. See the previous responses about
  46. amigalisp-request@contessa.palo-alto.ca.us. Whether those are better
  47. or not depends on your needs. If you don't want to use the compiler,
  48. there are probably better choices than Scheme->C, though I don't think
  49. there have been any faster interpreters released.
  50.  
  51. > or are there any
  52. > problems when reenabeling the SAVE-, LOAD-HEAP functions of Scheme2C when
  53. > recompiling it ???
  54.  
  55. Yes - the won't work as is. The code that is there expects to run in a
  56. Unix-like environment, where the code, data and stack for a program
  57. are always at a the same addresses. LOAD-HEAP even checks to see if
  58. you've relinked the program since the heap being loaded was saved, and
  59. fails if that check fails.
  60.  
  61. This might be fixable; the GNU emacs port does some magic to make it
  62. work. However, the GNU emacs port isn't saving images of the process
  63. stack (complete with return addresses, pointers to code and non-scheme
  64. variables, etc.) on it's heap.
  65.  
  66. The only place I've missed LOAD/SAVE-HEAP is with the compiler, which
  67. computes a lot of values before saving the heap, and has to redo all
  68. of that each time it's invoked. Then again, I don't compile code
  69. unless it's already working in the interpreter, so that's doesn't
  70. really change development time.
  71.  
  72. > PS: Does somebody know an EMail-Address of Mike Meyer who did the port ???
  73.  
  74. I'm mwm@contessa.palo-alto.ca.us.
  75.  
  76.     <mike
  77.