How to make Squeak use Block Closure

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

How to make Squeak use Block Closure

Noury Bouraqadi
Hi,

I'm wondering how to switch code to block closures. I guess I have to  
install NewCompiler from Squeak Source. Right?

Noury
------------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
ARMINES - Ecole des Mines de Douai - Dept. I.A.
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org
------------------------------------------------------------------




Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Mathieu SUEN
Hi,

In the Preference Browser
Go to the compiler category then enable both compileClocksAsClosure and
compileUseNewCompiler.

HTH

    Math
Noury Bouraqadi wrote:

> Hi,
>
> I'm wondering how to switch code to block closures. I guess I have to
> install NewCompiler from Squeak Source. Right?
>
> Noury
> ------------------------------------------------------------------
> Dr. Noury Bouraqadi - Enseignant/Chercheur
> ARMINES - Ecole des Mines de Douai - Dept. I.A.
> http://csl.ensm-douai.fr/noury
>
> European Smalltalk Users Group Board
> http://www.esug.org
> ------------------------------------------------------------------
>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Noury Bouraqadi
Thanks Mathieu.
Le 23 janv. 07 à 19:15, Mathieu Suen a écrit :

> Hi,
>
> In the Preference Browser
> Go to the compiler category then enable both compileClocksAsClosure  
> and compileUseNewCompiler.
>
> HTH
>
>    Math
> Noury Bouraqadi wrote:
>> Hi,
>>
>> I'm wondering how to switch code to block closures. I guess I have  
>> to install NewCompiler from Squeak Source. Right?
>>
>> Noury
>> ------------------------------------------------------------------
>> Dr. Noury Bouraqadi - Enseignant/Chercheur
>> ARMINES - Ecole des Mines de Douai - Dept. I.A.
>> http://csl.ensm-douai.fr/noury
>>
>> European Smalltalk Users Group Board
>> http://www.esug.org
>> ------------------------------------------------------------------
>>
>>
>>
>>
>>
>
>

------------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
ARMINES - Ecole des Mines de Douai - Dept. I.A.
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org
------------------------------------------------------------------




Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Randal L. Schwartz
In reply to this post by Mathieu SUEN
>>>>> "Mathieu" == Mathieu Suen <[hidden email]> writes:

Mathieu> Go to the compiler category then enable both compileClocksAsClosure
Mathieu> and compileUseNewCompiler.

I seem to remember there's a downside to that.  What's the downside again?

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Philippe Marschall
2007/1/26, Randal L. Schwartz <[hidden email]>:
> >>>>> "Mathieu" == Mathieu Suen <[hidden email]> writes:
>
> Mathieu> Go to the compiler category then enable both compileClocksAsClosure
> Mathieu> and compileUseNewCompiler.
>
> I seem to remember there's a downside to that.  What's the downside again?

- slower perfomance
- problems with the debugger

Philippe

> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Aaron Reichow

...and if those are the downsides, what are the upsides? I don't  
suppose it means you can save blocks in an OODB or using (Smart)
RefStream, can you?

Regards,
Aaron

On Jan 26, 2007, at 2:07 PM, Philippe Marschall wrote:

> 2007/1/26, Randal L. Schwartz <[hidden email]>:
>> >>>>> "Mathieu" == Mathieu Suen <[hidden email]> writes:
>>
>> Mathieu> Go to the compiler category then enable both  
>> compileClocksAsClosure
>> Mathieu> and compileUseNewCompiler.
>>
>> I seem to remember there's a downside to that.  What's the  
>> downside again?
>
> - slower perfomance
> - problems with the debugger
>
> Philippe
>
>> --
>> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503  
>> 777 0095
>> <[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
>> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
>> See PerlTraining.Stonehenge.com for onsite and open-enrollment  
>> Perl training!
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Philippe Marschall
2007/1/26, Aaron Reichow <[hidden email]>:
>
> ...and if those are the downsides, what are the upsides?

Well you get full block closures. No more #fixTemps as a starter.

> I don't
> suppose it means you can save blocks in an OODB or using (Smart)
> RefStream, can you?

Nah. I thought I heard that Gemstone supports blocks but I might be
wrong on this.

Philippe

> Regards,
> Aaron
>
> On Jan 26, 2007, at 2:07 PM, Philippe Marschall wrote:
>
> > 2007/1/26, Randal L. Schwartz <[hidden email]>:
> >> >>>>> "Mathieu" == Mathieu Suen <[hidden email]> writes:
> >>
> >> Mathieu> Go to the compiler category then enable both
> >> compileClocksAsClosure
> >> Mathieu> and compileUseNewCompiler.
> >>
> >> I seem to remember there's a downside to that.  What's the
> >> downside again?
> >
> > - slower perfomance
> > - problems with the debugger
> >
> > Philippe
> >
> >> --
> >> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503
> >> 777 0095
> >> <[hidden email]> <URL:http://www.stonehenge.com/merlyn/>
> >> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> >> See PerlTraining.Stonehenge.com for onsite and open-enrollment
> >> Perl training!
> >>
> >>
> >
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Michael Roberts-2

On 26 Jan 2007, at 20:32, Philippe Marschall wrote:

>  I thought I heard that Gemstone supports blocks but I might be
> wrong on this.

GemStone does support blocks but you need to be careful about what  
you reference inside the block.  I can't remember all the options off  
the top of my head.  If the block is "clean", in terms of lack of  
global/local references, then you can replicate it to GS.  If it is  
dirty then I think it fails.  The solution normally is to pass the  
block across and then send value: to it on the remote side passing in  
any objects that you need inside the block.  It's pretty neat even  
with those restrictions.

Cheers,

Mike

Reply | Threaded
Open this post in threaded view
|

Re: How to make Squeak use Block Closure

Damien Cassou-3
In reply to this post by Aaron Reichow
Aaron Reichow a écrit :
>
> ...and if those are the downsides, what are the upsides? I don't suppose
 > ...

The design is better and so can be easily extended. One can improve the
performance for example :-)

--
Damien Cassou