[squeak-dev] Compiling with macro inliner switch [was: Boolean over-optimization #ifTrue:/#ifFalse:]

stephane ducasse stephane.ducasse at free.fr
Wed Mar 5 09:41:12 UTC 2008


Sounds really interesting idea.

Stef

>> Yes, let me take a look at it.
> i'm already using pragma <metacode> to switch between different
> simulation modes (but it's in my own domain, not related to optimized
> booleans).
>
> I'm currently doing some research, by implementing own object memory
> with a small set of classes. To make things done fast, i decided to
> not create parsers/bytecode interpreter, but instead, use squeak as
> backend for evaluating a code using proxies.
>
> My intent is to create a kind of self-hosted VM, which after some
> bootstrap can start working without the need of implementing things
> externally, like primitives/bytecode interpreter.
> A 'primitives' in this system will be replaced by a special methods,
> marked with <metacode> pragma, which should follow special rules and
> handled differently by compiler.
> But what is good, that these methods are 'live' - you can change their
> implementation at any time, in same way as any other method in
> smalltalk.
> As a first 'showcase' i like to make complete implementation of
> classes which can create objects and do smallint math without the need
> of primitives (means, all behavior implementation resides in object
> memory).
>
> To complete a full circle, the VM should be capable to compile methods
> to bare metal (CPU instructions) and can execute them without any
> external help.
>
>> /Klaus
>
> -- 
> Best regards,
> Igor Stasenko AKA sig.
>
>




More information about the Squeak-dev mailing list