This is a comparison of Skew (http://skew-lang.org) to Haxe (http://haxe.org). Skew is a programming language I've been working on. Haxe is a great language and ecosystem but the JavaScript code that the Haxe compiler generates isn't as good as it could be and the language itself could be better. Here's a quick list of some things that Skew is better at:
Things the Skew compiler has that Haxe doesn't:
Actual integers (Haxe uses doubles)Haxe hashaxe.Int32
- Automatic inlining (Haxe needs "inline" everywhere)
Dead code elimination (the Haxe compiler emits unused inlined getters)Haxe has a DCE- Property minification (must manually specify minified names with @:native in Haxe)
- Comment preservation (the Haxe compiler strips all comments from the debugging output)
Local constant folding (can't specify a local variable as "inline" in Haxe)Haxe has an static analyzerSmaller output (7x in this case, 2.8x with minification using uglify)
Things the Skew language has that Haxe doesn't:
- Function overloading
- Top-level functions
- Much lighter syntax
Obviously Skew has a long way to go, but it's just getting started and it already generates much better JavaScript than Haxe!