国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Ruby > 正文

Java 版的 Ruby 解釋器 JRuby 1.7.14 發(fā)布

2020-10-29 19:44:14
字體:
供稿:網(wǎng)友

JRuby 1.7.14 發(fā)布 ,此版本現(xiàn)已提供下載:

http://www.jruby.org/download

JRuby 1.7 主要是為了兼容 Ruby 1.9.3 版本,改進(jìn)記錄如下:

解決了 30 個(gè) issues

修復(fù)了 Jar 文件源潛在的內(nèi)存泄漏問題

因?yàn)樵?Rails 應(yīng)用啟動(dòng)比較慢,所以默認(rèn)禁用 invokedynamic

load/require 內(nèi)部重構(gòu)和簡化

解決了一些兼容性問題

1.7.14 修復(fù)的 bug:

#1923 - String#start_with? returns false when using an empty string#1905 - Tempfile and deleteOnExit#1899 - Can't call static method on Java 8 interface#1898 - Fix the memory leak and actually close the resources.#1889 - NPE from org.jruby.java.proxies.ArrayJavaProxy.to_a#1888 - native memory leak when reading files from inside a .jar#1859 - JMX tries to double-bind a port when using bundle exec#1858 - JRuby with Java 8 4 to 10 times slower than Java 7#1852 - JRubyClassloader seems to have a problem with file urls pointing to jar ...#1850 - embedded jars do not get loaded#1846 - Fix $LOAD_FEATURES paths for 1.8#1818 - fix ArrayJavaProxy#to_a failure on arrays containing null#1813 - can not load resources from jar anymore with jar uri#1809 - apply minor enebo's comments#1808 - Fix BigDecimal#round behavior with NAN and INFINITY#1805 - Zlib crc improvements#1803 - Fix minor bug in `setNativeEnabled`, and expose it in ScriptingContainer#1802 - Fix Encoding::Converter#inspect output#1799 - mvn -Pall fails at the documentation step#1790 - Make Time#to_r consistent with MRI#1777 - ServerSocket#accept_nonblock returns the server's port, not the client's#1772 - avoid sub-classing ThreadLocal since it will leak in envs such as .wars#1765 - added a java_field method for use in the jrubyc command.#1762 - enhanced the java_class compiler so it can handle multiple constructors#1750 - Refactor LoadService to make use of resources#1729 - no valid struct layout for Ethon::Curl::Slist#1676 - Empty hash optimization#1580 - IO.select raises CancelledKeyException on shutdown#1520 - Date comparison as java objects#1435 - bouncy-castle-java JARs missing when warbling with JRuby 1.7.10

JRuby是面向Ruby、基于Java虛擬機(jī)(JVM)的一種解釋程序,它結(jié)合了Ruby語言的簡易性和功能強(qiáng)大的JVM的執(zhí)行機(jī)制,包括與 Java庫 全面集成。Rails徹底加快及簡化了Web應(yīng)用的開發(fā),不過它讓人覺得不夠成熟,特別是在高端企業(yè)級(jí)功能方面。另一方面,Java平臺(tái)及其虛擬機(jī)、庫和 應(yīng)用服務(wù)器的速度、穩(wěn)定性和功能方面卻一直在提升,現(xiàn)在已被公認(rèn)為是開發(fā)高端服務(wù)器應(yīng)用的領(lǐng)先平臺(tái)。不過如果Java平臺(tái)不與Ruby等新興語言聯(lián)系在一 起,就有可能落后于流行趨勢。

示例代碼:

require "java"include_class "java.util.TreeSet"include_class "com.example.CallMe"include_class "com.example.ISpeaker"puts "Hello from ruby"set = TreeSet.newset.add "foo"set.add "Bar"set.add "baz"set.each { |v| puts "value: #{v}" }cm = CallMe.newcm.hello$globalCM.helloclass CallJavainclude ISpeakerdef initialize super @count = 0enddef say(msg) puts "Ruby saying #{msg}"enddef addOne(from)#  m.synchronize {  @count += 1  puts "Now got #@count from #{from}"#  }endend

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 万宁市| 锡林郭勒盟| 温泉县| 中牟县| 韩城市| 比如县| 通海县| 龙海市| 霍城县| 平顶山市| 广河县| 响水县| 遂宁市| 凤冈县| 金溪县| 阳春市| 郁南县| 晋宁县| 车险| 芒康县| 盱眙县| 广河县| 中牟县| 城口县| 宜黄县| 恭城| 岳西县| 新和县| 海淀区| 南皮县| 图们市| 阿坝县| 新平| 福泉市| 昌乐县| 嘉善县| 陕西省| 社会| 芮城县| 乡城县| 盐边县|