Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Java does fail pathologically

by emcmanus (Initiate)
on Nov 21, 2005 at 09:24 UTC ( #510401=note: print w/replies, xml ) Need Help??


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

I tried matching "^(\\s*foo\\s*)*$" against 39 "foo "s followed by a "fo" and java.util.regex.Pattern.matches does indeed go off into recursive space never to re-emerge.

Personally I think it would be acceptable for Java to throw an exception after some bounded amount of effort in matching. Especially given that Perl's new algorithm can't catch all the pathological cases.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://510401]
help
Chatterbox?
[LanX]: "Sauron VS Voldemort - Epic Rap Battle" on youtube? (Italian)
chacham thinks fizz-keeper cap gets me all pumped up
LanX brain hurts
[chacham]: Voldermort probably just lip synced. He always gets everyone else to do his dirty works.
[holli]: Einstein vs. Hawking is better. But ERB in general is hilarious.
[karlgoethebier]: Immigrant Song
LanX defects o/
[chacham]: the caption translatio doesn't help either
[Your Mother]: karlgoethebier++
[karlgoethebier]: Keith Richards was right: Rap Is for 'Tone-Deaf People'

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-12-13 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (373 votes). Check out past polls.

    Notices?