What I'd love is to be able to write ruby implementations of core ruby methods, that can be used to replace C calls for the purposes of inlining.
One way would be to provide an 'unsafe' module similar to sun.misc.unsafe in Java, in order to allow the JIT compiler to generate high quality code for these functions.
What I'd love is to be able to write ruby implementations of core ruby methods, that can be used to replace C calls for the purposes of inlining.
One way would be to provide an 'unsafe' module similar to
sun.misc.unsafe
in Java, in order to allow the JIT compiler to generate high quality code for these functions.Fiddle may provide a good base for this.