Is it possible to compile Ruby to byte code as with Python?

后端 未结 5 808
忘了有多久
忘了有多久 2020-12-08 10:12

In Python, if I want to give out an application without sources I can compile it into bytecode .pyc, is there a way to do something like it in Ruby?

5条回答
  •  抹茶落季
    2020-12-08 10:48

    Not with the MRI interpretter, no.

    Some newer VM's are being worked on where this is on the table, but these aren't widely used (or even ready to be used) at this point.

提交回复
热议问题