News for hackers. Stuff that matters.
Re:CUDA grep by DigitalTurk on Saturday June 01, 2013 @11:10AM (#5804232)
Very nice work!

It seems like this is only fast on large files, though, because the text needs to be copied from the main RAM memory to the GPU, which introduces latency. I wonder what latency would be like if this algorithm was instead run on the kind of unified memory architecture that you see in e.g. the PS2 and XBox One.

Also, I don't quite follow why they're compiling the finite automata on the GPU. To me their explanation that they didn't want to copy the automaton node per node sort of sounds like there's a lot of room for optimization here. E.g. maybe the regular expressions could be compiled to OpenCL code.

Then again, they did also find that pattern matching is a memory bound problem so maybe emitting native code is pointless. Anyone know if there are regular expression engines that compile emit native x86 code?

Re:CUDA grep by dbaupp on Saturday June 01, 2013 @11:19AM (#5804277)
Re:CUDA grep by simonster on Saturday June 01, 2013 @12:18PM (#5804570)
V8, SpiderMonkey, and jsc also all have regular expression JITs.
Re:CUDA grep by bdash on Saturday June 01, 2013 @04:06PM (#5805736)
SpiderMonkey uses JavaScriptCore's regular expression JIT, YARR (Yet Another RegExp Runtime).
Re:CUDA grep by cglace on Saturday June 01, 2013 @03:10PM (#5805467)
I believe pypy also has a regex jit.
Re:CUDA grep by kingkilr on Saturday June 01, 2013 @07:29PM (#5806530)
Yup we do.