[GitHub] flex-asjs pull request: sortOn

2016-05-07 Thread matrix3d
GitHub user matrix3d opened a pull request: https://github.com/apache/flex-asjs/pull/5 sortOn You can merge this pull request into a Git repository by running: $ git pull https://github.com/matrix3d/flex-asjs develop Alternatively you can review and apply these changes as the

Re: flexjs donation the sorton code

2016-05-07 Thread lizhi
https://github.com/apache/flex-asjs/pull/5/ pls -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-donation-the-sorton-code-tp52565p52863.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: flexjs foreach very slow

2016-05-07 Thread lizhi
must ded the type. if(Array){ for(var i=0;ihttp://apache-flex-development.247.n4.nabble.com/flexjs-foreach-very-slow-tp52571p52864.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

[GitHub] flex-asjs pull request: sortOn

2016-05-07 Thread matrix3d
Github user matrix3d commented on the pull request: https://github.com/apache/flex-asjs/pull/5#issuecomment-217622378 float number --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature

Re: LAST CALL] Release FlexJS/FalconJX 0.7.0

2016-05-07 Thread Alex Harui
On 5/5/16, 2:48 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Hi, > >I'm trying a simple Hello World in IntelliJ I did at the time of the 0.6 >release (with the Josh tutorial in NExtGestAS3), now with 0.7 nigthly >(through Flex SdK installer), and getting the same error as Ju

Re: flexjs foreach very slow

2016-05-07 Thread Alex Harui
On 5/7/16, 1:32 AM, "lizhi" wrote: >must ded the type. >if(Array){ > for(var i=0;i}else{ > for in >} Should be doable. How much faster is it? Please file a pull request or JIRA so we don't forget this issue. Thanks, -Alex

[FLEXJS] Probably found the reason for some of my problems ...

2016-05-07 Thread Christofer Dutz
Ok ... in a final struggle to at least have something to show at my talk at ApacheCon I dug really deep into the compiler and noticed one thing: There's a class called: JSSharedData, which contains a set of public static variables for containing the state of a compilation (I guess). The problem

Re: [FlexJS][XML]appending XMLLists

2016-05-07 Thread Harbs
Right. I read that. This was what I was referring to in my last email. However, the Addition Operator is supposed to call [[Append]] and [[Append]] is supposed to assign the right side target object and target property to the left side object. So why doesn’t the original XML get effected? On Ma

Re: [FLEXJS] Probably found the reason for some of my problems ...

2016-05-07 Thread Josh Tynjala
Judging by the comments in the file, Mike meant to get rid of this class. I'm guessing it was added as a temporary hack to get things up and running as quickly as possible, which was a very important thing earlier in the life of FalconJX. Sometimes, things that we know are "super-duper-ultra-bad" a

Re: flexjs foreach very slow

2016-05-07 Thread Andy Dufilie
If you do make this change it should be an optional compiler argument, because this changes the behavior of the code. The following loop should print 1 and 2, not undefined: var array = []; array[2] = 1; array[4] = 2; for each (var x in array) trace(x); On May 7, 2016 10:18 AM, "Alex Harui"

Re: flexjs foreach very slow

2016-05-07 Thread Josh Tynjala
I agree with Andy. The default behavior should remain syntax sugar on top of for-in. - Josh On Sat, May 7, 2016 at 11:38 AM, Andy Dufilie wrote: > If you do make this change it should be an optional compiler argument, > because this changes the behavior of the code. The following loop should >

AW: [FLEXJS] Probably found the reason for some of my problems ...

2016-05-07 Thread Christofer Dutz
I agree that the initial version doesn't have to be perfect. But we have to keep track of such places and make sure to clean them up as soon as we have some time. Perhaps it would be a good idea if implementing something we know is hacky, to create an Issue for cleaning up? It's just that trac

Re: [FLEXJS] Probably found the reason for some of my problems ...

2016-05-07 Thread Harbs
This was marked as TODO, so it was “being tracked” on some level. There are currently 43 TODOs in codegen/js and 101 TODOs under compiler jx main total. Those sound like a good place to start… ;-) On May 7, 2016, at 10:01 PM, Christofer Dutz wrote: > > I agree that the initial version doesn't

[FalconJX][Maven] Build sources

2016-05-07 Thread piotrz
Hi Chris, I just tried build falcon with maven. As I understand from you comments inside main pom I have to run mvn clean install -P utils and later compiler profile ? Utils profile build for me without the problem, but compiler failed. Am I doing something wrong ? It should work at least for F

AW: [FalconJX][Maven] Build sources

2016-05-07 Thread Christofer Dutz
It should be: 1. set the FLASHPLAYER_DEBUGGER environment variable 2. mvn -s settings-template.xml clean install -P utils 3. mvn -s settings-template.xml clean install -P compiler 4. mvn -s settings-template.xml clean install -P externs the settings-template.xml makes Maven also check the Apache

Re: AW: [FalconJX][Maven] Build sources

2016-05-07 Thread piotrz
Thank you Chris!!! <3 It took me one hour to setup everything and successfully built Falcon! :) I hope you won't give up and will manage to resolve problems with FlexJS. Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.23

AW: AW: [FalconJX][Maven] Build sources

2016-05-07 Thread Christofer Dutz
Hi piotr, Why that long? Were there any other problems? Everything more than 15 minutes needs optimizing :-) Chris Von meinem Samsung Galaxy Smartphone gesendet. Ursprüngliche Nachricht Von: piotrz Datum: 07.05.16 14:29 (GMT-08:00) An: dev@flex.apache.org Betreff: Re: AW:

Re: AW: AW: [FalconJX][Maven] Build sources

2016-05-07 Thread piotrz
Haha I think cause my internet connection plus I had to refresh a bit my knowledge about maven. :) So it could take 15 minutes. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/FalconJX-Maven-Build-so

Re: flexjs foreach very slow

2016-05-07 Thread lizhi
10x slow. maybe use the arr.forEach. pls run this code https://gist.github.com/matrix3d/a9765b94ade3d626ad64d16f28deccae -- View this message in context: http://apache-flex-development.247.n4.nabble.com/flexjs-foreach-very-slow-tp52571p52880.html Sent from the Apache Flex Development maili

Re: flexjs foreach very slow

2016-05-07 Thread Josh Tynjala
The array forEach() seems like an acceptable alternative. Looking at MDN [1], forEach is widely supported in browsers. Including IE 9. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach - Josh On Sat, May 7, 2016 at 4:32 PM, lizhi wrote: > 10x slow.

Re: AW: [FLEXJS] Probably found the reason for some of my problems ...

2016-05-07 Thread Alex Harui
On 5/7/16, 12:01 PM, "Christofer Dutz" wrote: > >I agree that the initial version doesn't have to be perfect. But we have >to keep track of such places and make sure to clean them up as soon as we >have some time. Perhaps it would be a good idea if implementing something >we know is hacky, to c

Re: [FlexJS][XML]appending XMLLists

2016-05-07 Thread Alex Harui
On 5/7/16, 11:36 AM, "Harbs" wrote: >Right. I read that. This was what I was referring to in my last email. > >However, the Addition Operator is supposed to call [[Append]] and >[[Append]] is supposed to assign the right side target object and target >property to the left side object. So why do