Get the latest tech news

Tiny JITs for a Faster FFI


Can we have a faster FFI for CRuby? Yes.

Now, usually I steer clear of FFI, and to be honest the reason is simply that it doesn’t provide the same performance as a native extension. We’ll compare the FFI implementation with a C extension that does the same thing (using the strlen Ruby Gem that yours truly wrote just for this post). The major feature provided by this extraction is that people will be able to more easily write JIT compilers for Ruby as 3rd party gems.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of FFI

FFI

Photo of tiny jits

tiny jits

Related news:

News photo

Parseback: A pure-Lua introspection library for LuaJIT's FFI ctype objects