Tuesday, November 22nd, 2005

haXe Web Language

Category: Builds, Flash, JavaScript

haXe is an open-source programming language supporting portable code across the different web platforms: Ajax, Flash, and server-side. Developer Nicolas Cannasse lists its capabilities:

  • create Flash SWF files using Flash APIs for Players 6,7,8 and soon 8.5.
  • generate Javascript code using Browser DHTML API, so you can create AJAX web applications.
  • generate Neko sourcecode that can be used on the Server side or in standalone executable.

Each of theses platforms have their own API, but they share the same programming language and the same standard library, so if your classes are pure code (using no platform-specific API) then they can be compiled and used everywhere, depending on your needs.

To clarify: haXe isn’t a set of cross-platform widgets and libraries, but is instead a standard syntax for loops, data structures, and so on. Syntax is Java-like:

    class Point {
        public var x : Int;
        public var y : Int;
        public function new() {
            this.x = 0;
            this.y = 0;

Some Ajax apps have business logic (e.g. validation) inside the browser to speed things up, but also have to duplicate the logic in the server, for the sake of security. One way to manage the duplication is with server-side Javascript, but haXe might make a good alternative.

Posted by Michael Mahemoff at 3:41 pm

4.2 rating from 18 votes


Comments feed

Thank you

Comment by merouane — November 23, 2005

[…] Update: There is a brief Ajaxian post on this as well: http://ajaxian.com/archives/haxe-web-language […]

Pingback by thoughts.on.code » a cursory look at HaXe — June 6, 2006

Leave a comment

You must be logged in to post a comment.