unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Noah Lavine <noah.b.lavine@gmail.com>
To: Ewan Higgs <ewan_higgs@yahoo.co.uk>
Cc: guile-devel@gnu.org
Subject: Re: Guile virtual machine targets
Date: Mon, 18 Apr 2011 13:16:15 -0400	[thread overview]
Message-ID: <BANLkTikn-9SbLi-uO6pJ62Pk6FpMqgWgwg@mail.gmail.com> (raw)
In-Reply-To: <941241.56035.qm@web24603.mail.ird.yahoo.com>

Hello,

Let me clarify a bit about Lightning and the stuff I've been doing:

Lightning is a very low-level assembler framework. It is embeddable,
and Guile could certainly target it, but targeting Lightning would be
just a speed enhancement - it wouldn't make us more compatible with
anything else.

Actually I had decided a while ago that we should look at using GNU
Libjit rather than Lightning, mostly because it does register
allocation for us, whereas Lightning doesn't. It also provides tail
call support, which Lightning does not (I think).

Libjit is about the same level of abstraction as LLVM, but with much
less optimization ability. We talked about LLVM a bit, but Andy
thought that we should avoid it because it is BSD-licensed rather than
LGPL (if my memory is correct). However, I don't think optimization is
our primary concern right now, because before we start optimizing any
sort of low-level representation we would want better optimization for
Tree-IL or a similar higher-level representation of Guile code.

Noah

On Mon, Apr 18, 2011 at 11:43 AM, Ewan Higgs <ewan_higgs@yahoo.co.uk> wrote:
> Hi all,
> With Noah's suggestion of moving the Guile vm in a direction to support CLisp
> work as well, I became curious about the status of the various Guile back ends
> (Lightning and Guile-vm). These questions are largely out of personal interest
> and not leading up to any particular piece of work I had in mind.
>
> Is Lightning actually supported? I saw that there is some mention of it on the
> old CVS page[1], but almost nothing else. I also see that Noah was working on
> something last year but it doesn't appear to have gotten into the master repo
> [1]. Is Lightning embeddable? If so, then I guess that work could replace the
> existing libguile virtual machine.
>
> CLisp is currently using Lightning as of 2.45 (2008/02/24)[2]. So if Guile and
> CLisp are using this then would Noah's interests be satisfied? If Lightning
> doesn't provide enough features to support work that Guile's vm does, would it
> make sense to port the work for the Guile-vm to Lightning instead and simply
> support that back end?
>
> If Lightning isn't embeddable, is LLVM? If so, wouldn't that become an
> attractive target for Guile as it's well documented and has a lot of inertia?
>
> Thanks!
>
> -Ewan
>
> [1] As mentioned here: http://www.gnu.org/s/guile/anon-cvs.html -- though CSV is
> no longer used.
> Noah has some work here): https://github.com/noahl/guile-lightning
> [2] http://www.clisp.org/impnotes.html
>
> NB: This was intentionally not cross posted to Clisp developers list.
>
>



  reply	other threads:[~2011-04-18 17:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-18 15:43 Guile virtual machine targets Ewan Higgs
2011-04-18 17:16 ` Noah Lavine [this message]
2011-04-18 21:12   ` Ludovic Courtès
2011-04-20 10:57     ` Ewan Higgs
2011-05-02 10:31       ` Marijn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikn-9SbLi-uO6pJ62Pk6FpMqgWgwg@mail.gmail.com \
    --to=noah.b.lavine@gmail.com \
    --cc=ewan_higgs@yahoo.co.uk \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).