If your download does not begin automatically please click here.
Thank you for downloading Haxe. If you'd like to support the Haxe Foundation please consider donating to keep our open source efforts thriving.
Get support directly from the Haxe team. The Haxe Foundation offers several support tiers to help with your organization's technical challenges.
Explore our support plansDear Community,
On behalf of the Haxe Foundation, we are proud to announce the official release of Haxe 4.2.0!
Here are the most notable features made into this release:
haxe.Rest
)Haxe 4.2.0 also includes dozens of other additions, optimizations, improvements, and bugfixes.
Check out the changelog below for more information.
If you have any suggestions or run into any problems, absolutely open an issue on GitHub.
Thanks to everyone involved!
New features:
haxe.Rest
type (#9961)sys.thread.Thread.events
(#9868)@:inheritDoc
meta to inherit documentation for a type or field from another type or field (#9817)@:forward.new
(#9735)EIs
constructor to haxe.macro.Expr
(#9689)@:forward.variance
(#9741)Any
as Dynamic
in variance unification (#6649)haxe.exceptions
packageStringTools.unsafeCharAt
(#9467)eval.luv
package (#9903)Int64
and UInt64
implementations under eval.integers
package (#9903)cs.Syntax
module (#10051)-D jvm.dynamic-level
to control the amount of dynamic support code being generated. 0 = none, 1 = field read/write optimization (default), 2 = compile-time method closures--java-lib <directory>
(#9551)General improvements:
expr is SomeType
doesn't require parentheses anymore (#9672)Map
abstract transitive (#9877)@:native
on enum constructors (#9806)@:using
on typedefs (#9749)()->...
instead of Void->...
(#8148)function
as package namephp.Syntax.customArrayDecl
(#9113)sys.thread.Lock
implementationBugfixes:
get
and set
functions of haxe.io.Float64Array
actually use 64-bit floats now (#9972){}
as object declarations in array comprehension (fixes #9971)haxe.format.JsonParser
: preserve Float-typed values when they are written as such in JSON (ie. "5.0" or "0.0") (#9844)cpp.Int64
to/from haxe.Int64
(#10101)@:nativeGen
classes (#9431)-D php-front=subdir/index.php
(#10037)Std.random
(#9974)haxe.CallStack.exceptionStack
(#9968)catch
vars (#9617)haxe.macro.Context.storeTypedExpr
for enum constructs (#9828)haxe.macro.Context.getType
(#9449)Type.resolveEnum
for enums in the root package (#9809)Type.resolveEnumName
for enums in the root package (#9759)@:nullSafety(Off)
on var declarations: var @:nullSafety(Off) v
@:nullSafety(Off)
in closures in constructors (#9643)Now that you've downloaded Haxe, you can get started with a specific platform. Click on a logo to learn how to set up the development environment and how to proceed from there:
For getting started with Haxe, take a look at our introduction, read through the Haxe Manual or look at these use cases for Haxe, including tutorials and popular libraries: