Recent submissions

Comment · 11 years ago
Comment · 11 years ago
You can do Unity with Haxe, but not the other way around, so clearly Haxe > Unity :p
Comment · 12 years ago
We made a cross-platform (Flash, HTML5, Android, iOS) video player for TF1 (first French TV channel, considered the most viewed TV channel in Europe)
Comment · 14 years ago
So ?
Comment · 14 years ago
I put a lighter theme, and increased line spacing a bit
Comment · 14 years ago
Also, IMHO the fact that Haxe looks familiar to people coming from Javascript, ActionScript, or Java is a plus.
Comment · 14 years ago
Well at least it doesn't look like PHP...
Comment · 14 years ago
Actually functions are private by default.

"static function main()" seems to work as an entrance point, though, which makes sense somehow...

Comment · 14 years ago
It could be fun to have a CoffeeScript to Haxe converter, though.
Comment · 14 years ago
Not usually, but I wanted the app to look a bit less "hardcore techie" than the rest of the Haxe evangelism material :)
Comment · 14 years ago
Comment · 14 years ago
Given that a .swc is basically a zipped .swf, this currently depends on runtimes:

- Haxe/Flash supports embedding .swf libraries : http://haxe.org/manual/swc

- NME/C++ (Android, iOS, ...) has partial support for .swf libraries : http://www.joshuagranick.com/blog/2012/02/08/quick-notes-on-...

- NME/HTML5 doesn't seem to support .swf right now, but I think it's being worked out.

Then you have third party tools such as Flump or Flambe to help you: https://github.com/threerings/flump https://github.com/aduros/flambe

Comment · 14 years ago
NME is a library for Haxe.

It basically provides an implementation of the Flash API for the C++ and Javascript targets, besides the SWF target that Haxe offers natively.

It also comes along with tools that allow this generated C++ code to be easily compiled and deployed to Android, iOS, Blackberry and WebOS devices.

So, if you write an app that targets Flash Player using Haxe, you can use NME to deploy to all these targets with no modification to your code.

Comment · 14 years ago
http://try.haxe.org/#655c1

You can compile this example to both Flash and JS online.

If you install Haxe and NME (http://haxenme.org), you can also compile it to iOS, Android, WebOS, BlackBerry, as well as desktop Mac, Windows and Linux binaries.

And these are only the possibilites offered by NME, which is basically a Haxe-based Flash API implementation.

Comment · 14 years ago
Ok, ok, I switched back to monospace...

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton