Re: [Pharo-project] NativeBoost: perform 10, 000, 000 4096-digit additions fr1 := fr1 + fr1 in a loop in 1971 ms

2012-07-13 Thread Lawson English
On 7/13/12 11:36 PM, Lawson English wrote: "function prototype: mpfr_add (mpzf_t gmpf, mpf_t op1, mpf_t op2)" the prototype is actually mpfr_add (mpfr_t gmpfr, mpfr_t op1, mpfr_t op2, ulong rnd) http://www.mpfr.org/mpfr-current/mpfr.html#Basic-Arithmetic-Functions I'm using rnd := 0. MPF

[Pharo-project] NativeBoost: perform 10, 000, 000 4096-digit additions fr1 := fr1 + fr1 in a loop in 1971 ms

2012-07-13 Thread Lawson English
embedding assembler in Pharo method using NativeBoost Hooray! L test code: fr1 := GMPfrWrapper new. "create new GNU mpfr floating point number" fr1 prim_mpfr_prec_roundWithPrecision:4096 withRounding: 0. "set to 4096 digits of precision" fr1 set_d: 1. "set it to 1.0" "perfor

Re: [Pharo-project] [update 2.0] #20209

2012-07-13 Thread Marcus Denker
On Jul 13, 2012, at 11:01 PM, Marcus Denker wrote: > > On Jul 13, 2012, at 10:48 PM, Sven Van Caekenberghe wrote: > >> >> On 13 Jul 2012, at 15:44, Marcus Denker wrote: >> >>> Issue 6356: some cleanups related to methods moved away from SmalltalkImage >>> (vm and os related) >>> http://c

Re: [Pharo-project] [update 2.0] #20209

2012-07-13 Thread Mariano Martinez Peck
On Fri, Jul 13, 2012 at 10:47 PM, Sven Van Caekenberghe wrote: > > On 13 Jul 2012, at 15:44, Marcus Denker wrote: > > > Issue 6356: some cleanups related to methods moved away from > SmalltalkImage (vm and os related) > > http://code.google.com/p/pharo/issues/detail?id=6356 > > OK. but how

Re: [Pharo-project] Zinc intermittently returning nil

2012-07-13 Thread Sean P. DeNigris
Sven Van Caekenberghe wrote > > This will be hard to debug... Thanks for digging in and finding that bug! http://code.google.com/p/pharo/issues/detail?id=6364 seems to fix it. The following returned the correct result through the whole loop (1 to: 100) do: [ :e | Transcript

Re: [Pharo-project] [update 2.0] #20209

2012-07-13 Thread Marcus Denker
On Jul 13, 2012, at 10:48 PM, Sven Van Caekenberghe wrote: > > On 13 Jul 2012, at 15:44, Marcus Denker wrote: > >> Issue 6356: some cleanups related to methods moved away from SmalltalkImage >> (vm and os related) >> http://code.google.com/p/pharo/issues/detail?id=6356 > > OK. but how c

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Frank Shearar
On 13 July 2012 21:23, Sean P. DeNigris wrote: > > Sven Van Caekenberghe wrote >> >> Uhh, HTTPProgress was already there. I believe all progress is done that >> way, no ? >> > Oh, okay. Using exceptions for non-exceptional conditions seems like a hack. > My first cut at cleaning up the SystemProgr

Re: [Pharo-project] [update 2.0] #20209

2012-07-13 Thread Sven Van Caekenberghe
On 13 Jul 2012, at 15:44, Marcus Denker wrote: > Issue 6356: some cleanups related to methods moved away from SmalltalkImage > (vm and os related) > http://code.google.com/p/pharo/issues/detail?id=6356 OK. but how can a poor library developer trying to write code that has to remain com

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sven Van Caekenberghe
Sean, On 13 Jul 2012, at 22:23, Sean P. DeNigris wrote: > Sven Van Caekenberghe wrote >> >> Uhh, HTTPProgress was already there. I believe all progress is done that >> way, no ? > Oh, okay. Using exceptions for non-exceptional conditions seems like a hack. > My first cut at cleaning up the Sys

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sean P. DeNigris
Sven Van Caekenberghe wrote > > Uhh, HTTPProgress was already there. I believe all progress is done that > way, no ? > Oh, okay. Using exceptions for non-exceptional conditions seems like a hack. My first cut at cleaning up the SystemProgressMorph was in preparation to re-implement using announc

Re: [Pharo-project] DateAndTime

2012-07-13 Thread Sven Van Caekenberghe
Great work. let's hope it stands the test of time, so to speak. On 13 Jul 2012, at 21:20, Camillo Bruni wrote: > ben+2:00 > cami+2:00 I bet you would rather be ben+0:00 and cami+0:00 or even benZ and camiZ ;-)

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sven Van Caekenberghe
On 13 Jul 2012, at 21:21, Sean P. DeNigris wrote: > Oh, I forgot about http://mc.stfx.eu/ZincHTTPComponents Is it better to > try there first, in general? Yes, that is my primary one, but I normally copy immediately to SqS, unless under hacking stress > _ > > > Co

Re: [Pharo-project] DateAndTime

2012-07-13 Thread Camillo Bruni
On 2012-07-13, at 21:24, Sean P. DeNigris wrote: > > Camillo Bruni-3 wrote >> >> Finally after a 5h marathon of hacking and fixing broken stuff >> we are proud (and completely brain dead) to present the fixed >> Date/Time objects. >> > > *Thanks!* I was so burnt out discussing and fixing the

Re: [Pharo-project] DateAndTime

2012-07-13 Thread Sean P. DeNigris
Camillo Bruni-3 wrote > > Finally after a 5h marathon of hacking and fixing broken stuff > we are proud (and completely brain dead) to present the fixed > Date/Time objects. > *Thanks!* I was so burnt out discussing and fixing the UTC issues that I couldn't look at those anymore :) -- View thi

Re: [Pharo-project] start-up and shut-down lists

2012-07-13 Thread Marcus Denker
On Jul 13, 2012, at 9:09 PM, Eliot Miranda wrote: > Hi All, > > I'm profiling image startup and consequently want to pause a MessageTally > during a snapshot. So I want to add MessageTally to the StartUpList > immediately after Delay (the first entry in StartUpList) and to the > ShutDown

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sean P. DeNigris
Sven Van Caekenberghe wrote > > It is hard to keep repos in sync manually… > Oh, I forgot about http://mc.stfx.eu/ZincHTTPComponents Is it better to try there first, in general? _ Cool! It works great :) One question - why exceptions instead of announcements? --

[Pharo-project] DateAndTime

2012-07-13 Thread Camillo Bruni
Finally after a 5h marathon of hacking and fixing broken stuff we are proud (and completely brain dead) to present the fixed Date/Time objects. We fixed: - all internals are represented in UTC - all relative stuff is represented in UTC plus an additional timezone (currently a simple Duration) A

[Pharo-project] start-up and shut-down lists

2012-07-13 Thread Eliot Miranda
Hi All, I'm profiling image startup and consequently want to pause a MessageTally during a snapshot. So I want to add MessageTally to the StartUpList immediately after Delay (the first entry in StartUpList) and to the ShutDownList immediately before Delay. But when I look at the SmalltalkIma

Re: [Pharo-project] can someone explain me this method?

2012-07-13 Thread Eliot Miranda
On Fri, Jul 13, 2012 at 10:51 AM, Camillo Bruni wrote: > Cool thanks everyone for the references :D > > We will pu that into the sources > > On 2012-07-13, at 19:47, Nicolas Cellier wrote: > > > The first numbers are quite easy to guess without reading any reference : > > if you have a major in as

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sven Van Caekenberghe
It is hard to keep repos in sync manually… On 13 Jul 2012, at 19:04, Sean P. DeNigris wrote: > On Jul 13, 2012, at 12:48 PM, "Sven Van Caekenberghe [via Smalltalk]" > <[hidden email]> wrote: > > > Did you load Zinc-HTTP-SvenVanCaekenberghe.285 ? > Ah, that's what happened. I loaded the latest

Re: [Pharo-project] can someone explain me this method?

2012-07-13 Thread Camillo Bruni
Cool thanks everyone for the references :D We will pu that into the sources On 2012-07-13, at 19:47, Nicolas Cellier wrote: > The first numbers are quite easy to guess without reading any reference : if you have a major in astronomy, sure :P > - 400 years span 146097 days in gregorian calendar

Re: [Pharo-project] can someone explain me this method?

2012-07-13 Thread Nicolas Cellier
The first numbers are quite easy to guess without reading any reference : - 400 years span 146097 days in gregorian calendar. - 100 years span 36524 days, except every 400 years. - 4 years span 1461 days, except every 100 years. - 1 year span 365 days, except every four years For months and days, t

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sean P. DeNigris
On Jul 13, 2012, at 12:48 PM, "Sven Van Caekenberghe [via Smalltalk]" wrote: > Did you load Zinc-HTTP-SvenVanCaekenberghe.285 ? Ah, that's what happened. I loaded the latest version from sqs, which seems to be 284 -- View this message in context: http://forum.world.st/ENH-Zinc-Streaming-Down

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sven Van Caekenberghe
Did you load Zinc-HTTP-SvenVanCaekenberghe.285 ? On 13 Jul 2012, at 18:22, Sean P. DeNigris wrote: > > Sven Van Caekenberghe wrote >> >> You should now be able to do something like... >> > > That didn't seem to work in my Pharo 1.4 image with 284 loaded. Does it > require something else? I no

Re: [Pharo-project] [ENH]: Zinc - Streaming Download Progress

2012-07-13 Thread Sean P. DeNigris
Sven Van Caekenberghe wrote > > You should now be able to do something like... > That didn't seem to work in my Pharo 1.4 image with 284 loaded. Does it require something else? I noticed the only method in my image that seems to set the progress total for downloading is HTTPSocket>>getRestOfBuf

Re: [Pharo-project] can someone explain me this method?

2012-07-13 Thread Sven Van Caekenberghe
Yeah, but sometimes a clever algorithm comes from a book, so to speak. Giving the variables long names, or the constants names, would not make that much difference, it would still be pretty hard to understand. ZTimestamp class>>withJdn: jdn dayMonthYearDo: block "Return the value of exec

Re: [Pharo-project] can someone explain me this method?

2012-07-13 Thread Frank Shearar
http://www.hermetic.ch/cal_stud/jdn.htm <-- "9. Conversion Algorithms" describes the algorithm, if not the magic numbers. frank On 13 July 2012 16:53, Camillo Bruni wrote: > comments? decent variable names? no magic numbers? > NOW you can find NONE of that in dayMonthYearDo! > > > ==

[Pharo-project] [update 2.0] #20211

2012-07-13 Thread Marcus Denker
20211 - Issue 6343: move Windows on screen should take in account the task bar http://code.google.com/p/pharo/issues/detail?id=6343 Issue 6341: ClassDescription>>#organization send #recoverFromMDFaultWithTrace http://code.google.com/p/pharo/issues/detail?id=63

[Pharo-project] can someone explain me this method?

2012-07-13 Thread Camillo Bruni
comments? decent variable names? no magic numbers? NOW you can find NONE of that in dayMonthYearDo! == dayMonthYearDo: aBlock "Evaluation the block with three arguments: day month, year." | l n i j dd mm |

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Goubier Thierry
Ok, done. If anybody is missing the format (Ctrl+r) command in Nautilus, here it is done. Now you can write code to the kilometer, and press Ctrl+r, Ctrl+s. Et voilà, nicely formatted smalltalk code. Issue 6363: Format command (linked to Ctrl+r) Slice uploaded to Pharo Inbox. Thierry Le 13

[Pharo-project] Keymapping - Class vs. Instance Targets

2012-07-13 Thread Sean P. DeNigris
I've run into a lot of trouble implementing the vim bindings because morph instances don't make local copies of the class's maps, so there's no way to override class defaults in an instance. For example, for a particular instance, I can't detach a category that is attached to the class without deta

Re: [Pharo-project] Monticello Merge detected conflict

2012-07-13 Thread Sean P. DeNigris
Sean P. DeNigris wrote > > There are two different things shown by the merge tool, changes and > conflicts... > The behavior I described is on Pharo1.4 Latest update: #14453 -- View this message in context: http://forum.world.st/Monticello-Merge-detected-conflict-tp4639802p4639855.html Sent f

Re: [Pharo-project] Monticello Merge detected conflict

2012-07-13 Thread Sean P. DeNigris
Dario Trussardi wrote > > Now the conflict is detected only if the method in the image belongs at > the same method category of the relative method in the package. > Hi Dario, There are two different things shown by the merge tool, changes and conflicts. Conflicts are when something [1]

Re: [Pharo-project] Squeaksource moved

2012-07-13 Thread Sean P. DeNigris
Fabrizio Perin-3 wrote > > Today at 14 we moved squeaksource on a new machine http://www.squeaksource.com/phexample/Phexample-NikoSchwarz.57.mcz The package is listed in the versions, but trying to download -> 404 error Related to the move? -- View this message in context: http://forum.world.

[Pharo-project] [update 2.0] #20210

2012-07-13 Thread Marcus Denker
20210 - Issue 6360: Fix text context menu in Worspace http://code.google.com/p/pharo/issues/detail?id=6360 Issue 6359: Double entry in tool menu: "Recover lost changes..." http://code.google.com/p/pharo/issues/detail?id=6359 Issue 4423: deprecate P

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Goubier Thierry
Le 13/07/2012 15:57, Goubier Thierry a écrit : Le 13/07/2012 15:45, Benjamin a écrit : in a workspace evaluate KMLog setDebug Open a Transcript, and it will tell what ctrl+r is used for :) It only tells you [Ctrl+r] :-( Just noticed that my changes to NautilusUI were not taken in account any

Re: [Pharo-project] Squeaksource moved

2012-07-13 Thread Sean P. DeNigris
Fabrizio Perin-3 wrote > > reach it you can try to use the ip: > http://130.92.64.38: > http://www.squeaksource.com is working, but the IP above hung in Safari and Firefox -- View this message in context: http://forum.world.st/Squeaksource-moved-tp4639837p4639842.html Sent from the Pharo

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Goubier Thierry
Le 13/07/2012 15:45, Benjamin a écrit : in a workspace evaluate KMLog setDebug Open a Transcript, and it will tell what ctrl+r is used for :) It only tells you [Ctrl+r] :-( Just noticed that my changes to NautilusUI were not taken in account anyway. Thierry Ben On Jul 13, 2012, at 3:44 PM

Re: [Pharo-project] Synchronizing system time

2012-07-13 Thread Camillo Bruni
On 2012-07-13, at 08:45, Denis Kudriashov wrote: > Hello, > > I try to implement system time synchronization with some server. > And I found that when system OS time changed running pharo instance don't > see that. > I execute DateAndTime>>initializeOffsets but it not helps. > > Is it bug somew

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Benjamin
in a workspace evaluate KMLog setDebug Open a Transcript, and it will tell what ctrl+r is used for :) Ben On Jul 13, 2012, at 3:44 PM, Goubier Thierry wrote: > Le 13/07/2012 15:36, Benjamin a écrit : >> command r is already used (to rename stuff) > > But it triggers on Alt+r, not Ctrl+r. > >

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Camillo Bruni
On 2012-07-13, at 15:43, Goubier Thierry wrote: > Le 13/07/2012 15:36, Benjamin a écrit : >> command r is already used (to rename stuff) > > But it triggers on Alt+r, not Ctrl+r. > > Ctrl+r is caught, but I don't know by what. Check SmalltalkEditor / TextEditor... They encode some special sho

[Pharo-project] [update 2.0] #20209

2012-07-13 Thread Marcus Denker
20209 - Issue 6356: some cleanups related to methods moved away from SmalltalkImage (vm and os related) http://code.google.com/p/pharo/issues/detail?id=6356 Issue 6355: ClassCommentVersionBrowser should not shout the text http://code.google.com/p/pharo/issues/

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Goubier Thierry
Le 13/07/2012 15:36, Benjamin a écrit : command r is already used (to rename stuff) But it triggers on Alt+r, not Ctrl+r. Ctrl+r is caught, but I don't know by what. I'll try to change the key (or the rename key). Trying to follow the KM areas, but lost in a maze of small classes, all ident

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Benjamin
command r is already used (to rename stuff) try a key not used like h Ben On Jul 13, 2012, at 3:32 PM, Goubier Thierry wrote: > Le 13/07/2012 14:42, Benjamin a écrit : >> (aBuilder shortcut: #Foo) >> category: #NautilusSourceCodeShortcuts >> default: $r command >>

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Goubier Thierry
Le 13/07/2012 14:42, Benjamin a écrit : (aBuilder shortcut: #Foo) category: #NautilusSourceCodeShortcuts default: $r command do: [:target | self formatTextFor: target sourceTextArea ] description: 'Format the text of a text morph'.

[Pharo-project] pharo-2.0-tests » 32,linux - Build # 218 - Failure!

2012-07-13 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/pharo-2.0-tests/./Architecture=32,OS=linux/218/Project:Architecture=32,OS=linuxDate of build:Fri, 13 Jul 2012 15:14:59 +0200Build duration:50 secCHANGESNo ChangesBUILD ARTIFACTSPharo-2.0-AfterRunningTests.zipCONSOLE OUTPUT[...truncated 835 l

[Pharo-project] pharo-2.0-tests » 32,win - Build # 218 - Failure!

2012-07-13 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/pharo-2.0-tests/./Architecture=32,OS=win/218/Project:Architecture=32,OS=winDate of build:Fri, 13 Jul 2012 15:14:59 +0200Build duration:28 secCHANGESNo ChangesBUILD ARTIFACTSPharo-2.0-AfterRunningTests.zipCONSOLE OUTPUT[...truncated 789 lines

[Pharo-project] Monticello Merge detected conflict

2012-07-13 Thread Dario Trussardi
Hi, i need to intercept conflict for new package before load in a image. I work with Pharo 1.4. Now the conflict is detected only if the method in the image belongs at the same method category of the relative method in the package. For example in my Pharo ima

[Pharo-project] [update 2.0] #20208

2012-07-13 Thread Marcus Denker
20208 - Issue 6279: Browse comment versions in Nautilus crashes http://code.google.com/p/pharo/issues/detail?id=6279 Issue 6268: CI-Core should be in the core image http://code.google.com/p/pharo/issues/detail?id=6268 Issue 5625: DNU in FileList wh

[Pharo-project] [update 2.0] #20208

2012-07-13 Thread Marcus Denker
20208 - Issue 6279: Browse comment versions in Nautilus crashes http://code.google.com/p/pharo/issues/detail?id=6279 Issue 6268: CI-Core should be in the core image http://code.google.com/p/pharo/issues/detail?id=6268 Issue 5625: DNU in FileList wh

Re: [Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Benjamin
(aBuilder shortcut: #Foo) category: #NautilusSourceCodeShortcuts default: $r command do: [:target | self formatTextFor: target sourceTextArea ] description: 'Format the text of a text morph'. Defined on class side of the class you wan

[Pharo-project] Question on 2.0 : shortcuts for menu items

2012-07-13 Thread Goubier Thierry
Hi, I'm trying to add a Cmd+r command to format code in Nautilus and I'm unable to find how. Would anybody know ? I tried to modify the menus and the CmdKeyTables in SmalltalkEditor to no effect. Thanks, Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel E

Re: [Pharo-project] StartupPreferences in 1.4

2012-07-13 Thread Sean P. DeNigris
Stéphane Ducasse wrote > >> This is why you should stop integrating stuff in 1.4 ;) > Indeed only really showstoppers. because 2.0 needs our care and energy. > StartupPreferences was already in the 1.4 image, I didn't put it there. I think it should either work correctly or be removed. -- View

[Pharo-project] [Issue Tracker] Issues sorted by last activity

2012-07-13 Thread Marcus Denker
Hello, We have some issues on the tracker that see no activty for a long time. You get a list sorted in a way that one can see these tracker entries in front with this query: http://code.google.com/p/pharo/issues/list?can=2&q=&sort=modified&colspec=ID+Type+Status+Summary+Milestone+Difficulty+Mod

[Pharo-project] Pharo-1.4-Tests » 32,mac - Build # 80 - Failure!

2012-07-13 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/Pharo-1.4-Tests/./Architecture=32,OS=mac/80/Project:Architecture=32,OS=macDate of build:Fri, 13 Jul 2012 12:23:50 +0200Build duration:48 secCHANGESNo ChangesCONSOLE OUTPUT[...truncated 1038 lines...] ifFalse: [chunk := self nextChunk.

[Pharo-project] Pharo-1.4-Tests » 32,linux - Build # 80 - Failure!

2012-07-13 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/Pharo-1.4-Tests/./Architecture=32,OS=linux/80/Project:Architecture=32,OS=linuxDate of build:Fri, 13 Jul 2012 12:23:50 +0200Build duration:52 secCHANGESNo ChangesCONSOLE OUTPUT[...truncated 1035 lines...] ifTrue: [(self class evaluator

[Pharo-project] Pharo-1.4-Tests » 32,win - Build # 80 - Failure!

2012-07-13 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/Pharo-1.4-Tests/./Architecture=32,OS=win/80/Project:Architecture=32,OS=winDate of build:Fri, 13 Jul 2012 12:23:50 +0200Build duration:30 secCHANGESNo ChangesCONSOLE OUTPUT[...truncated 990 lines...] ifTrue: [(self class evaluatorClass

[Pharo-project] [update 1.4] #14453

2012-07-13 Thread Marcus Denker
14453 - Issue 6313: failing test: MorphicTests.Event.EventHandlerTest.testKeyStrokeFromMorph http://code.google.com/p/pharo/issues/detail?id=6313 Issue 6352: StartupPreferences loads non-st files in 1.4 http://code.google.com/p/pharo/issues/detail?id=6352 --

[Pharo-project] [update 2.0] #20207

2012-07-13 Thread Marcus Denker
20207 - Issue 5935: String #asFile and #asDirectory http://code.google.com/p/pharo/issues/detail?id=5935 -- Marcus Denker -- http://marcusdenker.de

Re: [Pharo-project] StartupPreferences in 1.4

2012-07-13 Thread Stéphane Ducasse
> This is why you should stop integrating stuff in 1.4 ;) Indeed only really showstoppers. because 2.0 needs our care and energy. > http://code.google.com/p/pharo/issues/detail?id=5892 > > On Thu, Jul 12, 2012 at 7:44 PM, Sean P. DeNigris > wrote: > > Sean P. DeNigris wrote >> >> It's pick