Pharo first timer

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

Pharo first timer

igblan
I am an experienced SMalltalk user. Two things surprised me when I first tried Pharo.

(1) Selecting ProtoObject and then clicking Heirarchy takes about 10 seconds to display the full heirarchy. This seems awfully slow.

(2) Inspecting 'Class allInstances' gives an empty array. This doesn't seem quite right! 'Metaclass allInstances' gives the expected result.

Cheers, Paul
Reply | Threaded
Open this post in threaded view
|

Re: Pharo first timer

Jan Blizničenko
Hello, I'm not so experienced ST user and I know your post is meant for the developers more than other users, but I would like to join the discussion and maybe help anyway :)

(1) It is true that Nautilus (class browser) needs a lot of time to display greater amounts of classes. For example displaying whole Roassal2 package with 319 classes for first time takes 12 seconds on my PC and I always curse myself for even clicking on it, so displaying all classes in Pharo (which is almost 10 thousand in basic image) takes a lot of time, but honestly, I have never needed to display all classes in whole Pharo.

(2) Class is "abstract" and should not have any instances. allInstances method returns only instances of receiver, but not of subclasses of receiver. Getting instances of Metaclass is something quite different - it returns all "classes of classes". Maybe take a look at this: http://pharo.gforge.inria.fr/PBE1/Metaclasses/figures/TranslucentMetaclassClassClass.png
Method allSubclasses gives you everything recursively connected by empty arrows (subclasses) and allInstances gives you everything connected by double filled arrows (instances).

Jan

igblan wrote
I am an experienced SMalltalk user. Two things surprised me when I first tried Pharo.

(1) Selecting ProtoObject and then clicking Heirarchy takes about 10 seconds to display the full heirarchy. This seems awfully slow.

(2) Inspecting 'Class allInstances' gives an empty array. This doesn't seem quite right! 'Metaclass allInstances' gives the expected result.

Cheers, Paul
Reply | Threaded
Open this post in threaded view
|

Re: Pharo first timer

stepharo


Le 22/5/15 12:30, Jan Blizničenko a écrit :

> Hello, I'm not so experienced ST user and I know your post is meant for the
> developers more than other users, but I would like to join the discussion
> and maybe help anyway :)
>
> (1) It is true that Nautilus (class browser) needs a lot of time to display
> greater amounts of classes. For example displaying whole Roassal2 package
> with 319 classes for first time takes 12 seconds on my PC and I always curse
> myself for even clicking on it, so displaying all classes in Pharo (which is
> almost 10 thousand in basic image) takes a lot of time, but honestly, I have
> never needed to display all classes in whole Pharo.
Esteban is working on a new list morph widgets that will solve all this
problem.
The logic of the pluggableListMorph is bogus

>
> (2) Class is "abstract" and should not have any instances. allInstances
> method returns only instances of receiver, but not of subclasses of
> receiver. Getting instances of Metaclass is something quite different - it
> returns all "classes of classes". Maybe take a look at this:
> http://pharo.gforge.inria.fr/PBE1/Metaclasses/figures/TranslucentMetaclassClassClass.png
> Method allSubclasses gives you everything recursively connected by empty
> arrows (subclasses) and allInstances gives you everything connected by
> double filled arrows (instances).
>
> Jan
>
>
> igblan wrote
>> I am an experienced SMalltalk user. Two things surprised me when I first
>> tried Pharo.
>>
>> (1) Selecting ProtoObject and then clicking Heirarchy takes about 10
>> seconds to display the full heirarchy. This seems awfully slow.
>>
>> (2) Inspecting 'Class allInstances' gives an empty array. This doesn't
>> seem quite right! 'Metaclass allInstances' gives the expected result.
>>
>> Cheers, Paul
>
>
>
>
> --
> View this message in context: http://forum.world.st/Pharo-first-timer-tp4827969p4828062.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>