Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Keith Hodges
Stéphane Ducasse wrote: > Yes could be good > > So you would write what > > Logger default > > we could do the same for Transcript but breaks a lot of code and > books. but indeed using a toothpick > could be nice. > > Stef Logging uses, self log as the front end, and backends are configur

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
Yes could be good So you would write what Logger default we could do the same for Transcript but breaks a lot of code and books. but indeed using a toothpick could be nice. Stef >> Hi >> >> I would really like that we get a threadSafeTranscript so I coded >> one. >> If you can comment

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
indeed the idea is that I do not want to see the old one around. Stef On Mar 29, 2009, at 10:31 PM, Keith Hodges wrote: > Stéphane Ducasse wrote: >> Yes but I want to kill the old crappy one. so it cannot be an >> external >> package :) >> > Why not? I thought that pharo was supposed to be mod

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Keith Hodges
Stéphane Ducasse wrote: > Yes but I want to kill the old crappy one. so it cannot be an external > package :) > Why not? I thought that pharo was supposed to be modular. Keith ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Keith Hodges
Michael van der Gulik wrote: > On 3/30/09, Stéphane Ducasse wrote: > >> Hi >> >> I would really like that we get a threadSafeTranscript so I coded one. >> If you can comment this would help me. >> > > Personally, I'd replace the Transcript with a logging system. The > global variable "Tran

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Michael van der Gulik
On 3/30/09, Stéphane Ducasse wrote: > Hi > > I would really like that we get a threadSafeTranscript so I coded one. > If you can comment this would help me. Personally, I'd replace the Transcript with a logging system. The global variable "Transcript" could be replaced with a logger wrapper. Gul

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Lukas Renggli
Btw, I also wrote a transcript (and workspace) as part of OB-Tools. Lukas On Sun, Mar 29, 2009 at 9:24 PM, Stéphane Ducasse wrote: > Yes but I want to kill the old crappy one. so it cannot be an external > package :) > > On Mar 29, 2009, at 8:42 PM, Keith Hodges wrote: > >> Stéphane Ducasse wrot

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
Yes but I want to kill the old crappy one. so it cannot be an external package :) On Mar 29, 2009, at 8:42 PM, Keith Hodges wrote: > Stéphane Ducasse wrote: >> did you check what the semaphore critical section is protecting? >> cr, tab, nextPutAll: and more and not protected. >> >> then tr

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Keith Hodges
Stéphane Ducasse wrote: > did you check what the semaphore critical section is protecting? > cr, tab, nextPutAll: and more and not protected. > > then transcriptStream inherits from stream which is not threadsafe, so > everything can happen. > I think that having a real thread safe output i

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
On Mar 29, 2009, at 7:05 PM, Igor Stasenko wrote: > 2009/3/29 Stéphane Ducasse : >> Igor >> your change is already in pharo :) >> since months :) > > Yes, but method i changes is not related in particular to Transcript. > The change applies to all users of PluggableTextMorph. > > But as for threa

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Igor Stasenko
Oh, TrascriptStream already uses AccessSema.. So, it should wrap a #changed: with it: changed: param self semaphore critical: [ super changed: param ] 2009/3/29 Igor Stasenko : > 2009/3/29 Stéphane Ducasse : >> Igor >> your change is already in pharo :) >> since months :) > > Yes, but met

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Igor Stasenko
2009/3/29 Stéphane Ducasse : > Igor > your change is already in pharo :) > since months :) Yes, but method i changes is not related in particular to Transcript. The change applies to all users of PluggableTextMorph. But as for thread-safe transcript, you need to be careful when you sending #chang

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
Igor your change is already in pharo :) since months :) Stef On Mar 29, 2009, at 6:48 PM, Igor Stasenko wrote: > 2009/3/29 Stéphane Ducasse : >> did you check what the semaphore critical section is protecting? >>cr, tab, nextPutAll: and more and not protected. >> >> then transcriptStream i

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Igor Stasenko
2009/3/29 Stéphane Ducasse : > did you check what the semaphore critical section is protecting? >        cr, tab, nextPutAll: and more and not protected. > > then transcriptStream inherits from stream which is not threadsafe, so > everything can happen. > I think that having a real thread safe outp

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
did you check what the semaphore critical section is protecting? cr, tab, nextPutAll: and more and not protected. then transcriptStream inherits from stream which is not threadsafe, so everything can happen. I think that having a real thread safe output is a must. Stef On Mar 29, 2009,

Re: [Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Keith Hodges
Stéphane Ducasse wrote: > Hi > > I would really like that we get a threadSafeTranscript so I coded one. > If you can comment this would help me. > > Stef What is the difference tot he exisitng one, it has an access semaphore too. Keith ___ Pharo-proje

[Pharo-project] TreadSafeTranscript proposal

2009-03-29 Thread Stéphane Ducasse
Hi I would really like that we get a threadSafeTranscript so I coded one. If you can comment this would help me. Stef ThreadSafeTranscript.st Description: Binary data ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists