12/22/2006

Rubinius :又是另一個 Ruby VM

Ruby VM 已經夠多了,但是沒一個夠力的。本來 YARV 看起來還蠻有希望的,但是現在似乎 Ruby 1.9/2.0 不會支援 YARVjRuby 可能是最有機會成功的,但是受到 SUN 力量的牽制,還是會令某些人感到不好(我是不會啦)。

這時候出現 Rubinius 了。為什麼需要 Rubinius呢?

Why?: I believe that the future of the ruby core is in a simple core and a simple architecture that is easy to modify. Rubinius goes to vast lengths to keep the core parts as simple as possible. Because in the end, it shouldn’t just be me and a few core developers who can dive into the core and change things. I want it to grow and flourish in the hands of everyone, and I believe the only way to do that is to build in that virtue from the beginning.
並且他將目標放在兩個重要的地方上面,bytecode and native threads。他可以將 .rb 的檔案編譯成 .rbc 的 bytecode 檔案,所以有了 code 加密的過程,或許可以增加不少商業公司開發 Ruby 程式碼的意願。

但是話說回來,我還是比較看好 jRuby ,但是越多 VM 選擇應該是越好。

延伸閱讀


沒有留言: