From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Gary V. Vaughan" Newsgroups: gmane.lisp.guile.user Subject: Re: Anniversary hack: Zile editor with Guile support Date: Mon, 25 Mar 2013 11:22:52 +0700 Message-ID: <2BDCB6D4-B5B0-42D5-B5C8-FD0F2BD1D72A@gnu.org> References: <4CB5C160-9728-4784-ABA1-E8BDFC825990@vaughan.pe> <1363920239.82065.YahooMailNeo@web120405.mail.ne1.yahoo.com> <6AE6C7E8-7B28-40FA-B607-1D46FA52EB80@gnu.org> <8738vkqlar.fsf@Kagami.home> <291AEF3E-DF88-421B-AE2E-8FFAD005A39B@gnu.org> <87y5dcp1ba.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364185392 21833 80.91.229.3 (25 Mar 2013 04:23:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 04:23:12 +0000 (UTC) Cc: Guile User , Zile bugs , Reuben Thomas To: Ian Price Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Mar 25 05:23:38 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UJywc-0007Vz-80 for guile-user@m.gmane.org; Mon, 25 Mar 2013 05:23:38 +0100 Original-Received: from localhost ([::1]:56658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJywE-0005Px-CC for guile-user@m.gmane.org; Mon, 25 Mar 2013 00:23:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJyw5-0005PF-FT for guile-user@gnu.org; Mon, 25 Mar 2013 00:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJyw4-0003rk-By for guile-user@gnu.org; Mon, 25 Mar 2013 00:23:05 -0400 Original-Received: from hapkido.dreamhost.com ([66.33.216.122]:40749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJyw1-0003rJ-HT; Mon, 25 Mar 2013 00:23:01 -0400 Original-Received: from homiemail-a76.g.dreamhost.com (caiajhbdcagg.dreamhost.com [208.97.132.66]) by hapkido.dreamhost.com (Postfix) with ESMTP id B494BDD7B5; Sun, 24 Mar 2013 21:23:00 -0700 (PDT) Original-Received: from homiemail-a76.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTP id C134045807C; Sun, 24 Mar 2013 21:22:59 -0700 (PDT) Original-Received: from [10.119.72.190] (unknown [65.111.169.199]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: gary@vaughan.pe) by homiemail-a76.g.dreamhost.com (Postfix) with ESMTPSA id D870C45807B; Sun, 24 Mar 2013 21:22:57 -0700 (PDT) In-Reply-To: <87y5dcp1ba.fsf@Kagami.home> X-Mailer: Apple Mail (2.1503) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 66.33.216.122 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10206 Archived-At: Hi Ian, On 25 Mar 2013, at 11:10, Ian Price wrote: > "Gary V. Vaughan" writes: >>>> The first, I can do, though it's a long time since I paid attention = to Guile, >>>> so I'd need guidance and/or test-cases from someone familiar with = it to make >>>> sure my implementation would be compatible with canonical Guile = Scheme. >>>=20 >>> Rather than going for Scheme integration, it'd be better to target >>> tree-il, which is the level below it. >>=20 >> But surely, the point of having an Emacs that can be extended with = Guile Scheme, >> is that the user can feed Guile Scheme code to it? (1) above = proposes compiling >> the users Scheme to Lua bytecodes for sandboxed evaluation by Lua = Zile. >=20 > Of course we'd prefer Scheme, but I don't think that has to mean = writing > a new Guile-compatible Scheme implementation, and implementing Tree-IL > doesn't preclude it. >=20 > Guile is made up of several layers: Scheme/Tree-IL/GLIL/Assembly/etc. > and we expose these through various modules. If you want to write a > compiler for Scheme (in this case to Lua bytecode), we have the > infrastructure available and documented for you. >=20 > I suggest Tree-IL since that is the compilation target we recommend = for > new languages (both elisp and ecmascript compile to this), but if it = is > convenient for Lua bytecode, pick an even lower level one. I think we are misunderstanding one another somewhere :( I'm talking about this: 1. user writes some Guile Scheme, and feeds it to Lua Zile 2. Lua Zile runs zlc to translate Guile Scheme to Lua 3. Lua Zile runs luac to compile output of (2) to Lua bytecodes, and saves the result to disk 4. Lua runtime executes file of Lua bytecodes. I really don't see how Tree-IL fits in here, or makes loading and = executing Guile Scheme sources from Lua Zile any easier. What am I missing? Cheers, --=20 Gary V. Vaughan (gary AT gnu DOT org)=