From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: threadsafe format.scm Date: Mon, 15 Sep 2003 15:33:48 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <878yoqi3b7.fsf@zagadka.ping.de> References: <200307282327.42988.clinton@unknownlamer.org> <873cgn3and.fsf@zip.com.au> <200307301906.54468.clinton@unknownlamer.org> <200307302246.16240.clinton@unknownlamer.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063632908 7672 80.91.224.253 (15 Sep 2003 13:35:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2003 13:35:08 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 15 15:35:05 2003 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 19ytVR-00019W-00 for ; Mon, 15 Sep 2003 15:35:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19ytVN-0007fK-Gu for guile-devel@m.gmane.org; Mon, 15 Sep 2003 09:35:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19ytV6-0007ew-AZ for guile-devel@gnu.org; Mon, 15 Sep 2003 09:34:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19ytV4-0007ei-WD for guile-devel@gnu.org; Mon, 15 Sep 2003 09:34:43 -0400 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.22) id 19ytUD-0007WP-Ve for guile-devel@gnu.org; Mon, 15 Sep 2003 09:33:50 -0400 Original-Received: from zagadka.ping.de (unknown [192.168.0.72]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with SMTP id E621EA27C for ; Mon, 15 Sep 2003 15:33:48 +0200 (CEST) Original-Received: (qmail 30799 invoked by uid 1000); 15 Sep 2003 13:33:48 -0000 Original-To: Clinton Ebadi In-Reply-To: <200307302246.16240.clinton@unknownlamer.org> (Clinton Ebadi's message of "Wed, 30 Jul 2003 22:46:15 -0400") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2796 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2796 Clinton Ebadi writes: > I moved all of the global definitions into a new format procedure that has a > really long letrec. This should be entirely threadsafe. Great, thanks! I have installed this. We don't need papers for it since the change itself, although affecting everything, is quite small. > I'm not sure how Guile does evaluation of procedures once they have > been evaluated once, so I'm not entirely sure if this has a huge > amount of overhead or not. There shouldn't be too much overhead. It will be slower than with globals (probably, I would have to benchmark it to be sure), but not much. However, the letrec _is_ pretty big and environment access in Guile is O(n), so well... -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel