On Tue, 21 Jun 2011 15:34:51 -0400
David Malcolm <dmalc...@redhat.com> wrote:
> I'm aware of MELT - as I understand it, it's a Lisp variant.

Yes. However, I do have in the works an infix syntax of MELT called
MILT. But it would just be an infix/prefix syntax of exactly the same
language (more precisely, of a large subset of MELT). I mean that every
syntactic construct in MELT will have its infix/prefix equivalent (e.g.
MELT operations starting with + will be additive infix, etc..). 

I don't think that MELT lispy syntax matters that much. For the few
users of MELT, the main issue is understand the details of GCC internal
representations (Gimple & Tree, notably), not MELT syntax. I'm sure
your Python hackers will have the same issue: understanding GCC details
is hard (much harder than learning how to code in Python or in MELT).

> 
> Languages and runtimes are a sensitive topic.  For myself, I'm very fond
> of Python and its syntax (and its community), and having that available
> for writing GCC extensions is very appealing to me.  The CPython runtime
> may not be the fastest free software runtime, but it is flexible and
> easy to debug.
> 
> Although I'm new to GCC development, I feel that the more languages that
> GCC can support for plugins and scripting, the better.  There's already
> a JavaScript plugin, and I didn't want the Python fans to feel left out.

Agreed.

> [Plus I'm using this code to analyse python's .c code, so I selfishly
> hope that other python fans will want to help; by using python as the
> extension language I hope I'll be more likely to get more contributors].

I actually dreamed that some Python C binding guru would make a MELT
extension to analyze such things. Again, the issue is understanding GCC
internals (mostly Gimple & Tree representations), and being able to
specify a GCC pass doing such analysis. This also requires a deep
understanding of Python -> C binding rules.


Regards.


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

Reply via email to