From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nicholas Paul Johnson Newsgroups: gmane.lisp.guile.user Subject: to serialize/deserialize closures; and multithreading Date: Thu, 25 Mar 2004 01:19:52 -0500 (EST) Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1080195779 17247 80.91.224.253 (25 Mar 2004 06:22:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2004 06:22:59 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 25 07:22:54 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B6OGT-0004ND-00 for ; Thu, 25 Mar 2004 07:22:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6OF7-0001HK-I2 for guile-user@m.gmane.org; Thu, 25 Mar 2004 01:21:29 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6OEr-0001Gp-9y for guile-user@gnu.org; Thu, 25 Mar 2004 01:21:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6OEK-0000pK-Eu for guile-user@gnu.org; Thu, 25 Mar 2004 01:21:12 -0500 Original-Received: from [128.143.2.192] (helo=cms.mail.virginia.edu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6OEJ-0000oC-Ln for guile-user@gnu.org; Thu, 25 Mar 2004 01:20:39 -0500 Original-Received: from [192.168.2.105] (user19.net687.va.sprint-hsd.net [65.41.108.19]) by cms.mail.virginia.edu (Postfix) with ESMTP id C7ADE168185 for ; Thu, 25 Mar 2004 01:20:34 -0500 (EST) X-X-Sender: nick@localhost.localdomain Original-To: guile-user@gnu.org X-Bugger: ANYONE BUT BUSH 2004 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2989 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2989 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