News for hackers. Stuff that matters.
Re:Ruby is too slow for programming competitions by danking00 on Sunday April 21, 2013 @04:56PM (#5586380)
Seconded.

I recently wrote a image searching program (find a set of images as sub-images in another set of images) and I wrote most of it in Racket (Scheme dialect). I wrote the inner loop to calculate the correlation matrix in C and made an FFI call.

I'm not familiar with Ruby's FFI, but I found making FFI calls dead simple in Racket.

Re:Ruby is too slow for programming competitions by pak on Sunday April 21, 2013 @05:20PM (#5586446)
FFI is also dead simple in Ruby.

https://github.com/ffi/ffi

It's pretty much `gem install ffi` and off you go. I've used a Ruby gem [1] that talks to a hashtable storage library via FFI and found it perfectly stable.

[1] https://github.com/jmettraux/rufus-tokyo