作者:robbin,huixjan 来源:JavaEye 酷勤网收集 2008-04-14
摘要
ruby还不成熟,玩玩还可以,做企业开还发差远了,而且没有大的公司支持,社区管理混乱。相比其他动态语言,我比较看好groovy,类似c,java的语法,学习曲线底,编译成.class,利用java虚拟机成熟的技术,速度不错,而且目前IBM和SAP开始支持。
还在开发版本的ruby 1.9对标准库进行了大量的修改,主要的修改包括:
1、base64库被删除,改用Array#pack和String#unpack来代替
2、增加了CMath库,提高数学运算速度
3、Enumerator已经内建
4、增加了Fiber库,引入了协程编程这种新的并发编程技术
5、jcode被删除,编码信息可以用注释来声明
6、增加了json库
7、SOAP库被删除
8、调用Windows改用了DL库
详细的ChangeLog如下:
1、base64库被删除,改用Array#pack和String#unpack来代替
2、增加了CMath库,提高数学运算速度
3、Enumerator已经内建
4、增加了Fiber库,引入了协程编程这种新的并发编程技术
5、jcode被删除,编码信息可以用注释来声明
6、增加了json库
7、SOAP库被删除
8、调用Windows改用了DL库
详细的ChangeLog如下:
* The base64 library has been removed. Use Array#pack and String#unpack instead.
* Much of the Complex and Rational libraries are now built in to the interpreter. However, requiring the external libraries adds additional functionally. In the case of Rational, this functionality is minimal.
* The CMath library has been added.
* The Enumerator library is now built in.
* Added Fiber library (adds coroutine support to fibers).
* Removed ftools (replaced by fileutils).
* The Generator library has been removed (use Fibers).
* Added notes on using irb from inside applications.
* jcode is removed in favor of built-in encoding support.
* The json library is added.
* The matrix library no longer requires that you include mathn.
* The mutex library is now built in.
* parsedate has been removed. The Date class handles most of its functionality.
* readbytes has been removed. IO now supports the method directly.
* require_relative added.
* Add description of Ripper.
* Add description of SecureRandom.
* I've omitted the shell library, as it seems more like a curiosity than something folks would use (and it's broken under 1.9).
* The soap library is removed.
* I've omitted the sync library. It is broken under 1.9, and the monitor library seems to be cleaner.
* Win32API is now deprecated in favor of using the DL library.
huixjan 2008-04-13 16:26
ruby不能实现的东西太多,所以功能在逐渐增加,复杂性也随之增加,最后只会失去其简洁性。
rails快速开发,做些简单的东西还可以,对于企业级应用还差得远呢,离成熟还远着呢。
关键的问题还在于动态语言的速度,实在让我很难接受,程序做个to_json,10M的数据就要卡3分钟,java做同样的工作只需要2秒,ruby的万次循环时间级别是分级,我测试的速度是万次循环1.3分钟。
还有就是ruby社区,rubyforge上面的项目代码质量太差,而且大部分的项目没有任何存在的意义,简直就是垃圾。
结论,ruby还不成熟,玩玩还可以,做企业开还发差远了,而且没有大的公司支持,社区管理混乱。
相比其他动态语言groovy,我比较看好,类似c,java的语法,学习曲线底,编译成.class,利用java虚拟机成熟的技术,速度不错,而且目前IBM和SAP开始支持。
rails快速开发,做些简单的东西还可以,对于企业级应用还差得远呢,离成熟还远着呢。
关键的问题还在于动态语言的速度,实在让我很难接受,程序做个to_json,10M的数据就要卡3分钟,java做同样的工作只需要2秒,ruby的万次循环时间级别是分级,我测试的速度是万次循环1.3分钟。
还有就是ruby社区,rubyforge上面的项目代码质量太差,而且大部分的项目没有任何存在的意义,简直就是垃圾。
结论,ruby还不成熟,玩玩还可以,做企业开还发差远了,而且没有大的公司支持,社区管理混乱。
相比其他动态语言groovy,我比较看好,类似c,java的语法,学习曲线底,编译成.class,利用java虚拟机成熟的技术,速度不错,而且目前IBM和SAP开始支持。

