可移植至 JVM 与 .NET CLR 的脚本语言 - Fantom

openkk 12年前
     <p>Fantom 前身是 (Fan) 是一个基于 Java 和 .NET 平台的编程脚本引擎,用来在运行时产生 JVM 和 .NET 平台的字节码,该语言是面向对象的,跟 Groovy 和 JRuby 有点类似,可通过特定的接口来集成 Java 的类库。</p>    <p>示例代码:</p>    <pre class="brush:java; toolbar: true; auto-links: false;">// Hello from Fantom! class HelloWorld {   static Void main()   {     echo("Hello, World!")   } }</pre>    <p></p>    <div id="bullets">     <p><strong>该语言原名叫:Fan。它具有以特性:</strong></p>     <div id="col1">      <p><strong>可移植性:</strong> 所编写的代码可以移植到Java VM, .NET CLR,和浏览器中的JavaScript </p>      <p><strong>熟悉的语法:</strong>Java 和 C# 程序员会感觉Fantom的语法非常熟悉</p>      <p><strong>并发:</strong>利用内置的不变性和actor模型解决并发性。</p>     </div>     <div id="col2">      <p><strong>面向对象</strong>:所有类都继承自Obj。Value types when you need the performance. </p>      <p><strong>Functional</strong> Functions and closures are baked in. </p>      <p><strong>Static and Dynamic Typing</strong> Don't like the extremes - take the middle of the road. </p>      <p><strong>Serialization</strong> Built-in "JSON like" serialization syntax makes Fantom ideal for declarative programming too. </p>     </div>     <div id="col3">      <p><strong>Elegant APIs</strong> We're quite obsessive about providing all the key features required for a standard library, but with much less surface area than the APIs found in Java or .NET. </p>      <p><strong>REST</strong> URI literals and a unified namespace of resources identified with URIs. </p>     </div>    </div>    <p></p>    <br />    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1325313423405" target="_blank">http://www.open-open.com/lib/view/home/1325313423405</a></p>