Mailing List Archive

RE's in Python syntax
Roy Smith wrote:
>
> The thread was moving in the direction of "my program using regex is too
> slow, and I think the solution would be to move regex into the python core
> to make it faster". I was just pointing out why that is flawed reasoning.

But it isn't flawed reasoning. There are many arguments for moving
something into the core and many arguments for keeping something OUT of
the core, and "performance in the hands of a newbie" strikes me as a valid
argument for inclusion. Simplicity of expression is another.

I also completely understand the arguments *against* built-in REs. I
haven't pushed this proposal because I realize that the costs and benefits
are about equal. Had you enumerated the costs I would have agreed and the
thread would be over.

What I read in your message was an attempt to deprecate an entire class of
benefit: performance in the hands of newbies. I personally think that this
is one of the factors that we should continue to try and balance.

--
Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
http://itrc.uwaterloo.ca/~papresco

"Microsoft spokesman Ian Hatton admits that the Linux system would have
performed better had it been tuned."
"Future press releases on the issue will clearly state that the research
was sponsored by Microsoft."
http://www.itweb.co.za/sections/enterprise/1999/9904221410.asp
RE's in Python syntax [ In reply to ]
In article <3725F91D.4F9D6373@prescod.net>,
Paul Prescod <paul@prescod.net> wrote:
> Roy Smith wrote:
> >
> > The thread was moving in the direction of "my program using regex is too
> > slow, and I think the solution would be to move regex into the python core
> > to make it faster". I was just pointing out why that is flawed reasoning.
>
> But it isn't flawed reasoning. There are many arguments for moving
> something into the core and many arguments for keeping something OUT of
> the core, and "performance in the hands of a newbie" strikes me as a valid
> argument for inclusion. Simplicity of expression is another.
>
hear, hear - my thinking exactly - Python is a great language to code in
and like in all languages algorithms matter when you're looking for speed
and efficiency. On the other hand if Python can offer better support (in terms
of speed and efficiency) both newbies and experienced programmers will benefit

Cheers
--
Florent Heyworth

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own