红联Linux门户
Linux帮助

Haxe 3.2.0发布,Web开发语言

发布时间:2015-05-14 09:18:52来源:红联作者:empast
Haxe 3.2.0 发布,此版本主要有以下更新:

新特性:

all : added @:noPrivateAccess to re-enable access restrictions within @:privateAccess

cpp : some support for @:nativeGen metadata

Bug 修复:

all : fixed detection of @:generic classes with constructor constraints

all : fixed variable initialization check issue in loop condition

all : fixed pattern matching on @:enum abstracts via field access (#4084)

all : fixed missing implicit casts in Map literals (#4100)

all : fixed various minor issues in haxe.xml.Parser

all : fixed class path issue when HAXE_STD_PATH is set (#4163)

js : fixed DCE issue related to printing enums (#4197)

js : fixed various issues with the new Bytes implementation

php : fixed EOF handling in FileInput.readByte (#4082)

cs/java : fixed Math.fround implementation (#4177)

cs/java : fixed some cases of Std.parseInt failing (#4132)

cpp : fixed compilation without -main (#4199)

一般优化:

all : --macro keep no longer causes types to be included for compilation

php : support interpolation in php code

js : added variable number of arguments support in js.html.* classes

js : refined new HTML externs

宏功能和变更:

macro : [breaking] synced FClosure and FInstance with the compiler updates

Haxe是一门新兴的开源编程语言,开发者称:“相比其他语言(Java的平台是 JVM,C#的平台是.Net,ActionScript的平台是Flash Player等等),Haxe才是真正的多平台语言。不管是开发原生iOS、Android应用,还是网页;不论是应用于服务器还是个人桌面,Haxe都 可以胜任。”

Haxe分别为Windows、Mac OSX以及Linux安装程序进行打包,当然如果安装包出现问题或者洁癖者也可以进行手工安装。安装包及手动安装指南尽在下载页面。

Haxe能做什么?

使用Haxe开发的程序可以被编译成:

JavaScript:你可以将Haxe程序编译成单一的.js文件,访问DOM APIs并拥有“自动完成”的支持,所有的依赖都在编译时都被搞定了。

Flash:Flash早就放弃移动平台,和桌面平台共存亡了。你可以将Haxe程序编译成一个.swf文件,支持从Flash Player 6到11的所有版本。

NekoVM:将Haxe程序编译成NekoVM字节码,用在服务器相关的程序(比如动态网页),同时也可以用在命令行或者桌面应用中。

PHP:你可以将Haxe程序编译成.php文件。

C++:你可以直接从Haxe源码生成C++的code。NME库使用这项特性在iOS和Android上直接运行Haxe的code。

C#和Java:使用 -java 和 -cs 来生成相应源码

软件详情:http://haxe.org/download/version/3.2.0

下载地址:https://github.com/HaxeFoundation/haxe/archive/3.2.0.zip

来自:开源中国社区
文章评论

共有 0 条评论