[Pharo-project] New Transcript (was: [squeak-dev] Re: Cog VM -- Thanks and Performance / Optimization Questions)
juan at jvuletich.org
Fri Feb 18 23:03:33 CET 2011
This new version includes full Morphic integration. It was done for
Cuis, but it shouldn't be too hard to adapt for Squeak / Pharo.
Juan Vuletich wrote:
> Hi Eliot,
> There are other problems with Transcript besides performance. It is
> easy to break the UI if called at the wrong times. In those cases, it
> is usually needed to kill Squeak from the OS. Besides, it is not
> thread safe.
> Instantly becoming a hero sounds cool, so this is my attempt at it :)
> I only tried this in Cuis, but I believe it should work on Squeak and
> Pharo without much trouble. After loading this code, you can evaluate
> 'Smalltalk at: #Transcript put: NewTranscript'.
> Some good properties of this are:
> - Very fast.
> - Thread safe!
> - Doesn't use Morphic at all. Can be used to debug Morphic itself.
> - Doesn't do delayed execution (no events, no forked processes).
> Immediate visual feedback.
> - Can show itself on Display, log to File, both, or none.
> - Can be used for headless or remote images (for example, web servers).
> Some possible downsides are:
> - Output only. Not a text editor. We have the Workspace and the
> Transcripter for that.
> - No seamless Morphic integration. I'll do one for Cuis, though.
> If no serious problems are found, I'll remove TranscriptStream from
> Cuis, and rename this class as Transcript.
> Juan Vuletich
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Pharo-project