Subject: Re: sound in scheme
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 19 Jan 2001 07:10:36 GMT
Newsgroups: comp.lang.scheme
Message-ID: <948p9c$gh7q$1@fido.engr.sgi.com>
<jumpyjon2@my-deja.com> wrote:
+---------------
|   sk+10@cs.brown.edu (Shriram Krishnamurthi) wrote:
| > You don't need to jump to Guile just to write an extension.
| 
| Sounds like an interesting idea, do you have any pointers to some
| more information?
+---------------

<URL:http://www.cs.rice.edu/CS/PLT/packages/doc/insidemz/index.htm>
contains detailed information about writing extensions to MzScheme,
the engine underneath DrScheme. Once you're written your extension
(in C) and compiled it as explained there, you can load it into the
currently running MzScheme (or DrScheme) with:

    (load-extension "/path/to/my/extension.so")  ; or ".dll", on Windows

Several more-extended examples of writing extensions are in the
"plt/collects/mzscheme/examples" directory of the PLT distribution.


-Rob

p.s. My personal MzScheme extension library contains routines for doing
"mmap()", "malloc()", "mpin()", peeking/poking memory & I/O locations,
and other dirty little low-level hacks. [I've found it quite useful when
bringing up new networking hardware from a user-mode test harness, but
that's another story...]

-----
Rob Warnock, 31-2-510		rpw3@sgi.com
SGI Network Engineering		http://reality.sgi.com/rpw3/
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA