TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Joy of Haxe

160 pointsby yawnover 6 years ago

9 comments

dyaroslaover 6 years ago
Like the author, I too have the same opinion after having used Haxe for over 5 years.<p><pre><code> Five years on from starting with Haxe at FontStruct, I’m genuinely surprised to find that I feel no regret whatsoever regarding our decision to go with the technology. </code></pre> I absolutely adore the language. Not only is it awesome at transpiling&#x2F;compiling to native across this whole spectrum of targets, the language itself keeps surprising me with how versatile it is; with great type inferencing, compile time macros, platform-conditional compilation, and more.<p>I&#x27;ve launched iOS, Android, Web, Windows and Mac apps that all shared the same code base. I can&#x27;t see myself ever wanting to go back to using a single-target language again. I highly recommend trying it if you&#x27;re on the fence. [0]<p><i>Note: I am not affiliated with Haxe, just a huge fan.</i><p>[0] <a href="https:&#x2F;&#x2F;try.haxe.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;try.haxe.org&#x2F;</a>
评论 #18264988 未加载
评论 #18267639 未加载
dansoover 6 years ago
I first learned about Haxe through Lucas Pope’s dev log for “Papers, Please”. Sounded interesting and fun, though Pope (who developed PP on a Mac) said he also had written custom tooling for his work — maybe that situation had changed since 2014: <a href="https:&#x2F;&#x2F;www.gamasutra.com&#x2F;view&#x2F;news&#x2F;209905&#x2F;Road_to_the_IGF_Lucas_Popes_Papers_Please.php" rel="nofollow">https:&#x2F;&#x2F;www.gamasutra.com&#x2F;view&#x2F;news&#x2F;209905&#x2F;Road_to_the_IGF_L...</a><p>For his new game, Return of the Obra Dinn, he went with Unity because of its 3D capability:<p><a href="https:&#x2F;&#x2F;forums.tigsource.com&#x2F;index.php?topic=40832.0" rel="nofollow">https:&#x2F;&#x2F;forums.tigsource.com&#x2F;index.php?topic=40832.0</a><p>&gt; <i>I&#x27;m gonna use Unity for this one. I fell in love with Haxe&#x2F;OpenFL on my last project but unfortunately the 3D situation is not that great there yet. Also, it&#x27;s time to finally see why 90% of the indie scene is using Unity. I have a good amount of experience with 3D games and the few days I&#x27;ve played around with Unity so far have been pretty productive. The animated title screen scene up there (with post-processing shaders and all) was created in one day. I now have unrealistically high hopes.</i>
评论 #18264764 未加载
评论 #18265864 未加载
crypticaover 6 years ago
Haxe is strange in that it seems to be very well known among developers but relatively very few actually use it. I guess it&#x27;s an old project with very specific use cases; like building certain kinds of multi-platform apps.<p>It&#x27;s nice to see a project with such a dedicated community.<p>It&#x27;s a shame that most developers started using TypeScript instead of Haxe; that seems like a missed opportunity. TypeScript was pretty painful to use in its early days; it shows the importance of positioning and marketing.
评论 #18264892 未加载
评论 #18264424 未加载
评论 #18265155 未加载
评论 #18265259 未加载
评论 #18265000 未加载
Lercover 6 years ago
I used haxe a lot in the past, but with the newer enhancements to JavaScript I found that I ended up using JavaScript. Destructuring assignment arrow functions and more concise object literals, ... operator enable much more concise and readable code.<p>Haxe seems to be much more conservative in development. Haze is aquiring arrow functions but I think there was quite a degree of initial resistance to the notion. I proposed a change to allow the new Javascript style consice object literals (simply allowing {fish,cheese} instead of {fish:fish,cheese:cheese} but was shut down with a &#x27;we don&#x27;t like it&#x27;<p>I would prefer to use a independent language over one developed by a megacorp, but I fear Haxe will fall behind TypeScript due to their resistance to change.<p>My own personal experience has motivate me to move to something else. The proposal I mentioned above left somewhat of a bad taste. The process went contrary to the processes listed. Notably The proposer is supposed to call a vote after discussion had concluded. Instead it was just shut down with a &quot;we had a meeting and decided against it&quot;. I could give no counterargument because there was no argument to counter. I&#x27;m not against languages having a dictatorial model for development, but having a facade of an open process that carries no weight seems wrong.
评论 #18266111 未加载
评论 #18266053 未加载
chc4over 6 years ago
I was talking with some friends a bit ago and was surprised to learn that Haxe is used a lot in game dev and embedded a lot. Apparently a lot of set top boxes like Tivo or car infotainment systems use it, and there&#x27;s a lot of very good game engine infrastructure in it - <a href="https:&#x2F;&#x2F;armory3d.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;armory3d.org&#x2F;</a> was specifically mentioned as being surprisingly high quality, and all the people that wrote games on Kongregate apparently switched to Haxe.
mromniaover 6 years ago
Is it possible to use Haxe for anything except gamedev and keep the crossplatform aspect? For example for backend webdev, it seems like you can compile to nodeJS and use express, but then you can&#x27;t really compile to any other platform. You can compile to PHP, but you&#x27;re also stuck with PHP frameworks.<p>Basically what I&#x27;m saying is that for Haxe to be truly crossplatform, it requires Haxe-native frameworks in the target domain. But that doesn&#x27;t really seem to be the case outside of games, so that advantage is lost.
评论 #18267052 未加载
roywigginsover 6 years ago
I am glad Haxe is still going strong. I remember when it was an alternate language for the Flash virtual machine- everyone thought it was very cool at the time. Now Flash is dead, long live Haxe!
评论 #18267259 未加载
评论 #18266337 未加载
jimhefferonover 6 years ago
Best way to learn it?
评论 #18265814 未加载
giancarlostoroover 6 years ago
I want to love Haxe but tooling outside of Windows seems limited, although I havent looked at how good VS Code is with it yet, so maybe I&#x27;ll look into that. Otherwise I am going to stick to D and Python.
评论 #18267119 未加载
评论 #18265743 未加载
评论 #18265751 未加载
评论 #18286009 未加载