On Friday 02 August 2002 10:28 am, Paul Tremblay wrote:
> On Fri, Aug 02, 2002 at 10:52:49AM +0200, Guenter Milde wrote:
> > (BTW: if you would like to program instead of hacking, switch to
> > python:
>
[clip]
>
> I wonder if I wrote my script in python without using plex, would it run
> slower than perl? Perl is really, really fast with regular expressions.

When writing a Log Analyzer to analyze Troubleshooters.Com's 160MB worth of 
log files I found out just how slow Perl regex can be. By replacing as much 
regex as possible with equivalent split() commands, especially in the inner 
loops, I was able to speed the program manyfold.

>
> Another reason I decided to use perl was that I wanted to make my script
> more universal. It is likely that someone could download my perl script
> off the web and use it one minute later. With a python script, this
> might not be the case, since python is not as popular.

Paul -- the ubiquity of Perl is why I wrote UMENU, EMDLParser, VimOutliner 
and HTMLSlides (all four are GPL) in Perl. Sure, Python's more readable, more 
modular, and much easier to debug. Hey -- we can talk -- it's a better 
language. But like you said, the average HP-UX or Sun box might not have it, 
but will almost certainly have perl.

As I mentioned, I have very little time. But I might be able to help you 
write the XML to LyX converter that comprises the second half of your *full 
style compliance* RTF to LyX converter. It's important everyone realize that 
what you've done is far beyond the usual "dump the styles and keep the 
appearance" conversions of most tools.

Steve

-- 
_____________________________________________________________
Steve Litt
Author: 
  * Troubleshooting Techniques of the Successful Technologist
  * Rapid Learning: Secret Weapon of the Successful Technologist
http://www.troubleshooters.com/bookstore/

Troubleshooters.Com Webmaster 
(Legal Disclaimer) Follow these suggestions at your own risk.
-------------------------------------------------------------



Reply via email to