guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug free programs


From: Mark H Weaver
Subject: Re: Bug free programs
Date: Tue, 16 Sep 2014 23:27:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Ian Grant <address@hidden> writes:

> On Tue, Sep 16, 2014 at 8:57 PM, <address@hidden> wrote:
>> Note that the 42 minutes here is a dumbed-down scheme interpreter 
>> written in C building/boostrapping the compiler. The guile compiler
>> (the Scheme one) is quite a bit faster than that.
>
> I know, but it's not necessary. Guile could take the scheme code which
> implements the efficient compiler, and just print out the C code
> (which JIT compiles the machine code) implementing that bytecode
> compiler.

Are you suggesting that we compile our Scheme code to C, include that
in our distribution, and then users would start by compiling that
(non-source) C code?  If so, I'm surprised to hear you suggest that,
given your concern over Thompson viruses (which I share, incidentally).
A Thompson virus could be hiding in this intermediate C code that would
be very hard to audit.

I, for one, am very glad that unlike many self-hosting compilers, Guile
is bootstrapped entirely from source code, with just one exception:
psyntax-pp.scm is generated from psyntax.scm, but it's fairly close to
the source code and quite readable.  Incidentally, I put a great deal of
effort into making sure it was readable.

> See the thunder.pdf I sent when I first proposed this idea:
>
> http://lists.gnu.org/archive/html/guile-devel/2014-08/msg00064.html

If you want me to read it, can you please email it as plain text?

     Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]