News for hackers. Stuff that matters.
Re:All Software is Legacy by sgift on Sunday February 28, 2016 @04:05AM (#11190396)
You've made me curious: Is there a language out there which does this, i.e. compiles Regex down to native code which is then as fast/faster than hand-coded bytes.hasSuffix(..) calls?
Re:All Software is Legacy by nitrogen on Sunday February 28, 2016 @05:19AM (#11190561)
I found this with a bit of searching and clicking around on Stackoverflow: https://www.colm.net/open-source/ragel/ (via http://stackoverflow.com/a/15608037).

I didn't look long enough to know if there's an easy way to convert a regular expression to Ragel syntax.