Live data from Hacker News

Try Haxe

try.haxe.org

31–40 of 89 posts

Re: Try Haxe

#31
post #25

So, what's a good resource for _learning_ Haxe as opposed to trying it?

Hello misuba, here are some that I have found to be very handy for some projects I have worked on. Hope they are a good start for you, or at least will intice your curiosity.

http://www.haxenme.org/documentation/examples/tutorials/ http://haxe.org/doc http://www.haxejs.org/ http://www.haxenode.org/ http://mikecann.co.uk/personal-project/more-html5-haxe-speed...

If you do have a go, I recommend HaxeNME for it is a framework that will install all you need for Haxe to just "work" straight up and it also adds some cool stuff like mobile compilation targets (webos, ios, android) and HTML5.

You will have to pick a IDE, people go for FlashDevelop and Mono a lot now, but do read through the Haxe or HaxeNME site setup sections for full list. There are lots of add-ons for a lot of IDE's.

For install, start here: http://www.haxenme.org/documentation/setup/

Re: Try Haxe

#32
post #19

Haxe sounds too good to be true. Why would anyone use any of the other game engines out there which are targeted towards the mobile world if they could use Haxe? I see many half-donejavascript frameworks and fully-baked lua frameworks...what do they provide that Haxe doesn't? Can anyone who has done significant Haxe work comment to some of the benefits and drawbacks? I ask as someone in search of a gaming engine whic…

I tried a bunch of different game engines, toolkits, frameworks, languages, etc. for the game I'm working on and the thing that sold me on Haxe was NME. I was able to build for Mac and Flash without changing my code. I simply specified a different target platform at the command line. I haven't built for mobile yet, but I suspect there won't be very many changes to my code when I do.

Also, the Haxe community is full of great hackers and incredibly helpful.

Re: Try Haxe

#33

does anyone know any comparison with similar offerings ("cross native") e.g. Appcelerator?

NME is particularily good in building "Flash-like" applications, so mainly games.

I think Appcelerator is more adapted to applications that want to use native UIs elements (menus, buttons, layouts, etc).

Then you can still write an Appcelerator app using Haxe :) https://github.com/skial/haXe-titanium-desktop

I don't know how/if it's possible to mix both, for example embed a NME app inside an Appcelerator app (besides using UI.WebView and embed it as HTML...)

Re: Try Haxe

#34
post #30
post #14

Earlier quoted context omitted.

Ok, ok, I switched back to monospace...

Out of curiosity do you normally write code in a proportional font?

Not usually, but I wanted the app to look a bit less "hardcore techie" than the rest of the Haxe evangelism material :)

Re: Try Haxe

#35
post #9
post #6

Earlier quoted context omitted.

Hey, it has macros! But it doesn't compile to coffeescript ... yet ... http://haxe.org/manual/macros

What's the point of compiling to CoffeeScript when it compiles to JavaScript ?

I guess it could be useful if you wanted to switch from HAXE to Coffeescript.

Re: Try Haxe

#36
post #19

Haxe sounds too good to be true. Why would anyone use any of the other game engines out there which are targeted towards the mobile world if they could use Haxe? I see many half-donejavascript frameworks and fully-baked lua frameworks...what do they provide that Haxe doesn't? Can anyone who has done significant Haxe work comment to some of the benefits and drawbacks? I ask as someone in search of a gaming engine whic…

I used haxe for all my games(e.g. http://cardinalquest.com/) for over a year now & it's working quite well.

There are some annoying differences between the different targets but it's >99% the same and you can work around the differences.

Re: Try Haxe

#37
post #9
post #6

Earlier quoted context omitted.

Hey, it has macros! But it doesn't compile to coffeescript ... yet ... http://haxe.org/manual/macros

What's the point of compiling to CoffeeScript when it compiles to JavaScript ?

It could be fun to have a CoffeeScript to Haxe converter, though.

Re: Try Haxe

#38
post #34
post #30

Earlier quoted context omitted.

Out of curiosity do you normally write code in a proportional font?

Not usually, but I wanted the app to look a bit less "hardcore techie" than the rest of the Haxe evangelism material :)

The little code box on the front page need more space between lines. Currently they’re right on top of each-other.

Re: Try Haxe

#40
post #17

You lost me at 'public static function main.'

Functions are public by default. You could leave that out.

The main function has to be static and will serve as the entrance point of the program, not the class. So this might just look like too much when in fact this is just a very small code sample.

Did I address some of your concerns, or did I miss the point entirely? Just curious.

Post reply on HN