Re: [Pharo-project] Pharo and the ST-80 classes

2012-05-13 Thread Stéphane Ducasse
Do you need it for a model or for drawing? Because for drawing there is LineMorph stef I went to use a Line today and found it wasn't in Pharo. Apparently this is part of the ST80-* (ST80-Paths) classes which aren't carried over to Pharo. So...how do I draw a line on a morph

[Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Stéphane Ducasse
Hi I'm cleaning Sensor use so that we end up with a better layered system. Now I see this method and I wonder (replacing Sensor by hand does not work. But I do not understand why this methods has to explicitly invoke runStepMethods… to me it looks like a broken behavior due probably to the

Re: [Pharo-project] Copying classes: breaking contract or not?

2012-05-13 Thread Igor Stasenko
yes, this looks like a bug. But i would recompile all methods of copied class, so all these nuances is handled. On 12 May 2012 14:04, Mariano Martinez Peck marianop...@gmail.com wrote: On Sat, May 12, 2012 at 12:41 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: On May 12, 2012, at

Re: [Pharo-project] Implementors of...

2012-05-13 Thread Nicolas Cellier
2012/5/12 Benjamin benjamin.vanryseghem.ph...@gmail.com: Hello :) Do you have opened an entry ? Honestly, I am not a fan of this mechanism (as Marcus said, when I want something specific, I select it from the text, then use shortcuts :) ) But I can understand you miss it. In Nautilus,

Re: [Pharo-project] Copying classes: breaking contract or not?

2012-05-13 Thread Nicolas Cellier
It depends of the usage of copy... If the purpose is to modify a class, then the copy will replace the original in a short future, and you should better keep the associations untouched and only change them in a final Namespace at: className put: theClassCopy... If the purpose is to create a new

Re: [Pharo-project] Implementors of...

2012-05-13 Thread Benjamin
On May 13, 2012, at 2:15 PM, Nicolas Cellier wrote: 2012/5/12 Benjamin benjamin.vanryseghem.ph...@gmail.com: Hello :) Do you have opened an entry ? Honestly, I am not a fan of this mechanism (as Marcus said, when I want something specific, I select it from the text, then use shortcuts

Re: [Pharo-project] FileList efficiency could hardly be worse

2012-05-13 Thread Nicolas Cellier
2012/5/11 Camillo Bruni camillobr...@gmail.com: I just checked: - Using the old FileDirectory has the advantage that we keep the low level entries directory = O(n^n) - FIleSystem doesn't do that ;) = O(n^3) we should really switch to the other, direct access primitive! The code for

[Pharo-project] FileBrowser/FileList rant

2012-05-13 Thread Nicolas Cellier
Hi, it seems that FileBrowser/FileList is never used... And I absolutely don't understand some design choices. 1) Having a single reference inst var for both selectedDirectory and selectedFile : this is a bug factory, see http://code.google.com/p/pharo/issues/detail?id=5881 and

Re: [Pharo-project] Implementors of...

2012-05-13 Thread Hilaire Fernandes
The main drawback from usability point of view: it is an implicit feature, invisible to newbie and other out of the context. Hilaire On 13/05/2012 14:15, Nicolas Cellier wrote: 2012/5/12 Benjamin benjamin.vanryseghem.ph...@gmail.com: Hello :) Do you have opened an entry ? Honestly, I am

Re: [Pharo-project] Pharo and the ST-80 classes

2012-05-13 Thread blake
On Sun, May 13, 2012 at 12:49 AM, Stéphane Ducasse stephane.duca...@inria.fr wrote: Do you need it for a model or for drawing? Because for drawing there is        LineMorph stef I'm not sure what you mean by a model. I've never been really good with Morphic, so when I started this current

[Pharo-project] implementors of...

2012-05-13 Thread blake
If I have a method showing in the method pane, I can right-click on renderContentOn: and get a list of all the implementors of that method. What if I don't know of a class that has the renderContentOn: method? How can I find the classes then? ===Blake===

Re: [Pharo-project] implementors of...

2012-05-13 Thread Benjamin
I don't get it I think ... You want to retrieve the classes that implements renderContentOn in the case you do not know a method containing a call to this selector ? Am I right ? Ben On May 13, 2012, at 7:51 PM, blake wrote: If I have a method showing in the method pane, I can right-click

[Pharo-project] Fun with spock (NativeBoost FFI)

2012-05-13 Thread Lawson English
So, thanks to Igor Stasenko, I've managed to learn how to (sorta) use the new NativeBoost FFI (spock). We (he) implemented a binding to a few of the gmplib functions. gmp is the GNU Multi-Precision Library. Here is a simple benchmark of the Pharo factorial method vs the gmplib mpz_fac_ui()

Re: [Pharo-project] implementors of...

2012-05-13 Thread blake
On Sun, May 13, 2012 at 10:54 AM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: I don't get it I think ... You want to retrieve the classes that implements renderContentOn [snip] This is what I want. I don't want to have to find a class that implements renderContentOn first, and then go

Re: [Pharo-project] [squeak-dev] Fun with spock (NativeBoost FFI)

2012-05-13 Thread Lawson English
On 5/13/12 11:02 AM, Lawson English wrote: [results] Ack, I printed the times for the gmplib off by a factor of 10. However, the ratio is still correct. gmplib is at least 700x faster than the built-in factorial method for 10 factorial. -- Squeak from the very start (introduction to

[Pharo-project] Test coverage on branch level?

2012-05-13 Thread Stefan Marr
Hi: I was looking for something that could visualize code coverage on the branch/statement level. My understanding is that the test coverage tool provide by the test runner only tells me which methods haven't been called. I also had a look at Hapao. First I found that the linked image was

Re: [Pharo-project] implementors of...

2012-05-13 Thread Benjamin
So just find any text area (inspector, workspace, code browser ) type the selector you are looking for (here renderContentOn:) then select the selector and do cmd+m for implementors, cmd+n for senders It should do what you want :) Ben On May 13, 2012, at 8:11 PM, blake wrote: On Sun, May 13,

Re: [Pharo-project] implementors of...

2012-05-13 Thread blake
Cool! Thanks! On Sun, May 13, 2012 at 11:20 AM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: So just find any text area (inspector, workspace, code browser ) type the selector you are looking for (here renderContentOn:) then select the selector and do cmd+m for implementors, cmd+n for

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Fernando Olivero
Indeed is weird. I think it has to explicitly call runStepMethods, because it's not forking , thus taking control of the ui process, does it make sense? I would remove the method (and all the similar ones found in the image, that explicitly reference Sensor and while doing true whileTrue:[ ...],

Re: [Pharo-project] [Pharo-consortium] We need your successes

2012-05-13 Thread Fernando Olivero
I'll prepare one, detailing myself and Gaucho. Fernando On Sat, May 12, 2012 at 9:50 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: Thanks Hilaire for this cool one :)        https://gforge.inria.fr/frs/download.php/30761/drgeo-teaser.pdf I should do one for http://www.synectique.eu

Re: [Pharo-project] implementors of...

2012-05-13 Thread Guillermo Polito
There is a finder plugin for nautilus also :). On Sun, May 13, 2012 at 8:29 PM, blake dsblakewat...@gmail.com wrote: Cool! Thanks! On Sun, May 13, 2012 at 11:20 AM, Benjamin benjamin.vanryseghem.ph...@gmail.com wrote: So just find any text area (inspector, workspace, code browser ) type

[Pharo-project] [update 2.0] #20072

2012-05-13 Thread Marcus Denker
20072 - Issue 5886: Minor fix in Nautilus http://code.google.com/p/pharo/issues/detail?id=5886 Issue 5875: Too Many Options http://code.google.com/p/pharo/issues/detail?id=5875 Issue 5833: More robust allSuperclassesIncluding:

Re: [Pharo-project] implementors of...

2012-05-13 Thread blake
Also cool. As bad as I am about this stuff, one thing Pharo has WAY over Squeak is that the options are manageable. I've found a lot just by poking around in Pharo where the much larger menus in Squeak are overwhelming... On Sun, May 13, 2012 at 11:37 AM, Guillermo Polito

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Stéphane Ducasse
On May 13, 2012, at 8:32 PM, Fernando Olivero wrote: Indeed is weird. I think it has to explicitly call runStepMethods, because it's not forking , thus taking control of the ui process, does it make sense? I would remove the method (and all the similar ones found in the image, that

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Sean P. DeNigris
Stéphane Ducasse wrote Now I see this method and I wonder (replacing Sensor by hand does not work. ... What do you think? I'm reimplementing it without Sensor, integrated well with Morphic... It's almost done... I'll try to upload tonight. Sean -- View this message in context:

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Igor Stasenko
On 13 May 2012 22:13, Sean P. DeNigris s...@clipperadams.com wrote: Stéphane Ducasse wrote Now I see this method and I wonder (replacing Sensor by hand does not work. ... What do you think? I'm reimplementing it without Sensor, integrated well with Morphic... It's almost done... I'll

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Stéphane Ducasse
Sean thanks a lot. pay attention we already did it. Check less sensor bug entry: http://code.google.com/p/pharo/issues/detail?id=5887 Stef On May 13, 2012, at 10:13 PM, Sean P. DeNigris wrote: Stéphane Ducasse wrote Now I see this method and I wonder (replacing Sensor by hand

Re: [Pharo-project] [squeak-dev] Fun with spock (NativeBoost FFI)

2012-05-13 Thread Lawson English
[pharo-project list added back in] On 5/13/12 1:34 PM, Nicolas Cellier wrote: [10 primeSwingFactorial] timeToRun 3411 [10 factorial] timeToRun 61219 So gmp is still 40x faster than a reasonably optimized Smalltalk factorial... I think that's fair, because gmp is highly optimized.

Re: [Pharo-project] [squeak-dev] Fun with spock (NativeBoost FFI)

2012-05-13 Thread Igor Stasenko
On 14 May 2012 00:03, Lawson English lengli...@cox.net wrote: [pharo-project list added back in] On 5/13/12 1:34 PM, Nicolas Cellier wrote: [10 primeSwingFactorial] timeToRun 3411 [10 factorial] timeToRun 61219 So gmp is still 40x faster than a reasonably optimized Smalltalk

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Sean P. DeNigris
Igor Stasenko wrote You're too slow. We did it already :) WTF!!! You guys are getting too good, lol. One thing... The instance creation should be: poly := PolygonMorph vertices: { p1. p1 } color: Color transparent borderWidth: 2

Re: [Pharo-project] Strange logic in PolygonMorphfromHand: hand

2012-05-13 Thread Igor Stasenko
On 14 May 2012 04:33, Sean P. DeNigris s...@clipperadams.com wrote: Igor Stasenko wrote You're too slow. We did it already :) WTF!!! You guys are getting too good, lol. One thing... The instance creation should be:        poly := PolygonMorph                vertices: { p1. p1 }        

[Pharo-project] Semantic Versioning

2012-05-13 Thread Sean P. DeNigris
Do you guys know about this? This seems like it could fit really well with Metacello... http://semver.org/ Excerpt: 'I call this system Semantic Versioning. Under this scheme, version numbers and the way they change convey meaning about the underlying code and what has been modified from one

Re: [Pharo-project] Notify progress with Announcements instead of Exceptions

2012-05-13 Thread Sean P. DeNigris
A few updates... * StringdisplayProgressAt:from:to:during: has deprecated in the comment, but is not in a deprecated category. The timestamp is 9/7/11 which puts it either 1.2 or early 1.3, but either way, it should be removed for 2.0, right? There is only one sender in the image, which can easily

[Pharo-project] Singleton access selector

2012-05-13 Thread Sean P. DeNigris
I've noticed we use a buffet of accessors for singletons, like #default, #instance, #current... it'd be nice to just pick one. I like #instance, but could live with any as long as I never have to guess which one from a list again :) Sean -- View this message in context: