| email@example.com (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?
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.
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 firstname.lastname@example.org
SGI Network Engineering http://reality.sgi.com/rpw3/
1600 Amphitheatre Pkwy. Phone: 650-933-1673
Mountain View, CA 94043 PP-ASEL-IA