News for hackers. Stuff that matters.
Re:Rob Pike on regular expressions in lexing and parsing by dlsspy on Tuesday August 23, 2011 @04:23AM (#2915831)
> However, for the most part, the "efficiency" argument is off base. You can COMPILE regular expressions into tight code.

When I started programming ocaml, I was surprised to find no string primitives for things like split, find, etc... There was only regex. I didn't want to write a regex for doing a simple find or split, so I wrote a string library for my programs. My string library was consistently 4x faster than regex and did only exactly what I wanted.

There are no comments on this comment yet.