Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: Benchmarks aren't everything

by Perl Mouse (Chaplain)
on Oct 25, 2005 at 08:55 UTC ( #502648=note: print w/ replies, xml ) Need Help??

in reply to Re: Benchmarks aren't everything
in thread Benchmarks aren't everything

Anyhow, wouldn't it be nice if there was a way do easily choose between different engines?
Yeah, but since there isn't an alternative engine available, and I've never seen anyone attempting to write an alternative regexp engine for Perl, it doesn't make sense to put effort into making switching regexp engines easy.

Write an alternative engine, and I'll bet someone will make a pragma to switch between them. That happened with 'sort' as well. After making merge sort available for Perl, the sort pragma was created.

Perl --((8:>*

Comment on Re^2: Benchmarks aren't everything
Replies are listed 'Best First'.
Re^3: Benchmarks aren't everything
by demerphq (Chancellor) on Oct 25, 2005 at 15:28 UTC

    Write an alternative engine, and I'll bet someone will make a pragma to switch between them.

    Actually afaiui the latter issue is the problem. We already have a framework for "swapping out" the normal regex engine via the use re 'debug'; facility. The problem is that the framework more or less expects the swapped in engine ot behave just the same as the one swapped out. IE, it must set the same globals, and behave in the same quirky way. If this problem could be cleaned up providing an alternative engine would probably be feasable.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://502648]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-11-29 17:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls