Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!europa.chnt.gtegsc.com!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!howland.reston.ans.net!spool.mu.edu!news.cs.indiana.edu!deby@cs.indiana.edu
From: "David Eby" <deby@cs.indiana.edu>
Subject: Re: Is there an 'embedding' of Scheme in C++?
Message-ID: <1995Jul18.134355.933@news.cs.indiana.edu>
Organization: Computer Science, Indiana University
References: <3uaj8s$696@news.belwue.de>
Date: Tue, 18 Jul 1995 13:43:51 -0500
Lines: 40

In article <3uaj8s$696@news.belwue.de>, Jozsef Ludvig  <ludvig> wrote:
>I am writing a data aquisition program for some special PC-hardware. This
>software will run under Windows. I use Borland C++4.5 and eventually a GUI
>like WxWindows. I want to incorporate some simple symbolic computation
>capabilities and an easy to understand yet powerful programing language for
>manipulating the data and discovered Scheme as a possible candidate for this.
>All the needed functionality could be formulated in Scheme in a natural way
>while it would need greatest efforts to sqeeze it out of pure C++
>(implementation of an interpreter which calls functions of a class library or
>something similiar). What I'm looking for is a Scheme interpreter (or compiler)
>which can be controlled completely from inside a C++ program or is part of the
>program. 
>
>Has somebody used Scheme for something similiar yet? 
>Is it a trivial task to run a Scheme interpreter and programs under C++? 
>Maybe it is easier or safer to interface between C++ and Scheme with data and
>program files? 

Have a look at Brent Benson's libscheme.  It's a Scheme interpreter
implemented as a C library.  I don't know how well it will integrate
with C++, but it's probably the closest thing to what you want.

It's available from the Scheme Repository at:
ftp://ftp.cs.indiana.edu/pub/scheme-repository/imp/libscheme-0.5.tar.gz

It can also be reached through the Repository's WWW pages.  The home
page is at URL http://www.cs.indiana.edu/scheme-repository/home.html .

There are also on-line versions of Brent's libscheme paper from the 
1994 USENIX Symposium on Very High Level Languages in the document
section of the Repository.

>Jozsef Ludvig
>Lehrstuhl fuer Informatik V
>Universitaet Mannheim 
>ludvig@mp-sun1.informatik.uni-mannheim.de

David Eby


