Vulgarum programum : what is haXe ?

2006-07-21 by Laurent Bedubourg Haxe

haXe is a recent programming language which can target the following platforms :

  • standalone executable : haXe can create an executable for your operating system (windows, linux, mac Os, ...)
  • neko bytecode : much like java .jar files, you can execute this bytecode using the nekovm executable, shipped with any decent haXe installation, as a regular program or using mod_neko on your apache web server (yes, I mean a Web application),
  • Flash SWF, instead of coding in ActionScript, you program in haxe and create an SWF linked with the gfx you like,
  • Javascript, you program in haxe and haxe creates a ready to use .js file you can integrate in your web application

HaXe is strongly typed, but using type inference it can detect by itself which is the type of your variables. Thus you don't have to type every variable you are declaring.

Because haxe acts as a compiler, it will detect syntax errors or type errors. This is immediate and will save you many little syntax bugs PHP, Python, or Perl programmers encounter everyday.

Of course, haXe supports nearly every OO features you can dream of (and more) :

  • packages, class, interfaces, typedefs, structures
  • statics, private, public, protected, override,
  • getters, setters,
  • exceptions,
  • extended enums (not C int enums),
  • generic programming (C++/java/C# templates)
  • ...

You will quickly feel comfortable with haXe because its syntax is between the usual java and ecma syntax.

Least but not the last, haXe comes with enough library to create almost any application and this library base is growing quickly !

The haXe compiler is a GPL program available for windows, linux, macOs, ...

Links :

Comments

Already love haxe - but still don't know how to use it to create standalone apps - where is this documented?
Posted by Axel , 2007-10-24 17:10:14

Post a comment

On this blog comments are pre-moderated. Your comment will only appear after the blog owner validates it.
Please enter 4424 here.
hXblog engine Haxe Powered Rss flux Valid XHTML 1.0 Valid CSS