From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: to serialize/deserialize closures; and multithreading Date: Fri, 26 Mar 2004 21:35:54 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <87n063xs5x.fsf@ivanova.rotty.yi.org> References: <20040326200251.19862.qmail@webmail27.rediffmail.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080334046 4476 80.91.224.253 (26 Mar 2004 20:47:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Mar 2004 20:47:26 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Mar 26 21:47:19 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 1B6yEY-0003Is-00 for ; Fri, 26 Mar 2004 21:47:18 +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 1B6yDX-0002t1-8s for guile-user@m.gmane.org; Fri, 26 Mar 2004 15:46:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B6yD7-0002bN-Ij for guile-user@gnu.org; Fri, 26 Mar 2004 15:45:49 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B6yCX-0002Es-SE for guile-user@gnu.org; Fri, 26 Mar 2004 15:45:44 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B6yCX-0002Dz-8l for guile-user@gnu.org; Fri, 26 Mar 2004 15:45:13 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B6yCR-0003X8-00 for ; Fri, 26 Mar 2004 21:45:07 +0100 Original-Received: from chello212186006140.401.14.univie.teleweb.at ([212.186.6.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Mar 2004 21:45:07 +0100 Original-Received: from a.rottmann by chello212186006140.401.14.univie.teleweb.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 26 Mar 2004 21:45:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-user@gnu.org Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: chello212186006140.401.14.univie.teleweb.at User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:Os1D73MS5rQwQi3z78hM3ZYZMTI= 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:3010 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3010 "Faraz Shahbazker" writes: > That I accept. It can be speeded up by building the > transformation into the compiler, something which is not possible > with guile - bigloo perhaps would be a better choice for such work. > But it is difficult to leave guile for 2 reasons : > > 1. it's got the "GNU" in it's name > 2. SCM API is too good - absolutely love it. I don't think anyone > can provide a better extensibility for Scheme than what we have here. > Have a look at Pika's API - it's cleaner (IMHO) and more general, due to passing only location of SCM values (which allows easier/better GC) and passing an 'arena' (roughly a interpreter instance), which allows for more than one Scheme "subsystem" in one program; each such subsystem can have a different memory pool size, independent GC, ... OTOH, this tends to make the C code more verbose. Example: t_scm_error scm_ref_list_elt (t_scm_word * result, t_scm_arena arena, t_scm_word * list, ssize_t elt) { struct ref_locals { SCM_FRAME; t_scm_word tail; } l; t_scm_error status = 0; SCM_PROTECT_FRAME (l); status = scm_list_tail (&l.tail, arena, list, elt); if (status == 0) { scm_ref_pair_car (result, arena, &l.tail); } SCM_UNPROTECT_FRAME (l); return status; } Cheers, Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Make free software, not war! _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user