FYI, Spoon simulates on Mac/win32/Linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

FYI, Spoon simulates on Mac/win32/Linux

ccrraaiigg
 

Hi--

     Just FYI, Spoon (VMMaker-dtl.237 plus support for proxies, method
reporting/imprinting and stale method removal) runs in the simulator on
MacOS, win32 and Linux, although "pluginClass" in
VMPluginCodeGenerator>>isTypePointerToStruct: is still undeclared.


-C

--
Craig Latta
www.netjam.org/resume
+31  06 2757 7177
+ 1 415  287 3547


Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

Mariano Martinez Peck
 


On Fri, May 27, 2011 at 1:30 PM, Craig Latta <[hidden email]> wrote:


Hi--

    Just FYI, Spoon (VMMaker-dtl.237 plus support for proxies,

Hi Craig. What do you exactly mean by support for proxies?
Can you elaborate?

Thanks in advance,

Mariano

method
reporting/imprinting and stale method removal) runs in the simulator on
MacOS, win32 and Linux, although "pluginClass" in
VMPluginCodeGenerator>>isTypePointerToStruct: is still undeclared.


-C

--
Craig Latta
www.netjam.org/resume
<a href="tel:%2B31%20%2006%202757%207177" value="+31627577177">+31 06 2757 7177
<a href="tel:%2B%201%20415%20%20287%203547" value="+14152873547">+ 1 415 287 3547





--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

Gerardo Richarte
In reply to this post by ccrraaiigg
 
Hey Craig!

It's great to see you back working in spoon!
I always loved the project!
(erm... sorry if you have been working all the time,
I was not very in touch with the Squeak community
for some years)

    richie

On 05/27/2011 08:30 AM, Craig Latta wrote:
>      Just FYI, Spoon (VMMaker-dtl.237 plus support for proxies, method
> reporting/imprinting and stale method removal) runs in the simulator on
> MacOS, win32 and Linux, although "pluginClass" in
> VMPluginCodeGenerator>>isTypePointerToStruct: is still undeclared.

Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

David T. Lewis
In reply to this post by ccrraaiigg
 
On Fri, May 27, 2011 at 01:30:06PM +0200, Craig Latta wrote:
>  
>
> Hi--
>
>      Just FYI, Spoon (VMMaker-dtl.237 plus support for proxies, method
> reporting/imprinting and stale method removal) runs in the simulator on
> MacOS, win32 and Linux,

Excellent!

> although "pluginClass" in
> VMPluginCodeGenerator>>isTypePointerToStruct: is still undeclared.
>

Thanks, fixed in VMMaker-dtl.238

Let me know if you need commit access to SqueakSource/VMMaker (I don't
see your user id listed, otherwise I'd just add you).

Dave

Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

ccrraaiigg
In reply to this post by Mariano Martinez Peck
 

Hi Mariano--

> What do you exactly mean by support for proxies?

     That's support for a special class, "Other". Each Other corresponds
to an object in another object memory, with a network stream connected
to that memory and an object ID. When a message is sent to an Other, the
VM turns it into a remote message to the original object, using a
mechanism similar to the creation of the doesNotUnderstand: message, in
the method lookup logic.

     There are also a few other changes to ensure that all other
messages sent to Others are forwarded ("class", etc.). You had asked
about some of these when you were thinking about proxies, and I
mentioned my stuff at the time.


-C

--
Craig Latta
www.netjam.org/resume
+31  06 2757 7177
+ 1 415  287 3547



Reply | Threaded
Open this post in threaded view
|

re: FYI, Spoon simulates on Mac/win32/Linux

ccrraaiigg
In reply to this post by Gerardo Richarte
 

Hi Gerardo--

> It's great to see you back working in spoon! I always loved the
> project!

     Thanks! Yes, it's good to be back. I spent most of 2009 and 2010 on
paid work.


     greetings,

-C

--
Craig Latta
www.netjam.org/resume
+31  06 2757 7177
+ 1 415  287 3547



Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

ccrraaiigg
In reply to this post by David T. Lewis
 

Hi David--

> Let me know if you need commit access to SqueakSource/VMMaker (I don't
> see your user id listed, otherwise I'd just add you).

     Yes, please! I'm "crl".


     thanks again,

-C

--
Craig Latta
www.netjam.org/resume
+31  06 2757 7177
+ 1 415  287 3547



Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

David T. Lewis
 
On Sat, May 28, 2011 at 11:09:55AM +0200, Craig Latta wrote:
>
> Hi David--
>
> > Let me know if you need commit access to SqueakSource/VMMaker (I don't
> > see your user id listed, otherwise I'd just add you).
>
>      Yes, please! I'm "crl".
>

Craig,

I added you as a developer. If you make updates to VMMaker (i.e.
the branch currently at VMMaker-dtl.238.mcz), please also update
the method VMMaker class>>versionString to increment the version
string (this is an ad-hoc identifier that helps to locate things
in the commit logs and that also becomes part of the installation
directory path for the Unix VM).

Thanks,
Dave

Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

Mariano Martinez Peck
In reply to this post by ccrraaiigg
 


On Sat, May 28, 2011 at 10:18 AM, Craig Latta <[hidden email]> wrote:


Hi Mariano--

> What do you exactly mean by support for proxies?

    That's support for a special class, "Other". Each Other corresponds
to an object in another object memory, with a network stream connected
to that memory and an object ID. When a message is sent to an Other, the
VM turns it into a remote message to the original object, using a
mechanism similar to the creation of the doesNotUnderstand: message, in
the method lookup logic.

Ok. I understand. Do you do something in #lookupMethodInClass:  that checks that the current class is Other. To do that you use  objectMemory splObj: OtherClass
and you put Other in the special object array ?
Then if that's true, you fetch the instVar for network stream + ID (you assume the instVars offsets),  and you forward the message to the original object?
 

    There are also a few other changes to ensure that all other
messages sent to Others are forwarded ("class", etc.). You had asked
about some of these when you were thinking about proxies,

yep, I remember :)
 
and I
mentioned my stuff at the time.

uhhhh I don't remember :(
I will check.

Thanks Craig!
 


-C

--
Craig Latta
www.netjam.org/resume
<a href="tel:%2B31%20%2006%202757%207177" value="+31627577177">+31 06 2757 7177
<a href="tel:%2B%201%20415%20%20287%203547" value="+14152873547">+ 1 415 287 3547






--
Mariano
http://marianopeck.wordpress.com

Reply | Threaded
Open this post in threaded view
|

Re: FYI, Spoon simulates on Mac/win32/Linux

ccrraaiigg
 

Hi Mariano--

> Do you do something in #lookupMethodInClass: that checks that the
> current class is Other. To do that you use objectMemory splObj:
> OtherClass and you put Other in the special object array?

     Exactly.

> Then if that's true, you fetch the instVar for network stream + ID
> (you assume the instVars offsets), and you forward the message to the
> original object?

     It's simpler than that; the VM just creates a message to the proxy
(in a manner similar to doesNotUnderstand:), using a special selector
which is also known from the special objects array. Then the proxy
forwards the message itself. The VM need not know about the network
stream or original object ID.


-C

--
Craig Latta
www.netjam.org/resume
+31  06 2757 7177
+ 1 415  287 3547