[Newcompiler] Behavior>>compilerClass??

Michael van der Gulik mikevdg at gmail.com
Tue Nov 3 02:32:37 UTC 2009


On Sat, Oct 31, 2009 at 2:09 AM, Marcus Denker <denker at acm.org> wrote:

>
> On Oct 28, 2009, at 3:50 AM, Michael van der Gulik wrote:
>
> Hi NewCompiler people.
>
> Does anybody use this compiler as their main one?
>
> I notice that the NewCompiler packages don't override
> Behavior>>compilerClass. I tried using the ClosureCompiler instead, and it
> seems to work for some simple classes. Is it not stable enough to use by
> default?
>
>
> Hello,
>
> On which version of Squeak / Pharo do you plan to use it?
>

Anything which works... I don't really care which version is used.

I'm currently using Squeak 3.10, but I can easily move my code to Pharo.


>
> The problem is that the version that can emit code for Eliots closures is
> not yet done. But Jorge made
> lots of progress... we should have something ready soon.
>
> Normally the answer is this: there is a preference (as Math already
> mentioned). The ClosureCompiler
> class is for tests and for cases where one only wants to use the new
> compiler on single classes.
> (e.g. because it is used for experiments).
>
>
Excellent.

I'm going to be making some changes to the compiler:

* Accept $. in literal names so that namespaces will work.
* Make it use my own implementation of IRBuilder.
These two changes are minor and SecureSqueak specific. I'll need to
investigate tool support for keeping a "branch" of the new compiler while
still being able to commit fixes back to you.

I'll be integrating IRBuilder and all the compilation steps after it as a
core part of SecureSqueak. "Class" will be modified to store IR as well as
bytecodes. IR will be used to move CompiledMethods across the network in a
way that doesn't depend on the VM implementation or bytecode set.

I'll also be making changes to the debugger, but this might mean making a
fork of the debugger which is incompatible with Pharo.

Gulik.

-- 
http://gulik.pbwiki.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/newcompiler/attachments/20091103/98046faa/attachment.htm


More information about the Newcompiler mailing list