rubyomr-preview / ruby

The Ruby+OMR Preview
Other
68 stars 9 forks source link

Unsafe Ruby Code #70

Open mgaudet opened 7 years ago

mgaudet commented 7 years ago

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.

mgaudet commented 7 years ago

Compile fiddle to machine code?