in reply to Smart match & substitution

An infinite number of regexes even when processed "faster than the speed of light" (whatever that may mean) will still take an infinite amount of time and no measure of optimizing it will make the slightest difference.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Smart match & substitution
by LanX (Saint) on Feb 09, 2015 at 19:48 UTC
    Well according to Albert would "faster than light" mean to travel back in time... (at least that's the interpretation of Minkowski diagrams) IIRC...

    Though you should go on diet first, since your mass would become infinite at speed of light, otherwise you'll have your personal episode of big bang theory. ;)

    Cheers Rolf

    PS: Je suis Charlie!

      Yes, indeed. An astute comment! Time will run backwards, but still for an infinite amount of (backwards) time.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics