Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
June 2014
- 88 participants
- 1258 messages
Re: [Pharo-dev] Bench comparing Pahro 1.4 and 3.0.
by Esteban Lorenzano
On 10 Jun 2014, at 02:59, Freemail <nicolaihess(a)web.de> wrote:
> On Tue Jun 10 06:58:58 2014 Max Leske <maxleske(a)gmail.com> wrote:
> >
> > On 10.06.2014, at 00:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
> >
> > > The script is slower on Pharo3. But I think, this has nothing to do
> > > with the pharo3 image, as the same drgeo image is slower on
> > > a pharo3 vm than on the pharo 1.4 vm.
> >
> > When you say âpharo 1.4 vmâ, do you mean CogVM? Or SqueakVM?
> >
> > And just to be sure (Iâm sure youâve thought of that): did you âwarm upâ
> > the vm? JIT apparently needs that.
> >
> > Max
> >
> >
>
>
> cog. No, no warm up. But I ran the script a dozen
> times. But the maesured times are the same.
>
well⦠there is no such thing as âpharo 1.4 vmâ or âpharo 3.0 vmâ, there are different versions, depending on different builds.
We know this is confuse and we are slowly moving in the direction of âone vm per image versionâ, but for now, only way to know is to print
Smalltalk vm version (in 3.0, I do not remember exactly how it was in 1.4⦠probably Smalltalk vmVersion)
also⦠is same image in each run?
and finally: even if different times is because of different vms, that does not necessarily means a problem in vm (things can change and optimisations in one place could cause marginally slower times in others), so in that case we will need more digging :)
Esteban
>
> > >
> > >
> > >
> > > 2014-06-09 23:10 GMT+02:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
> > > I do not understand, what is/could be a vm issue?
> > >
> > > Esteban
> > >
> > > On 09 Jun 2014, at 18:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
> > >
> > > > Is this a VM issue?
> > > > I took the same image (drgeo from http://www.drgeo.eu/ download page)
> > > > and run it with pharo4 vm and pharo 1.4 (from http://www.drgeo.eu/)
> > > >
> > > > 520 msec vs 371 msec:
> > > >
> > > >
> > > >
> > > >
> > > > Image
> > > > -----
> > > > P:\Pharo4.0\drgeo.image
> > > > Pharo1.4
> > > > Latest update: #14459
> > > > Unnamed
> > > >
> > > > Virtual Machine
> > > > ---------------
> > > > P:\Pharo4.0\Pharo.exe
> > > >
> > > >
> > > > - 512 tallies, 520 msec.
> > > >
> > > > ....
> > > >
> > > > **Leaves**
> > > > 13.1% {68ms} Array class(Behavior)>>inheritsFrom:
> > > > 9.4% {49ms} DrGPointIntersectionItem>>=
> > > > 8.0% {42ms} DrGPointFreeItem(DrGMathItem)>>=
> > > > 6.6% {35ms}
> > > > OrderedCollection(SequenceableCollection)>>hasEqualElements: 6.6%
> > > > {35ms} DrGCircle2ptsItem(DrGMathItem)>>parentsEqual: 6.3% {33ms}
> > > > WeakActionSequence(SequenceableCollection)>>first 5.7% {29ms}
> > > > OrderedCollection>>at: 4.7% {24ms} OrderedCollection>>size
> > > > 2.7% {14ms} Array(Object)>>isKindOf:
> > > > 2.7% {14ms} OrderedCollection(SequenceableCollection)>>=
> > > > 1.8% {9ms} OrderedCollection>>do:
> > > > 1.8% {9ms}
> > > > OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Image
> > > > -----
> > > > c:\Users\nicolai\Downloads\DrGeo.app\Contents\Resources\drgeo.image
> > > > Pharo1.4
> > > > Latest update: #14459
> > > > Unnamed
> > > >
> > > > Virtual Machine
> > > > ---------------
> > > > c:\Users\nicolai\Downloads\DrGeo.app\drgeo.exe
> > > >
> > > >
> > > > - 366 tallies, 371 msec.
> > > >
> > > >
> > > > **Leaves**
> > > > 14.5% {54ms}
> > > > OrderedCollection(SequenceableCollection)>>hasEqualElements: 11.5%
> > > > {43ms} DrGPointIntersectionItem>>= 10.7% {40ms} OrderedCollection
> > > > class(Behavior)>>inheritsFrom: 6.8% {25ms}
> > > > DrGPointIntersectionItem(DrGMathItem)>>parentsEqual: 5.7% {21ms}
> > > > OrderedCollection>>at: 5.5% {20ms}
> > > > Array(SequenceableCollection)>>first 5.2% {19ms}
> > > > OrderedCollection>>size 4.6% {17ms} DrGCircle2ptsItem(DrGMathItem)>>=
> > > > 4.4% {16ms} Array(SequenceableCollection)>>=
> > > > 3.3% {12ms} Array(Object)>>isKindOf:
> > > > 2.5% {9ms}
> > > > OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
> > > > 2.2% {8ms} SmallInteger>>bitShift: 1.6% {6ms} OrderedCollection>>do:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 2014-06-09 12:24 GMT+02:00 Hilaire Fernandes
> > > > <hilaire.fernandes(a)gmail.com>: Hi Nicolai,
> > > >
> > > > No, check on Smalltalk Hub. You will find instruction to install it
> > > > as well.
> > > >
> > > > The ConfigurationOfDrGeo will not fetch the latest code, but once
> > > > installed you can update the packages -Core and -Polymorph throught
> > > > Monticello.
> > > >
> > > > Hilaire
> > > >
> > > >
> > > > Script to try for rendering slowness (replace "figure do:" with
> > > > "MessageTally spyOn:" to measure)
> > > >
> > > > |canvas s stats points|
> > > >
> > > > points :=Array new: 12.
> > > > stats := Array new: 12 withAll: 0.
> > > >
> > > > canvas := DrGeoCanvas new.
> > > > canvas scale: 20; fullscreen ;
> > > > centerTo: 6@10.
> > > > 2 to: 12 do: [:i |
> > > > points at: i put: (canvas point: i(a)0.1)
> > > > (points at: i) square; color: Color blue.
> > > > s := canvas segment: i@0 to: (points at: i).
> > > > s color: Color red].
> > > >
> > > > figure do: [
> > > > 1 to: 10000 do: [:i|
> > > > s := 6 atRandom + 6 atRandom.
> > > > stats at: s put: ((stats at: s)+1).
> > > > (points at: s)
> > > > name: (stats at: s) asString;
> > > > moveTo: s @ ((stats at: s) / 100).
> > > > canvas update]].
> > > >
> > > >
> > > > Or another script to stress other aspect:
> > > >
> > > > | figure triangle |
> > > > figure := DrGeoCanvas new fullscreen.
> > > > triangle := [ ].
> > > >
> > > > triangle := [:p1 :p2 :p3 :n | |s1 s2 s3 perp cercle p4 |
> > > > s1 := figure segment: p1 to: p2.
> > > > s2 := (figure segment: p2 to: p3) color: Color red; large.
> > > > s3 := figure segment: p3 to: p1.
> > > > perp := figure perpendicular: s3 at: p3.
> > > > cercle := figure circleCenter: p3 to: p2.
> > > > p4 := figure altIntersectionOf: cercle and: perp.
> > > > perp hide. cercle hide. p4 hide.
> > > > n > 0 ifTrue: [triangle value: p1 value: p3 value: p4 value: n -1]].
> > > >
> > > > MessageTally spyOn: [triangle value: 0@0 value: -1@0 value: -1@1
> > > > value: 50]
> > > >
> > > >
> > > >
> > > >
> > > > Le 08/06/2014 23:07, Nicolai Hess a écrit :
> > > > >
> > > > > I would like to take a look at this, can
> > > > > you provide me your current DrGeo version you are using
> > > > > for this. (I guess it is not http://www.squeaksource.com/DrGeoII)
> > > >
> > > > --
> > > > Dr. Geo http://drgeo.eu
> > > > iStoa - https://launchpad.net/istoa
> > > >
> > > >
> > > >
> > >
> > >
> >
>
>
June 10, 2014
Re: [Pharo-dev] Bench comparing Pahro 1.4 and 3.0.
by Freemail
On Tue Jun 10 06:58:58 2014 Max Leske <maxleske(a)gmail.com> wrote:
>
> On 10.06.2014, at 00:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
>
> > The script is slower on Pharo3. But I think, this has nothing to do
> > with the pharo3 image, as the same drgeo image is slower on
> > a pharo3 vm than on the pharo 1.4 vm.
>
> When you say âpharo 1.4 vmâ, do you mean CogVM? Or SqueakVM?
>
> And just to be sure (Iâm sure youâve thought of that): did you âwarm upâ
> the vm? JIT apparently needs that.
>
> Max
>
>
cog. No, no warm up. But I ran the script a dozen
times. But the maesured times are the same.
> >
> >
> >
> > 2014-06-09 23:10 GMT+02:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
> > I do not understand, what is/could be a vm issue?
> >
> > Esteban
> >
> > On 09 Jun 2014, at 18:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
> >
> > > Is this a VM issue?
> > > I took the same image (drgeo from http://www.drgeo.eu/ download page)
> > > and run it with pharo4 vm and pharo 1.4 (from http://www.drgeo.eu/)
> > >
> > > 520 msec vs 371 msec:
> > >
> > >
> > >
> > >
> > > Image
> > > -----
> > > P:\Pharo4.0\drgeo.image
> > > Pharo1.4
> > > Latest update: #14459
> > > Unnamed
> > >
> > > Virtual Machine
> > > ---------------
> > > P:\Pharo4.0\Pharo.exe
> > >
> > >
> > > - 512 tallies, 520 msec.
> > >
> > > ....
> > >
> > > **Leaves**
> > > 13.1% {68ms} Array class(Behavior)>>inheritsFrom:
> > > 9.4% {49ms} DrGPointIntersectionItem>>=
> > > 8.0% {42ms} DrGPointFreeItem(DrGMathItem)>>=
> > > 6.6% {35ms}
> > > OrderedCollection(SequenceableCollection)>>hasEqualElements: 6.6%
> > > {35ms} DrGCircle2ptsItem(DrGMathItem)>>parentsEqual: 6.3% {33ms}
> > > WeakActionSequence(SequenceableCollection)>>first 5.7% {29ms}
> > > OrderedCollection>>at: 4.7% {24ms} OrderedCollection>>size
> > > 2.7% {14ms} Array(Object)>>isKindOf:
> > > 2.7% {14ms} OrderedCollection(SequenceableCollection)>>=
> > > 1.8% {9ms} OrderedCollection>>do:
> > > 1.8% {9ms}
> > > OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Image
> > > -----
> > > c:\Users\nicolai\Downloads\DrGeo.app\Contents\Resources\drgeo.image
> > > Pharo1.4
> > > Latest update: #14459
> > > Unnamed
> > >
> > > Virtual Machine
> > > ---------------
> > > c:\Users\nicolai\Downloads\DrGeo.app\drgeo.exe
> > >
> > >
> > > - 366 tallies, 371 msec.
> > >
> > >
> > > **Leaves**
> > > 14.5% {54ms}
> > > OrderedCollection(SequenceableCollection)>>hasEqualElements: 11.5%
> > > {43ms} DrGPointIntersectionItem>>= 10.7% {40ms} OrderedCollection
> > > class(Behavior)>>inheritsFrom: 6.8% {25ms}
> > > DrGPointIntersectionItem(DrGMathItem)>>parentsEqual: 5.7% {21ms}
> > > OrderedCollection>>at: 5.5% {20ms}
> > > Array(SequenceableCollection)>>first 5.2% {19ms}
> > > OrderedCollection>>size 4.6% {17ms} DrGCircle2ptsItem(DrGMathItem)>>=
> > > 4.4% {16ms} Array(SequenceableCollection)>>=
> > > 3.3% {12ms} Array(Object)>>isKindOf:
> > > 2.5% {9ms}
> > > OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
> > > 2.2% {8ms} SmallInteger>>bitShift: 1.6% {6ms} OrderedCollection>>do:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > 2014-06-09 12:24 GMT+02:00 Hilaire Fernandes
> > > <hilaire.fernandes(a)gmail.com>: Hi Nicolai,
> > >
> > > No, check on Smalltalk Hub. You will find instruction to install it
> > > as well.
> > >
> > > The ConfigurationOfDrGeo will not fetch the latest code, but once
> > > installed you can update the packages -Core and -Polymorph throught
> > > Monticello.
> > >
> > > Hilaire
> > >
> > >
> > > Script to try for rendering slowness (replace "figure do:" with
> > > "MessageTally spyOn:" to measure)
> > >
> > > |canvas s stats points|
> > >
> > > points :=Array new: 12.
> > > stats := Array new: 12 withAll: 0.
> > >
> > > canvas := DrGeoCanvas new.
> > > canvas scale: 20; fullscreen ;
> > > centerTo: 6@10.
> > > 2 to: 12 do: [:i |
> > > points at: i put: (canvas point: i(a)0.1)
> > > (points at: i) square; color: Color blue.
> > > s := canvas segment: i@0 to: (points at: i).
> > > s color: Color red].
> > >
> > > figure do: [
> > > 1 to: 10000 do: [:i|
> > > s := 6 atRandom + 6 atRandom.
> > > stats at: s put: ((stats at: s)+1).
> > > (points at: s)
> > > name: (stats at: s) asString;
> > > moveTo: s @ ((stats at: s) / 100).
> > > canvas update]].
> > >
> > >
> > > Or another script to stress other aspect:
> > >
> > > | figure triangle |
> > > figure := DrGeoCanvas new fullscreen.
> > > triangle := [ ].
> > >
> > > triangle := [:p1 :p2 :p3Â :n | |s1 s2 s3 perp cercle p4 |
> > > s1 := figure segment: p1 to: p2.
> > > s2 := (figure segment: p2 to: p3) color: Color red; large.
> > > s3 := figure segment: p3 to: p1.
> > > perp := figure perpendicular: s3 at: p3.
> > > cercle := figure circleCenter: p3 to: p2.
> > > p4 := figure altIntersectionOf: cercle and:Â perp.
> > > perp hide. cercle hide. p4 hide.
> > > n > 0 ifTrue: [triangle value: p1 value: p3 value: p4 value: n -1]].
> > >
> > > MessageTally spyOn: [triangle value: 0@0 value: -1@0Â Â Â Â value: -1@1
> > > value: 50]
> > >
> > >
> > >
> > >
> > > Le 08/06/2014 23:07, Nicolai Hess a écrit :
> > > >
> > > > I would like to take a look at this, can
> > > > you provide me your current DrGeo version you are using
> > > > for this. (I guess it is not http://www.squeaksource.com/DrGeoII)
> > >
> > > --
> > > Dr. Geo http://drgeo.eu
> > > iStoa - https://launchpad.net/istoa
> > >
> > >
> > >
> >
> >
>
June 10, 2014
Re: [Pharo-dev] Access to XMLPullParser
by Hernán Morales Durand
Done
2014-06-08 18:00 GMT-03:00 Serge Stinckwich <serge.stinckwich(a)gmail.com>:
> Can someone add me to XMLPullParser:
> http://smalltalkhub.com/#!/~hernan/XMLPullParser
> There is a red test and I want to correct it.
>
> Regards,
>
> --
> Serge Stinckwich
> UCBN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
> http://www.doesnotunderstand.org/
>
June 10, 2014
Re: [Pharo-dev] Bench comparing Pahro 1.4 and 3.0.
by Max Leske
On 10.06.2014, at 00:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
> The script is slower on Pharo3. But I think, this has nothing to do
> with the pharo3 image, as the same drgeo image is slower on
> a pharo3 vm than on the pharo 1.4 vm.
When you say âpharo 1.4 vmâ, do you mean CogVM? Or SqueakVM?
And just to be sure (Iâm sure youâve thought of that): did you âwarm upâ the vm? JIT apparently needs that.
Max
>
>
>
>
> 2014-06-09 23:10 GMT+02:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
> I do not understand, what is/could be a vm issue?
>
> Esteban
>
> On 09 Jun 2014, at 18:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
>
>> Is this a VM issue?
>> I took the same image (drgeo from http://www.drgeo.eu/ download page)
>> and run it with pharo4 vm and pharo 1.4 (from http://www.drgeo.eu/)
>>
>> 520 msec vs 371 msec:
>>
>>
>>
>>
>> Image
>> -----
>> P:\Pharo4.0\drgeo.image
>> Pharo1.4
>> Latest update: #14459
>> Unnamed
>>
>> Virtual Machine
>> ---------------
>> P:\Pharo4.0\Pharo.exe
>>
>>
>> - 512 tallies, 520 msec.
>>
>> ....
>>
>> **Leaves**
>> 13.1% {68ms} Array class(Behavior)>>inheritsFrom:
>> 9.4% {49ms} DrGPointIntersectionItem>>=
>> 8.0% {42ms} DrGPointFreeItem(DrGMathItem)>>=
>> 6.6% {35ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
>> 6.6% {35ms} DrGCircle2ptsItem(DrGMathItem)>>parentsEqual:
>> 6.3% {33ms} WeakActionSequence(SequenceableCollection)>>first
>> 5.7% {29ms} OrderedCollection>>at:
>> 4.7% {24ms} OrderedCollection>>size
>> 2.7% {14ms} Array(Object)>>isKindOf:
>> 2.7% {14ms} OrderedCollection(SequenceableCollection)>>=
>> 1.8% {9ms} OrderedCollection>>do:
>> 1.8% {9ms} OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
>>
>>
>>
>>
>>
>>
>> Image
>> -----
>> c:\Users\nicolai\Downloads\DrGeo.app\Contents\Resources\drgeo.image
>> Pharo1.4
>> Latest update: #14459
>> Unnamed
>>
>> Virtual Machine
>> ---------------
>> c:\Users\nicolai\Downloads\DrGeo.app\drgeo.exe
>>
>>
>> - 366 tallies, 371 msec.
>>
>>
>> **Leaves**
>> 14.5% {54ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
>> 11.5% {43ms} DrGPointIntersectionItem>>=
>> 10.7% {40ms} OrderedCollection class(Behavior)>>inheritsFrom:
>> 6.8% {25ms} DrGPointIntersectionItem(DrGMathItem)>>parentsEqual:
>> 5.7% {21ms} OrderedCollection>>at:
>> 5.5% {20ms} Array(SequenceableCollection)>>first
>> 5.2% {19ms} OrderedCollection>>size
>> 4.6% {17ms} DrGCircle2ptsItem(DrGMathItem)>>=
>> 4.4% {16ms} Array(SequenceableCollection)>>=
>> 3.3% {12ms} Array(Object)>>isKindOf:
>> 2.5% {9ms} OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
>> 2.2% {8ms} SmallInteger>>bitShift:
>> 1.6% {6ms} OrderedCollection>>do:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2014-06-09 12:24 GMT+02:00 Hilaire Fernandes <hilaire.fernandes(a)gmail.com>:
>> Hi Nicolai,
>>
>> No, check on Smalltalk Hub. You will find instruction to install it as well.
>>
>> The ConfigurationOfDrGeo will not fetch the latest code, but once
>> installed you can update the packages -Core and -Polymorph throught
>> Monticello.
>>
>> Hilaire
>>
>>
>> Script to try for rendering slowness (replace "figure do:" with
>> "MessageTally spyOn:" to measure)
>>
>> |canvas s stats points|
>>
>> points :=Array new: 12.
>> stats := Array new: 12 withAll: 0.
>>
>> canvas := DrGeoCanvas new.
>> canvas scale: 20; fullscreen ;
>> centerTo: 6@10.
>> 2 to: 12 do: [:i |
>> points at: i put: (canvas point: i(a)0.1)
>> (points at: i) square; color: Color blue.
>> s := canvas segment: i@0 to: (points at: i).
>> s color: Color red].
>>
>> figure do: [
>> 1 to: 10000 do: [:i|
>> s := 6 atRandom + 6 atRandom.
>> stats at: s put: ((stats at: s)+1).
>> (points at: s)
>> name: (stats at: s) asString;
>> moveTo: s @ ((stats at: s) / 100).
>> canvas update]].
>>
>>
>> Or another script to stress other aspect:
>>
>> | figure triangle |
>> figure := DrGeoCanvas new fullscreen.
>> triangle := [ ].
>>
>> triangle := [:p1 :p2 :p3 :n | |s1 s2 s3 perp cercle p4 |
>> s1 := figure segment: p1 to: p2.
>> s2 := (figure segment: p2 to: p3) color: Color red; large.
>> s3 := figure segment: p3 to: p1.
>> perp := figure perpendicular: s3 at: p3.
>> cercle := figure circleCenter: p3 to: p2.
>> p4 := figure altIntersectionOf: cercle and: perp.
>> perp hide. cercle hide. p4 hide.
>> n > 0 ifTrue: [triangle value: p1 value: p3 value: p4 value: n -1]].
>>
>> MessageTally spyOn: [triangle value: 0@0 value: -1@0 value: -1@1
>> value: 50]
>>
>>
>>
>>
>> Le 08/06/2014 23:07, Nicolai Hess a écrit :
>> >
>> > I would like to take a look at this, can
>> > you provide me your current DrGeo version you are using
>> > for this. (I guess it is not http://www.squeaksource.com/DrGeoII)
>>
>> --
>> Dr. Geo http://drgeo.eu
>> iStoa - https://launchpad.net/istoa
>>
>>
>>
>
>
June 10, 2014
Re: [Pharo-dev] Brainstorming Pharo4
by Sean P. DeNigris
EstebanLM wrote
> We would like to exchange ideas with you.
> So, what do you think?
For me, the two things that I wish for daily:
- clean Morphic
- new text editor
-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Brainstorming-Pharo4-tp4761647p4762391.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
June 10, 2014
Pharo compilation limits
by GOUBIER Thierry
Hi all,
anybody would have a way to determine the maximum length / maximum complexity of a method in a Pharo out of a parse tree (or whether if the parse tree is over the limit)?
The code SmaCC generates easily hit compiler limits (methods too long or too complex), and I have difficulties changing the code generation approach.
Thanks,
Thierry
June 10, 2014
Re: [Pharo-dev] Bench comparing Pahro 1.4 and 3.0.
by Nicolai Hess
The script is slower on Pharo3. But I think, this has nothing to do
with the pharo3 image, as the same drgeo image is slower on
a pharo3 vm than on the pharo 1.4 vm.
2014-06-09 23:10 GMT+02:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
> I do not understand, what is/could be a vm issue?
>
> Esteban
>
> On 09 Jun 2014, at 18:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
>
> Is this a VM issue?
> I took the same image (drgeo from http://www.drgeo.eu/ download page)
> and run it with pharo4 vm and pharo 1.4 (from http://www.drgeo.eu/)
>
> 520 msec vs 371 msec:
>
>
>
>
> Image
> -----
> P:\Pharo4.0\drgeo.image
> Pharo1.4
> Latest update: #14459
> Unnamed
>
> Virtual Machine
> ---------------
> P:\Pharo4.0\Pharo.exe
>
>
> - 512 tallies, 520 msec.
>
> ....
>
> **Leaves**
> 13.1% {68ms} Array class(Behavior)>>inheritsFrom:
> 9.4% {49ms} DrGPointIntersectionItem>>=
> 8.0% {42ms} DrGPointFreeItem(DrGMathItem)>>=
> 6.6% {35ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
> 6.6% {35ms} DrGCircle2ptsItem(DrGMathItem)>>parentsEqual:
> 6.3% {33ms} WeakActionSequence(SequenceableCollection)>>first
> 5.7% {29ms} OrderedCollection>>at:
> 4.7% {24ms} OrderedCollection>>size
> 2.7% {14ms} Array(Object)>>isKindOf:
> 2.7% {14ms} OrderedCollection(SequenceableCollection)>>=
> 1.8% {9ms} OrderedCollection>>do:
> 1.8% {9ms}
> OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
>
>
>
>
>
>
> Image
> -----
> c:\Users\nicolai\Downloads\DrGeo.app\Contents\Resources\drgeo.image
> Pharo1.4
> Latest update: #14459
> Unnamed
>
> Virtual Machine
> ---------------
> c:\Users\nicolai\Downloads\DrGeo.app\drgeo.exe
>
>
> - 366 tallies, 371 msec.
>
>
> **Leaves**
> 14.5% {54ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
> 11.5% {43ms} DrGPointIntersectionItem>>=
> 10.7% {40ms} OrderedCollection class(Behavior)>>inheritsFrom:
> 6.8% {25ms} DrGPointIntersectionItem(DrGMathItem)>>parentsEqual:
> 5.7% {21ms} OrderedCollection>>at:
> 5.5% {20ms} Array(SequenceableCollection)>>first
> 5.2% {19ms} OrderedCollection>>size
> 4.6% {17ms} DrGCircle2ptsItem(DrGMathItem)>>=
> 4.4% {16ms} Array(SequenceableCollection)>>=
> 3.3% {12ms} Array(Object)>>isKindOf:
> 2.5% {9ms}
> OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
> 2.2% {8ms} SmallInteger>>bitShift:
> 1.6% {6ms} OrderedCollection>>do:
>
>
>
>
>
>
>
>
>
>
> 2014-06-09 12:24 GMT+02:00 Hilaire Fernandes <hilaire.fernandes(a)gmail.com>
> :
>
>> Hi Nicolai,
>>
>> No, check on Smalltalk Hub. You will find instruction to install it as
>> well.
>>
>> The ConfigurationOfDrGeo will not fetch the latest code, but once
>> installed you can update the packages -Core and -Polymorph throught
>> Monticello.
>>
>> Hilaire
>>
>>
>> Script to try for rendering slowness (replace "figure do:" with
>> "MessageTally spyOn:" to measure)
>>
>> |canvas s stats points|
>>
>> points :=Array new: 12.
>> stats := Array new: 12 withAll: 0.
>>
>> canvas := DrGeoCanvas new.
>> canvas scale: 20; fullscreen ;
>> centerTo: 6@10.
>> 2 to: 12 do: [:i |
>> points at: i put: (canvas point: i(a)0.1)
>> (points at: i) square; color: Color blue.
>> s := canvas segment: i@0 to: (points at: i).
>> s color: Color red].
>>
>> figure do: [
>> 1 to: 10000 do: [:i|
>> s := 6 atRandom + 6 atRandom.
>> stats at: s put: ((stats at: s)+1).
>> (points at: s)
>> name: (stats at: s) asString;
>> moveTo: s @ ((stats at: s) / 100).
>> canvas update]].
>>
>>
>> Or another script to stress other aspect:
>>
>> | figure triangle |
>> figure := DrGeoCanvas new fullscreen.
>> triangle := [ ].
>>
>> triangle := [:p1 :p2 :p3 :n | |s1 s2 s3 perp cercle p4 |
>> s1 := figure segment: p1 to: p2.
>> s2 := (figure segment: p2 to: p3) color: Color red; large.
>> s3 := figure segment: p3 to: p1.
>> perp := figure perpendicular: s3 at: p3.
>> cercle := figure circleCenter: p3 to: p2.
>> p4 := figure altIntersectionOf: cercle and: perp.
>> perp hide. cercle hide. p4 hide.
>> n > 0 ifTrue: [triangle value: p1 value: p3 value: p4 value: n -1]].
>>
>> MessageTally spyOn: [triangle value: 0@0 value: -1@0 value: -1@1
>> value: 50]
>>
>>
>>
>>
>> Le 08/06/2014 23:07, Nicolai Hess a écrit :
>> >
>> > I would like to take a look at this, can
>> > you provide me your current DrGeo version you are using
>> > for this. (I guess it is not http://www.squeaksource.com/DrGeoII)
>>
>> --
>> Dr. Geo http://drgeo.eu
>> iStoa - https://launchpad.net/istoa
>>
>>
>>
>
>
June 9, 2014
Re: [Pharo-dev] Pharo Logo
by Alexandre Bergel
works well now !
Nice logos!!!!
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Jun 9, 2014, at 2:39 PM, Marcus Denker <marcus.denker(a)inria.fr> wrote:
>
> On 09 Jun 2014, at 20:23, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
>
>> I cannot access it. I have an error.
>
> fixed⦠permissions where wrong
>
>>
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
>> On Jun 9, 2014, at 2:20 PM, Marcus Denker <marcus.denker(a)inria.fr> wrote:
>>
>>>
>>> On 07 Jun 2014, at 18:35, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>>>
>>>> That is the old logo. I was also looking for the flat high resolution logo, but I cannot find that one on the files server.
>>>>
>>>> Does anyone know where to find that one?
>>> I have updated
>>>
>>> http://files.pharo.org/media/logo/Pharo%20Logo%20SVG/
>>>
>>>
>>>>
>>>> Cheers,
>>>> Doru
>>>>
>>>>
>>>> On Sat, Jun 7, 2014 at 4:37 PM, kilon alios <kilon.alios(a)gmail.com> wrote:
>>>> yeap thats what I was looking for , thanks Ben. I tried to google it but nothing came up.
>>>>
>>>>
>>>> On Sat, Jun 7, 2014 at 5:15 PM, Ben Coman <btc(a)openinworld.com> wrote:
>>>> kilon alios wrote:
>>>> Hi I want to use the pharo logo at the start of each of my video tutorials, is there is a high res version of it or a vector version I can scale up ? My videos are HD so I would prefer it if it was something that I can use as big size.
>>>> maybe http://files.pharo.org/media/logo/Pharo%20Logo%20SVG/
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> www.tudorgirba.com
>>>>
>>>> "Every thing has its own flow"
>>>
>>
>>
>
>
June 9, 2014
Re: [Pharo-dev] Bench comparing Pahro 1.4 and 3.0.
by Esteban Lorenzano
I do not understand, what is/could be a vm issue?
Esteban
On 09 Jun 2014, at 18:08, Nicolai Hess <nicolaihess(a)web.de> wrote:
> Is this a VM issue?
> I took the same image (drgeo from http://www.drgeo.eu/ download page)
> and run it with pharo4 vm and pharo 1.4 (from http://www.drgeo.eu/)
>
> 520 msec vs 371 msec:
>
>
>
>
> Image
> -----
> P:\Pharo4.0\drgeo.image
> Pharo1.4
> Latest update: #14459
> Unnamed
>
> Virtual Machine
> ---------------
> P:\Pharo4.0\Pharo.exe
>
>
> - 512 tallies, 520 msec.
>
> ....
>
> **Leaves**
> 13.1% {68ms} Array class(Behavior)>>inheritsFrom:
> 9.4% {49ms} DrGPointIntersectionItem>>=
> 8.0% {42ms} DrGPointFreeItem(DrGMathItem)>>=
> 6.6% {35ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
> 6.6% {35ms} DrGCircle2ptsItem(DrGMathItem)>>parentsEqual:
> 6.3% {33ms} WeakActionSequence(SequenceableCollection)>>first
> 5.7% {29ms} OrderedCollection>>at:
> 4.7% {24ms} OrderedCollection>>size
> 2.7% {14ms} Array(Object)>>isKindOf:
> 2.7% {14ms} OrderedCollection(SequenceableCollection)>>=
> 1.8% {9ms} OrderedCollection>>do:
> 1.8% {9ms} OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
>
>
>
>
>
>
> Image
> -----
> c:\Users\nicolai\Downloads\DrGeo.app\Contents\Resources\drgeo.image
> Pharo1.4
> Latest update: #14459
> Unnamed
>
> Virtual Machine
> ---------------
> c:\Users\nicolai\Downloads\DrGeo.app\drgeo.exe
>
>
> - 366 tallies, 371 msec.
>
>
> **Leaves**
> 14.5% {54ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
> 11.5% {43ms} DrGPointIntersectionItem>>=
> 10.7% {40ms} OrderedCollection class(Behavior)>>inheritsFrom:
> 6.8% {25ms} DrGPointIntersectionItem(DrGMathItem)>>parentsEqual:
> 5.7% {21ms} OrderedCollection>>at:
> 5.5% {20ms} Array(SequenceableCollection)>>first
> 5.2% {19ms} OrderedCollection>>size
> 4.6% {17ms} DrGCircle2ptsItem(DrGMathItem)>>=
> 4.4% {16ms} Array(SequenceableCollection)>>=
> 3.3% {12ms} Array(Object)>>isKindOf:
> 2.5% {9ms} OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
> 2.2% {8ms} SmallInteger>>bitShift:
> 1.6% {6ms} OrderedCollection>>do:
>
>
>
>
>
>
>
>
>
>
> 2014-06-09 12:24 GMT+02:00 Hilaire Fernandes <hilaire.fernandes(a)gmail.com>:
> Hi Nicolai,
>
> No, check on Smalltalk Hub. You will find instruction to install it as well.
>
> The ConfigurationOfDrGeo will not fetch the latest code, but once
> installed you can update the packages -Core and -Polymorph throught
> Monticello.
>
> Hilaire
>
>
> Script to try for rendering slowness (replace "figure do:" with
> "MessageTally spyOn:" to measure)
>
> |canvas s stats points|
>
> points :=Array new: 12.
> stats := Array new: 12 withAll: 0.
>
> canvas := DrGeoCanvas new.
> canvas scale: 20; fullscreen ;
> centerTo: 6@10.
> 2 to: 12 do: [:i |
> points at: i put: (canvas point: i(a)0.1)
> (points at: i) square; color: Color blue.
> s := canvas segment: i@0 to: (points at: i).
> s color: Color red].
>
> figure do: [
> 1 to: 10000 do: [:i|
> s := 6 atRandom + 6 atRandom.
> stats at: s put: ((stats at: s)+1).
> (points at: s)
> name: (stats at: s) asString;
> moveTo: s @ ((stats at: s) / 100).
> canvas update]].
>
>
> Or another script to stress other aspect:
>
> | figure triangle |
> figure := DrGeoCanvas new fullscreen.
> triangle := [ ].
>
> triangle := [:p1 :p2 :p3 :n | |s1 s2 s3 perp cercle p4 |
> s1 := figure segment: p1 to: p2.
> s2 := (figure segment: p2 to: p3) color: Color red; large.
> s3 := figure segment: p3 to: p1.
> perp := figure perpendicular: s3 at: p3.
> cercle := figure circleCenter: p3 to: p2.
> p4 := figure altIntersectionOf: cercle and: perp.
> perp hide. cercle hide. p4 hide.
> n > 0 ifTrue: [triangle value: p1 value: p3 value: p4 value: n -1]].
>
> MessageTally spyOn: [triangle value: 0@0 value: -1@0 value: -1@1
> value: 50]
>
>
>
>
> Le 08/06/2014 23:07, Nicolai Hess a écrit :
> >
> > I would like to take a look at this, can
> > you provide me your current DrGeo version you are using
> > for this. (I guess it is not http://www.squeaksource.com/DrGeoII)
>
> --
> Dr. Geo http://drgeo.eu
> iStoa - https://launchpad.net/istoa
>
>
>
June 9, 2014
Re: [Pharo-dev] Bench comparing Pahro 1.4 and 3.0.
by Nicolai Hess
Is this a VM issue?
I took the same image (drgeo from http://www.drgeo.eu/ download page)
and run it with pharo4 vm and pharo 1.4 (from http://www.drgeo.eu/)
520 msec vs 371 msec:
Image
-----
P:\Pharo4.0\drgeo.image
Pharo1.4
Latest update: #14459
Unnamed
Virtual Machine
---------------
P:\Pharo4.0\Pharo.exe
- 512 tallies, 520 msec.
....
**Leaves**
13.1% {68ms} Array class(Behavior)>>inheritsFrom:
9.4% {49ms} DrGPointIntersectionItem>>=
8.0% {42ms} DrGPointFreeItem(DrGMathItem)>>=
6.6% {35ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
6.6% {35ms} DrGCircle2ptsItem(DrGMathItem)>>parentsEqual:
6.3% {33ms} WeakActionSequence(SequenceableCollection)>>first
5.7% {29ms} OrderedCollection>>at:
4.7% {24ms} OrderedCollection>>size
2.7% {14ms} Array(Object)>>isKindOf:
2.7% {14ms} OrderedCollection(SequenceableCollection)>>=
1.8% {9ms} OrderedCollection>>do:
1.8% {9ms}
OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
Image
-----
c:\Users\nicolai\Downloads\DrGeo.app\Contents\Resources\drgeo.image
Pharo1.4
Latest update: #14459
Unnamed
Virtual Machine
---------------
c:\Users\nicolai\Downloads\DrGeo.app\drgeo.exe
- 366 tallies, 371 msec.
**Leaves**
14.5% {54ms} OrderedCollection(SequenceableCollection)>>hasEqualElements:
11.5% {43ms} DrGPointIntersectionItem>>=
10.7% {40ms} OrderedCollection class(Behavior)>>inheritsFrom:
6.8% {25ms} DrGPointIntersectionItem(DrGMathItem)>>parentsEqual:
5.7% {21ms} OrderedCollection>>at:
5.5% {20ms} Array(SequenceableCollection)>>first
5.2% {19ms} OrderedCollection>>size
4.6% {17ms} DrGCircle2ptsItem(DrGMathItem)>>=
4.4% {16ms} Array(SequenceableCollection)>>=
3.3% {12ms} Array(Object)>>isKindOf:
2.5% {9ms}
OrderedCollection(SequenceableCollection)>>indexOf:startingAt:ifAbsent:
2.2% {8ms} SmallInteger>>bitShift:
1.6% {6ms} OrderedCollection>>do:
2014-06-09 12:24 GMT+02:00 Hilaire Fernandes <hilaire.fernandes(a)gmail.com>:
> Hi Nicolai,
>
> No, check on Smalltalk Hub. You will find instruction to install it as
> well.
>
> The ConfigurationOfDrGeo will not fetch the latest code, but once
> installed you can update the packages -Core and -Polymorph throught
> Monticello.
>
> Hilaire
>
>
> Script to try for rendering slowness (replace "figure do:" with
> "MessageTally spyOn:" to measure)
>
> |canvas s stats points|
>
> points :=Array new: 12.
> stats := Array new: 12 withAll: 0.
>
> canvas := DrGeoCanvas new.
> canvas scale: 20; fullscreen ;
> centerTo: 6@10.
> 2 to: 12 do: [:i |
> points at: i put: (canvas point: i(a)0.1)
> (points at: i) square; color: Color blue.
> s := canvas segment: i@0 to: (points at: i).
> s color: Color red].
>
> figure do: [
> 1 to: 10000 do: [:i|
> s := 6 atRandom + 6 atRandom.
> stats at: s put: ((stats at: s)+1).
> (points at: s)
> name: (stats at: s) asString;
> moveTo: s @ ((stats at: s) / 100).
> canvas update]].
>
>
> Or another script to stress other aspect:
>
> | figure triangle |
> figure := DrGeoCanvas new fullscreen.
> triangle := [ ].
>
> triangle := [:p1 :p2 :p3 :n | |s1 s2 s3 perp cercle p4 |
> s1 := figure segment: p1 to: p2.
> s2 := (figure segment: p2 to: p3) color: Color red; large.
> s3 := figure segment: p3 to: p1.
> perp := figure perpendicular: s3 at: p3.
> cercle := figure circleCenter: p3 to: p2.
> p4 := figure altIntersectionOf: cercle and: perp.
> perp hide. cercle hide. p4 hide.
> n > 0 ifTrue: [triangle value: p1 value: p3 value: p4 value: n -1]].
>
> MessageTally spyOn: [triangle value: 0@0 value: -1@0 value: -1@1
> value: 50]
>
>
>
>
> Le 08/06/2014 23:07, Nicolai Hess a écrit :
> >
> > I would like to take a look at this, can
> > you provide me your current DrGeo version you are using
> > for this. (I guess it is not http://www.squeaksource.com/DrGeoII)
>
> --
> Dr. Geo http://drgeo.eu
> iStoa - https://launchpad.net/istoa
>
>
>
June 9, 2014