Thanks levente

http://code.google.com/p/pharo/issues/detail?id=2583


On Jun 22, 2010, at 12:42 AM, Levente Uzonyi wrote:

> On Mon, 21 Jun 2010, Laval Jannik wrote:
> 
>> Hi all,
>> 
>> I just try the new Cog VM,
>> I have a bug with MessageTally.
>> 
>> You can reproduce it with:
>> "MessageTally spyOn:[1]"
>> 
>> It does not understand "-".
>> Could someone reproduce it and have an idea to fix it ?
> 
> It's easy to fix it, just replace code like this:
> 
> SmalltalkImage current getVMParameters keysAndValuesDo: [ :idx :gcVal |
>       gcStats at: idx put: (gcVal - (gcStats at: idx))].
> 
> with this:
> 
> Smalltalk getVMParameters keysAndValuesDo: [ :idx :gcVal |
>       gcVal ifNotNil: [ gcStats at: idx put: (gcVal - (gcStats at: idx)) ] ].
> 
> in MessageTally's #spyAllEvery:on:, #spyEvery:on: and 
> #spyEvery:onProcess:forMilliseconds: (I think these are the same in Pharo and 
> Squeak. If not, then just look at the senders of #getVMParameters).
> 
> 
> Levente
> 
>> 
>> Cheers,
>> Jannik
>> 
>> On Jun 21, 2010, at 18:04 , Serge Stinckwich wrote:
>> 
>>> On Mon, Jun 21, 2010 at 10:44 PM, Lukas Renggli <[email protected]> wrote:
>>>> Some people asked me how I got Pharo to run on Cog on OS X. Here's how:
>>>> 
>>>> 1. Download the Cog source-code from
>>>> <http://ftp.squeak.org/Cog/OpenSourceCog.tar.gz>, open the Xcode
>>>> project CoreVM.xcodeproj, and compile the thing. For those who want to
>>>> skip this step I've put the resulting binaries here:
>>>> <http://www.lukas-renggli.ch/dropbox/cog-osx.zip>.
>>>> 
>>>> 2. Open a (copy of a) Pharo image in an **old** VM and file-in the
>>>> appropriate change-set (there is one for Pharo 1.0 and one for Pharo
>>>> 1.1) from the following issue report:
>>>> <http://code.google.com/p/pharo/issues/detail?id=2579>. Save the image
>>>> and quit.
>>>> 
>>>> 3. Open the image in the Cog VM. Note that if you safe the image, you
>>>> won't be able to open it again in a non-Cog VM.
>>>> 
>>>> Hopefully John will provide a properly built binary soon :-)
>>> 
>>> Thank you Lukas !
>>> 
>>> Quite impressive in some of my highly CPU-intensive robot simulations !!!
>>> Strange that the VM Cog icon is Croquet ;-)
>>> 
>>> --
>>> Serge Stinckwich
>>> UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
>>> Every DSL ends up being Smalltalk
>>> http://doesnotunderstand.org/
>>> 
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [email protected]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> 
>> ---
>> Jannik Laval
>> 
>> 
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>> 
> 
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to