3 ms·
Speaking of C APIs, JRuby+Truffle is going all-out: > Our new solution in JRuby+Truffle is pretty radical - we're going to interpret the C source code of your
by Freaky 12y ago
Speaking of C APIs, JRuby+Truffle is going all-out:
> Our new solution in JRuby+Truffle is pretty radical - we're going to interpret the C source code of your extension. We use the same high performance language implementation framework, Truffle, and dynamic compiler Graal, to implement C in the same way as we have implemented Ruby.
http://www.chrisseaton.com/rubytruffle/cext/ http://www.chrisseaton.com/rubytruffle/cext/
- omaranto 12y agoAnd it seems that even though their C implementation is not as fast as compiled code from, say, GCC would be, the mix of Ruby and C can run faster than using compiled C extensions from another Ruby implementation! This is due to cross-boundary optmization opportunities. Cool stuff!
- btown 12y agoI wonder if a Python JIT could do the same thing... Has anyone thought about this? It seems that since Dropbox's Pyston uses LLVM, it would be a perfect fit. https://github.com/dropbox/pyston https://github.com/dropbox/pyston
- simcop2387 12y agoThat would be pypy largely. From what I've seen it's got the biggest backing of the community and tends to be really fast computer to other interpreters.