[DISCUSSION] Is Squeak/Smalltalk able to do this?
Withers, Robert
rwithers at quallaby.com
Mon Feb 10 17:27:30 UTC 2003
Stef,
I don't have your paper in front of me (it's on an old machine and also
printed out in a lost doc folder of mine). As I recall, you mention 4
different techniques for control message sending. Of the 4 approaches, one
approach was method wrappers and another approach was a vm change to
intercept the lookup. I took the latter approach, while Nathanael's Traits
work takes the former approach, I believe.
Funny enough, my lookup redirection code required such a method to execute
mixin compiled methods. The SqueakElib package (on SM) includes
RedirectionManager class>>#primExecuteCompiledMethod:on:withArguments:.
Anothony's impl of the same method, in the CompiledClosures, but mine passes
the receiver as an arg to the prim. Easier to think about implementing
priviledged access to such a primitive.
cheers,
rob
> -----Original Message-----
> From: Stephane Ducasse [mailto:ducasse at iam.unibe.ch]
> Sent: Monday, February 10, 2003 2:48 AM
> To: The general-purpose Squeak developers list
> Subject: Re: [DISCUSSION] Is Squeak/Smalltalk able to do this?
>
>
> Which technique did you then used?
> Because the paper was not squeak friendly. What I would
> really like to
> have in squeak is a primitive to execute a method
> (CompiledMethod>>value:withReceiver: in VW).
>
> Stef
>
> >> You have also MethodWrappers from john Brant (I know
> somebody ported
> >> them to squeak).
> >> You can also read my Joop paper: message passing Control
> in Smalltalk
> >> available on my webpage.
> >
> >
> > Stephane, your paper was fundamental in implementing SqueakElib. I
> > decided to intercept the message lookup, rather than the
> > wrapper/instrumentation approach. It turns out that a wrapper is
> > still needed, but the other goal is to secure these references into
> > the vm, and the approach taken supports that too.
> >
> > cheers,
> > rob
> >
> >
> >
> Prof. Dr. Stéphane DUCASSE (ducasse at iam.unibe.ch)
> http://www.iam.unibe.ch/~ducasse/
> "if you knew today was your last day on earth, what would you do
> different? ... especially if, by doing something different, today
> might not be your last day on earth" Calvin&Hobbes
>
>
>
More information about the Squeak-dev
mailing list
|