- 授权协议: 未知
- 开发语言: Java Ruby
- 操作系统: 跨平台
- 软件首页: http://www.mirah.org/
软件介绍
Mirah,又叫做Duby,又一个基于JVM平台的静态类型语言,它拥有Ruby一样的语法的同时,且拥有Java般的速度。他是由JRuby衍生出来的项目,旨在让Ruby能更进一步的沁入JVM平台。
Mirah(Duby)的特性:
- Ruby的语法
- 可编译为.class或.java
- 拥有Java般的速度
代码示例1:
import java.util.Collectionsimport java.util.ArrayListlist = ArrayList.new [9,5,2,6,8,5,0,3,6,1,8,3,6,4,7,5,0,8,5,6,7,2,3]puts "unsorted: #{list}"Collections.sort(list) {|a,b| Integer(a).compareTo(b)}puts "sorted: #{list}"
代码示例2:
import "java.lang.System"def foohome = System.getProperty "java.home"System.setProperty "hello.world", "something"hello = System.getProperty "hello.world"puts homeputs helloendputs "Hello world!"foo
Mirah的设计原则:
- 平台无关
- 摆脱对后端类型系统的具体决定
- 代码生成,或其他细节由外部语言确定
- 没有运行时的依赖库
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
在线进制转换器
各进制数互转换器
