From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: frames / stacks / source? was Re: coverage/profiling Date: Wed, 10 Jan 2007 08:46:29 +0000 Message-ID: <87mz4rfevu.fsf@ossau.uklinux.net> References: <45A2D83D.3060700@xs4all.nl> <87wt3vhmon.fsf@ossau.uklinux.net> <45A41BBD.1080906@xs4all.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168418859 23747 80.91.229.12 (10 Jan 2007 08:47:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Jan 2007 08:47:39 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jan 10 09:47:36 2007 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.50) id 1H4Z7P-0007pF-ND for guile-devel@m.gmane.org; Wed, 10 Jan 2007 09:47:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4Z7P-0003iI-Cm for guile-devel@m.gmane.org; Wed, 10 Jan 2007 03:47:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4Z7L-0003hX-4U for guile-devel@gnu.org; Wed, 10 Jan 2007 03:47:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4Z7I-0003gf-Rf for guile-devel@gnu.org; Wed, 10 Jan 2007 03:47:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4Z7I-0003gZ-Or for guile-devel@gnu.org; Wed, 10 Jan 2007 03:47:28 -0500 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4Z7I-0002Qc-4C for guile-devel@gnu.org; Wed, 10 Jan 2007 03:47:28 -0500 Original-Received: from laruns (host86-145-157-83.range86-145.btcentralplus.com [86.145.157.83]) by mail3.uklinux.net (Postfix) with ESMTP id D34E040A869; Wed, 10 Jan 2007 08:46:34 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id 3015D6F712; Wed, 10 Jan 2007 08:46:31 +0000 (GMT) Original-To: hanwen@xs4all.nl In-Reply-To: <45A41BBD.1080906@xs4all.nl> (Han-Wen Nienhuys's message of "Tue, 09 Jan 2007 23:48:29 +0100") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) 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:6412 Archived-At: Han-Wen Nienhuys writes: > Neil Jerram escreveu: >> Do you think you need to do this in C? (You might do, for reasonable >> performance - I genuinely don't know yet.) The evaluator already has >> hooks (see "Evaluator trap options" in the manual) that allow you to >> call out to arbitrary Scheme code at the entry and exit of every >> frame. > > [hanwen@haring info]$ guile > guile> (trap-enable 'enter-frame-handler) > throw from within critical section. > Abortado > [hanwen@haring info]$ Takes effect quickly, doesn't it? :-) What you need is something more like this: (trap-set! enter-frame-handler (lambda (key continuation . args) ...)) (trap-enable 'enter-frame) And it's important to do them in this order. Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel