introducing haxe
Post on 27-Jun-2015
1.996 Views
Preview:
DESCRIPTION
TRANSCRIPT
what is haXe?
● opensource● programming language● compiler● multi-target! compiling to:
○ Flash(swf)○ AS3○ JS○ PHP○ C++○ Neko○ Java○ C# demo: HaXenstein
haXe programming language
Test.hx
● ECMAScript-like○ similar to AS3/JS
● type system: strong + dynamic● OOP (and FP!)
haXe programming language
Test.hx
● type inference● iterator● generic type
haXe programming language
● inlining● enum● metadata● macros● remoting● ORM (SPOD)● ...
haXe tools
● haXe compiler○ VERY fast○ code-completion API for IDE integration
● haxelib○ opensource library packaging tool○ eg. haxelib install project-name
haXe libraries
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
Jeash
http://jeash.com/ haxelib install jeash
● Flash-API for JS target● using HTML5 (canvas)
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
HxSL
● haXe Shader Language● using haXe macros & metadata● compiles to AGAL for Flash 11● probably compiles to GLSL/HLSL soon● HxSL Studio
FAQ
performance?
● Evaluating spritesheet animations on mobileNME(haXe/C++) vs Corona(Lua) vs Flash/Air(AS3)
● Multi-Language-BenchhaXe/C++ vs C++ vs Java
● AS3 vs haXe performancebenchmark with animated fractal
● More HTML5 & HaXe Speed TestshaXe/JS is faster than plain JS!?
target platform libraries?
● Flash○ RobotLegs (RobotHaxe)○ GTween (GTweenHX)○ Actuate○ Flixel (Flixel-Haxe / HaxeFlixel)○ FlashPunk (HaxePunk)○ CasaLib (CasaHx)
● C++○ wxWidgets(waxe)
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)
IDE?
● FlashDevelop
● FDT
● more...
community?
● mailing list○ top haXe devs
● Twitter○ #haxe
● blogs○ a list of them○ haXe roundup
Question?
top related