Tag Archives: c++

Switched to IMMIX for Internal Garbage Collection

I did a little bit of profiling on the iPhone and found a bit too much time was spent doing garbage collection. The hxcpp runtime has 2 modes – “Boehm GC with explicit statics” and “internal”. The former is from … Continue reading

Posted in hxcpp, iphone | Tagged , , , , | 11 Comments

Haxe, iPhone & C++ At Last

Announcing first official release of c++ on haxe, including Widsows, Mac, Linux and iPhone support. Continue reading

Posted in hxcpp, iphone, neash, nme | Tagged , , , , , | 147 Comments

Haxe on the iPhone – For Real!

To progress this project a bit further, I needed a real device – so I convinced the little woman that an iPod touch would be a good thing to have around. She seems to have taken to it, so now … Continue reading

Posted in hxcpp, iphone, nme | Tagged , , , , , | 24 Comments

A Second Look (iPhone + Haxe)

Once the basics are in place, the rest comes pretty naturally. Just a slight tweak to the MovieClip transformation gets Physaxe doing it’s thing. Performace seems ok-ish in the simulator, not sure how it woud go on the real device.

Posted in hxcpp, iphone, nme | Tagged , , , | 9 Comments

Hxcpp 0.4, NME 0.9, Neash 0.9 Released!

What the flash? What is Hxcpp? Hxcpp is the c++ backend for haxe. This means you can compile haxe code to c++ code, and then compile this to a native executable, for Windows, Linux or Mac. What is NME? NME … Continue reading

Posted in flash, linux, neash, neko, nme | Tagged , , , , | 40 Comments

HXCPP 0.3 Released

I have put together a new version of hxcpp, the c++ backend for haxe. New features include improved coverage of language features. All the unit tests except remoting pass now. I have also cleaned up the ocaml code a bit … Continue reading

Posted in Blog | Tagged , , , | 1 Comment

HXCPP 0.2 – Huge performance increase.

I have switched hxcpp over from using ref-counting to using Boehm garbage collection. I have also added some additional perfromance improvements, such as integer-index field names to make interaction with neko more efficient. The overall result is that for the … Continue reading

Posted in Blog | Tagged , , , , | Leave a comment

Boehm GC, virtual inheritance and finalizers.

I’m trying to get a speedup for the cpp backend for haxe by using garbage collection. Initial results are very promising – potentially about twice as fast. Howerver I spent a good few hours getting the the bottom of a … Continue reading

Posted in Blog | Tagged , , | Leave a comment

C++ backend for haXe

I have just completed an alpha release of a c++ backend for haxe. This means that you can complile haxe code into a 100% compiled executable. You can download the demo file in hxcpp-01.zip. Sorry, windows only at this stage. … Continue reading

Posted in Blog | Tagged , , , , , | 1 Comment