How to compile Ruby?

后端 未结 7 1925
青春惊慌失措
青春惊慌失措 2020-12-13 14:22

Is there a tool that can allow me to compile Ruby code so that it runs somewhat faster?

For example, I have heard that there is a tool for Python called \"pyc\" tha

相关标签:
7条回答
  • 2020-12-13 14:46

    I know this is an old question but I found a very interesting project that may provide an answer to your question: http://crystal-lang.org/

    It basically compiles Ruby to native machine code. That's not exactly true because Crystal is not exactly Ruby and you might have to make some modifications to your code. There are also libraries that are not supported (yet) but to me it all looks very promising.

    0 讨论(0)
提交回复
热议问题