Programming language: With Haxe 4.1, the JVM becomes the official target platform


The programming language Haxe (also haXe) has been released in version 4.1. The new language release follows version 4.0, which was released in October 2019. With this version, the JVM transpilation (Java Virtual Machine) is no longer considered experimental; Java as the target platform is now equivalent to others such as JavaScript, PHP and C ++. This means that Haxe code can be converted into Java bytecode, without the detour via the Java compiler javac. Apparently the implementation has been so successful that Java as a target platform also does very well in many aspects of performance and can probably compete with the other platforms.

Furthermore, the developers have revised the handling and handling of exceptions. For this, the haxe.Exception-Class introduced to standardize the handling of exceptions. In addition, Haxe's own interpreter Eval can now also establish SSL connections. The SSL library Mbed TLS was integrated for this. Since Eval is also used to execute macros, this new feature can also be used from macros.

Finally, tail recursion elimination replaces a form of recursive function calls from the compiler with a loop-based variant. Developers no longer have to worry about laboriously performing manual rewrites in a loop – with the result that code may be easier to read and maintain, and at the same time it remains performant.

More information about the new release and what is planned for next is available in the Announcement of the Haxe developers.

The language, which is designed for cross-platform development of games and web applications, offers options to output source code directly for JavaScript, PHP, C ++ and now officially for Java. It has powerful remoting, i.e. the ability to send objects and method calls to other systems, which is why it has already been called the universal web-oriented language.

It is syntactically based on JavaScript or ActionScript and Java, but also includes its own syntax elements. The language compiler is licensed under GPLv2, and the libraries supplied are licensed under the MIT license.

The creator of Haxe (also haXe) is Nicolas Cannasse, who is also the co-founder of the French company Motion Twin, which originally worked as an expert for flash-based websites and games and continues to work in the field of online video games. Become a user on Wikipedia Called BBC, Coca-Cola, Disney, Hasbro, Mattel, Nickelodeon, Prezi, TiVo, Toyota and Zynga


. (tagsToTranslate) JVM (t) Java Virtual Machine (t) Programming Languages ​​(t) haXe