TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Try Haxe

180 点作者 clemos将近 13 年前

19 条评论

rufugee将近 13 年前
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 which can target iOS and Android, so this is very interesting to me.<p>Thanks.
评论 #4091957 未加载
评论 #4091683 未加载
评论 #4092123 未加载
评论 #4091630 未加载
评论 #4091918 未加载
评论 #4092465 未加载
barik将近 13 年前
My initial gut reaction to Haxe from the homepage alone, was "Gah, this language is ugly!'. Then I immediately realized that this ugliness was from the fact that the Source example isn't using a monospaced font. It's sort of amazing that, at least for me, using a proportional font just makes things "look wrong", even though everything is syntactically correct.
评论 #4091336 未加载
评论 #4091742 未加载
clemos将近 13 年前
demos :<p>Flash API to SWF or JS (nme/jeash):<p><a href="http://try.haxe.org/#655c1" rel="nofollow">http://try.haxe.org/#655c1</a><p><a href="http://try.haxe.org/#E4001" rel="nofollow">http://try.haxe.org/#E4001</a><p>Flash with custom shaders (hxsl):<p><a href="http://try.haxe.org/#93bE1" rel="nofollow">http://try.haxe.org/#93bE1</a><p>Flash + away3d:<p><a href="http://try.haxe.org/#9F075" rel="nofollow">http://try.haxe.org/#9F075</a>
评论 #4091900 未加载
zserge将近 13 年前
Haxe is a nice language, though I don't like it's verbosity (hey, it's almost like Java!). Maybe I'm too much spoilt with coffeescript, ruby, python and other syntax-sugary languages.
评论 #4091318 未加载
评论 #4091355 未加载
评论 #4093377 未加载
评论 #4091214 未加载
yxhuvud将近 13 年前
You lost me at 'public static function main.'
评论 #4092354 未加载
评论 #4091729 未加载
评论 #4094333 未加载
st3fan将近 13 年前
The cross-platform thing is a bold claim. How about a more complete example than that 5 line hello world program to show us how that would work?
评论 #4092795 未加载
评论 #4091540 未加载
评论 #4091390 未加载
lucian1900将近 13 年前
I'm torn on haxe. It has a few nice features (macros!) and has many, many targets.<p>But on the other hand, its syntax and some of its semantics are Java/C++-inspired, whereas something closer to its ML roots would've been so much better.<p>It might still beat Java for writing Android apps.
评论 #4092061 未加载
joneil将近 13 年前
I'm guessing the server is under some load at the moment as it's running pretty slow. But very cool demo page, been using it the last few days. I'm impressed with how small Haxe's JS output has gotten lately.<p>Clément hacked this together as a weekend project. Source code is here for those interested: <a href="https://github.com/clemos/try-haxe" rel="nofollow">https://github.com/clemos/try-haxe</a><p>Well done :)
reubensutton将近 13 年前
In the example in that landing page, there appears to be if statements depending on platform, is this something that's often necessary when using Haxe, or only when you want to perform a specific action for that target language?
评论 #4091304 未加载
评论 #4091241 未加载
misuba将近 13 年前
So, what's a good resource for _learning_ Haxe as opposed to trying it?
评论 #4091611 未加载
评论 #4093525 未加载
jetz将近 13 年前
I've searched a little while and found that it has no support for camera (or sensors) in mobile devices. It looks like HAXE/NME is heavily geared towards game development.
xyzzyb将近 13 年前
I did try Haxe, back in 2010 when I used it to write a silly little domino trail. It was fine for what it does, but I wasn't particularly impressed.<p>It was interesting to be able to write code in one language then compile it to other destinations but it seemed to me that targeting specific domains and learning all their ins and outs made more sense.
Fargren将近 13 年前
Can I use my .swc files in a Haxe project? I love the concept, but losing all my libraries is harsh.
评论 #4091584 未加载
egb将近 13 年前
Does anybody know how you debug with haxe/nme? I see no mention of it, which leads me to believe it's not really supported, which is somewhat understandable given that's it being compiled from haxe code into the various target languages.
评论 #4099954 未加载
clemos将近 13 年前
... and the editor has autocompletion on dot :)
评论 #4091434 未加载
justinfront将近 13 年前
tbergeron<p>HaXe is revolutionary, people who really try it always seem to stay with it, they just have to get past the ask lets of questions and actually try some code and stop being negative and putting it in the less able solutions pile. If you want to waste days coding a game in pure objectiveC and then converting it to java just to target two phones then good luck to you! And if you code something in one language it should just be a case of switching some target specific libraries and all your work now works in another target, not recoding in another language style. HaXe is revolutionary because it in achieving what other solutions promise but normally fall short on providing - cross platform cross language, code that is designed to enable not fragment. So try it rather than assume!<p>You don't have show stopper issues with the compiler ( it outperforms flex compiler on flash target ). Any minor issues are often resolved within hours of reporting, unless they are language design decisions rather than bugs.<p>Pizzaman<p>The forum is not well used as most users use the googlegroup 'haxelang'. In terms of frameworks like flex, haxe for flash target does not support flex well, it can be made to work, but largely the problem is because flex is not really just actionscript but has some adobe secrets/hacks etc.. that is why it has not been ported to a cross platform solution yet, need some better engineering decisions although someone I think is working on it. In terms of other frameworks for components there are some but they could be better, try aswing, feel free to chat on IRC if you have problems getting a particular component framework running. Generally haxe is sort of tool that you can build from scratch your visual interface stuff, or if your using js you can mix it up with native libraries.<p>Jetz<p>You can add any support for mobile camera's or video you want it interfaces easily with c++/c and there is java support and there is openframework support try this site <a href="http://blog.onthewings.net/" rel="nofollow">http://blog.onthewings.net/</a>. Haxe is not really a game only language but it excels at allowing users to create visual stuff but still do complex game mechanics, and a lot of users enjoy doing games. It works well in solving the issues of having to mix technologies, being normally a more sane programming language than the target but also mixing well, so you can mix haxe php, haxe js and haxe flash ( <a href="http://haxe.org/doc/remoting" rel="nofollow">http://haxe.org/doc/remoting</a> ), or use NME library to hit all the phones and have a web version in flash for users to try online.
pizzaman将近 13 年前
sounds great, but i'm afraid that this is the reality: <a href="http://haxe.org/forum/thread/2988" rel="nofollow">http://haxe.org/forum/thread/2988</a>
评论 #4096487 未加载
wiradikusuma将近 13 年前
does anyone know any comparison with similar offerings ("cross native") e.g. Appcelerator?
评论 #4091631 未加载
tbergeron将近 13 年前
Nope.<p>Stop fragmenting languages, we don't need another one except if it's revolutionary.<p>There's some very good principles like the fact that it can compile to many languages but like CoffeeScript I just don't see the point. Want to do some c++ why not using it? Want to do some JavaScript? Then use JavaScript.<p>There is just too much on the table when it comes to language compilation, I mean if the compiler itself has a problem with your code? It's a bug between what you built and its runtime: what can you do about it? A client is waiting for you, you've got no time to lose contacting the compiler's developers, you're just fucked. Don't get me wrong, I like to play with these languages but that is what they are: toys.<p>The hard reality is that browsers only support n amount of languages and we are stuck using them.
评论 #4100016 未加载
评论 #4093533 未加载