Re: perfomance and regular expressions

2002-04-03 Thread Jochen Kaiser
On Fri, Mar 29, 2002 at 09:21:03PM +0500, Ilia Chipitsine wrote: Dear Sirs, I'm currently implementing a program which will run thousands and thousands times. It uses regular expressions. hi Port: re2c-0.9.1 Path: /usr/ports/devel/re2c Info: Compile regular expression to C (much

Re: perfomance and regular expressions

2002-03-30 Thread Terry Lambert
Gary W. Swearingen wrote: Terry Lambert [EMAIL PROTECTED] writes: Gary W. Swearingen wrote: Anybody know any languages that allow compile-time (and/or link-time) computations using (most of?) the same language? I've often desired the feature. (I suppose some preprocessor like m4

Re: perfomance and regular expressions

2002-03-30 Thread Wilko Bulte
On Sat, Mar 30, 2002 at 01:39:14AM -0800, Terry Lambert wrote: Gary W. Swearingen wrote: Terry Lambert [EMAIL PROTECTED] writes: Gary W. Swearingen wrote: Anybody know any languages that allow compile-time (and/or link-time) computations using (most of?) the same language? I've

Re: perfomance and regular expressions

2002-03-30 Thread Gary W. Swearingen
Terry Lambert [EMAIL PROTECTED] writes: Don't they teach History of Computing to people any more?!? They didn't offer it to me when I was studing for my BSEE in the 70s. (And I haven't been paying nearly as much attention as you have.) I hate to think what my alma mata is teaching for HoC

Re: perfomance and regular expressions

2002-03-30 Thread Wilko Bulte
On Sat, Mar 30, 2002 at 10:22:37AM -0800, Gary W. Swearingen wrote: Terry Lambert [EMAIL PROTECTED] writes: Don't they teach History of Computing to people any more?!? They didn't offer it to me when I was studing for my BSEE in the 70s. (And I haven't been paying nearly as much

Re: perfomance and regular expressions

2002-03-30 Thread Terry Lambert
Gary W. Swearingen wrote: Terry Lambert [EMAIL PROTECTED] writes: Don't they teach History of Computing to people any more?!? They didn't offer it to me when I was studing for my BSEE in the 70s. (And I haven't been paying nearly as much attention as you have.) I hate to think what my

perfomance and regular expressions

2002-03-29 Thread Ilia Chipitsine
Dear Sirs, I'm currently implementing a program which will run thousands and thousands times. It uses regular expressions. something really simple, like regex_t re; regcomp(re,^[0123456789abcdefghijklmnopqrstuvwxyz]{1,8}$, REG_EXTENDED+REG_ICASE);

Re: perfomance and regular expressions

2002-03-29 Thread Lars Eggert
Ilia Chipitsine wrote: I'm currently implementing a program which will run thousands and thousands times. It uses regular expressions. something really simple, like regex_t re; regcomp(re,^[0123456789abcdefghijklmnopqrstuvwxyz]{1,8}$,

Re: perfomance and regular expressions

2002-03-29 Thread Terry Lambert
Ilia Chipitsine wrote: I'm currently implementing a program which will run thousands and thousands times. It uses regular expressions. something really simple, like regex_t re; regcomp(re,^[0123456789abcdefghijklmnopqrstuvwxyz]{1,8}$,

Re: perfomance and regular expressions

2002-03-29 Thread Gary W. Swearingen
Terry Lambert [EMAIL PROTECTED] writes: That said, if you feel a moral imperative to save and load precompiled regular expressions. you can do it by serializing the structure contents to disk, and then reading them back in. It'd be best to use Terry's single process idea, but if I was going

Re: perfomance and regular expressions

2002-03-29 Thread Terry Lambert
Gary W. Swearingen wrote: Anybody know any languages that allow compile-time (and/or link-time) computations using (most of?) the same language? I've often desired the feature. (I suppose some preprocessor like m4 could handle some of it.) LISP. Forth. Smalltalk. Prolog. BASIC. Oh

Re: perfomance and regular expressions

2002-03-29 Thread Gary W. Swearingen
Terry Lambert [EMAIL PROTECTED] writes: Gary W. Swearingen wrote: Anybody know any languages that allow compile-time (and/or link-time) computations using (most of?) the same language? I've often desired the feature. (I suppose some preprocessor like m4 could handle some of it.)