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] Thread problem

2009-03-29 Thread Stéphane Ducasse
Igor I m not surprised of the order. I know that transcript is totally unsafe :) Now this is probably the unclosure stuff that bites me... :) ...stef jumping to pharo and trying ... stef back | tt | Smalltalk at: #STranscript ifAbsent: [self installThreadSafeAsSTranscript].

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

Re: [Pharo-project] Namespaces for Squeak

2009-03-29 Thread Igor Stasenko
2009/3/29 Igor Stasenko : > 2009/3/29 Stéphane Ducasse : >> I think class GUID is orthogonal to namespace. >> I still would be able to argue really why GUID for classes are good (I >> mean really scientifically). >> > > Let argue then :) > A GUID , as for me, is a simple and logical extension of ob

Re: [Pharo-project] Namespaces for Squeak

2009-03-29 Thread Igor Stasenko
2009/3/29 Stéphane Ducasse : > I think class GUID is orthogonal to namespace. > I still would be able to argue really why GUID for classes are good (I > mean really scientifically). > Let argue then :) A GUID , as for me, is a simple and logical extension of object identity concept. An object iden

Re: [Pharo-project] Thread problem

2009-03-29 Thread Igor Stasenko
2009/3/29 Igor Stasenko : > 2009/3/29 Stéphane Ducasse : >> Hi all >> >> I'm working on a threadSafeTranscript and I could not understand why >> the following code >> does not print something else than >> >>        1*100-102-103-104-105-106-107-108-109-110- >> >> |tt| >> tt := Transcript. >> [1 to:

Re: [Pharo-project] Thread problem

2009-03-29 Thread Igor Stasenko
2009/3/29 Stéphane Ducasse : > Hi all > > I'm working on a threadSafeTranscript and I could not understand why > the following code > does not print something else than > >        1*100-102-103-104-105-106-107-108-109-110- > > |tt| > tt := Transcript. > [1 to: 10 do: [:i | tt show: i printString; s

Re: [Pharo-project] Namespaces for Squeak

2009-03-29 Thread Stéphane Ducasse
I think class GUID is orthogonal to namespace. I still would be able to argue really why GUID for classes are good (I mean really scientifically). Stef On Mar 28, 2009, at 9:14 PM, Markus Fritsche wrote: > Stéphane Ducasse wrote: > >> if you want to have a modular system then sharing a falt s

[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

[Pharo-project] Thread problem

2009-03-29 Thread Stéphane Ducasse
Hi all I'm working on a threadSafeTranscript and I could not understand why the following code does not print something else than 1*100-102-103-104-105-106-107-108-109-110- |tt| tt := Transcript. [1 to: 10 do: [:i | tt show: i printString; show: '*'.