From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: set-thread-vm! Date: Mon, 27 Sep 2010 21:47:48 +0200 Message-ID: References: <1747848995.3367116.1285406769922.JavaMail.root@zmbs1.inria.fr> <87d3s17ath.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285616760 30520 80.91.229.12 (27 Sep 2010 19:46:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 19:46:00 +0000 (UTC) Cc: guile-devel To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 27 21:45:56 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P0Jdq-0002ag-9a for guile-devel@m.gmane.org; Mon, 27 Sep 2010 21:45:55 +0200 Original-Received: from localhost ([127.0.0.1]:53025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0Jdj-0005de-3J for guile-devel@m.gmane.org; Mon, 27 Sep 2010 15:45:31 -0400 Original-Received: from [140.186.70.92] (port=34219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0Jda-0005dU-1s for guile-devel@gnu.org; Mon, 27 Sep 2010 15:45:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0JdY-0006iF-Ab for guile-devel@gnu.org; Mon, 27 Sep 2010 15:45:21 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:57983 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0JdY-0006Ye-8o; Mon, 27 Sep 2010 15:45:20 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0271CDA849; Mon, 27 Sep 2010 15:44:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=lX0bnm3UMDHn KdHnfgeJt1HdnF0=; b=GLQ/hUVIYGAZ9K21919kwQEvfug9NXHKGElZv2uTnIDw Peo5FerA6q4T5aCPRyDWvwlIcp1xfvvq5rUvYK2CMUJ0CIvB+kMrQO5aG0CHA5f7 Z4AyluW8S8WjJJM+C6AaR+eCpBbXZUvquF/gQnwIdgVh/piAb9eH8F2UkJ+Ek9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=PIhDDa CRCYbN10BYLz4hB420Ts34tq3FGAGqCdlML1rX4Wesq+ZO23sgfgcKLCc+cNLx9G DeKozr1EN0exxWnkp9QfNHVTa94ePCSIBYzs5Ji37+zr4JrlyiWB8Y7+8YhOloJj 3gHC2ULfSPfSCLoBIadpx0KFK0lv86DjSq9/4= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id E3F1EDA848; Mon, 27 Sep 2010 15:44:28 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [88.17.207.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 51336DA847; Mon, 27 Sep 2010 15:44:27 -0400 (EDT) In-Reply-To: <87d3s17ath.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 25 Sep 2010 23:49:46 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: A42DE2EE-CA6F-11DF-9F7E-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:10958 Archived-At: Hi :) On Sat 25 Sep 2010 23:49, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo writes: > >> What's the purpose of set-thread-vm! ? > > See commit 639b2eb7107b26207d13bb8acb4c1d38d7dba3bd : it is used to work > around that fact that =E2=80=98scm_call_N=E2=80=99 uses whatever =E2=80= =98scm_the_vm=E2=80=99 returns, > which may be different from the calling VM. > > Perhaps that would be better solved by having =E2=80=98the-vm=E2=80=99 be= a real fluid, > though. > > Thoughts? I removed these accessors, because they're not really threadsafe, and they don't work in the way you expect. We should probably also exclude multiple threads from using the same VM. Anyway now there is call-with-vm, which I believe does what you want it to do. Does that work for you? Cheers, Andy --=20 http://wingolog.org/