unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Nicholas Paul Johnson <nickjohnson@virginia.edu>
Subject: to serialize/deserialize closures; and multithreading
Date: Thu, 25 Mar 2004 01:19:52 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0403250050390.22664-100000@localhost.localdomain> (raw)

Hello all,

I am writing a program in C which will make heavy use of the guile 
scheme interpreter, and want to use the SCM_ interface as opposed to the 
GH_ interface.  two questions:

1. If I have a scheme value that is a closure, is there any way that I can
serialize this closure (from C code) into a form that it can be
deserialized back into a SCM closure variable (again, by C code)?  I can
assume for this question that both ends of the serial line are running the
same version of gnu guile and my software, but cannot assume that both
ends are running on the same computer architecture.  Would it instead
only be possible for me to transfer closures as their scheme source.

2. Is it possible to have disjoint instances of the scheme interpreter 
running in the same process but in different threads?  I.E. If my C 
program was multithreaded, could more than one of the threads create a 
guile/scheme interpretter?  If so, would I have to use the initialization 
functions more than once.

Also, does anyone know of a good documentation of the SCM_ API?  I've not 
been able to find one.

-- 
Nicholas Paul Johnson
nickjohnsonSPAM^H^H^H^H@virginia.edu
http://manjac.ath.cx/nick
 _
( ) ascii ribbon campaign - against html mail 
 X                        - against microsoft attachments
/ \ http://www.google.com/search?q=ascii+ribbon
--




_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


             reply	other threads:[~2004-03-25  6:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25  6:19 Nicholas Paul Johnson [this message]
2004-03-25  6:43 ` to serialize/deserialize closures; and multithreading Paul Jarc
2004-03-25 12:40 ` Greg Troxel
2004-03-25 17:18   ` Lynn Winebarger
2004-03-25 18:11     ` Lynn Winebarger
2004-03-25 19:55     ` Paul Jarc
  -- strict thread matches above, loose matches on Subject: below --
2004-03-25 22:38 Faraz Shahbazker
2004-03-26 13:05 ` rm
2004-03-26 15:22   ` Nicholas Paul Johnson
2004-03-26 20:02 Faraz Shahbazker
2004-03-26 20:35 ` Andreas Rottmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0403250050390.22664-100000@localhost.localdomain \
    --to=nickjohnson@virginia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).