Re:OpenFL: a hardware-accelerated cross-platform reimplement...
by m0th87 on Wednesday June 03, 2015 @05:06PM
(#9655855)
How does Haxe manage impedance mismatches between it and so many target languages? I've never heard of anything pulling that off successfully. Maybe Eiffel? But then, who uses Eiffel?
[ Parent
| on HN ]
Re:OpenFL: a hardware-accelerated cross-platform reimplement...
by larsiusprime on Wednesday June 03, 2015 @05:15PM
(#9655923)
Another thing is the Haxe standard library, which guarantees certain features across all targets, including features that aren't normally available (like, say, Reflection in C++, if I understand correctly). If the feature is natively available, it falls through to the native implementation, if not, on that target the standard library provides enough code to enable the feature.
Re:OpenFL: a hardware-accelerated cross-platform reimplement...
by duaneb on Wednesday June 03, 2015 @05:14PM
(#9655914)
Assumably it compiles down to a subset that is easy to port—basically take the VM approach except make it AOT-oriented instead of JIT-oriented, like LLVM.
Re:OpenFL: a hardware-accelerated cross-platform reimplement...
by chii on Thursday June 04, 2015 @12:05AM
(#9657390)
The haxe target languages aren't very different, other than some superficial syntactical and their standard libraries being somewhat different. Working around those aren't "difficult" (which isn't to say it isn't a lot of work to implement of course).
I'd be surprised if haxe could get a target language such as haskell (unless if they created a specific lib in haskell to emulate an imperative program and mutable state).
Re:OpenFL: a hardware-accelerated cross-platform reimplement...
by duaneb on Thursday June 04, 2015 @05:43PM
(#9662324)
> (unless if they created a specific lib in haskell to emulate an imperative program and mutable state)
Writing a vm in haskell is hardly out of the question.