Successfully reported this slideshow.

Introducing haXe

2

Share

Upcoming SlideShare
SM2702 Tut1 (week2)
SM2702 Tut1 (week2)
Loading in …3
×
1 of 18
1 of 18

Introducing haXe

2

Share

Download to read offline

Introducing haXe, the opensource multi-target language at Software Freedom Day 2011, Hong Kong

alt url: https://bit.ly/sfdhk-haxe

Introducing haXe, the opensource multi-target language at Software Freedom Day 2011, Hong Kong

alt url: https://bit.ly/sfdhk-haxe

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Introducing haXe

  1. 1. Introducing haXe Software Freedom Day HK 2011 Andy Li blog.onthewings.net
  2. 2. what is haXe? ● opensource ● programming language ● compiler ● multi-target! compiling to: ○ Flash(swf) ○ AS3 ○ JS ○ PHP ○ C++ ○ Neko ○ Java ○ C# demo: HaXenstein
  3. 3. haXe programming language Test.hx ● ECMAScript-like ○ similar to AS3/JS ● type system: strong + dynamic ● OOP (and FP!)
  4. 4. haXe programming language Test.hx ● type inference ● iterator ● generic type
  5. 5. haXe programming language ● inlining ● enum ● metadata ● macros ● remoting ● ORM (SPOD) ● ...
  6. 6. haXe tools ● haXe compiler ○ VERY fast ○ code-completion API for IDE integration ● haxelib ○ opensource library packaging tool ○ eg. haxelib install project-name
  7. 7. haXe libraries
  8. 8. NME http://www.haxenme.org/ haxelib install nme ● Neko Media Engine ● Flash-API for C++/Neko target ● desktop ○ Windows ○ Mac ○ Linux ● mobile ○ iOS ○ Android ○ WebOS
  9. 9. Jeash http://jeash.com/ haxelib install jeash ● Flash-API for JS target ● using HTML5 (canvas)
  10. 10. hxOpenFrameworks http://github.com/andyli/hxOpenFrameworks haxelib install hxOpenFrameworks ● openFramework binding for C++ target ● for creative coding, eg. generative art, installation art ● desktop only at the moment ○ Windows ○ Mac ○ Linux
  11. 11. HxSL ● haXe Shader Language ● using haXe macros & metadata ● compiles to AGAL for Flash 11 ● probably compiles to GLSL/HLSL soon ● HxSL Studio
  12. 12. FAQ
  13. 13. performance? ● Evaluating spritesheet animations on mobile NME(haXe/C++) vs Corona(Lua) vs Flash/Air(AS3) ● Multi-Language-Bench haXe/C++ vs C++ vs Java ● AS3 vs haXe performance benchmark with animated fractal ● More HTML5 & HaXe Speed Tests haXe/JS is faster than plain JS!?
  14. 14. target platform libraries? ● Flash ○ RobotLegs (RobotHaxe) ○ GTween (GTweenHX) ○ Actuate ○ Flixel (Flixel-Haxe / HaxeFlixel) ○ FlashPunk (HaxePunk) ○ CasaLib (CasaHx) ● C++ ○ wxWidgets(waxe)
  15. 15. target platform libraries? ● JS ○ jQuery (both as 3rd party and core) ○ Dojo Toolkit (bdog-dojo) ○ Modernizr (haXe-modernizr) ○ Node.js (bdog-node) ○ Titanium (desktop / mobile) ○ RaphaëlJS (raphaelExtern)
  16. 16. IDE? ● FlashDevelop ● FDT ● more...
  17. 17. community? ● mailing list ○ top haXe devs ● Twitter ○ #haxe ● blogs ○ a list of them ○ haXe roundup
  18. 18. Question?

×