unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: Introducing Jitgen
Date: Fri, 28 Jan 2011 11:34:35 +0100	[thread overview]
Message-ID: <m3k4hpfhac.fsf@unquote.localdomain> (raw)
In-Reply-To: <877hfit2o5.fsf@gnu.org> ("Ludovic Courtès"'s message of "Fri, 10 Dec 2010 10:09:14 +0100")

Heya Noah,

On Fri 10 Dec 2010 10:09, ludo@gnu.org (Ludovic Courtès) writes:

> Better late than never...

Indeed, and my apologies for only getting back to you now.

> Noah Lavine <noah.b.lavine@gmail.com> writes:
>
>> My biggest question is, is this something that you would be interested
>> in having in Guile?
>
> I think so, yes.  Not in 2.0, I guess, but when it starts stabilizing it
> could go into a branch.

I am skeptical.  I think that the jitgen language sounds like a fine
intermediate thing, but I don't know if it will be good enough for
describing the whole VM.

OTOH something like it does seem useful for implementing all of the VM
ops in the JIT engine.

Have you considered going the other way?  That's to say, writing a
limited C -> Jitgen parser, and thus keeping the primary representation
of the VM in C?  It doesn't have to be a full parser.  It doesn't have
to expand macros -- i.e. it can interpret NEXT() directly, without
relying on details of its expansion.  If there is an idiom that the
parser is having a hard time with, we can change the C VM implementation
to make the meanings more explicit, via more macro use.

In this way we would keep the VM's canonical representation in a
well-defined language.  This makes it easier for anyone to maintain and
fix the VM.  It also frees you up to make changes in jitgen without
worrying about impacting the non-jit case.

What do you think?

Regards,

Andy
-- 
http://wingolog.org/



      reply	other threads:[~2011-01-28 10:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28 19:52 Introducing Jitgen Noah Lavine
2010-12-10  9:09 ` Ludovic Courtès
2011-01-28 10:34   ` Andy Wingo [this message]

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=m3k4hpfhac.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@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).