[Pharo-users] String readFrom: bug?
I think I've found a bug in String class>>readFrom:. This sentence fails: z := String readFrom: 'Good morning' readStream. I think that the bug is on the first line, saying: ^ self class streamContents:. The 'class' message shouldn't be here, because 'self' itself refers to the String class. Present in Pharo 2.0 and 3.0. Thanks a lot.
Re: [Pharo-users] String readFrom: bug?
On 14 Jun 2013, at 11:44, José Comesaña wrote: > I think I've found a bug in String class>>readFrom:. This sentence fails: > > z := String readFrom: 'Good morning' readStream. > > I think that the bug is on the first line, saying: ^ self class > streamContents:. The 'class' message shouldn't be here, because 'self' itself > refers to the String class. > > Present in Pharo 2.0 and 3.0. > > Thanks a lot. Yes, José, that is a bug and your solution is correct. That also means that this code path is not covered by any tests. Could you make an issue and make a slice (adding a test) ? Sven -- Sven Van Caekenberghe Proudly supporting Pharo http://pharo.org http://association.pharo.org http://consortium.pharo.org
Re: [Pharo-users] String readFrom: bug?
OK, but I don't know how to make an issue, sorry. :( 2013/6/14 Sven Van Caekenberghe > > On 14 Jun 2013, at 11:44, José Comesaña wrote: > > > I think I've found a bug in String class>>readFrom:. This sentence fails: > > > > z := String readFrom: 'Good morning' readStream. > > > > I think that the bug is on the first line, saying: ^ self class > streamContents:. The 'class' message shouldn't be here, because 'self' > itself refers to the String class. > > > > Present in Pharo 2.0 and 3.0. > > > > Thanks a lot. > > Yes, José, that is a bug and your solution is correct. > > That also means that this code path is not covered by any tests. > > Could you make an issue and make a slice (adding a test) ? > > Sven > > -- > Sven Van Caekenberghe > Proudly supporting Pharo > http://pharo.org > http://association.pharo.org > http://consortium.pharo.org > > > > > >
Re: [Pharo-users] String readFrom: bug?
No problem, here is the issue https://pharo.fogbugz.com/f/cases/10915/String-class-readFrom-is-broken-and-untested I will produce a slice later on. On 14 Jun 2013, at 11:58, José Comesaña wrote: > OK, but I don't know how to make an issue, sorry. :( > > > 2013/6/14 Sven Van Caekenberghe > > On 14 Jun 2013, at 11:44, José Comesaña wrote: > > > I think I've found a bug in String class>>readFrom:. This sentence fails: > > > > z := String readFrom: 'Good morning' readStream. > > > > I think that the bug is on the first line, saying: ^ self class > > streamContents:. The 'class' message shouldn't be here, because 'self' > > itself refers to the String class. > > > > Present in Pharo 2.0 and 3.0. > > > > Thanks a lot. > > Yes, José, that is a bug and your solution is correct. > > That also means that this code path is not covered by any tests. > > Could you make an issue and make a slice (adding a test) ? > > Sven > > -- > Sven Van Caekenberghe > Proudly supporting Pharo > http://pharo.org > http://association.pharo.org > http://consortium.pharo.org > > > > > >
Re: [Pharo-users] String readFrom: bug?
Fix and test sent. Regards. 2013/6/14 Sven Van Caekenberghe > No problem, here is the issue > > > https://pharo.fogbugz.com/f/cases/10915/String-class-readFrom-is-broken-and-untested > > I will produce a slice later on. > > On 14 Jun 2013, at 11:58, José Comesaña wrote: > > > OK, but I don't know how to make an issue, sorry. :( > > > > > > 2013/6/14 Sven Van Caekenberghe > > > > On 14 Jun 2013, at 11:44, José Comesaña wrote: > > > > > I think I've found a bug in String class>>readFrom:. This sentence > fails: > > > > > > z := String readFrom: 'Good morning' readStream. > > > > > > I think that the bug is on the first line, saying: ^ self class > streamContents:. The 'class' message shouldn't be here, because 'self' > itself refers to the String class. > > > > > > Present in Pharo 2.0 and 3.0. > > > > > > Thanks a lot. > > > > Yes, José, that is a bug and your solution is correct. > > > > That also means that this code path is not covered by any tests. > > > > Could you make an issue and make a slice (adding a test) ? > > > > Sven > > > > -- > > Sven Van Caekenberghe > > Proudly supporting Pharo > > http://pharo.org > > http://association.pharo.org > > http://consortium.pharo.org > > > > > > > > > > > > > > >
Re: [Pharo-users] String readFrom: bug?
On 14 Jun 2013, at 13:52, José Comesaña wrote: > Fix and test sent. Where ? Anyway, I already did it ;-) > Regards. > > 2013/6/14 Sven Van Caekenberghe > No problem, here is the issue > > https://pharo.fogbugz.com/f/cases/10915/String-class-readFrom-is-broken-and-untested > > I will produce a slice later on. === In 3.0 inbox: Name: SLICE-Issue-10915-String-classreadFrom-is-broken-and-untested-SvenVanCaekenberghe.1 Author: SvenVanCaekenberghe Time: 14 June 2013, 1:48:49.050736 pm UUID: f9146100-8d5a-42f4-af95-e00accbd2bdc Ancestors: Dependencies: Collections-Strings-SvenVanCaekenberghe.263, CollectionsTests-SvenVanCaekenberghe.604 Fix String class>>#readFrom: and add a test (thx José Comesaña) === > On 14 Jun 2013, at 11:58, José Comesaña wrote: > > > OK, but I don't know how to make an issue, sorry. :( > > > > > > 2013/6/14 Sven Van Caekenberghe > > > > On 14 Jun 2013, at 11:44, José Comesaña wrote: > > > > > I think I've found a bug in String class>>readFrom:. This sentence fails: > > > > > > z := String readFrom: 'Good morning' readStream. > > > > > > I think that the bug is on the first line, saying: ^ self class > > > streamContents:. The 'class' message shouldn't be here, because 'self' > > > itself refers to the String class. > > > > > > Present in Pharo 2.0 and 3.0. > > > > > > Thanks a lot. > > > > Yes, José, that is a bug and your solution is correct. > > > > That also means that this code path is not covered by any tests. > > > > Could you make an issue and make a slice (adding a test) ? > > > > Sven > > > > -- > > Sven Van Caekenberghe > > Proudly supporting Pharo > > http://pharo.org > > http://association.pharo.org > > http://consortium.pharo.org > > > > > > > > > > > > > > >
[Pharo-users] Sprint friday 28 of June
Hi guys We will organize a one day sprint Friday at Lille. You are all welcome :) Stef
Re: [Pharo-users] ui slowness on newly installed ubuntu 13.04 64bit
On 13 June 2013 22:05, Guillermo Polito wrote: > Hmm, unless there is a difference in compilation, then it is maybe the check > we added with Igor to handle correctly objects as methods. I'll put this in > my todo for the weekend :/. > 10 times slowdown because of a single flag check? > > On Thu, Jun 13, 2013 at 9:57 PM, Sven Van Caekenberghe wrote: >> >> I am sorry, some 10x slowdown with vmLatest. >> >> $ ./pharo-ui --version >> 3.9-7 #1 Fri May 31 13:43:31 CEST 2013 gcc 4.6.3 >> NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: >> acc98e51-2fba-4841-a965-2975997bba66 May 31 2013 >> NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: >> acc98e51-2fba-4841-a965-2975997bba66 May 31 2013 >> >> git://gitorious.org/cogvm/blessed.git Commit: >> 0f562e0afe14e533470278943b5d65d42ea133c2 Date: 2013-05-30 16:38:08 +0200 By: >> Igor Stasenko Jenkins build #14595 >> Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 >> UTC 2012 i686 i686 i386 GNU/Linux >> >> plugin path: /home/sven/Pharo/pharo-vm/ [default: >> /home/sven/Pharo/pharo-vm/] >> >> >> >> On Mon, Jun 10, 2013 at 9:55 AM, Camillo Bruni >> wrote: >>> >>> thanks for the insight. I opened an issue: >>> https://pharo.fogbugz.com/default.asp?10879 >>> >>> >>> can you try get.pharo.org/30+vmLatest to try out the "unstable" VM? >>> >>> On 2013-06-09, at 19:04, Sven Van Caekenberghe wrote: >>> >>> > I think that we do have a problem, and I think it is VM related. >>> > >>> > This is what I see on my Ubuntu 13.04 64-bit machine (AMD Athlon(tm) II >>> > X4 >>> > 640, 4GB, AMD Radeon HD 7750) using a Pharo 3.0 #30189 image. >>> > >>> > Using the vm from get.pharo.org/30+vm >>> > >>> > [ SystemNavigation new allCallsOn: #ifTrue: ] timeToRun. 99 101 >>> > >>> > [ SystemNavigation new browseAllCallsOn: #ifTrue: ] timeToRun. 1455 >>> > 1420 >>> > >>> > Using the vm from ppa:pharo/stable >>> > >>> > [ SystemNavigation new allCallsOn: #ifTrue: ] timeToRun. 1495 1518 >>> > >>> > [ SystemNavigation new browseAllCallsOn: #ifTrue: ] timeToRun. 11535 >>> > 11156 >>> > >>> > That is a 10x slowdown ! >>> > >>> > Here are the VM details: >>> > >>> > $ ./pharo-ui -version >>> > 3.9-7 #1 Wed Mar 13 18:22:44 CET 2013 gcc 4.4.3 >>> > NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: >>> > a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 >>> > NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: >>> > a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 >>> > git://gitorious.org/cogvm/blessed.git Commit: >>> > 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 >>> > +0100 >>> > By: Esteban Lorenzano Jenkins build #14535 >>> > Linux linux-ubuntu-10 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 >>> > 11:26:59 >>> > UTC 2012 x86_64 GNU/Linux >>> > plugin path: /home/sven/Pharo/pharo-vm/ [default: >>> > /home/sven/Pharo/pharo-vm/] >>> > >>> > $ pharo-vm-x --version >>> > 3.9-7 #1 Thu Jun 6 11:05:55 UTC 2013 gcc 4.7.3 >>> > NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: >>> > acc98e51-2fba-4841-a965-2975997bba66 Jun 6 2013 >>> > NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: >>> > acc98e51-2fba-4841-a965-2975997bba66 Jun 6 2013 >>> > git://gitorious.org/cogvm/blessed.git Commit: >>> > 0f562e0afe14e533470278943b5d65d42ea133c2 Date: 2013-05-30 16:38:08 >>> > +0200 >>> > By: Igor Stasenko Jenkins build #14595 >>> > Linux samarium 2.6.24-32-xen #1 SMP Thu Jul 12 14:30:40 UTC 2012 i686 >>> > athlon i686 GNU/Linux >>> > plugin path: /usr/lib/pharo-vm/ [default: /usr/lib/pharo-vm/] >>> > >>> > One version seems older, but I don't know what changed inbetween them >>> > >>> > Sven >>> > >>> > On Fri, Jun 7, 2013 at 6:49 PM, Paul DeBruicker >>> > wrote: >>> > >>> >> And the pharo2 linux all-in-one runs in 116ms on my hardware on Ubuntu >>> >> 13.04 64bit. >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> On 06/07/2013 09:35 AM, Markus Fritsche wrote: >>> >>> On 07.06.2013 17:55, Paul DeBruicker wrote: >>> From the below it seems to be something with running on linux 64bits >>> with a UI slows it down by a factor of 10x. >>> >>> >>> Command line per Camillo below on ubuntu 13.04 64bit on the hardware >>> was: 134ms >>> >>> Using Pharo-2 windows all in one on a windows xp virtualbox VM was: >>> >> 163ms >>> >>> Using Pharo-2 linux all in one on a ubuntu 12,04 64bit virtualbox VM >>> was: 1918ms >>> >>> >>> Using Pharo-2 linux all in one on a debian 6 32bit virtualbox VM >>> was: >>> >> 152 ms >>> >>> Further research: >>> >>> Pharo PPA VM, Ubuntu 13.04 64Bit: >>> >>> [SystemNavigation new allCallsOn: #ifTrue: ] timeToRun 2230 >>> >>> CogVM from Eliot directly ( >>> >>> http://www.mirandabanda.org/files/Cog/VM/VM.r2732/): >>> >>> [SystemNavigation new allCallsOn: #ifTrue: ] timeToRun 164 >>> >>> >>> >>> Kind regards, >>> >>> Markus >>> >> >>> >> >>> >> >>> >>> >> > -- Best regards, Igor Stasenko.
[Pharo-users] [ANN] Voyage updated to 2.0 and blog post
Hi, I worked a bit on voyage today to update the configuration for 2.0 (it was working, but not with the latest versions). I also finished a small tutorial I was working on, in the form of a blog: http://smallworks.com.ar/web/blog/2013-06-14-voyage-the-adventure Cheers, Esteban
[Pharo-users] How to split or rename Pharo categories with regard to Monticello packages?
Hi, i was looking for best practices on how to split or rename Pharo categories with regard to Monticello packages. Means, when i change category names i have to somehow reflect this in Monticello packages too? I asked on Stackoverflow: http://stackoverflow.com/questions/16981791/how-to-proceed-with-monticello-package-after-renaming-a-package-in-pharo-2-0 http://stackoverflow.com/questions/16981305/how-to-split-a-package-category-in-pharo-2-0-with-regard-to-monticello-packages but did not get any answers. So i repost the questions here. I found some similar - older - questions on the mailinglists, but was not sure if there were any news on this. /In Pharo 2.0 i started with Classes in one Package/Category (I'm not sure, what is the right term in Pharo at the moment). I have an identically named Monticello package which i contribute to. Now i split the Package/Category: MyPackage becomes: MyPackage-Core MyPackage-AddOns What is the intended way to manage these Packages/Categories with Monticello now? Is there a way to automatically split the Monticello packages accordingly? (I created some mess doing it manually and ended up starting in a new image and manually filing in the classes and then creating new Monticello packages)/ and /After renaming a Package/Category in Pharo 2.0 that is also under version control in a Monticello package of the same name, how to proceed? can i proceed with now renamed packages/categories in a Monticello package with an old, other name? can i rename Monticello packages accordingly with/without keeping the history intact? What i ended up with for the moment is, loading the renamed Package/Category into a fresh image, creating a new Monticello package there and losing the history./ -- View this message in context: http://forum.world.st/How-to-split-or-rename-Pharo-categories-with-regard-to-Monticello-packages-tp4693344.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
[Pharo-users] recompile a class via menu item in Pharo 2?
In earlier versions of Pharo you could choose a refactoring scope and then recompile everything in that scope by choosing the 'recompile' menu item . Is there a way to do the same thing in Pharo 2? Thanks
Re: [Pharo-users] Configuring where ZnServer serves files from
<<< This should work: (ZnServer defaultOn: 1701) logToTranscript; delegate: ((ZnStaticFileServerDelegate new) prefixFromString: 'apple/macosx'; directory: '/Library/WebServer/Documents' asFileReference; yourself); start. ZnClient new get: 'http://localhost:1701/apple/macosx/'. If there is no index.html in the directory, you'll need to refer to an actual file. >>> Thanks Sven, that's great! And, I am glad I asked, because I wouldn't have worked that out. It seems to me that Zinc is becoming sufficiently powerful that it could do with a section in the collaboractive cookbook. Could someone on this list give me an account? I could start to capture bits and pieces. cheers Andy
Re: [Pharo-users] ui slowness on newly installed ubuntu 13.04 64bit
On 07 Jun 2013, at 17:15, Camillo Bruni wrote: > Can you try on the command line only? This is getting _very_ weird: This is on Ubuntu 12.10 x64 running on a non-virtualised Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz, 8GB RAM. $ ./pharo Pharo.image printVersion [version] 3.0 #30199 -1- $ curl get.pharo.org/vm| bash $ ./pharo -version 3.9-7 #1 Wed Mar 13 18:22:44 CET 2013 gcc 4.4.3 NBCoInterpreter NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 NBCogit NativeBoost-CogPlugin-EstebanLorenzano.18 uuid: a53445f9-c0c0-4015-97a3-be7db8d9ed6b Mar 13 2013 git://gitorious.org/cogvm/blessed.git Commit: 412abef33cbed05cf1d75329e451d71c0c6aa5a7 Date: 2013-03-13 17:48:50 +0100 By: Esteban Lorenzano Jenkins build #14535 Linux linux-ubuntu-10 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux plugin path: /home/bt/pharo/pharo-vm/ [default: /home/bt/pharo/pharo-vm/] $ ./pharo Pharo.image eval '1 tinyBenchmarks' '1276807980 bytecodes/sec; 172715872 sends/sec' $ ./pharo Pharo.image eval '[ SystemNavigation new allCallsOn: #ifTrue: ] timeToRun' 59 $ ./pharo Pharo.image eval '[ SystemNavigation new allCallsOn: #ifTrue: ] timeToRun' 59 -2- $ curl get.pharo.org/vmLatest | bash $ ./pharo --version 3.9-7 #1 Fri May 31 13:43:31 CEST 2013 gcc 4.6.3 NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 31 2013 NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 31 2013 git://gitorious.org/cogvm/blessed.git Commit: 0f562e0afe14e533470278943b5d65d42ea133c2 Date: 2013-05-30 16:38:08 +0200 By: Igor Stasenko Jenkins build #14595 Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux plugin path: /home/bt/pharo/pharo-vm/ [default: /home/bt/pharo/pharo-vm/] $ ./pharo Pharo.image printVersion [version] 3.0 #30199 $ ./pharo Pharo.image eval '1 tinyBenchmarks' '1335071707 bytecodes/sec; 179533604 sends/sec' $ ./pharo Pharo.image eval '[ SystemNavigation new allCallsOn: #ifTrue: ] timeToRun' 705 $ ./pharo Pharo.image eval '[ SystemNavigation new allCallsOn: #ifTrue: ] timeToRun' 697 So #tinyBenchmarks reports approx. the same result, but #allCallsOn: differs by a factor 10. Why ? Sven PS: We really need to start tracking benchmarks across platforms and versions - so much to do. -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
Re: [Pharo-users] Phaas - anyone interested in setting up Pharo as a Service?
I have some ideas I would like to discuss off-line. Anyone interested should contact me at james.fos...@gemtalksystems.com. James On Jan 26, 2013, at 8:04 AM, Stéphane Ducasse wrote: > andy > > thanks for this discussion. It would be good to raise a kind of consensus > because this is an effort that the association > could support. > > Stef > > On Jan 26, 2013, at 11:41 AM, Andy Burnett wrote: > >>> he, sorry for insist, but cloudfoundry already does that... and is >>> opensource too :) >>> at ESUG I seen James present it to deploy pharo images... so is viable :) >>> >>> cheers, >>> Esteban >>> >> >> I agree. And, I was really quite optimistic about cloud foundry when >> it first came out. I particularly like the way you can have a local >> micro cloud, and then transition to the hosted cloud. My only >> disappointment was that VMware are not - seemingly - going to offer >> gemstone as an option on cloudfoundry.com. >> Building on what Janko said, I think it is really important to join >> the cloud 'wave'. >> >> The question is how might we - collectively - make this happen? I am >> perfectly happy to go with cloud foundry, or open shift, or any other >> option if more knowledgeable people can show that X is the way to go. >> My only requirement is that I don't want to deal with anyone lower >> than pharo. All OS patches need to be done automagically by the >> hosting provider. I think cloudfoundry.com and open shift do that, but >> my understanding of cloudfoundry.org is that this is a 'roll it >> yourself' solution. Obviously, that would require someone to step up >> and do that for us. >> My preference would be for us to create a suitably configured module >> for one of e platforms, and we can then start getting experience with >> it. Stephane, is this something that the consortium might take a lead >> on? My company is happy to pay some of the costs, if this will help. >> >> Cheer >> Andy >> > > >
Re: [Pharo-users] Topic search - Learn programming with Smalltalk
On Wed, Jun 12, 2013 at 02:46:23AM -0700, basilmir wrote: > *Smalltalk, Objects and Design by Chamond Liu* One of the first Smalltalk books I read, before I had gotten hold of any implementation to play with. Very nice book! > but without extensive > knowledge of the framework how could one create anything of use?! I use The Design Patterns Smalltalk Companion, by Sherman Alpert, Kyle Brown and Bobby Woolf, for ideas. -- Pierce Ng http://samadhiweb.com/blog/