- 浏览: 60756 次
最近访客 更多访客>>
最新评论
-
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
I am pleased to announce that XRuby 0.3.0 is released:
http://code.google.com/p/xruby/downloads/list
We have fixed lots of bugs and made significant improvement in the code.
Changes from 0.2.1 to 0.3.0:
1. Use annotation and code generation to bind Java level method to Ruby level method (I will talk more about this later).
2. More unit tests passed. We have not eliminated all test failures in test/ruby. But as most of the failures are caused by the implementation of builtin libraries, we will be able to fixed them soon in 0.4.0.
Changes from 0.2.0 to 0.2.1:
1) Dreamhead optimized method/block calls for methods with zero/one
arguments. It makes our performance even better.
2) ZhangYu improved Java integration significantly, he also created a wiki page with lots of good examples:
http://code.google.com/p/xruby/wiki/JavaIntegration
3) Mechiland and I made more ruby unit tests pass.
The most significant change of 0.3.0 is the using of annotation and code generation to bind Java level method to ruby level method. The idea was inspired by the discussions about Java 5 on jruby's maillist, and dreamhead turned it into reality quickly.
As we know, a Ruby method does a little bit more than a Java method. So if we have a method like this in Java:
I have not used Java 5's annotation feature before, but this looks like an very elegant solution.
Thank everyone who has contributed to this release.
http://code.google.com/p/xruby/downloads/list
We have fixed lots of bugs and made significant improvement in the code.
Changes from 0.2.1 to 0.3.0:
1. Use annotation and code generation to bind Java level method to Ruby level method (I will talk more about this later).
2. More unit tests passed. We have not eliminated all test failures in test/ruby. But as most of the failures are caused by the implementation of builtin libraries, we will be able to fixed them soon in 0.4.0.
Changes from 0.2.0 to 0.2.1:
1) Dreamhead optimized method/block calls for methods with zero/one
arguments. It makes our performance even better.
2) ZhangYu improved Java integration significantly, he also created a wiki page with lots of good examples:
http://code.google.com/p/xruby/wiki/JavaIntegration
3) Mechiland and I made more ruby unit tests pass.
The most significant change of 0.3.0 is the using of annotation and code generation to bind Java level method to ruby level method. The idea was inspired by the discussions about Java 5 on jruby's maillist, and dreamhead turned it into reality quickly.
As we know, a Ruby method does a little bit more than a Java method. So if we have a method like this in Java:
public class RubyString {To turn it (RubyString.to_f) into a Ruby level method, we have to add a few more code to 'wrap' into a class (extends RubyMethod) and 'register' it (defineMethod), e.g:
public RubyFloat to_f() {
...
}
}
public class String_to_f extends RubyNoArgMethod {For every method, we need to write similar code and it is not fun to repeat yourself. In 0.3.0, we no longer have to do this anymore. As as long as you add annotation like this:
protected RubyValue run(RubyValue receiver, RubyBlock block) {
return ((RubyString)receiver).to_f();
}
}
...
RubyRuntime.StringClass.defineMethod("to_f", new String_to_f());
@RubyLevelClass(name="String")XRuby will turn it into a Ruby level method automatically (using ASM to generate Java bytecode).
public class RubyString {
@RubyLevelMethod(name="to_f")
public RubyFloat to_f() {
...
}
}
I have not used Java 5's annotation feature before, but this looks like an very elegant solution.
Thank everyone who has contributed to this release.
发表评论
-
编译器的书
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 1413sishen在xruby mailist提到YAML项目很可能 ... -
Strongtalk项目将无人维护了
2007-11-01 02:05 1974Strongtalk项目的Dave Griswold几天前发了 ... -
和日期相关的库
2007-10-29 22:52 1088上周加入了三个和日期相关的库: time.rb parseda ... -
xruby.googlecode.com
2007-10-23 13:24 1310刚才发现google code最近做了不少改进,其中的就是一个 ... -
复杂的依赖关系
2007-10-19 13:48 1273支持ruby on rails是xruby最重要的目标.我最近 ... -
rails application和web server
2007-10-17 01:31 1418部署到apache/lighthttpd的rails appl ... -
singleton.rb
2007-10-16 00:01 1149上一周的时间,基本上都在争取让xruby能支持singleto ... -
用Jakarta-ORO重写了Regexp
2007-10-10 00:36 2298这个javaeye上的blog本来是利用rss导入做的在国内的 ... -
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 906Werner Schuster from InfoQ has ... -
XRuby 0.1.0 released
2007-01-29 22:32 1264[Link of this article: http://x ... -
On-Ruby interview
2007-02-19 03:33 1164Pat Eyler recently interviewed ... -
XRuby 0.1.2 released
2007-03-02 05:58 1241XRuby 0.1.2 is now available fo ... -
XRuby is faster than Ruby 1.8.5 in most benchmarks
2007-03-12 03:02 1732Two weeks ago, Antonio Cangiano ... -
Ruby builtin in pure Ruby
2007-03-12 12:50 1528[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/...