From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#10132: Help lilypond interleave scheme and lilypond code in guile 2.x Date: Fri, 25 Nov 2011 12:15:14 +0100 Message-ID: <87vcq8bghp.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1322219800 4099 80.91.229.12 (25 Nov 2011 11:16:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2011 11:16:40 +0000 (UTC) Cc: Ian Hulin , David Kastrup To: 10132@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 25 12:16:35 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTtlh-0003CU-EO for guile-bugs@m.gmane.org; Fri, 25 Nov 2011 12:16:33 +0100 Original-Received: from localhost ([::1]:59089 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTtlg-0006NJ-V3 for guile-bugs@m.gmane.org; Fri, 25 Nov 2011 06:16:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTtle-0006ND-EK for bug-guile@gnu.org; Fri, 25 Nov 2011 06:16:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTtla-0003z8-BG for bug-guile@gnu.org; Fri, 25 Nov 2011 06:16:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTtla-0003z4-97 for bug-guile@gnu.org; Fri, 25 Nov 2011 06:16:26 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RTtn8-0003U6-Hg for bug-guile@gnu.org; Fri, 25 Nov 2011 06:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 25 Nov 2011 11:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10132 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile Original-Received: via spool by submit@debbugs.gnu.org id=B.132221982313317 (code B ref -1); Fri, 25 Nov 2011 11:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2011 11:17:03 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RTtmA-0003Sj-IV for submit@debbugs.gnu.org; Fri, 25 Nov 2011 06:17:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RTtm8-0003SG-HB for submit@debbugs.gnu.org; Fri, 25 Nov 2011 06:17:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTtkZ-0003rD-2p for submit@debbugs.gnu.org; Fri, 25 Nov 2011 06:15:24 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:49373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTtkZ-0003r5-1I for submit@debbugs.gnu.org; Fri, 25 Nov 2011 06:15:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTtkV-0006Im-2g for bug-guile@gnu.org; Fri, 25 Nov 2011 06:15:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTtkT-0003qn-T2 for bug-guile@gnu.org; Fri, 25 Nov 2011 06:15:19 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:52095 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTtkT-0003qj-Ke; Fri, 25 Nov 2011 06:15:17 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 813366C99; Fri, 25 Nov 2011 06:15:17 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:mime-version:content-type; s=sasl; bh=B xQi6jO0cqti4MW58YYGxxYLyQU=; b=sOuaNUnk2W9i++gfnxUulQs4a6u4+Lma1 ilI3hrriUycNZZ0GwtRI5xk48WDX8bsCfPu5Im/ougp0y5Vyu0AmmoBTu07nMsIw DvdcmRVs1bWPNDxkMaYEm9xDTuypz0YKx3Dn4vzsnDgmxfyL71pDojS9uKE9RE1n VRZVjRwuU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:date:message-id:mime-version:content-type; q=dns; s= sasl; b=OOdiC1j76EXPd8ivRr9xyyjZ1Bvafdrt3ssscQt5jKb2UX5UdegrjAjK 747JxqP8rDsnJFMbaNjQV3E88gICPDAjguRcZF6POdWiE1If7ZP4CXfY7HBksxid DRAyi0vanB0/ZWsVgy2s8Eq3RUuarruOMPYBWItLJvtq1xgYxtE= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 7A77B6C98; Fri, 25 Nov 2011 06:15:17 -0500 (EST) Original-Received: from badger (unknown [91.117.99.155]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id F1FD46C97; Fri, 25 Nov 2011 06:15:16 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: C10BDD96-1756-11E1-8597-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 25 Nov 2011 06:18:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5946 Archived-At: Hi David, This bug was forked from bug 10099, where David has a longer explanation. On Fri 25 Nov 2011 11:37, David Kastrup writes: > So much for that. The next quote is for a totally different issue, the > availability of local environments and evaluation in them. Lilypond has > an input syntax of its own, and it allows interspersing Scheme code. $ > or # switches to the Scheme interpreter (for one sexp) when in Lilypond > syntax, and #{ ... #} switches to Lilypond inside. Aaah. Thanks for this explanation; I had never seen this code before. Do you use a read-hash-extend reader for #{#} ? What do you use to parse the lilypond code? What does it parse to? I agree that the-environment and local-eval were nice solutions for this. In Guile 2.0 it's not as nice for you, because if you implement another evaluator, you don't get backtraces that are as nice. > As I said: for this particular application, I have coded a rather > inelegant and resource-grabbing workaround that really is not going to > help performance since the intertwined Lilypond interpreter does not > benefit from precompilation of mostly trivial lambda functions when the > actual procedure-environment is unlikely to ever reference more than > five variables. Understood. Let's work to find a good solution in 2.0. Andy -- http://wingolog.org/