News for hackers. Stuff that matters.
Re:Ruby takes 2min to match a regex by kiallmacinnes on Wednesday February 12, 2014 @02:08PM (#7226516)
> Ruby is slow. Dynamic languages often are.

I'm not sure that explains the difference between PHP (for example) and Ruby using the same regex.

PHP: 0.07s

Ruby: 114.95s

Java: 0.75s (I expect the majority of this is once off startup time rather than java being slower than PHP once it's "up".)

Dynamic Languages are slow.. But that? That's something completely broken.

Whether or not it's ruby, his build of ruby, a hoax, or something totally unrelated to Ruby that's causing this 1600x slowdown is up for debate though..

Re:Ruby takes 2min to match a regex by almosnow on Wednesday February 12, 2014 @06:04PM (#7228038)
b-b-but you could express it in any way you'd like, you know like

compute.this.regex.now()

haha! how cool is that! it's like I'm talking with the computer LOL programming is so much fun when you don't have to use those "old languages"