- 浏览: 60772 次
最近访客 更多访客>>
最新评论
-
healer_kx:
Reading~healer.kx~~~~~~~
编译器的书 -
yawl:
"SVM are some of the most ...
classifier算法优缺点 -
coderplay:
SVM有啥优点? 没整过, 只是知道算法是咋回事. 依算法描述 ...
classifier算法优缺点 -
yawl:
我现在在做sentiment analysis的,看这方面的p ...
classifier算法优缺点 -
luven:
好看不重要,关键看创意!
Rails Rumble -- 48小时内完成的131个 application
[Link of this article: http://xruby.blogspot.com/2007/01/xruby-010-released.html]
Today I am glad to announce the release XRuby 0.1.0 , a ruby compiler which compiles ruby script (.rb) to java bytecode (.class). You can download it from here: http://code.google.com/p/xruby/downloads/list
XRuby 0.1.0 is the first release of XRuby. It is able to pass all tests in samples/test.rb - a decent test suite that comes with ruby installation.
As a compiler, XRuby compiles ruby source code so that your program can run on top of Java Virtual Machine. For example, if you have a ruby script like this:
class MyClass
def say_hello_three_times
3.times {puts "hello"}
end
end
MyClass.new.say_hello_three_times
You can compile it with XRuby (assuming its name is test.rb):
>java -jar xruby-0.1.0.jar -c test.rb
The compiler will generate a test.jar. It can be launched as a regular java application, with the following command:
>java -jar test.jar
hello
hello
hello
For your convenience, you can also run the script directly (without -c option), just like the classic ruby interpreter. Under the hood it compiles the script then run the bytecode:
>java -jar xruby-0.1.0.jar test.rb
hello
hello
hello
While little known, this project has been under active development for one year and eight months. I started the project around mid 2005, and it took me about eight months to write a ruby parser with Antlr, and then one year to implement the compiler and runtime. Some people joined me during the second half of 2006 and made great contribution. It is just the beginning of an exciting journey.
We still have a long way to go before claiming XRuby is a very competent alternative implementation of ruby. And comparing with our peers we lag behind in implementing ruby's built-in libraries and do not have Ruby-Java bridge. Our next focus is to improve this situation and make major ruby libraries and framework work under XRuby. And we hope by end of 2007 you can use XRuby to compile your Ruby On Rails application to a .war file and run it directly on a J2EE server.
We appreciate your feedback. Our development maillist is at: http://groups.google.com/group/xruby-devel.
I also setup a new blog to be used as XRuby's team blog: http://xruby.blogspot.com . While new articles will be cross posted for quite a while, I encourage you to subscribe http://feeds.feedburner.com/xruby if have not done so.
Thank you and have fun.
发表评论
-
编译器的书
2008-01-04 01:12 2821有关编译器的书中"Dragon Book" ... -
新的各种ruby实现的性能比较
2007-12-04 06:13 2282Antonio Cangiano今天在blog上更新了各种ru ... -
xruby 0.3.2发布了
2007-11-29 06:00 1563基本和上一个版本(0.3.1)相比变化不大, 大多数都是bug ... -
三周的假期结束了
2007-11-27 20:44 1094用年假回国了一趟。由于时间太短,只在北京和兰州各待了几天。家里 ... -
YAML也要没人维护了
2007-11-05 12:45 1414sishen在xruby mailist提到YAML项目很可能 ... -
Strongtalk项目将无人维护了
2007-11-01 02:05 1976Strongtalk项目的Dave Griswold几天前发了 ... -
和日期相关的库
2007-10-29 22:52 1088上周加入了三个和日期相关的库: time.rb parseda ... -
xruby.googlecode.com
2007-10-23 13:24 1311刚才发现google code最近做了不少改进,其中的就是一个 ... -
复杂的依赖关系
2007-10-19 13:48 1274支持ruby on rails是xruby最重要的目标.我最近 ... -
rails application和web server
2007-10-17 01:31 1419部署到apache/lighthttpd的rails appl ... -
singleton.rb
2007-10-16 00:01 1150上一周的时间,基本上都在争取让xruby能支持singleto ... -
用Jakarta-ORO重写了Regexp
2007-10-10 00:36 2299这个javaeye上的blog本来是利用rss导入做的在国内的 ... -
xruby 0.3.0 released
2007-08-08 05:02 1690I am pleased to announce that X ... -
ruby -y
2007-06-12 15:14 1245For people who are interested i ... -
XRuby 0.2.0 released
2007-05-15 15:15 1171I am glad to announce that XRub ... -
InfoQ article on XRuby
2007-04-17 11:16 907Werner Schuster from InfoQ has ... -
On-Ruby interview
2007-02-19 03:33 1165Pat Eyler recently interviewed ... -
XRuby 0.1.2 released
2007-03-02 05:58 1242XRuby 0.1.2 is now available fo ... -
XRuby is faster than Ruby 1.8.5 in most benchmarks
2007-03-12 03:02 1734Two weeks ago, Antonio Cangiano ... -
Ruby builtin in pure Ruby
2007-03-12 12:50 1529[Update 03/12/2007 If you know ...
相关推荐
标题“5xruby”可能指的是一个与Ruby编程语言相关的项目或者教程,可能是为了介绍或教授如何使用Ruby进行五倍速(高效)的编程。描述中同样提到“5xruby”,但没有提供具体的信息,可能是因为它是项目的简短命名,...
开发指南 软件依赖项 (OS X) $ brew install postgres redis imagemagick pkg-config 设置 $ bundle install $ cp config/application.yml.example config/application.yml $ cp config/database.yml.example ...
做电影Curso Ruby on Rails 5.x-执行本操作安比恩特RVMListar todas无React,无争议$ rvm list known列表$ rvm get headLista作为本地安装人员$ rvm listInstala umaversãoescolhida $ rvm install x.x.x.xRuby,...
dotjs 是一个谷歌扩展,它可根据文件名 ~/.js 来执行 JavaScript ... 而这将会使你很方便地使用 JavaScript 去改进你所喜爱的页面要求OS XRuby 1.8rake (gem install rake)Google Chrome/usr/local/bin in your $PATH
本地安装要求Linux,Unix,Windows或Mac OS XRuby在Unix上安装ruby: yum install ruby (或sudo apt-get install ruby1.9.1 )在Mac OS X上安装ruby: curl -L https://get.rvm.io | bash -s stable --ruby 请访问...
要求Ruby 2.6.3 导轨5.2.3 PostgreSQL 9.4.4安装 $ git clone git@github.com:5xruby/daikichi.git$ cd daikichi# generate key with rake secret$ cp config/secrets.yml.sample config/secrets.yml$ cp config/...