Write a game or application once in Haxe and compile it to C++ for desktop and JavaScript for the web at the same time.
Share business logic between a JavaScript frontend and a Python or PHP backend from a single Haxe codebase.
Use Haxe macros to auto-generate repetitive boilerplate code or run static analysis at compile time.
Install third-party libraries via Haxelib and compile them to any supported target without extra work.
Requires installing the Haxe compiler and a target-specific runtime such as Node.js for JavaScript or JDK for Java targets.
Haxe is a programming language and compiler toolkit that lets you write code once and then output it for many different platforms. Rather than targeting one runtime, Haxe can convert your code into JavaScript for websites, C++ for desktop or game applications, C#, Java, Python, PHP, Lua, and several others. This means a developer or team can maintain a single codebase and publish to multiple targets without rewriting the logic for each one. The toolkit has three main parts. The language itself is typed, meaning that variables have defined types that the compiler checks before your code runs, which catches many mistakes early. The compiler performs this translation between Haxe code and each target language. The standard library provides common building blocks that work consistently across all supported targets, so things like string handling, math operations, and data structures behave the same whether you are compiling to JavaScript or C++. Haxe supports a feature called macros that allows code to inspect and modify itself during compilation. This is a more advanced capability, but it enables things like code generation and static analysis that would otherwise require external tools. Installing Haxe is straightforward, with installers and pre-built binaries available for Windows, macOS, and Linux. Building from the source code is also documented for those who want to modify the compiler itself. The project is open source and maintained by the Haxe Foundation. The compiler code uses the GNU General Public License, while the standard library uses the more permissive MIT license. Community support is available through Stack Overflow, an official mailing list, and various chat channels. A package repository called Haxelib provides third-party libraries for common needs.
← haxefoundation on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.