SciRuby / rubex

rubex - A Ruby-like language for writing Ruby C extensions.
BSD 2-Clause "Simplified" License
451 stars 21 forks source link

JIT for Rubex? #3

Closed lokeshh closed 7 years ago

lokeshh commented 7 years ago

Rubex complements Ruby. Is there a reason why it can't replace Ruby? Because wouldn't it be great if we can make it act like JIT (just in time) compile. This way we can retain advantage of interpreter and performance of compiler at same time.

v0dro commented 7 years ago

You're missing the point of Rubex. Its a language that compiles to C and interfaces with the CRuby interpreter using the CRuby C API. The purpose is to make it easier to write C extensions, something like Cython for Python.

lokeshh commented 7 years ago

Yeah I see it now. BTW I tried it with fibonnaci example. It is way faster and also easy to use! Finally I will be able to do competitive programming in Ruby. Cheers!