Regex DNA benchmark

bearophile bearophileHUGS at lycos.com
Sat Dec 1 06:56:48 PST 2007


Jascha Wetzel:
> i will do some polishing soon, in order to make it useful as a library and do 
> some benchmarking. i'm pretty confident that it can improve on that 
> shootout-benchmark, not only because it can compile regexps to D code.

- Regarding the Shootout I don't know how much useful it can be, because that site accepes only a really limited number of external libs, and generally accepts only a single sourcecode (maybe your code spits out D code that can be inserted in a single D sourcecode, but I don't know if the Shootout site accepts that).
- Regarding the compilation to D code, does it work only at compile time? Or does it call DMD at runtime?
- Regarding the generation of normal code, that later can be compiled, time ago I have found this, to use REs in the lwc compiler:
http://students.ceid.upatras.gr/~sxanth/lwc/ex15.html
- There are TONS of open source RE engines around (the RE of TCL is very fast). I presume we can find one of them with a license fit for D, so we can just copy it into the std lib of D without writing yet another (slow, buggy, limited, etc) one.

Bye,
bearophile



More information about the Digitalmars-d mailing list