haxe

Some errors with genericbuilding enums

十年热恋 提交于 2019-12-01 23:05:26
问题 Solved For a first ever macro to write this wasnt the easiest. But I learned a lot, much kudo's to Gama11 who pointed me in the right direction, and the coreteam for such a thing of beauty: Haxe. And I even added some slick doc field strings, so you get nice info during autocompletion. Main.hx var e1:Either<String, Int, Bool> = Either3._1('test'); var e2:Either<String, Int, Bool> = Either3._2(1); var e3:Either<String, Int, Bool> = Either3._3(true); var error:Either<String, Int, Bool> =

FlashDevelop, Haxe import CreateJS?

此生再无相见时 提交于 2019-12-01 21:38:26
I just started trying out Haxe to make a web-app, and I would like to use CreateJS, which has a Haxe extern lib thingy. I'm using FlashDevelop as my IDE. So I created a new Haxe JS project in FlashDevelop, and installed CreateJS with "haxelib install createjs". Thougg now I try to add an import to my Main.hx, but it doesn't work. My import looks like: "import createjs.easeljs.Ticker;" (got that from an example, just copied it but didn't work :s) I also added a new map "lib" to my project, in which I added the createjs stuff. The error I get is: src/Main.hx:3: characters 0-31 : Class not found

Some errors with genericbuilding enums

佐手、 提交于 2019-12-01 21:18:44
Solved For a first ever macro to write this wasnt the easiest. But I learned a lot, much kudo's to Gama11 who pointed me in the right direction, and the coreteam for such a thing of beauty: Haxe. And I even added some slick doc field strings, so you get nice info during autocompletion. Main.hx var e1:Either<String, Int, Bool> = Either3._1('test'); var e2:Either<String, Int, Bool> = Either3._2(1); var e3:Either<String, Int, Bool> = Either3._3(true); var error:Either<String, Int, Bool> = Either3._3('Bool expected, but got a String this will give an error'); Either.hx package; @:genericBuild

Web “frameworks” for Haxe to deploy in a PHP environment?

让人想犯罪 __ 提交于 2019-11-30 04:04:38
Lately I've been taking a look at Haxe , to build an application to be deployed to Apache running PHP. Well, while it looks like it might suit my needs (deploying to PHP, but not using an awful language), I haven't found anything to make the actual application development easier than building a traditional non-MVC PHP app. Are there any toolkits/frameworks that I'm missing, that would be worthwhile? It'd be nice if it were MVC inspired, and I'd definitely want an easy way to use nice URLS, though I could settle for mod_rewrite rules if necessary. Edit: The idea is to not use something like

Web “frameworks” for Haxe to deploy in a PHP environment?

坚强是说给别人听的谎言 提交于 2019-11-29 01:50:26
问题 Lately I've been taking a look at Haxe, to build an application to be deployed to Apache running PHP. Well, while it looks like it might suit my needs (deploying to PHP, but not using an awful language), I haven't found anything to make the actual application development easier than building a traditional non-MVC PHP app. Are there any toolkits/frameworks that I'm missing, that would be worthwhile? It'd be nice if it were MVC inspired, and I'd definitely want an easy way to use nice URLS,

Haxe in the field

痞子三分冷 提交于 2019-11-28 20:10:56
I had a fresh look at Haxe again recently and realized that I had overlooked some of its elegance before. But I guess it lacks some visibility among the developers still. So my question is, does anybody here use it for production? If so, how do you use it? What are the gotchas or difficulties you encounter? Do you recommend it for future projects? sness I use Haxe to develop all my Flash applications, and I love it. I develop on Linux and with Emacs, and I really like how I can make Haxe fit within my preferred development environment. I just use simple Makefiles that look something like:

Would Haxe work for creating libraries?

若如初见. 提交于 2019-11-28 01:02:28
I was thinking of using Haxe for it's cross-language ability, but wasn't sure if it was the best for this task. I'm going to write a generic library that should be able to be used in the target languages and be documented(able to apply something like doxygen.). To put it another way, I'd like to write a generic library in Haxe, output c++ code(and java once it done) , and have it accessible to other programmers.(readable to more than just the C+ compiler) Is this the best choice for this task, or would it be better if I just wrote a version of the library for each language? Waneck Sure it's

Is Haxe worth learning? [closed]

时间秒杀一切 提交于 2019-11-27 16:42:02
For people out there using Haxe , what makes it useful for you? Reading the website it looks very promising. Does it provide significant portability? What are some real world and perhaps under appreciated advantages? What are the pitfalls or gotchas? Franco Ponticelli Is Haxe worth learning? The short answer is: Absolutely! For people out there using Haxe, what makes it useful for you? If you're a web developer, you know you can't stick with a single technology for too long. Sooner or later you'll have to deal with changes in the environment or targets (you develop for .NET but an important

Minify / Obfuscate PHP Code [closed]

别说谁变了你拦得住时间么 提交于 2019-11-27 15:01:46
I use Haxe to generate PHP code. (This means you write you code in the Haxe language and get a bunch of php files after compiling.) Today a customer told me that he needs a new feature on a old project made with Haxe. He also told me that he altered some small things on the code for his own needs. Now I first have port his changes to my Haxe code and then add the new feature, because otherwise his changes will be overwritten by the next time I compile the project. To prevent that this happens again I am looking for some kind of program that minifies / obfuscates the PHP code. The goal is to

Haxe in the field

五迷三道 提交于 2019-11-27 12:45:44
问题 I had a fresh look at Haxe again recently and realized that I had overlooked some of its elegance before. But I guess it lacks some visibility among the developers still. So my question is, does anybody here use it for production? If so, how do you use it? What are the gotchas or difficulties you encounter? Do you recommend it for future projects? 回答1: I use Haxe to develop all my Flash applications, and I love it. I develop on Linux and with Emacs, and I really like how I can make Haxe fit