Delay in BBEdit/TextWrangler
The script below prints a list of 34 Burmese characters. I happen to have a font for these but I'm not sure that matters. If I run the script in BBEdit or TextWrangler just after launching the apps, there is a huge delay before the output is printed (up to 15 seconds) but subsequent runs produce no special delay. #!/usr/bin/perl binmode STDOUT, q~:utf8~; for (4096..4129) { $c = chr(); $text .= qq~$_\t$c$/~; } print $text; I get the same sort of behaviour if I run the script in Script Editor or Smile as a shell script, but there is no delay running it in Terminal. Can anyone explain what causes this delay? JD
Re: Delay in BBEdit/TextWrangler
On 2005.12.7, at 04:10 AM, John Delacour wrote: The script below prints a list of 34 Burmese characters. I happen to have a font for these but I'm not sure that matters. If I run the script in BBEdit or TextWrangler just after launching the apps, there is a huge delay before the output is printed (up to 15 seconds) but subsequent runs produce no special delay. First guess is font caching, which is mostly the time to find and load glyphs. It looks like you might be also implicitly invoking the relevant parsing attribute tables, which will also take some time to find and load. #!/usr/bin/perl binmode STDOUT, q~:utf8~; for (4096..4129) { $c = chr(); $text .= qq~$_\t$c$/~; } print $text; I get the same sort of behaviour if I run the script in Script Editor or Smile as a shell script, but there is no delay running it in Terminal. Perhaps this reflects that terminal has advanced quite a bit since jaguar, to the point of pre-loading many of the relevant tables? Perhaps Script Editor and Smile are also loading some sort of run-time interpreter which has to do its own caching of font and parsing tables? Perhaps those two are using Java, maybe? Java does a lot of pre-flight checking both syntax and rudimentary semantics for security purposes. Perhaps they are loading a separate copy of the perl interpreter? Can anyone explain what causes this delay? Good question. JD
Re: Delay in BBEdit/TextWrangler
At 6:41 am +0900 7/12/05, Joel Rees wrote: First guess is font caching, which is mostly the time to find and load glyphs. It looks like you might be also implicitly invoking the relevant parsing attribute tables, which will also take some time to find and load. It's interesting (to me) that if I go for Korean characters rather than Burmese, there is no appreciable delay. It seems some sort of obstacle exists in the way of finding the necessary font/glyphs. #!/usr/bin/perl binmode STDOUT, q~:utf8~; ###for (4096..4129) { for (44032..44066) { $c = chr(); $text .= qq~$_\t$c$/~; } print $text; I'll try to narrow it down by testing with various runs of characters. JD
Re: TextWrangler
Joel Rees wrote: While we're playing around with Editor Wars... there's no need for that sort of language... Boy,, there's nothing like a good old-fashioned editor war! But this one doesn't seem to have much punch to it. More like a dust devil than a cyclone. Vim. http://danconia.org
Re: TextWrangler
something. Won't be until I can afford panther (or tiger?) and some more RAM, though. That, or until I can find a proper download for the libraries for the old X11 beta. Couldn't find them last I looked. Maybe this helps: http://xonx.sourceforge.net/ Stephan
Re: TextWrangler
At 9:34 pm -0800 20/1/05, Chris Nandor wrote: I think the only thing it cannot do that BBEdit does -- from what I can tell -- is that it doesn't talk directly to Affrus (the perl debugger for Mac OS X), like BBEdit can. There is an option in Preferences/UNIX scripting to use Affrus for debugging. If you've always liked BBEdit for perl development, but didn't want to buy it, then now's your chance. I downloaded TW just over a week ago and have practically lived in it ever since. I very rarely get hooked on a piece of software and I have found BBEdit over the years rather unsatisfactory and behind the times. Now with BBE 8 and TextWrangler at last handling Unicode properly I am delighted with them. TW 2.0 is brilliant. At 11:44 pm -0800 20/1/05, Randal L. Schwartz wrote: Oh, just like Carbonized Emacs? :-) I think most of us sandal-wearing new-age Mac users would prefer a carbonized beefsteak :-) JD
Re: TextWrangler
On Jan 21, 2005, at 4:45 AM, John Delacour wrote: At 9:34 pm -0800 20/1/05, Chris Nandor wrote: I think the only thing it cannot do that BBEdit does -- from what I can tell -- is that it doesn't talk directly to Affrus (the perl debugger for Mac OS X), like BBEdit can. There is an option in Preferences/UNIX scripting to use Affrus for debugging. See http://www.barebones.com/products/bbedit/threeway.shtml for a 3-way comparison between BBE, TW, and BBELite. -Ken
Re: TextWrangler
On 21 Jan 2005, at 06:17, Bruce Van Allen wrote: On 2005-01-21 John Horner wrote: At 9:34 PM -0800 20/1/05, Chris Nandor wrote: it handles all the same Perl stuff as its bigger sibling: syntax coloring, running scripts, filters, debugging, viewing POD, etc. How does BBEdit view POD? I never knew about that. Open a Perl script or module in BBE or TW, and check the #! menu. ...then open BBEdit Set Menu Keys, assign 'command-/' to 'Find in Reference', highlight the function whose syntax you can't quite remember and hit the button... will
Re: TextWrangler
At 07:10 AM 1/21/2005, Ken Williams wrote: See http://www.barebones.com/products/bbedit/threeway.shtml for a 3-way comparison between BBE, TW, and BBELite. While we're playing around with Editor Wars... Visual Slick Edit v9 from http://www.slickedit.com/mac/ will run on OS X. -Jeff Lowrey
Re: TextWrangler
On 21 Jan 2005, at 12:35, Jeff Lowrey wrote: At 07:10 AM 1/21/2005, Ken Williams wrote: See http://www.barebones.com/products/bbedit/threeway.shtml for a 3-way comparison between BBE, TW, and BBELite. While we're playing around with Editor Wars... there's no need for that sort of language... Visual Slick Edit v9 from http://www.slickedit.com/mac/ will run on OS X. aaargh! that was horrible. 50MB download (50MB! Quark 3.3! one floppy! etc!), only runs under X11 (so you can't even paste in the extremely long temporary license key unless you save it somewhere and open it in an xterm). its interface reminds me of Windows 1.0 and it keeps offering to bind my java. actually, to come back to the topic, it looks like it might be a pretty good IDE for compiled and linked projects but it doesn't seem to have anything to do with perl, nor much with os x either. will
Re: TextWrangler
On 2005.1.21, at 11:38 PM, William Ross wrote: On 21 Jan 2005, at 12:35, Jeff Lowrey wrote: At 07:10 AM 1/21/2005, Ken Williams wrote: See http://www.barebones.com/products/bbedit/threeway.shtml for a 3-way comparison between BBE, TW, and BBELite. While we're playing around with Editor Wars... there's no need for that sort of language... Boy,, there's nothing like a good old-fashioned editor war! But this one doesn't seem to have much punch to it. More like a dust devil than a cyclone. Visual Slick Edit v9 from http://www.slickedit.com/mac/ will run on OS X. aaargh! that was horrible. 50MB download (50MB! Quark 3.3! one floppy! etc!), only runs under X11 (so you can't even paste in the extremely long temporary license key unless you save it somewhere and open it in an xterm). its interface reminds me of Windows 1.0 and it keeps offering to bind my java. actually, to come back to the topic, it looks like it might be a pretty good IDE for compiled and linked projects but it doesn't seem to have anything to do with perl, nor much with os x either. I have to admit, I'm more likely to download that now than I would have been just from Jeff's comments. An rgh! has to rate something. Won't be until I can afford panther (or tiger?) and some more RAM, though. That, or until I can find a proper download for the libraries for the old X11 beta. Couldn't find them last I looked. Oh, and thanks for letting us know about TW going free, Chris. I've always liked BBEdit, myself, almost as much as the CodeWarrior editor. (Talk about twisted tastes.) -- Joel Rees Opinions are like armpits. We all have two, and they all smell, but we really don't want the other guy to get rid of his.
TextWrangler
For those who haven't seen, TextWrangler 2.0 -- which is basically a slightly stripped-down version of BBEdit, without HTML tools and some other things -- is now available, and free. Free, as in beer. And it handles all the same Perl stuff as its bigger sibling: syntax coloring, running scripts, filters, debugging, viewing POD, etc. http://www.barebones.com/products/textwrangler/ I think the only thing it cannot do that BBEdit does -- from what I can tell -- is that it doesn't talk directly to Affrus (the perl debugger for Mac OS X), like BBEdit can. If you've always liked BBEdit for perl development, but didn't want to buy it, then now's your chance. -- Chris Nandor [EMAIL PROTECTED]http://pudge.net/ Open Source Development Network[EMAIL PROTECTED] http://osdn.com/
Re: TextWrangler
At 9:34 PM -0800 20/1/05, Chris Nandor wrote: it handles all the same Perl stuff as its bigger sibling: syntax coloring, running scripts, filters, debugging, viewing POD, etc. How does BBEdit view POD? I never knew about that.
Re: TextWrangler
On 2005-01-21 John Horner wrote: At 9:34 PM -0800 20/1/05, Chris Nandor wrote: it handles all the same Perl stuff as its bigger sibling: syntax coloring, running scripts, filters, debugging, viewing POD, etc. How does BBEdit view POD? I never knew about that. Open a Perl script or module in BBE or TW, and check the #! menu. This might require that your settings recognize Perl files by .pl, .pm, .plx, etc., under Preferences - Languages. - Bruce __bruce__van_allen__santa_cruz__ca__
Re: TextWrangler
Chris == Chris Nandor [EMAIL PROTECTED] writes: Chris And it handles all the same Perl stuff as its bigger sibling: syntax Chris coloring, running scripts, filters, debugging, viewing POD, etc. Oh, just like Carbonized Emacs? :-) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 merlyn@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!