home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!decwrl!contessa!mwm
- From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
- Subject: Re: Scheme on Amiga (3000)!
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- References: <49.1692@bdb.escape.de>
- X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
- Keywords:
- Summary:
- Message-ID: <mwm.2k5z@contessa.palo-alto.ca.us>
- Date: 7 Nov 92 00:59:05 PST
- Organization: Missionaria Phonibalonica
- Lines: 62
-
- In <49.1692@bdb.escape.de>, h_hucke@bdb.escape.de (Henning Hucke) wrote:
- > Anybody out there using Scheme??
-
- Yes. Yarn (currently posting from version 3.4) is written in Scheme.
-
- > I do actually use the Scheme2C-bunch from Fish556-558 (which also
- > includes an interpreter). This port seams to be very good, but unlikely
-
- That's nice to hear. Thank you.
-
- > the SAVE-HEAP and LOAD-HEAP functions are disabled; and since they
- > are disabled and since the interpreter doesn't automaticly load an
- > initialization-file this makes it rather uncomfortable to use the
- > System.
-
- The solution to this with Scheme->C is the compiler. You take the code
- you want loaded in the "initialized" version, and compile it with the
- "-i" flag. That generates an interpreter with all your functions
- already defined and compiled. If you have a main function you want
- invoked instead, drop the "-i" flag.
-
- > I didn't try to recompile the System yet since I "only" have the DICE-
- > Compiler but I will try in later.
-
- Have you tried compiling any of your Scheme code with DICE? I wouldn't
- expect it to work, but it's worth a try. BTW, for those of you using
- SAS/C 6.0 - it doesn't work; you've currently got to use 5.1.
-
- > Is there any better PD- or Freeware-Scheme out there
-
- There are _different_ ones. See the previous responses about
- amigalisp-request@contessa.palo-alto.ca.us. Whether those are better
- or not depends on your needs. If you don't want to use the compiler,
- there are probably better choices than Scheme->C, though I don't think
- there have been any faster interpreters released.
-
- > or are there any
- > problems when reenabeling the SAVE-, LOAD-HEAP functions of Scheme2C when
- > recompiling it ???
-
- Yes - the won't work as is. The code that is there expects to run in a
- Unix-like environment, where the code, data and stack for a program
- are always at a the same addresses. LOAD-HEAP even checks to see if
- you've relinked the program since the heap being loaded was saved, and
- fails if that check fails.
-
- This might be fixable; the GNU emacs port does some magic to make it
- work. However, the GNU emacs port isn't saving images of the process
- stack (complete with return addresses, pointers to code and non-scheme
- variables, etc.) on it's heap.
-
- The only place I've missed LOAD/SAVE-HEAP is with the compiler, which
- computes a lot of values before saving the heap, and has to redo all
- of that each time it's invoked. Then again, I don't compile code
- unless it's already working in the interpreter, so that's doesn't
- really change development time.
-
- > PS: Does somebody know an EMail-Address of Mike Meyer who did the port ???
-
- I'm mwm@contessa.palo-alto.ca.us.
-
- <mike
-