You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Frédéric THOMAS <we...@hotmail.com> on 2015/08/08 17:46:08 UTC
[FlexJS] Framework using externs (was: Setup Error)
I thought I could have used the framework as a test for what I'm about to implement in the compiler to make IJ compiling externs/as3 based projects with 1 build conf.
Apparently I was wrong but I will try to implement it first anyway.
For the framework migration, I just had a look and indeed I will have a lot of questions, the 2 first ones:
1- If I'm not wrong, sprite.js can't have an AS counterpart, this one needs to stay JS only but it includes a "start" method definition, not having this methos in the AS part, I won't be able to use it, should this definition be moved to an interface in asjs and be shared by both sides ?
2- Classes and Interfaces are written this way in JS:
org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{ name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
But if I cross compile IStrand.as, I get:
org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
Why we still have the underscores ?
Frédéric THOMAS
----------------------------------------
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Setup Error
> Date: Fri, 7 Aug 2015 17:50:54 +0000
>
>
>
> On 8/7/15, 10:44 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>>> Hi Fred, I only just started on HTTPService, then realized having
>>> conditional compile would be useful. Not much to share there. I am
>>> hoping we can fully re-write all of our JS files in AS after this next
>>> release. Feel free to create a branch and get started if you have the
>>> cycles.
>>
>>I'm fine with that, whatever the time it takes.
>>I will need your help though to do them in the dependency order.
>
> The swcs are compiled in the following order due to some dependencies.
> You can check the compile-config.xml to see the exact set of dependencies
> in each folder.
>
> <ant dir="${basedir}/projects/Core" target="compile"/>
> <ant dir="${basedir}/projects/Graphics" target="compile"/>
> <ant dir="${basedir}/projects/Binding" target="compile"/>
> <ant dir="${basedir}/projects/HTML" target="compile"/>
> <ant dir="${basedir}/projects/Flat" target="compile"/>
> <ant dir="${basedir}/projects/Charts" target="compile"/>
> <ant dir="${basedir}/projects/Collections" target="compile"/>
> <ant dir="${basedir}/projects/CreateJS" target="compile"/>
> <ant dir="${basedir}/projects/DragDrop" target="compile"/>
> <ant dir="${basedir}/projects/Effects" target="compile"/>
> <ant dir="${basedir}/projects/Formatters" target="compile"/>
> <ant dir="${basedir}/projects/GoogleMaps" target="compile"/>
> <ant dir="${basedir}/projects/HTML5" target="compile"/>
> <ant dir="${basedir}/projects/JQuery" target="compile"/>
> <ant dir="${basedir}/projects/Mobile" target="compile"/>
> <ant dir="${basedir}/projects/Network" target="compile"/>
>
> Within the Core.swc, if we coded everything correctly and didn’t make a
> rat’s nest of dependencies, porting the org/apache/flex/core and
> org/apache/flex/utils folders first should clear the way for doing other
> files in that swc.
>
>
> Thanks,
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Michael Schmalle <te...@gmail.com>.
On Sun, Aug 9, 2015 at 1:06 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 8/8/15, 12:38 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>
> >On Sat, Aug 8, 2015 at 1:39 PM, Frédéric THOMAS <we...@hotmail.com>
> >wrote:
> >
> >> Also, What to do to keep as doc, I've been trying -keep-asdoc but
> >>
> >>
> >Fred, I looked at the code quickly, this should work right now and
> >-keep-asdoc is ONLY for the @param description etc.
>
> It is supposed to grab all of the asdoc from the AS and append to the
> JSDoc. It sounds like the JSDoc emitter isn’t wired up correctly, and it
> is possible that the asdoc delegate is no longer configured correctly for
> externs.
>
> -Alex
>
>
What is this thread actually about, I was aware of what was being copied
but I thought this was about porting FlexJS .js code to AS classes.
Is Fred making extern files for FlexJS code? If he is porting, then he is
using the FlexJS emitter, I didn't do anything weird, is he using the JSC
compiler?
Mike
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 8/8/15, 12:38 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>On Sat, Aug 8, 2015 at 1:39 PM, Frédéric THOMAS <we...@hotmail.com>
>wrote:
>
>> Also, What to do to keep as doc, I've been trying -keep-asdoc but
>>
>>
>Fred, I looked at the code quickly, this should work right now and
>-keep-asdoc is ONLY for the @param description etc.
It is supposed to grab all of the asdoc from the AS and append to the
JSDoc. It sounds like the JSDoc emitter isn’t wired up correctly, and it
is possible that the asdoc delegate is no longer configured correctly for
externs.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> Fred, I looked at the code quickly, this should work right now and
> -keep-asdoc is ONLY for the @param description etc.
>
> The fact you are not even getting an @export tag means something else is
> wrong somewhere. The export tag has to be there whether -keep-asdoc is tru
> or false, make sense?
Yes, make sense but it isn't there, I've got only @type and @interface
Thanks,
Frédéric THOMAS
----------------------------------------
> Date: Sat, 8 Aug 2015 15:38:07 -0400
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> From: teotigraphixllc@gmail.com
> To: dev@flex.apache.org
>
> On Sat, Aug 8, 2015 at 1:39 PM, Frédéric THOMAS <we...@hotmail.com>
> wrote:
>
>> Also, What to do to keep as doc, I've been trying -keep-asdoc but
>>
>>
> Fred, I looked at the code quickly, this should work right now and
> -keep-asdoc is ONLY for the @param description etc.
>
> The fact you are not even getting an @export tag means something else is
> wrong somewhere. The export tag has to be there whether -keep-asdoc is tru
> or false, make sense?
>
> Mike
>
>
>
>> for:
>>
>> /**
>> * addBead()
>> *
>> * @export
>> * @param {org.apache.flex.core.IBead} bead The bead to add.
>> */
>> org.apache.flex.core.IStrand.prototype.addBead = function(bead) {};
>>
>>
>> /**
>> * getBeadByType()
>> *
>> * @export
>> * @param {Object} classOrInterface The type of bead to look for.
>> * @return {org.apache.flex.core.IBead} The bead.
>> */
>> org.apache.flex.core.IStrand.prototype.getBeadByType =
>> function(classOrInterface) {};
>>
>> I get:
>>
>> org.apache.flex.core.IStrand.prototype.addBead = function(bead) {
>> };
>> org.apache.flex.core.IStrand.prototype.getBeadByType =
>> function(classOrInterface) {
>>
>>
>> Frédéric THOMAS
>>
>>
>> ----------------------------------------
>>> From: webdoublefx@hotmail.com
>>> To: dev@flex.apache.org
>>> Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
>>> Date: Sat, 8 Aug 2015 18:33:42 +0100
>>>
>>>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>>>
>>> My bad, thanks.
>>>
>>>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>>>> remove it if we can.
>>>
>>> Yep, @Erik, any hint ?
>>>
>>> Still remain the start function def, should it be moved to an interface
>> or removed too ?
>>>
>>> Frédéric THOMAS
>>>
>>>
>>> ----------------------------------------
>>>> From: aharui@adobe.com
>>>> To: dev@flex.apache.org
>>>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>>>> Date: Sat, 8 Aug 2015 16:27:53 +0000
>>>>
>>>>
>>>>
>>>> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>>>
>>>>>I thought I could have used the framework as a test for what I'm about
>> to
>>>>>implement in the compiler to make IJ compiling externs/as3 based
>> projects
>>>>>with 1 build conf.
>>>>>Apparently I was wrong but I will try to implement it first anyway.
>>>>>
>>>>>For the framework migration, I just had a look and indeed I will have a
>>>>>lot of questions, the 2 first ones:
>>>>>
>>>>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>>>>>needs to stay JS only but it includes a "start" method definition, not
>>>>>having this methos in the AS part, I won't be able to use it, should
>> this
>>>>>definition be moved to an interface in asjs and be shared by both sides
>> ?
>>>>
>>>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>>>> remove it if we can.
>>>>
>>>>>
>>>>>2- Classes and Interfaces are written this way in JS:
>>>>>
>>>>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>>>>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>>>>>
>>>>>But if I cross compile IStrand.as, I get:
>>>>>
>>>>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
>>>>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>>>>>
>>>>>Why we still have the underscores ?
>>>>
>>>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>>>>
>>>> -Alex
>>>>
>>>
>>
>>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Michael Schmalle <te...@gmail.com>.
On Sat, Aug 8, 2015 at 1:39 PM, Frédéric THOMAS <we...@hotmail.com>
wrote:
> Also, What to do to keep as doc, I've been trying -keep-asdoc but
>
>
Fred, I looked at the code quickly, this should work right now and
-keep-asdoc is ONLY for the @param description etc.
The fact you are not even getting an @export tag means something else is
wrong somewhere. The export tag has to be there whether -keep-asdoc is tru
or false, make sense?
Mike
> for:
>
> /**
> * addBead()
> *
> * @export
> * @param {org.apache.flex.core.IBead} bead The bead to add.
> */
> org.apache.flex.core.IStrand.prototype.addBead = function(bead) {};
>
>
> /**
> * getBeadByType()
> *
> * @export
> * @param {Object} classOrInterface The type of bead to look for.
> * @return {org.apache.flex.core.IBead} The bead.
> */
> org.apache.flex.core.IStrand.prototype.getBeadByType =
> function(classOrInterface) {};
>
> I get:
>
> org.apache.flex.core.IStrand.prototype.addBead = function(bead) {
> };
> org.apache.flex.core.IStrand.prototype.getBeadByType =
> function(classOrInterface) {
>
>
> Frédéric THOMAS
>
>
> ----------------------------------------
> > From: webdoublefx@hotmail.com
> > To: dev@flex.apache.org
> > Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
> > Date: Sat, 8 Aug 2015 18:33:42 +0100
> >
> >> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
> >
> > My bad, thanks.
> >
> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> >> remove it if we can.
> >
> > Yep, @Erik, any hint ?
> >
> > Still remain the start function def, should it be moved to an interface
> or removed too ?
> >
> > Frédéric THOMAS
> >
> >
> > ----------------------------------------
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Sat, 8 Aug 2015 16:27:53 +0000
> >>
> >>
> >>
> >> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >>
> >>>I thought I could have used the framework as a test for what I'm about
> to
> >>>implement in the compiler to make IJ compiling externs/as3 based
> projects
> >>>with 1 build conf.
> >>>Apparently I was wrong but I will try to implement it first anyway.
> >>>
> >>>For the framework migration, I just had a look and indeed I will have a
> >>>lot of questions, the 2 first ones:
> >>>
> >>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
> >>>needs to stay JS only but it includes a "start" method definition, not
> >>>having this methos in the AS part, I won't be able to use it, should
> this
> >>>definition be moved to an interface in asjs and be shared by both sides
> ?
> >>
> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> >> remove it if we can.
> >>
> >>>
> >>>2- Classes and Interfaces are written this way in JS:
> >>>
> >>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
> >>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
> >>>
> >>>But if I cross compile IStrand.as, I get:
> >>>
> >>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
> >>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
> >>>
> >>>Why we still have the underscores ?
> >>
> >> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
> >>
> >> -Alex
> >>
> >
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
Might just be broken. We can fix it eventually
Sent from my LG G3, an AT&T 4G LTE smartphone
------ Original message------
From: Frédéric THOMAS
Date: Sat, Aug 8, 2015 10:39 AM
To: dev@flex.apache.org;
Subject:RE: [FlexJS] Framework using externs (was: Setup Error)
Also, What to do to keep as doc, I've been trying -keep-asdoc but
for:
/**
* addBead()
*
* @export
* @param {org.apache.flex.core.IBead} bead The bead to add.
*/
org.apache.flex.core.IStrand.prototype.addBead = function(bead) {};
/**
* getBeadByType()
*
* @export
* @param {Object} classOrInterface The type of bead to look for.
* @return {org.apache.flex.core.IBead} The bead.
*/
org.apache.flex.core.IStrand.prototype.getBeadByType =
function(classOrInterface) {};
I get:
org.apache.flex.core.IStrand.prototype.addBead = function(bead) {
};
org.apache.flex.core.IStrand.prototype.getBeadByType = function(classOrInterface) {
Frédéric THOMAS
----------------------------------------
> From: webdoublefx@hotmail.com
> To: dev@flex.apache.org
> Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
> Date: Sat, 8 Aug 2015 18:33:42 +0100
>
>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>
> My bad, thanks.
>
>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> remove it if we can.
>
> Yep, @Erik, any hint ?
>
> Still remain the start function def, should it be moved to an interface or removed too ?
>
> Frédéric THOMAS
>
>
> ----------------------------------------
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Sat, 8 Aug 2015 16:27:53 +0000
>>
>>
>>
>> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>>>I thought I could have used the framework as a test for what I'm about to
>>>implement in the compiler to make IJ compiling externs/as3 based projects
>>>with 1 build conf.
>>>Apparently I was wrong but I will try to implement it first anyway.
>>>
>>>For the framework migration, I just had a look and indeed I will have a
>>>lot of questions, the 2 first ones:
>>>
>>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>>>needs to stay JS only but it includes a "start" method definition, not
>>>having this methos in the AS part, I won't be able to use it, should this
>>>definition be moved to an interface in asjs and be shared by both sides ?
>>
>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> remove it if we can.
>>
>>>
>>>2- Classes and Interfaces are written this way in JS:
>>>
>>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>>>
>>>But if I cross compile IStrand.as, I get:
>>>
>>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
>>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>>>
>>>Why we still have the underscores ?
>>
>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>>
>> -Alex
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Also, What to do to keep as doc, I've been trying -keep-asdoc but
for:
/**
* addBead()
*
* @export
* @param {org.apache.flex.core.IBead} bead The bead to add.
*/
org.apache.flex.core.IStrand.prototype.addBead = function(bead) {};
/**
* getBeadByType()
*
* @export
* @param {Object} classOrInterface The type of bead to look for.
* @return {org.apache.flex.core.IBead} The bead.
*/
org.apache.flex.core.IStrand.prototype.getBeadByType =
function(classOrInterface) {};
I get:
org.apache.flex.core.IStrand.prototype.addBead = function(bead) {
};
org.apache.flex.core.IStrand.prototype.getBeadByType = function(classOrInterface) {
Frédéric THOMAS
----------------------------------------
> From: webdoublefx@hotmail.com
> To: dev@flex.apache.org
> Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
> Date: Sat, 8 Aug 2015 18:33:42 +0100
>
>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>
> My bad, thanks.
>
>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> remove it if we can.
>
> Yep, @Erik, any hint ?
>
> Still remain the start function def, should it be moved to an interface or removed too ?
>
> Frédéric THOMAS
>
>
> ----------------------------------------
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Sat, 8 Aug 2015 16:27:53 +0000
>>
>>
>>
>> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>>>I thought I could have used the framework as a test for what I'm about to
>>>implement in the compiler to make IJ compiling externs/as3 based projects
>>>with 1 build conf.
>>>Apparently I was wrong but I will try to implement it first anyway.
>>>
>>>For the framework migration, I just had a look and indeed I will have a
>>>lot of questions, the 2 first ones:
>>>
>>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>>>needs to stay JS only but it includes a "start" method definition, not
>>>having this methos in the AS part, I won't be able to use it, should this
>>>definition be moved to an interface in asjs and be shared by both sides ?
>>
>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> remove it if we can.
>>
>>>
>>>2- Classes and Interfaces are written this way in JS:
>>>
>>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>>>
>>>But if I cross compile IStrand.as, I get:
>>>
>>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
>>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>>>
>>>Why we still have the underscores ?
>>
>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>>
>> -Alex
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Also, probably some methods could be common and maybe there are some of them I didn't mark for conditional compilation but at least at the beginning, I was much more going to re-code the entire classes, it was less time consuming than checking method by method what was common or not.
Frédéric THOMAS
> From: webdoublefx@hotmail.com
> To: dev@flex.apache.org
> Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 20:20:53 +0100
>
> Hi Alex,
>
> Actually, I removed all the js files from the compilation path in order to re-code them one by one in as3, so, all the existing classes already in as3, I wrapped them with COMPILE::AS3 because for sure the output artefact for them will be .swc
>
> I started to convert the Application sub components to as3 wrapping them with COMPILE:JS because the output artefact for them will be .js
>
> Does it makes sense ?
>
> Note:
> 1- Those core classes in JS have been modified in the master branch, so, my conversion is not in sync
> 2- I had t2 issues with the GCL.swc and Falcon, the one I mentioned relative to the getter / setter at package level and another one I haven't in mind at the moment but will describe tomorrow, proving more details about the GCL.swc
>
> Frédéric THOMAS
>
> > From: aharui@adobe.com
> > To: dev@flex.apache.org
> > Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > Date: Wed, 16 Sep 2015 16:54:06 +0000
> >
> > Hi Fred,
> >
> > I started poking around in the branch. I’m confused by how you plan to
> > use the conditional compilation flags. Whole classes seem to be marked
> > with COMPILE::AS3, but I would expect any conditional compilation to be on
> > or inside methods. Can you explain?
> >
> > Thanks,
> > -Alex
> >
> > On 9/16/15, 2:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >
> > >Hi Alex,
> > >
> > >Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet
> > >given I will move those things to IJ, neither the one regarding the
> > >getter / setter functions at package level.
> > >
> > >I will share the CGL.swc with its sources and details as soon as I can,
> > >probably tomorrow along with the Ant targets using the compiler.clients.*
> > >
> > >Thanks,
> > >Frédéric THOMAS
> > >
> > >> From: aharui@adobe.com
> > >> To: dev@flex.apache.org
> > >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > >> Date: Wed, 16 Sep 2015 06:08:33 +0000
> > >>
> > >> FYI, I’m going to start finding time to work on this port.
> > >>
> > >> -Alex
> > >>
> > >> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
> > >>
> > >> >
> > >> >
> > >> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> > >> >
> > >> >>
> > >> >>One thing I discovered though is that with Falcon, the combination of
> > >> >>getter / setter for a same function at package level is not supported
> > >> >>(the legacy compiler support it):
> > >> >>
> > >> >>package goog.events {
> > >> >>public function get fireListener():Function{return null;}
> > >> >>public function set fireListener(value:Function):void{}
> > >> >>}
> > >> >>
> > >> >>Error: An externally-visible definition with the name
> > >> >>'goog.events.fireListener' was unexpectedly found.
> > >> >>
> > >> >>Can you take care of it or drive me into fixing it ?
> > >> >
> > >> >That’s interesting. I’ve never seen a ‘global’ property in AS before.
> > >> If
> > >> >you want to try to fix it, what I would do is set a breakpoint in
> > >> >CompilerProblem.java. Then you’ll see on the call stack what logic
> > >> >decided to generate that error and can try to add other logic to
> > >>accept it
> > >> >in this case.
> > >> >
> > >> >Speaking of doing things like that, it occurred to me recently that
> > >> >ambiguous definition errors when the global Event class conflicts with
> > >> >org.apache.flex.events.Events could be handled by adjusting the logic
> > >>for
> > >> >detecting ambiguous definitions. IIRC, the logic resolves the “Event”
> > >>and
> > >> >if it finds more than one definition it generates the error. The logic
> > >> >could be adjusted to see if one of the definitions is a global
> > >>definition
> > >> >and then use the global and maybe additionally generate a warning
> > >>instead
> > >> >of an error.
> > >> >BTW, it looks like this week and next will be spent on getting a
> > >>release
> > >> >out the door, then I hope to work on this port from JS to AS.
> > >> >
> > >> >-Alex
> > >> >
> > >>
> > >
> >
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Kessler CTR Mark J <ma...@usmc.mil>.
I'll take a look at it tonight.
-Mark
-----Original Message-----
From: Alex Harui [mailto:aharui@adobe.com]
Sent: Sunday, October 18, 2015 10:35 AM
To: dev@flex.apache.org
Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
On 10/18/15, 12:39 AM, "Harbs" <ha...@gmail.com> wrote:
>What do I need to do to help with this?
Well, my understanding of the release process is that folks who intend to
vote on the release should examine the nightly build as if it were a
release candidate. I’ve posted in the discuss threads a link to scripts
that take you through the examination steps.
Once we get enough feedback that the nightly looks ok, we can open a vote
thread.
Thanks,
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 10/18/15, 12:39 AM, "Harbs" <ha...@gmail.com> wrote:
>What do I need to do to help with this?
Well, my understanding of the release process is that folks who intend to
vote on the release should examine the nightly build as if it were a
release candidate. I’ve posted in the discuss threads a link to scripts
that take you through the examination steps.
Once we get enough feedback that the nightly looks ok, we can open a vote
thread.
Thanks,
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Harbs <ha...@gmail.com>.
What do I need to do to help with this?
On Oct 18, 2015, at 8:40 AM, Alex Harui <ah...@adobe.com> wrote:
> I’d appreciate folks trying to find time to help us get
> 0.5.0 out the door
Re: iOS build verificationerror
Posted by OmPrakash Muppirala <bi...@gmail.com>.
Ah yes, the cryptic errors you get when your apple developer certificates
are renewed. Good, I'm glad that your problems are gone :-)
Thanks,
Om
On Tue, Dec 1, 2015 at 4:56 PM, Jason Taylor <ja...@dedoose.com> wrote:
> Thanks Om, lol yeah been staring at that doc all day lol. I freaking
> hate working with apple, and the lack of transparency/verboisity on that
> error message is infuriating. Ended up going into devices and attempting
> to remove the existing devices and suddenly a new window I have never seen
> popped up along the lines of "hey you know how we said these devices have
> been active the whole time? Yeah we lied, their not, since your membership
> recently renewed we need to click these buttons to make them active, even
> though we have told you this whole time they are active."
>
> Freaking hate working with apple, but much love to the Flex Community.
> ~ JT
>
> -----Original Message-----
> From: omuppi1@gmail.com [mailto:omuppi1@gmail.com] On Behalf Of OmPrakash
> Muppirala
> Sent: Tuesday, December 01, 2015 3:48 PM
> To: dev@flex.apache.org
> Subject: Re: iOS build verificationerror
>
> I had a very similar issue in the last couple of weeks. When I switched
> to AIR 20Beta, the problems went away. Can you try that? The Apache Flex
> Installer supports AIR 20 Beta now.
>
> Also, here are some troubleshooting tips for the iOS AIR installation
> errors:
>
> http://blogs.adobe.com/flashplayer/2015/08/troubleshooting-air-installation-errors-ios-applications.html
>
> Hope this helps.
>
> Thanks,
> Om
>
> On Tue, Dec 1, 2015 at 3:37 PM, Jason Taylor <ja...@dedoose.com> wrote:
>
> > Hey guys, hoping someone might shed some light on this.
> > - Using the latest release of IntelliJ Idea, Flex SDK 14.1
> targeting
> > AIR19.
> > - Created a brand new flash mobile for iOS project.
> > - Created new cert (on Mac), uploaded cert to iOS developer portal
> > - Created provisioning file for our 2 ipads and the cert for
> > development
> > - Told IntelliJ to generate a descriptor file, pasted in my app id
> > into descriptor
> > - Attempt to run on device yeilds applicationverification error.
> > - Repeated all steps for a distribution profile and certificate.
> > - Cleaned everything, redid everything using a wildcart appid "*",
> > same result
> > - Tried different SDK's - same result
> > - Redid everything again from the ground up, same result
> > - Tried adding the prefix to the app id - same result
> > - Updated iPad's to iOS 9.1 - same result.
> >
> > Anyone have a clue or willing to offer paid support, we are losing are
> > minds over here.
> > ~ JT
> >
>
RE: iOS build verificationerror
Posted by Jason Taylor <ja...@dedoose.com>.
Thanks Om, lol yeah been staring at that doc all day lol. I freaking hate working with apple, and the lack of transparency/verboisity on that error message is infuriating. Ended up going into devices and attempting to remove the existing devices and suddenly a new window I have never seen popped up along the lines of "hey you know how we said these devices have been active the whole time? Yeah we lied, their not, since your membership recently renewed we need to click these buttons to make them active, even though we have told you this whole time they are active."
Freaking hate working with apple, but much love to the Flex Community.
~ JT
-----Original Message-----
From: omuppi1@gmail.com [mailto:omuppi1@gmail.com] On Behalf Of OmPrakash Muppirala
Sent: Tuesday, December 01, 2015 3:48 PM
To: dev@flex.apache.org
Subject: Re: iOS build verificationerror
I had a very similar issue in the last couple of weeks. When I switched to AIR 20Beta, the problems went away. Can you try that? The Apache Flex Installer supports AIR 20 Beta now.
Also, here are some troubleshooting tips for the iOS AIR installation
errors:
http://blogs.adobe.com/flashplayer/2015/08/troubleshooting-air-installation-errors-ios-applications.html
Hope this helps.
Thanks,
Om
On Tue, Dec 1, 2015 at 3:37 PM, Jason Taylor <ja...@dedoose.com> wrote:
> Hey guys, hoping someone might shed some light on this.
> - Using the latest release of IntelliJ Idea, Flex SDK 14.1 targeting
> AIR19.
> - Created a brand new flash mobile for iOS project.
> - Created new cert (on Mac), uploaded cert to iOS developer portal
> - Created provisioning file for our 2 ipads and the cert for
> development
> - Told IntelliJ to generate a descriptor file, pasted in my app id
> into descriptor
> - Attempt to run on device yeilds applicationverification error.
> - Repeated all steps for a distribution profile and certificate.
> - Cleaned everything, redid everything using a wildcart appid "*",
> same result
> - Tried different SDK's - same result
> - Redid everything again from the ground up, same result
> - Tried adding the prefix to the app id - same result
> - Updated iPad's to iOS 9.1 - same result.
>
> Anyone have a clue or willing to offer paid support, we are losing are
> minds over here.
> ~ JT
>
Re: iOS build verificationerror
Posted by OmPrakash Muppirala <bi...@gmail.com>.
I had a very similar issue in the last couple of weeks. When I switched to
AIR 20Beta, the problems went away. Can you try that? The Apache Flex
Installer supports AIR 20 Beta now.
Also, here are some troubleshooting tips for the iOS AIR installation
errors:
http://blogs.adobe.com/flashplayer/2015/08/troubleshooting-air-installation-errors-ios-applications.html
Hope this helps.
Thanks,
Om
On Tue, Dec 1, 2015 at 3:37 PM, Jason Taylor <ja...@dedoose.com> wrote:
> Hey guys, hoping someone might shed some light on this.
> - Using the latest release of IntelliJ Idea, Flex SDK 14.1 targeting
> AIR19.
> - Created a brand new flash mobile for iOS project.
> - Created new cert (on Mac), uploaded cert to iOS developer portal
> - Created provisioning file for our 2 ipads and the cert for
> development
> - Told IntelliJ to generate a descriptor file, pasted in my app id
> into descriptor
> - Attempt to run on device yeilds applicationverification error.
> - Repeated all steps for a distribution profile and certificate.
> - Cleaned everything, redid everything using a wildcart appid "*",
> same result
> - Tried different SDK's - same result
> - Redid everything again from the ground up, same result
> - Tried adding the prefix to the app id - same result
> - Updated iPad's to iOS 9.1 - same result.
>
> Anyone have a clue or willing to offer paid support, we are losing are
> minds over here.
> ~ JT
>
iOS build verificationerror
Posted by Jason Taylor <ja...@dedoose.com>.
Hey guys, hoping someone might shed some light on this.
- Using the latest release of IntelliJ Idea, Flex SDK 14.1 targeting AIR19.
- Created a brand new flash mobile for iOS project.
- Created new cert (on Mac), uploaded cert to iOS developer portal
- Created provisioning file for our 2 ipads and the cert for development
- Told IntelliJ to generate a descriptor file, pasted in my app id into descriptor
- Attempt to run on device yeilds applicationverification error.
- Repeated all steps for a distribution profile and certificate.
- Cleaned everything, redid everything using a wildcart appid "*", same result
- Tried different SDK's - same result
- Redid everything again from the ground up, same result
- Tried adding the prefix to the app id - same result
- Updated iPad's to iOS 9.1 - same result.
Anyone have a clue or willing to offer paid support, we are losing are minds over here.
~ JT
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Michael Schmalle <te...@gmail.com>.
On Tue, Dec 1, 2015 at 6:38 PM, OmPrakash Muppirala <bi...@gmail.com>
wrote:
> >
> > Say I found a way to get my native calls working, I still would be ata
> loss
> > for the UI graphics framework I am currently using with Feathers. I know
> Om
> > had mentioned SVG, but I didn't hear anymore about that and I have
> really 0
> > experience with it.
> >
>
> FlexJS + SVG would be perfect for that. There I said it again :-)
> Seriously though, I have very little time to devote this feature. Right
> now, I am working on node.js support for FlexJS. After that, I hope to
> tinker with the graphics API again.
>
> More recently, one of FlexJS users Lizhi has posted Stage3D APIs ported to
> JS via FlexJS. Have you seen that?
> Here are a few links he has sent out so far:
> Code:
> https://github.com/matrix3d/spriteflexjs/blob/master/src/TestGraphics.as
> Demo:
>
> http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/indexg.html
>
> This library brings the Stage3D API to Canvas/JS via FlexJS.
>
> Thanks,
> Om
>
Yeah I am following all the threads, my point was, I managed to write a
pretty sturdy transpiler and I could probably figure out SVG, it's just the
time, just like you. :)
I'm also curious as to what Josh is tinkering with, if he is thinking about
a Feathers like framework using the transpiler. I absolutely love his
Feathers UI framework and wish it would translate to JS canvas or
something, I would totally help him with that. But I also know there are
pluses and minuses to that as well. I only know enough about JS graphics to
be called ignorant so I won't say anymore. :)
Mike
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by OmPrakash Muppirala <bi...@gmail.com>.
>
> Say I found a way to get my native calls working, I still would be ata loss
> for the UI graphics framework I am currently using with Feathers. I know Om
> had mentioned SVG, but I didn't hear anymore about that and I have really 0
> experience with it.
>
FlexJS + SVG would be perfect for that. There I said it again :-)
Seriously though, I have very little time to devote this feature. Right
now, I am working on node.js support for FlexJS. After that, I hope to
tinker with the graphics API again.
More recently, one of FlexJS users Lizhi has posted Stage3D APIs ported to
JS via FlexJS. Have you seen that?
Here are a few links he has sent out so far:
Code:
https://github.com/matrix3d/spriteflexjs/blob/master/src/TestGraphics.as
Demo:
http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/indexg.html
This library brings the Stage3D API to Canvas/JS via FlexJS.
Thanks,
Om
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Michael Schmalle <te...@gmail.com>.
On Tue, Dec 1, 2015 at 6:15 PM, Alex Harui <ah...@adobe.com> wrote:
>
> On 12/1/15, 2:27 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>
> >Anyway, I wish I had some projects for FlexJS/FlaconJX but my story is
> >still the same. I am using Feathers and AIR for some audio apps and it
> >requires native extensions calling C++ API so the JS part is kind of out
> >for me experimenting with those apps right now..
>
> FlexJS output is compatible with Cordova, so in theory you can use Cordova
> plug-ins to call the same C++, and MXML and AS to glue it all together.
>
Yeah, I know. :) But the thing is, I looked at Cordova and [theorized I
didn't have enough time to experiment. I'm working a day job with a friend
right now so my lab time is 0 or else now that it is .5 I would try it. All
my time atm is devoted to the Feathers apps.
I did have one app that I remember showing Om screenshots months back but
it needs to use UDP messages which last time I checked, javascript browsers
didn't support, I think maybe an android one did.
Also, the "problem" with my apps are they are more like games in a sense I
need high performance graphics/animation. You see there are to many loose
ends and questions for my stuff.
Say I found a way to get my native calls working, I still would be ata loss
for the UI graphics framework I am currently using with Feathers. I know Om
had mentioned SVG, but I didn't hear anymore about that and I have really 0
experience with it.
Anyway, I have spent more time writing this reply due to all my questions.
:)
Mike
>
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 12/1/15, 2:27 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>On Tue, Dec 1, 2015 at 3:53 PM, Carlos Rovira
><carlos.rovira@codeoscopic.com
>> wrote:
>
>> That sounds really amazing. So in the beginning was a mix of AS3 and
>>JS. If
>> JS didn't exit, then it was generated.
>> So, the strategy now is to have all in AS3 and *all* (or the most
>>possible)
>> JS generated?
>>
I'm pretty confident that when we're done there won't be any .JS files in
the code base.
>
>Anyway, I wish I had some projects for FlexJS/FlaconJX but my story is
>still the same. I am using Feathers and AIR for some audio apps and it
>requires native extensions calling C++ API so the JS part is kind of out
>for me experimenting with those apps right now..
FlexJS output is compatible with Cordova, so in theory you can use Cordova
plug-ins to call the same C++, and MXML and AS to glue it all together.
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Michael Schmalle <te...@gmail.com>.
On Tue, Dec 1, 2015 at 3:53 PM, Carlos Rovira <carlos.rovira@codeoscopic.com
> wrote:
> That sounds really amazing. So in the beginning was a mix of AS3 and JS. If
> JS didn't exit, then it was generated.
> So, the strategy now is to have all in AS3 and *all* (or the most possible)
> JS generated?
>
>
Yeah, your right. If you red back in the archives I said I would love to
enable Peter and Alex to only have to focus on the framework and for them
not to have to write JS, I saw that as a huge minus for the project
actually taking off.
So I spent about 1.5 months writing the externs compiler(EXTERNC) and
getting it to mostly compile all of the google closure extern(hearder)
files.
I am so happy to hear that Alex and Peter have almost got done what I saw
could be a huge benefit with the tool I wrote.
Anyway, it's also nice to see FalconJX (my name for the failed FalconJS)
compiler actually seeing some runtime. I spent so much time writing the
unit tests and developing FalconJX that I got so depressed in 2013 I quit
basically. Alex must have seen some value in it because Erik and him got
the MXML emitter working during the time I had left.
Anyway, I wish I had some projects for FlexJS/FlaconJX but my story is
still the same. I am using Feathers and AIR for some audio apps and it
requires native extensions calling C++ API so the JS part is kind of out
for me experimenting with those apps right now..
Mike
> 2015-12-01 20:37 GMT+01:00 Alex Harui <ah...@adobe.com>:
>
> >
> >
> > On 12/1/15, 11:13 AM, "carlos.rovira@gmail.com on behalf of Carlos
> Rovira"
> > <carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com>
> > wrote:
> >
> > >Hi Alex, that sounds amazing.
> > >
> > >One question for me is what you refer as "externs". Could you share what
> > >this means?
> >
> > Externs are like header files for JS libraries. Michael Schmalle made it
> > possible to create a SWC like our js.swc that contains the
> > playerglobal.swc equivalent for the browser. It contains HTMLElement,
> > Document, Window, XMLHTTPRequest, etc. The source for the externs comes
> > from Google Closure Library.
> >
> > This allows us to write fully functional JS applications and frameworks
> by
> > writing them in AS, even in an IDE with code completion, and outputting
> > JS. The FlexJS 0.5.0 framework currently consists of thousands of lines
> > of JS code handwritten by Peter and I and others. We are almost done
> > rewriting those JS files in AS. The advantages are significant. The
> > compiler catches things sooner, we don't waste time forgetting to type
> > 'this.' or debugging when we do, we don't waste time typing out package
> > path names, etc. Also, the AS code for the SWF and the JS code for the
> > browser for any particular component often shared quite a bit of code and
> > now all that shared code is in one file with conditional compiles for JS
> > or SWF-specific code. In the end, I now strongly believe that AS is a
> > better language for writing JS.
> > I expect that we'll be able to create components in FlexJS much more
> > quickly this way.
> >
> > -Alex
> >
> >
>
>
> --
>
> Carlos Rovira
> Director General
> M: +34 607 22 60 05
> http://www.codeoscopic.com
> http://www.avant2.es
>
>
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o confidencial. Si ha recibido este mensaje por
> error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
> proceda a su destrucción.
>
> De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
> S.A. La finalidad de dicho tratamiento es facilitar la prestación del
> servicio o información solicitados, teniendo usted derecho de acceso,
> rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
> necesaria.
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Carlos Rovira <ca...@codeoscopic.com>.
That sounds really amazing. So in the beginning was a mix of AS3 and JS. If
JS didn't exit, then it was generated.
So, the strategy now is to have all in AS3 and *all* (or the most possible)
JS generated?
2015-12-01 20:37 GMT+01:00 Alex Harui <ah...@adobe.com>:
>
>
> On 12/1/15, 11:13 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
> <carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com>
> wrote:
>
> >Hi Alex, that sounds amazing.
> >
> >One question for me is what you refer as "externs". Could you share what
> >this means?
>
> Externs are like header files for JS libraries. Michael Schmalle made it
> possible to create a SWC like our js.swc that contains the
> playerglobal.swc equivalent for the browser. It contains HTMLElement,
> Document, Window, XMLHTTPRequest, etc. The source for the externs comes
> from Google Closure Library.
>
> This allows us to write fully functional JS applications and frameworks by
> writing them in AS, even in an IDE with code completion, and outputting
> JS. The FlexJS 0.5.0 framework currently consists of thousands of lines
> of JS code handwritten by Peter and I and others. We are almost done
> rewriting those JS files in AS. The advantages are significant. The
> compiler catches things sooner, we don't waste time forgetting to type
> 'this.' or debugging when we do, we don't waste time typing out package
> path names, etc. Also, the AS code for the SWF and the JS code for the
> browser for any particular component often shared quite a bit of code and
> now all that shared code is in one file with conditional compiles for JS
> or SWF-specific code. In the end, I now strongly believe that AS is a
> better language for writing JS.
> I expect that we'll be able to create components in FlexJS much more
> quickly this way.
>
> -Alex
>
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 12/1/15, 11:13 AM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlos.rovira@codeoscopic.com> wrote:
>Hi Alex, that sounds amazing.
>
>One question for me is what you refer as "externs". Could you share what
>this means?
Externs are like header files for JS libraries. Michael Schmalle made it
possible to create a SWC like our js.swc that contains the
playerglobal.swc equivalent for the browser. It contains HTMLElement,
Document, Window, XMLHTTPRequest, etc. The source for the externs comes
from Google Closure Library.
This allows us to write fully functional JS applications and frameworks by
writing them in AS, even in an IDE with code completion, and outputting
JS. The FlexJS 0.5.0 framework currently consists of thousands of lines
of JS code handwritten by Peter and I and others. We are almost done
rewriting those JS files in AS. The advantages are significant. The
compiler catches things sooner, we don't waste time forgetting to type
'this.' or debugging when we do, we don't waste time typing out package
path names, etc. Also, the AS code for the SWF and the JS code for the
browser for any particular component often shared quite a bit of code and
now all that shared code is in one file with conditional compiles for JS
or SWF-specific code. In the end, I now strongly believe that AS is a
better language for writing JS.
I expect that we'll be able to create components in FlexJS much more
quickly this way.
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Carlos Rovira <ca...@codeoscopic.com>.
Hi Alex, that sounds amazing.
One question for me is what you refer as "externs". Could you share what
this means?
thanks!
2015-12-01 19:53 GMT+01:00 Alex Harui <ah...@adobe.com>:
> FYI, FlexJSStore is mostly up and running on AS cross-compiled to JS. To
> me that proves that this workflow for writing JS in AS is truly viable.
>
> I'm going to fix the two bugs I know about and then start deleting the
> handwritten JS files.
>
> -Alex
>
> On 11/11/15, 11:45 AM, "Alex Harui" <ah...@adobe.com> wrote:
>
> >
> >
> >On 11/11/15, 11:41 AM, "Harbs" <ha...@gmail.com> wrote:
> >
> >>If you search the source code for COMPILE::JS and COMPILE:AS3, you’ll see
> >>what they’ve done so far.
> >
> >This work is in the core_js_to_as branch. None of this has been merged to
> >develop.
> >
> >The time table is to:
> >
> >-Roughly back port all of the SWCs (clean compile, doesn’t matter if it
> >runs)
> >-Make sure the examples appear to run
> >-Delete all of the handwritten JS files in case they were somehow still
> >getting involved. Right now we keep them around for referencing.
> >-Make sure the examples appear to run
> >-move as/src/ to just src
> >-Make sure the examples appear to run
> >
> >-Alex
> >
> >
>
>
--
Carlos Rovira
Director General
M: +34 607 22 60 05
http://www.codeoscopic.com
http://www.avant2.es
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o confidencial. Si ha recibido este mensaje por
error, le rogamos que nos lo comunique inmediatamente por esta misma vía y
proceda a su destrucción.
De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos
que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC
S.A. La finalidad de dicho tratamiento es facilitar la prestación del
servicio o información solicitados, teniendo usted derecho de acceso,
rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras
oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación
necesaria.
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
FYI, FlexJSStore is mostly up and running on AS cross-compiled to JS. To
me that proves that this workflow for writing JS in AS is truly viable.
I'm going to fix the two bugs I know about and then start deleting the
handwritten JS files.
-Alex
On 11/11/15, 11:45 AM, "Alex Harui" <ah...@adobe.com> wrote:
>
>
>On 11/11/15, 11:41 AM, "Harbs" <ha...@gmail.com> wrote:
>
>>If you search the source code for COMPILE::JS and COMPILE:AS3, you’ll see
>>what they’ve done so far.
>
>This work is in the core_js_to_as branch. None of this has been merged to
>develop.
>
>The time table is to:
>
>-Roughly back port all of the SWCs (clean compile, doesn’t matter if it
>runs)
>-Make sure the examples appear to run
>-Delete all of the handwritten JS files in case they were somehow still
>getting involved. Right now we keep them around for referencing.
>-Make sure the examples appear to run
>-move as/src/ to just src
>-Make sure the examples appear to run
>
>-Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 11/11/15, 11:41 AM, "Harbs" <ha...@gmail.com> wrote:
>If you search the source code for COMPILE::JS and COMPILE:AS3, you’ll see
>what they’ve done so far.
This work is in the core_js_to_as branch. None of this has been merged to
develop.
The time table is to:
-Roughly back port all of the SWCs (clean compile, doesn’t matter if it
runs)
-Make sure the examples appear to run
-Delete all of the handwritten JS files in case they were somehow still
getting involved. Right now we keep them around for referencing.
-Make sure the examples appear to run
-move as/src/ to just src
-Make sure the examples appear to run
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Harbs <ha...@gmail.com>.
If you search the source code for COMPILE::JS and COMPILE:AS3, you’ll see what they’ve done so far.
On Nov 11, 2015, at 9:30 PM, OmPrakash Muppirala <bi...@gmail.com> wrote:
> Oh, wow. That is fantastic. I hope to get my hands on this action soon.
> Sorry for not helping out for a while.
>
> On Wed, Nov 11, 2015 at 11:20 AM, Alex Harui <ah...@adobe.com> wrote:
>
>>
>>
>> On 11/11/15, 11:04 AM, "omuppi1@gmail.com on behalf of OmPrakash
>> Muppirala" <omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:
>>
>>> I'm sorry if I missed it earlier, but what exactly does 'back port' mean?
>>
>> We are trying to write the entire FlexJS framework in ActionScript such
>> that every line of JS used in the HTML/JS/CSS version was cross-compiled.
>> This involved porting the handwritten js back to as (hence back port).
>>
>> When complete, we will essentially prove that large amounts of JS code can
>> be written in AS.
>>
>> -Alex
>>
>>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by OmPrakash Muppirala <bi...@gmail.com>.
Oh, wow. That is fantastic. I hope to get my hands on this action soon.
Sorry for not helping out for a while.
On Wed, Nov 11, 2015 at 11:20 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 11/11/15, 11:04 AM, "omuppi1@gmail.com on behalf of OmPrakash
> Muppirala" <omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:
>
> >I'm sorry if I missed it earlier, but what exactly does 'back port' mean?
>
> We are trying to write the entire FlexJS framework in ActionScript such
> that every line of JS used in the HTML/JS/CSS version was cross-compiled.
> This involved porting the handwritten js back to as (hence back port).
>
> When complete, we will essentially prove that large amounts of JS code can
> be written in AS.
>
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 11/11/15, 11:04 AM, "omuppi1@gmail.com on behalf of OmPrakash
Muppirala" <omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:
>I'm sorry if I missed it earlier, but what exactly does 'back port' mean?
We are trying to write the entire FlexJS framework in ActionScript such
that every line of JS used in the HTML/JS/CSS version was cross-compiled.
This involved porting the handwritten js back to as (hence back port).
When complete, we will essentially prove that large amounts of JS code can
be written in AS.
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by OmPrakash Muppirala <bi...@gmail.com>.
I'm sorry if I missed it earlier, but what exactly does 'back port' mean?
Thanks,
Om
On Wed, Nov 11, 2015 at 9:43 AM, Alex Harui <ah...@adobe.com> wrote:
> Update:
>
> The following SWCs have been back ported (but are in various states of
> operability):
>
> Binding
> Collections
> Effects
> Graphics
> Charts
> Core
> DragDrop
> HTML
>
> Peter is almost done with:
> Mobile
>
> I’m starting in on
> Network
>
>
>
> These are remaining:
> Formatters
> Flat
> GoogleMaps
> HTML5
> Jquery
> CreateJS
>
> Once I finish Network I’ll have most of what I need to get FlexJSStore
> running in order to test the back port of DragDrop, and Effects.
>
>
>
> -Alex
>
> On 10/30/15, 2:34 PM, "Alex Harui" <ah...@adobe.com> wrote:
>
> >Update:
> >
> >I got all of the classes in HTML to cross-compile, and DataBindingExample
> >ran and seemed to work. Along the way, I found and fixed several bugs in
> >Falcon. While this back-port from JS to AS isn’t going out in the 0.5.0
> >release, the fixes to Falcon are since folks writing AS for JS would hit
> >these even for “low-level” JS apps.
> >
> >-Alex
> >
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
Update:
The following SWCs have been back ported (but are in various states of
operability):
Binding
Collections
Effects
Graphics
Charts
Core
DragDrop
HTML
Peter is almost done with:
Mobile
I’m starting in on
Network
These are remaining:
Formatters
Flat
GoogleMaps
HTML5
Jquery
CreateJS
Once I finish Network I’ll have most of what I need to get FlexJSStore
running in order to test the back port of DragDrop, and Effects.
-Alex
On 10/30/15, 2:34 PM, "Alex Harui" <ah...@adobe.com> wrote:
>Update:
>
>I got all of the classes in HTML to cross-compile, and DataBindingExample
>ran and seemed to work. Along the way, I found and fixed several bugs in
>Falcon. While this back-port from JS to AS isn’t going out in the 0.5.0
>release, the fixes to Falcon are since folks writing AS for JS would hit
>these even for “low-level” JS apps.
>
>-Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
Update:
I got all of the classes in HTML to cross-compile, and DataBindingExample
ran and seemed to work. Along the way, I found and fixed several bugs in
Falcon. While this back-port from JS to AS isn’t going out in the 0.5.0
release, the fixes to Falcon are since folks writing AS for JS would hit
these even for “low-level” JS apps.
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 10/14/15, 1:53 PM, "Alex Harui" <ah...@adobe.com> wrote:
>Update:
>
>I got all of the classes in Core to cross-compile. No idea if it will run
>yet, but before I go and start making it run, I think I discovered that I
>can re-organize the sources and possibly make things a bit simpler.
>
>Right now, in the Core project there is an as/src folder and an asjs/src
>folder. The asjs/src folder contains files that cross-compile without any
>conditional compilation. The compile options for the asjs/src folder
>actually reference the SWC generated from as/src prior to compiling the
>code in asjs/src. And then, the asjs/src compile generates a js/out and
>then we run the as/src compile again to package the js/out into the swc.
>
>But now, with the conditional compilation flags, I believe I can now
>collapse asjs/src into as/src and use conditional compilation in the
>CoreClasses.as file to skip cross-compiling a few swf-only classes we have
>in there.
>
>Then, if that’s true, the first step in building the Core project will be
>the cross-compile step to generate the js/out, then the second pass will
>compile the swc. And then all of our src will be in one folder which
>makes it easier to find source files.
>
>Anyway, I’m off to try to make that work. Let me know if I’ve missed
>something or if you have questions. This work will not be going in a
>release any time soon, it is happening in a branch.
It seems to work. DataBindingExample still runs. I pushed these changes,
so Core is now fully written in AS!
I’ll be porting the other SWCs soon. This work is not intended for the
0.5.0 release. I’d appreciate folks trying to find time to help us get
0.5.0 out the door, although I will say that the porting has uncovered
some interesting bugs in Falcon/FalconJX that will go out in 0.5.0 in case
some folks doing native JS from AS run into the same problem.
Thanks,
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
Update:
I got all of the classes in Core to cross-compile. No idea if it will run
yet, but before I go and start making it run, I think I discovered that I
can re-organize the sources and possibly make things a bit simpler.
Right now, in the Core project there is an as/src folder and an asjs/src
folder. The asjs/src folder contains files that cross-compile without any
conditional compilation. The compile options for the asjs/src folder
actually reference the SWC generated from as/src prior to compiling the
code in asjs/src. And then, the asjs/src compile generates a js/out and
then we run the as/src compile again to package the js/out into the swc.
But now, with the conditional compilation flags, I believe I can now
collapse asjs/src into as/src and use conditional compilation in the
CoreClasses.as file to skip cross-compiling a few swf-only classes we have
in there.
Then, if that’s true, the first step in building the Core project will be
the cross-compile step to generate the js/out, then the second pass will
compile the swc. And then all of our src will be in one folder which
makes it easier to find source files.
Anyway, I’m off to try to make that work. Let me know if I’ve missed
something or if you have questions. This work will not be going in a
release any time soon, it is happening in a branch.
-Alex
On 10/8/15, 12:17 PM, "Alex Harui" <ah...@adobe.com> wrote:
>I just pushed a bunch of changes to the flex-asjs repo in the
>Core_js_to_as branch that shows that I could replace several dozen classes
>that were written in JS with AS that cross-compiles to the equivalent JS.
>
>There are many more classes to port, but I think this is the right
>direction to go for many reasons:
>1) It helps prove out the whole AS to JS story
>2) It will reduce errors
>3) It will improve consistency between the SWF and JS versions
>4) More code gets shared.
>
>The only downside I’ve found so far is that it can get a bit ugly if the
>class inheritance isn’t exactly the same (which is isn’t in a few places).
> But I think the trade-off is worth it. I still have to tidy up the build
>scripts a bit. Does anybody have time to pitch in on the rest of the
>port? If so, I will prioritize a wiki page on what to do.
>
>This exercise also found many bugs in Falcon. I just pushed those changes
>too. And I’ve pushed those changes to the develop branch. There is no
>need for a separate branch for the Falcon code required to cross-compile
>this AS to JS right now (and hopefully never in the future either).
>
>So, those Falcon changes will go out in the next release, whereas the
>flex-asjs changes will wait for the next release after we complete the
>port.
>
>I would really like to get a release of Falcon and FlexJS soon. I guess I
>will now try to spend some time trying to make it easier to download and
>build the source packages. Separate thread on that coming up.
>
>-Alex
>
>On 9/18/15, 10:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>>> Yeah, I’m just looking ahead and am in the mood to play in the compiler
>>> code. I figure some day we’ll have a true GCL swc, either by making
>>> EXTERNC more tolerant, or because a d.ts file for GCL will be converted
>>>to
>>> externs.
>>>
>>> I’m also expecting that some day as we go further into this port from
>>>JS
>>> back to AS, that we’ll hit some code or write some code where we need
>>>both
>>> GCL.swc and JS.swc and I would expect collisions between Event and
>>> EventTarget in such a case, even with the stubbed GCL.swc we currently
>>> have, so I’m exploring ways to deal with that.
>>
>>Fair enough, would be awesome !
>>
>>Thanks,
>>Frédéric THOMAS
>>
>>> From: aharui@adobe.com
>>> To: dev@flex.apache.org
>>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>>> Date: Fri, 18 Sep 2015 17:00:51 +0000
>>>
>>>
>>>
>>> On 9/18/15, 9:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>>
>>> >> IMO, the externs swcs are also for developers wanting to build
>>>“native”
>>> >>JS
>>> >> applications without the FlexJS components, so any GCL.swc needs to
>>> >> support some developer using GCL and native JS. So the two swcs
>>>need to
>>> >> be compatible with each other. We could just hack up a GCL just to
>>>get
>>> >> the FlexJS JS to be written in AS but I feel like spending a day or
>>>two
>>> >> trying to see if there is a way we can be more general about it.
>>> >
>>> >Well, it would be nice if the EXTERNC could compile it all to .as but
>>> >IIRC, it was far to be able to do it, the reason why I didn't consider
>>>it
>>> >as another extern but only as a stub with the only purpose I described
>>> >before.
>>> >Now, if you can compile it entirely to .as, what you're saying would
>>>make
>>> >more sense to me indeed but for now, only a part of the Event API has
>>> >been included and for a big part, it was by hand.
>>>
>>> Yeah, I’m just looking ahead and am in the mood to play in the compiler
>>> code. I figure some day we’ll have a true GCL swc, either by making
>>> EXTERNC more tolerant, or because a d.ts file for GCL will be converted
>>>to
>>> externs.
>>>
>>> I’m also expecting that some day as we go further into this port from
>>>JS
>>> back to AS, that we’ll hit some code or write some code where we need
>>>both
>>> GCL.swc and JS.swc and I would expect collisions between Event and
>>> EventTarget in such a case, even with the stubbed GCL.swc we currently
>>> have, so I’m exploring ways to deal with that.
>>>
>>> -Alex
>>>
>>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
I just pushed a bunch of changes to the flex-asjs repo in the
Core_js_to_as branch that shows that I could replace several dozen classes
that were written in JS with AS that cross-compiles to the equivalent JS.
There are many more classes to port, but I think this is the right
direction to go for many reasons:
1) It helps prove out the whole AS to JS story
2) It will reduce errors
3) It will improve consistency between the SWF and JS versions
4) More code gets shared.
The only downside I’ve found so far is that it can get a bit ugly if the
class inheritance isn’t exactly the same (which is isn’t in a few places).
But I think the trade-off is worth it. I still have to tidy up the build
scripts a bit. Does anybody have time to pitch in on the rest of the
port? If so, I will prioritize a wiki page on what to do.
This exercise also found many bugs in Falcon. I just pushed those changes
too. And I’ve pushed those changes to the develop branch. There is no
need for a separate branch for the Falcon code required to cross-compile
this AS to JS right now (and hopefully never in the future either).
So, those Falcon changes will go out in the next release, whereas the
flex-asjs changes will wait for the next release after we complete the
port.
I would really like to get a release of Falcon and FlexJS soon. I guess I
will now try to spend some time trying to make it easier to download and
build the source packages. Separate thread on that coming up.
-Alex
On 9/18/15, 10:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> Yeah, I’m just looking ahead and am in the mood to play in the compiler
>> code. I figure some day we’ll have a true GCL swc, either by making
>> EXTERNC more tolerant, or because a d.ts file for GCL will be converted
>>to
>> externs.
>>
>> I’m also expecting that some day as we go further into this port from JS
>> back to AS, that we’ll hit some code or write some code where we need
>>both
>> GCL.swc and JS.swc and I would expect collisions between Event and
>> EventTarget in such a case, even with the stubbed GCL.swc we currently
>> have, so I’m exploring ways to deal with that.
>
>Fair enough, would be awesome !
>
>Thanks,
>Frédéric THOMAS
>
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Fri, 18 Sep 2015 17:00:51 +0000
>>
>>
>>
>> On 9/18/15, 9:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>> >> IMO, the externs swcs are also for developers wanting to build
>>“native”
>> >>JS
>> >> applications without the FlexJS components, so any GCL.swc needs to
>> >> support some developer using GCL and native JS. So the two swcs
>>need to
>> >> be compatible with each other. We could just hack up a GCL just to
>>get
>> >> the FlexJS JS to be written in AS but I feel like spending a day or
>>two
>> >> trying to see if there is a way we can be more general about it.
>> >
>> >Well, it would be nice if the EXTERNC could compile it all to .as but
>> >IIRC, it was far to be able to do it, the reason why I didn't consider
>>it
>> >as another extern but only as a stub with the only purpose I described
>> >before.
>> >Now, if you can compile it entirely to .as, what you're saying would
>>make
>> >more sense to me indeed but for now, only a part of the Event API has
>> >been included and for a big part, it was by hand.
>>
>> Yeah, I’m just looking ahead and am in the mood to play in the compiler
>> code. I figure some day we’ll have a true GCL swc, either by making
>> EXTERNC more tolerant, or because a d.ts file for GCL will be converted
>>to
>> externs.
>>
>> I’m also expecting that some day as we go further into this port from JS
>> back to AS, that we’ll hit some code or write some code where we need
>>both
>> GCL.swc and JS.swc and I would expect collisions between Event and
>> EventTarget in such a case, even with the stubbed GCL.swc we currently
>> have, so I’m exploring ways to deal with that.
>>
>> -Alex
>>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
OK, I got GCL to compile by disambiguating the global classes and also got
Falcon to allow keywords as method names so Language.is and Language.as
don’t need “_” any more and merged it all into the flex-falcon develop
branch.
I pushed a bunch of commits to the core_js_to_as branch of flex-asjs that
compiles Application.js from Application.as without compiler errors. The
output looks reasonable to me. I commented out the reference to ViewBase
in Application in order to get this to happen.
The next step is to uncomment ViewBase in Application and get ViewBase and
its dependencies ported from js back to as, but, if you look at the
changes I made, I’m doing more fine-grained conditional compilation (per
method instead of per-class) and we’ve done enough refactoring in
ViewBase.js and some other classes that I think I’m going to attempt to
merge from develop into core_js_to_as first before continuing.
Thoughts?
-Alex
On 9/18/15, 10:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> Yeah, I’m just looking ahead and am in the mood to play in the compiler
>> code. I figure some day we’ll have a true GCL swc, either by making
>> EXTERNC more tolerant, or because a d.ts file for GCL will be converted
>>to
>> externs.
>>
>> I’m also expecting that some day as we go further into this port from JS
>> back to AS, that we’ll hit some code or write some code where we need
>>both
>> GCL.swc and JS.swc and I would expect collisions between Event and
>> EventTarget in such a case, even with the stubbed GCL.swc we currently
>> have, so I’m exploring ways to deal with that.
>
>Fair enough, would be awesome !
>
>Thanks,
>Frédéric THOMAS
>
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Fri, 18 Sep 2015 17:00:51 +0000
>>
>>
>>
>> On 9/18/15, 9:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>> >> IMO, the externs swcs are also for developers wanting to build
>>“native”
>> >>JS
>> >> applications without the FlexJS components, so any GCL.swc needs to
>> >> support some developer using GCL and native JS. So the two swcs
>>need to
>> >> be compatible with each other. We could just hack up a GCL just to
>>get
>> >> the FlexJS JS to be written in AS but I feel like spending a day or
>>two
>> >> trying to see if there is a way we can be more general about it.
>> >
>> >Well, it would be nice if the EXTERNC could compile it all to .as but
>> >IIRC, it was far to be able to do it, the reason why I didn't consider
>>it
>> >as another extern but only as a stub with the only purpose I described
>> >before.
>> >Now, if you can compile it entirely to .as, what you're saying would
>>make
>> >more sense to me indeed but for now, only a part of the Event API has
>> >been included and for a big part, it was by hand.
>>
>> Yeah, I’m just looking ahead and am in the mood to play in the compiler
>> code. I figure some day we’ll have a true GCL swc, either by making
>> EXTERNC more tolerant, or because a d.ts file for GCL will be converted
>>to
>> externs.
>>
>> I’m also expecting that some day as we go further into this port from JS
>> back to AS, that we’ll hit some code or write some code where we need
>>both
>> GCL.swc and JS.swc and I would expect collisions between Event and
>> EventTarget in such a case, even with the stubbed GCL.swc we currently
>> have, so I’m exploring ways to deal with that.
>>
>> -Alex
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> Yeah, I’m just looking ahead and am in the mood to play in the compiler
> code. I figure some day we’ll have a true GCL swc, either by making
> EXTERNC more tolerant, or because a d.ts file for GCL will be converted to
> externs.
>
> I’m also expecting that some day as we go further into this port from JS
> back to AS, that we’ll hit some code or write some code where we need both
> GCL.swc and JS.swc and I would expect collisions between Event and
> EventTarget in such a case, even with the stubbed GCL.swc we currently
> have, so I’m exploring ways to deal with that.
Fair enough, would be awesome !
Thanks,
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Fri, 18 Sep 2015 17:00:51 +0000
>
>
>
> On 9/18/15, 9:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> IMO, the externs swcs are also for developers wanting to build “native”
> >>JS
> >> applications without the FlexJS components, so any GCL.swc needs to
> >> support some developer using GCL and native JS. So the two swcs need to
> >> be compatible with each other. We could just hack up a GCL just to get
> >> the FlexJS JS to be written in AS but I feel like spending a day or two
> >> trying to see if there is a way we can be more general about it.
> >
> >Well, it would be nice if the EXTERNC could compile it all to .as but
> >IIRC, it was far to be able to do it, the reason why I didn't consider it
> >as another extern but only as a stub with the only purpose I described
> >before.
> >Now, if you can compile it entirely to .as, what you're saying would make
> >more sense to me indeed but for now, only a part of the Event API has
> >been included and for a big part, it was by hand.
>
> Yeah, I’m just looking ahead and am in the mood to play in the compiler
> code. I figure some day we’ll have a true GCL swc, either by making
> EXTERNC more tolerant, or because a d.ts file for GCL will be converted to
> externs.
>
> I’m also expecting that some day as we go further into this port from JS
> back to AS, that we’ll hit some code or write some code where we need both
> GCL.swc and JS.swc and I would expect collisions between Event and
> EventTarget in such a case, even with the stubbed GCL.swc we currently
> have, so I’m exploring ways to deal with that.
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/18/15, 9:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> IMO, the externs swcs are also for developers wanting to build “native”
>>JS
>> applications without the FlexJS components, so any GCL.swc needs to
>> support some developer using GCL and native JS. So the two swcs need to
>> be compatible with each other. We could just hack up a GCL just to get
>> the FlexJS JS to be written in AS but I feel like spending a day or two
>> trying to see if there is a way we can be more general about it.
>
>Well, it would be nice if the EXTERNC could compile it all to .as but
>IIRC, it was far to be able to do it, the reason why I didn't consider it
>as another extern but only as a stub with the only purpose I described
>before.
>Now, if you can compile it entirely to .as, what you're saying would make
>more sense to me indeed but for now, only a part of the Event API has
>been included and for a big part, it was by hand.
Yeah, I’m just looking ahead and am in the mood to play in the compiler
code. I figure some day we’ll have a true GCL swc, either by making
EXTERNC more tolerant, or because a d.ts file for GCL will be converted to
externs.
I’m also expecting that some day as we go further into this port from JS
back to AS, that we’ll hit some code or write some code where we need both
GCL.swc and JS.swc and I would expect collisions between Event and
EventTarget in such a case, even with the stubbed GCL.swc we currently
have, so I’m exploring ways to deal with that.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> IMO, the externs swcs are also for developers wanting to build “native” JS
> applications without the FlexJS components, so any GCL.swc needs to
> support some developer using GCL and native JS. So the two swcs need to
> be compatible with each other. We could just hack up a GCL just to get
> the FlexJS JS to be written in AS but I feel like spending a day or two
> trying to see if there is a way we can be more general about it.
Well, it would be nice if the EXTERNC could compile it all to .as but IIRC, it was far to be able to do it, the reason why I didn't consider it as another extern but only as a stub with the only purpose I described before.
Now, if you can compile it entirely to .as, what you're saying would make more sense to me indeed but for now, only a part of the Event API has been included and for a big part, it was by hand.
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Fri, 18 Sep 2015 16:20:21 +0000
>
>
>
> On 9/18/15, 9:05 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> Well, some SWC has to provide the builtins like Object, Array, etc. My
> >> guess is that your config is depending on a playerglobal or airglobal,
> >>and
> >> that does work for me, but I was thinking that long-term we want GCL to
> >> depend on js.swc and use its Object and Event definitions in there
> >>because
> >> that is the true set of classes available to GCL developer at runtime.
> >> For example, in one of API right now I saw use of the Class builtin,
> >>which
> >> doesn’t exist in JS.
> >
> >Hmm, not sure I get your point about why to making it dependent of js.wc.
> >
> >To me, we use the GCL only as a stub to be able to strongly type our
> >code, not for what it means at JS point of you, doing so, until it
> >compiles and provide us with strong types, I'm happy with, am I missing
> >something ?
> >I added it as an external library in the Core and the
> >playerglobal did the trick to build it, why it doesn't work for you ?
>
> IMO, the externs swcs are also for developers wanting to build “native” JS
> applications without the FlexJS components, so any GCL.swc needs to
> support some developer using GCL and native JS. So the two swcs need to
> be compatible with each other. We could just hack up a GCL just to get
> the FlexJS JS to be written in AS but I feel like spending a day or two
> trying to see if there is a way we can be more general about it.
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/18/15, 9:05 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> Well, some SWC has to provide the builtins like Object, Array, etc. My
>> guess is that your config is depending on a playerglobal or airglobal,
>>and
>> that does work for me, but I was thinking that long-term we want GCL to
>> depend on js.swc and use its Object and Event definitions in there
>>because
>> that is the true set of classes available to GCL developer at runtime.
>> For example, in one of API right now I saw use of the Class builtin,
>>which
>> doesn’t exist in JS.
>
>Hmm, not sure I get your point about why to making it dependent of js.wc.
>
>To me, we use the GCL only as a stub to be able to strongly type our
>code, not for what it means at JS point of you, doing so, until it
>compiles and provide us with strong types, I'm happy with, am I missing
>something ?
>I added it as an external library in the Core and the
>playerglobal did the trick to build it, why it doesn't work for you ?
IMO, the externs swcs are also for developers wanting to build “native” JS
applications without the FlexJS components, so any GCL.swc needs to
support some developer using GCL and native JS. So the two swcs need to
be compatible with each other. We could just hack up a GCL just to get
the FlexJS JS to be written in AS but I feel like spending a day or two
trying to see if there is a way we can be more general about it.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> Well, some SWC has to provide the builtins like Object, Array, etc. My
> guess is that your config is depending on a playerglobal or airglobal, and
> that does work for me, but I was thinking that long-term we want GCL to
> depend on js.swc and use its Object and Event definitions in there because
> that is the true set of classes available to GCL developer at runtime.
> For example, in one of API right now I saw use of the Class builtin, which
> doesn’t exist in JS.
Hmm, not sure I get your point about why to making it dependent of js.wc.
To me, we use the GCL only as a stub to be able to strongly type our code, not for what it means at JS point of you, doing so, until it compiles and provide us with strong types, I'm happy with, am I missing something ?
I added it as an external library in the Core and the
playerglobal did the trick to build it, why it doesn't work for you ?
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Fri, 18 Sep 2015 15:04:50 +0000
>
>
>
> On 9/18/15, 6:56 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> I’ve been trying to get your GCL.swc to build from Ant without requiring
> >> an application.home systemProperty. I ran into an issue with missing
> >> builtins like Object. It could be that IJ injects these builtins no
> >> matter what. From Ant I need to have GCL depend on js.swc, but then I
> >>get
> >> other conflicts that I am trying to sort through in the compiler.
> >
> >That's my conf., basicaly, I removed all the libraries from the SDK to
> >build it and don't depend on js.swc either.
> >
> >http://pastebin.com/q7X3K38E
>
> Well, some SWC has to provide the builtins like Object, Array, etc. My
> guess is that your config is depending on a playerglobal or airglobal, and
> that does work for me, but I was thinking that long-term we want GCL to
> depend on js.swc and use its Object and Event definitions in there because
> that is the true set of classes available to GCL developer at runtime.
> For example, in one of API right now I saw use of the Class builtin, which
> doesn’t exist in JS.
>
> Using js.swc does cause other errors. Both GCL and js have Event and
> EventTarget definitions. I’ve made a tweak to the compiler to not emit an
> AmbiguousDefinition error if it finds a conflict between global namespace
> definitions and a definition in the same package as the class being
> compiled. It will always use the one in the same package. I think we’ll
> probably add more logic to ignore conflicts between global definitions and
> a definition that has been explicitly imported. Right now, though, I’m on
> a little side-trip to see if there is an already existing way to specify
> the global namespace or if there is an easy way to add one.
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/18/15, 11:54 AM, "Josh Tynjala" <jo...@gmail.com> wrote:
>Of the options that you presented, I think I like *.Event and .Event the
>most.
>
>The options with :: don't feel quite right. While I know that packages are
>namespaces (I remember making that discovery back in the day and excitedly
>blogging about it), other classes aren't usually referenced with :: in
>code. With that in mind, I like . better than :: because the . is more
>consistent. If it were somehow easier to implement, though, I could live
>with it.
>
>A simple string like global or null might conflict with some top-level
>variable in user code or in the standard library of some JS environment,
>so
>I think that style should be avoided.
Agreed.
>
>Of the two between *.Event and .Event, I'm not quite sure which I like
>better. Which of these seems more readable?
>
>var myVar:.Event = new .Event();
>
>var myVar:*.Event = new *.Event();
>
>At first, I thought I liked *.Event better, but I might be preferring
>.Event more now.
Yeah, it might be easier grammar-wise to have something in front of the
‘.’. I’m still digging into the compiler. I will report my findings and
recommendations before committing anything.
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Josh Tynjala <jo...@gmail.com>.
I was just trying to understand the AS3 namespace a little bit yesterday
while fixing some issues in dts2as. It appears that the AS3 namespace is
used to allow certain functions on the Object class, like toString() and
valueOf(), to be implemented in subclasses without requiring the override
keyword. I think the AS3 namespace is always available, so it ends up
acting similarly to public. Kind of interesting.
Back on topic, yes, I agree some kind of token or keyword should be used to
designate the global namespace. Like you, I'm a little wary of using the
existing AS3 namespace identifier for that.
Of the options that you presented, I think I like *.Event and .Event the
most.
The options with :: don't feel quite right. While I know that packages are
namespaces (I remember making that discovery back in the day and excitedly
blogging about it), other classes aren't usually referenced with :: in
code. With that in mind, I like . better than :: because the . is more
consistent. If it were somehow easier to implement, though, I could live
with it.
A simple string like global or null might conflict with some top-level
variable in user code or in the standard library of some JS environment, so
I think that style should be avoided.
Of the two between *.Event and .Event, I'm not quite sure which I like
better. Which of these seems more readable?
var myVar:.Event = new .Event();
var myVar:*.Event = new *.Event();
At first, I thought I liked *.Event better, but I might be preferring
.Event more now.
- Josh
On Fri, Sep 18, 2015 at 9:38 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 9/18/15, 9:02 AM, "Josh Tynjala" <jo...@gmail.com> wrote:
>
> >I don't think that there's a currently a way to explicitly specify the
> >global namespace in a fully-qualified class name. I suspect it rarely came
> >up in the Flash runtime because it has so few global classes. This would
> >be
> >very useful with the very large number of classes in the JavaScript global
> >namespace, though. I hope you can figure out how to add it!
>
> I don’t know if there is currently a way or not. I’m currently stepping
> through the lexer/parser to see how it handles namespaces. The concept of
> namespaces is heavily used within the compiler. There appear to be
> special namespaces like “public”, “protected” and “private” and user
> defined namespaces (like mx_internal) and packages are also namespaces and
> not objects like they are in JS.
>
> If there isn’t a current way, my first thoughts are to designate a special
> token or keyword for a user-defined namespace that implies the global
> namespace or trick the package namespace lexer/tokenizer to allow
> something.
>
> For example, user-defined namespaces are indicated in-line with ‘::’ as in:
> mx_internal::someVar
>
> And package namespaces are indicated with a dot-path expression to fully
> qualify something as in:
> org.apache.flex.events.Event
>
> So maybe one of the following can currently be used or the compiler can be
> taught to use as a way to fully qualify the “global” package/namespace.
>
> ::Event // nothing in front of the user-defined namespace delimiter
> null::Event
> global::Event
> *::Event
> *.Event
> null.Event
> .Event // nothing in front of the package path delimiter
>
> FWIW, there appear to be “hidden” namespaces for the builtins like Object,
> Array, String. I see use of:
>
> http://adobe.com/AS3/2006/builtin
>
> and
>
> AS3
>
> as namespaces in the compiler code. We could use AS3 as the special
> keyword so
>
> AS3::Event
>
> is the Event in the global namespace, but that doesn’t feel right to me.
> I’m leaning towards keeping these namespaces for the true builtins for AS
> and JS. But I’m open to change on that.
>
> Thoughts?
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/18/15, 9:02 AM, "Josh Tynjala" <jo...@gmail.com> wrote:
>I don't think that there's a currently a way to explicitly specify the
>global namespace in a fully-qualified class name. I suspect it rarely came
>up in the Flash runtime because it has so few global classes. This would
>be
>very useful with the very large number of classes in the JavaScript global
>namespace, though. I hope you can figure out how to add it!
I don’t know if there is currently a way or not. I’m currently stepping
through the lexer/parser to see how it handles namespaces. The concept of
namespaces is heavily used within the compiler. There appear to be
special namespaces like “public”, “protected” and “private” and user
defined namespaces (like mx_internal) and packages are also namespaces and
not objects like they are in JS.
If there isn’t a current way, my first thoughts are to designate a special
token or keyword for a user-defined namespace that implies the global
namespace or trick the package namespace lexer/tokenizer to allow
something.
For example, user-defined namespaces are indicated in-line with ‘::’ as in:
mx_internal::someVar
And package namespaces are indicated with a dot-path expression to fully
qualify something as in:
org.apache.flex.events.Event
So maybe one of the following can currently be used or the compiler can be
taught to use as a way to fully qualify the “global” package/namespace.
::Event // nothing in front of the user-defined namespace delimiter
null::Event
global::Event
*::Event
*.Event
null.Event
.Event // nothing in front of the package path delimiter
FWIW, there appear to be “hidden” namespaces for the builtins like Object,
Array, String. I see use of:
http://adobe.com/AS3/2006/builtin
and
AS3
as namespaces in the compiler code. We could use AS3 as the special
keyword so
AS3::Event
is the Event in the global namespace, but that doesn’t feel right to me.
I’m leaning towards keeping these namespaces for the true builtins for AS
and JS. But I’m open to change on that.
Thoughts?
-Alex
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Josh Tynjala <jo...@gmail.com>.
I don't think that there's a currently a way to explicitly specify the
global namespace in a fully-qualified class name. I suspect it rarely came
up in the Flash runtime because it has so few global classes. This would be
very useful with the very large number of classes in the JavaScript global
namespace, though. I hope you can figure out how to add it!
- Josh
On Fri, Sep 18, 2015 at 8:04 AM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 9/18/15, 6:56 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> I’ve been trying to get your GCL.swc to build from Ant without requiring
> >> an application.home systemProperty. I ran into an issue with missing
> >> builtins like Object. It could be that IJ injects these builtins no
> >> matter what. From Ant I need to have GCL depend on js.swc, but then I
> >>get
> >> other conflicts that I am trying to sort through in the compiler.
> >
> >That's my conf., basicaly, I removed all the libraries from the SDK to
> >build it and don't depend on js.swc either.
> >
> >http://pastebin.com/q7X3K38E
>
> Well, some SWC has to provide the builtins like Object, Array, etc. My
> guess is that your config is depending on a playerglobal or airglobal, and
> that does work for me, but I was thinking that long-term we want GCL to
> depend on js.swc and use its Object and Event definitions in there because
> that is the true set of classes available to GCL developer at runtime.
> For example, in one of API right now I saw use of the Class builtin, which
> doesn’t exist in JS.
>
> Using js.swc does cause other errors. Both GCL and js have Event and
> EventTarget definitions. I’ve made a tweak to the compiler to not emit an
> AmbiguousDefinition error if it finds a conflict between global
> namespace
> definitions and a definition in the same package as the class being
> compiled. It will always use the one in the same package. I think we’ll
> probably add more logic to ignore conflicts between global definitions and
> a definition that has been explicitly imported. Right now, though, I’m on
> a little side-trip to see if there is an already existing way to specify
> the global namespace or if there is an easy way to add one.
>
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/18/15, 6:56 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> I’ve been trying to get your GCL.swc to build from Ant without requiring
>> an application.home systemProperty. I ran into an issue with missing
>> builtins like Object. It could be that IJ injects these builtins no
>> matter what. From Ant I need to have GCL depend on js.swc, but then I
>>get
>> other conflicts that I am trying to sort through in the compiler.
>
>That's my conf., basicaly, I removed all the libraries from the SDK to
>build it and don't depend on js.swc either.
>
>http://pastebin.com/q7X3K38E
Well, some SWC has to provide the builtins like Object, Array, etc. My
guess is that your config is depending on a playerglobal or airglobal, and
that does work for me, but I was thinking that long-term we want GCL to
depend on js.swc and use its Object and Event definitions in there because
that is the true set of classes available to GCL developer at runtime.
For example, in one of API right now I saw use of the Class builtin, which
doesn’t exist in JS.
Using js.swc does cause other errors. Both GCL and js have Event and
EventTarget definitions. I’ve made a tweak to the compiler to not emit an
AmbiguousDefinition error if it finds a conflict between global namespace
definitions and a definition in the same package as the class being
compiled. It will always use the one in the same package. I think we’ll
probably add more logic to ignore conflicts between global definitions and
a definition that has been explicitly imported. Right now, though, I’m on
a little side-trip to see if there is an already existing way to specify
the global namespace or if there is an easy way to add one.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> OK, sounds good. Happy Birthday, and good luck with your new role.
Thank you.
> I’ve been trying to get your GCL.swc to build from Ant without requiring
> an application.home systemProperty. I ran into an issue with missing
> builtins like Object. It could be that IJ injects these builtins no
> matter what. From Ant I need to have GCL depend on js.swc, but then I get
> other conflicts that I am trying to sort through in the compiler.
That's my conf., basicaly, I removed all the libraries from the SDK to build it and don't depend on js.swc either.
http://pastebin.com/q7X3K38E
HTH
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Fri, 18 Sep 2015 13:34:05 +0000
>
>
>
> On 9/18/15, 6:19 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> By commenting out the use of ViewBase from Application.as, I was able to
> >> get Application.as to compile without errors and got what looked like a
> >> reasonable list of goog.requires without changing any compiler.clients
> >> classes.
> >
> >Have you try to run the compile-as-to-js-core-application-using-falcon
> >target in the core build ?
> >with this one and the convertion I did, I was able to build Application
> >too without removing anything.
> >
> >I issue I had was with compile-as-to-js-core-application-using-oem.
>
> I didn’t try that target yet. I will probably try later today.
>
> >
> >> I did notice that the method bodies that had conditional compilation
> >> didn’t output anything so I’m going to look at that next. Or is that
> >>what
> >> you tried to fix by changing compiler.clients.*?
> >
> >No, it wasn't that, it seems you discovered another issue.
>
> I have that issue fixed locally and saw what looked like a good
> Application.js get generated, but I didn’t try running it yet. I will
> probably convert a few more classes like ViewBase and then swap those
> generated .js files into an existing app and see what happens.
>
> >
> >Btw, I won't be able to work on it this weekend, that's my birthday and
> >I'm going to party (a lot) and on Monday I'm starting on a new role, not
> >sure how much it will suck my brain yet.
>
> OK, sounds good. Happy Birthday, and good luck with your new role.
>
> I’ve been trying to get your GCL.swc to build from Ant without requiring
> an application.home systemProperty. I ran into an issue with missing
> builtins like Object. It could be that IJ injects these builtins no
> matter what. From Ant I need to have GCL depend on js.swc, but then I get
> other conflicts that I am trying to sort through in the compiler.
>
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/18/15, 6:19 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> By commenting out the use of ViewBase from Application.as, I was able to
>> get Application.as to compile without errors and got what looked like a
>> reasonable list of goog.requires without changing any compiler.clients
>> classes.
>
>Have you try to run the compile-as-to-js-core-application-using-falcon
>target in the core build ?
>with this one and the convertion I did, I was able to build Application
>too without removing anything.
>
>I issue I had was with compile-as-to-js-core-application-using-oem.
I didn’t try that target yet. I will probably try later today.
>
>> I did notice that the method bodies that had conditional compilation
>> didn’t output anything so I’m going to look at that next. Or is that
>>what
>> you tried to fix by changing compiler.clients.*?
>
>No, it wasn't that, it seems you discovered another issue.
I have that issue fixed locally and saw what looked like a good
Application.js get generated, but I didn’t try running it yet. I will
probably convert a few more classes like ViewBase and then swap those
generated .js files into an existing app and see what happens.
>
>Btw, I won't be able to work on it this weekend, that's my birthday and
>I'm going to party (a lot) and on Monday I'm starting on a new role, not
>sure how much it will suck my brain yet.
OK, sounds good. Happy Birthday, and good luck with your new role.
I’ve been trying to get your GCL.swc to build from Ant without requiring
an application.home systemProperty. I ran into an issue with missing
builtins like Object. It could be that IJ injects these builtins no
matter what. From Ant I need to have GCL depend on js.swc, but then I get
other conflicts that I am trying to sort through in the compiler.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> By commenting out the use of ViewBase from Application.as, I was able to
> get Application.as to compile without errors and got what looked like a
> reasonable list of goog.requires without changing any compiler.clients
> classes.
Have you try to run the compile-as-to-js-core-application-using-falcon target in the core build ?
with this one and the convertion I did, I was able to build Application too without removing anything.
I issue I had was with compile-as-to-js-core-application-using-oem.
> I did notice that the method bodies that had conditional compilation
> didn’t output anything so I’m going to look at that next. Or is that what
> you tried to fix by changing compiler.clients.*?
No, it wasn't that, it seems you discovered another issue.
Btw, I won't be able to work on it this weekend, that's my birthday and I'm going to party (a lot) and on Monday I'm starting on a new role, not sure how much it will suck my brain yet.
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Thu, 17 Sep 2015 18:37:30 +0000
>
>
>
> On 9/17/15, 10:05 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >
> >> Do you still have the missing goog.require problem?
> >
> >Yes but I will fix that, the compiler.clients.* used directly does not
> >create the issue.
>
> By commenting out the use of ViewBase from Application.as, I was able to
> get Application.as to compile without errors and got what looked like a
> reasonable list of goog.requires without changing any compiler.clients
> classes.
>
> I did notice that the method bodies that had conditional compilation
> didn’t output anything so I’m going to look at that next. Or is that what
> you tried to fix by changing compiler.clients.*?
>
> Thanks,
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Josh Tynjala <jo...@gmail.com>.
I hope to release the first version of my dts2as tool soon. I haven't
finished testing it yet.
- Josh
On Thu, Sep 17, 2015 at 10:05 AM, Frédéric THOMAS <we...@hotmail.com>
wrote:
> > So I assume that takes care of the package-level getter/setter issue
> > right? There really shouldn’t need to be package level getters and
> > setters if we can create classes like goog.events, which IMO, better
> > mirrors what is actually happening in JS (where goog and goog.events are
> > actually objects).
>
> Yes, it does, thank !
> Another thing is the legacy compiler allows to have getter / setter at
> package level, not Falcon.
>
> > Do you still have the missing goog.require problem?
>
> Yes but I will fix that, the compiler.clients.* used directly does not
> create the issue.
>
> > Yes, I’m merging in your changes right now.
>
> Ok, just take note that I kept only Application in basic-manifest.xml,
> removed the -source-path option for the only purpose of being focussed on
> compiling only that class and its components, doing so, I wasn't bother by
> any other compilation issues of the classes I hadn't been converted yet.
>
> > I’m wondering why you decided to make such a “complete” GCL.swc. I’m
> > tempted to make a much smaller one that just has the few classes we need,
> > then we don’t have such a huge pile of custom code to maintain. I made
> my
> > own stubs last night and it was only four small files so far.
>
> My dream would have been that the EXTERNC compiles all the GCL, it was far
> to be able to do it, at the point that instead of trying to improve it, I
> took what it has generated and used it in a new GCL project, so, not sure
> we need all the GCL JS sources I committed, not sure either, at the end, I
> added more AS classes than what I need, could be though...
>
> Btw, Josh started to build a tool to cross compile typescripts extern
> libraries to .swc, not sure how much progress he did on it though but it
> would be awesome for other libs because the number of them is impressive.
>
> Frédéric THOMAS
>
> > From: aharui@adobe.com
> > To: dev@flex.apache.org
> > Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > Date: Thu, 17 Sep 2015 16:43:52 +0000
> >
> >
> > On 9/17/15, 9:32 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >
> > >> I’m interested to see what you put in GCL.swc. I created a few stubs
> > >>for
> > >> the calls I needed and also changed the compiler so it will allow
> > >> goog.events.fireListener to be a class called goog.events with a
> > >> fireListener member and not fail by assuming goog.events was a package
> > >>and
> > >> not finding the fireListener class.
> > >
> > >After having cherrypicked your fix, I added a goog.events class and
> added
> > >a static getter / setter and t made the trick !
> >
> > So I assume that takes care of the package-level getter/setter issue
> > right? There really shouldn’t need to be package level getters and
> > setters if we can create classes like goog.events, which IMO, better
> > mirrors what is actually happening in JS (where goog and goog.events are
> > actually objects).
> >
> > Do you still have the missing goog.require problem?
> >
> > >
> > >I committed GCL, read the commit comments and come back to me if you
> need
> > >more details.
> >
> > Yes, I’m merging in your changes right now.
> >
> > I’m wondering why you decided to make such a “complete” GCL.swc. I’m
> > tempted to make a much smaller one that just has the few classes we need,
> > then we don’t have such a huge pile of custom code to maintain. I made
> my
> > own stubs last night and it was only four small files so far.
> >
> >
> > -Alex
> >
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/17/15, 10:05 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>> Do you still have the missing goog.require problem?
>
>Yes but I will fix that, the compiler.clients.* used directly does not
>create the issue.
By commenting out the use of ViewBase from Application.as, I was able to
get Application.as to compile without errors and got what looked like a
reasonable list of goog.requires without changing any compiler.clients
classes.
I did notice that the method bodies that had conditional compilation
didn’t output anything so I’m going to look at that next. Or is that what
you tried to fix by changing compiler.clients.*?
Thanks,
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> So I assume that takes care of the package-level getter/setter issue
> right? There really shouldn’t need to be package level getters and
> setters if we can create classes like goog.events, which IMO, better
> mirrors what is actually happening in JS (where goog and goog.events are
> actually objects).
Yes, it does, thank !
Another thing is the legacy compiler allows to have getter / setter at package level, not Falcon.
> Do you still have the missing goog.require problem?
Yes but I will fix that, the compiler.clients.* used directly does not create the issue.
> Yes, I’m merging in your changes right now.
Ok, just take note that I kept only Application in basic-manifest.xml, removed the -source-path option for the only purpose of being focussed on compiling only that class and its components, doing so, I wasn't bother by any other compilation issues of the classes I hadn't been converted yet.
> I’m wondering why you decided to make such a “complete” GCL.swc. I’m
> tempted to make a much smaller one that just has the few classes we need,
> then we don’t have such a huge pile of custom code to maintain. I made my
> own stubs last night and it was only four small files so far.
My dream would have been that the EXTERNC compiles all the GCL, it was far to be able to do it, at the point that instead of trying to improve it, I took what it has generated and used it in a new GCL project, so, not sure we need all the GCL JS sources I committed, not sure either, at the end, I added more AS classes than what I need, could be though...
Btw, Josh started to build a tool to cross compile typescripts extern libraries to .swc, not sure how much progress he did on it though but it would be awesome for other libs because the number of them is impressive.
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Thu, 17 Sep 2015 16:43:52 +0000
>
>
> On 9/17/15, 9:32 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> I’m interested to see what you put in GCL.swc. I created a few stubs
> >>for
> >> the calls I needed and also changed the compiler so it will allow
> >> goog.events.fireListener to be a class called goog.events with a
> >> fireListener member and not fail by assuming goog.events was a package
> >>and
> >> not finding the fireListener class.
> >
> >After having cherrypicked your fix, I added a goog.events class and added
> >a static getter / setter and t made the trick !
>
> So I assume that takes care of the package-level getter/setter issue
> right? There really shouldn’t need to be package level getters and
> setters if we can create classes like goog.events, which IMO, better
> mirrors what is actually happening in JS (where goog and goog.events are
> actually objects).
>
> Do you still have the missing goog.require problem?
>
> >
> >I committed GCL, read the commit comments and come back to me if you need
> >more details.
>
> Yes, I’m merging in your changes right now.
>
> I’m wondering why you decided to make such a “complete” GCL.swc. I’m
> tempted to make a much smaller one that just has the few classes we need,
> then we don’t have such a huge pile of custom code to maintain. I made my
> own stubs last night and it was only four small files so far.
>
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/17/15, 9:32 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> I’m interested to see what you put in GCL.swc. I created a few stubs
>>for
>> the calls I needed and also changed the compiler so it will allow
>> goog.events.fireListener to be a class called goog.events with a
>> fireListener member and not fail by assuming goog.events was a package
>>and
>> not finding the fireListener class.
>
>After having cherrypicked your fix, I added a goog.events class and added
>a static getter / setter and t made the trick !
So I assume that takes care of the package-level getter/setter issue
right? There really shouldn’t need to be package level getters and
setters if we can create classes like goog.events, which IMO, better
mirrors what is actually happening in JS (where goog and goog.events are
actually objects).
Do you still have the missing goog.require problem?
>
>I committed GCL, read the commit comments and come back to me if you need
>more details.
Yes, I’m merging in your changes right now.
I’m wondering why you decided to make such a “complete” GCL.swc. I’m
tempted to make a much smaller one that just has the few classes we need,
then we don’t have such a huge pile of custom code to maintain. I made my
own stubs last night and it was only four small files so far.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> > Also, I observed that in HTMLElementWrapper, the element is typed as
> > EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> > that adds flexjs_wrapper to an HTMLElement. That’s interesting because it
> > means we won’t be able to do a straight port if we want more type-safety
> > from the compiler. Instead we’ll have to create some new utilities
> > classes.
>
> Yes, it would allow to conditional compile only some Application's methods instead of the all class as I did.
Oups, I was talking about Sprite here.
Frédéric THOMAS
> From: webdoublefx@hotmail.com
> To: dev@flex.apache.org
> Subject: RE: [FlexJS] Framework using externs (was: Setup Error)
> Date: Thu, 17 Sep 2015 17:32:01 +0100
>
> > I’m interested to see what you put in GCL.swc. I created a few stubs for
> > the calls I needed and also changed the compiler so it will allow
> > goog.events.fireListener to be a class called goog.events with a
> > fireListener member and not fail by assuming goog.events was a package and
> > not finding the fireListener class.
>
> After having cherrypicked your fix, I added a goog.events class and added a static getter / setter and t made the trick !
>
> > Also, I observed that in HTMLElementWrapper, the element is typed as
> > EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> > that adds flexjs_wrapper to an HTMLElement. That’s interesting because it
> > means we won’t be able to do a straight port if we want more type-safety
> > from the compiler. Instead we’ll have to create some new utilities
> > classes.
>
> Yes, it would allow to conditional compile only some Application's methods instead of the all class as I did.
>
> As I mentioned before, there was some changes on the core classes it depends on on the develop branch I did not reported to this one.
> Also, please double check HTMLElementWrapper and the @export in general, wasn't sure whenever a subclass inherit the export behaviour, so, I might have missed some.
>
> I committed GCL, read the commit comments and come back to me if you need more details.
>
> Thanks,
> Frédéric THOMAS
>
> > From: aharui@adobe.com
> > To: dev@flex.apache.org
> > Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > Date: Thu, 17 Sep 2015 06:31:47 +0000
> >
> >
> >
> > On 9/16/15, 1:13 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >
> > >> Yeah, like several of the interfaces. But I’ve commented them out of
> > >>the
> > >> project right now and am just trying to get Application and all of its
> > >> dependencies to compile.
> > >
> > >My guess is it won't be easy in as3 to express some of the GCL calls
> > >though without the lib
> >
> > I’m interested to see what you put in GCL.swc. I created a few stubs for
> > the calls I needed and also changed the compiler so it will allow
> > goog.events.fireListener to be a class called goog.events with a
> > fireListener member and not fail by assuming goog.events was a package and
> > not finding the fireListener class.
> >
> > Also, I observed that in HTMLElementWrapper, the element is typed as
> > EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> > that adds flexjs_wrapper to an HTMLElement. That’s interesting because it
> > means we won’t be able to do a straight port if we want more type-safety
> > from the compiler. Instead we’ll have to create some new utilities
> > classes.
> >
> > I’m done for today. Will spend more time on it tomorrow.
> >
> > -Alex
> >
> > >
> > >Frédéric THOMAS
> > >
> > >> From: aharui@adobe.com
> > >> To: dev@flex.apache.org
> > >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> > >> Date: Wed, 16 Sep 2015 19:59:57 +0000
> > >>
> > >>
> > >>
> > >> On 9/16/15, 12:55 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> > >>
> > >> >> I started out by trying to compile every AS file in Core with
> > >> >
> > >> >
> > >> >> COMPILE::AS3,false and got lots of errors.
> > >> >
> > >> >Are you talking about the ones not making use of the GCL.swc and having
> > >> >no dependencies with the ones which use it ?
> > >>
> > >> Yeah, like several of the interfaces. But I’ve commented them out of
> > >>the
> > >> project right now and am just trying to get Application and all of its
> > >> dependencies to compile.
> > >>
> > >> -Alex
> > >>
> > >>
> > >
> >
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> I’m interested to see what you put in GCL.swc. I created a few stubs for
> the calls I needed and also changed the compiler so it will allow
> goog.events.fireListener to be a class called goog.events with a
> fireListener member and not fail by assuming goog.events was a package and
> not finding the fireListener class.
After having cherrypicked your fix, I added a goog.events class and added a static getter / setter and t made the trick !
> Also, I observed that in HTMLElementWrapper, the element is typed as
> EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> that adds flexjs_wrapper to an HTMLElement. That’s interesting because it
> means we won’t be able to do a straight port if we want more type-safety
> from the compiler. Instead we’ll have to create some new utilities
> classes.
Yes, it would allow to conditional compile only some Application's methods instead of the all class as I did.
As I mentioned before, there was some changes on the core classes it depends on on the develop branch I did not reported to this one.
Also, please double check HTMLElementWrapper and the @export in general, wasn't sure whenever a subclass inherit the export behaviour, so, I might have missed some.
I committed GCL, read the commit comments and come back to me if you need more details.
Thanks,
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Thu, 17 Sep 2015 06:31:47 +0000
>
>
>
> On 9/16/15, 1:13 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> Yeah, like several of the interfaces. But I’ve commented them out of
> >>the
> >> project right now and am just trying to get Application and all of its
> >> dependencies to compile.
> >
> >My guess is it won't be easy in as3 to express some of the GCL calls
> >though without the lib
>
> I’m interested to see what you put in GCL.swc. I created a few stubs for
> the calls I needed and also changed the compiler so it will allow
> goog.events.fireListener to be a class called goog.events with a
> fireListener member and not fail by assuming goog.events was a package and
> not finding the fireListener class.
>
> Also, I observed that in HTMLElementWrapper, the element is typed as
> EventTarget, but I think we’ll need to create a class like FlexHTMLElement
> that adds flexjs_wrapper to an HTMLElement. That’s interesting because it
> means we won’t be able to do a straight port if we want more type-safety
> from the compiler. Instead we’ll have to create some new utilities
> classes.
>
> I’m done for today. Will spend more time on it tomorrow.
>
> -Alex
>
> >
> >Frédéric THOMAS
> >
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Wed, 16 Sep 2015 19:59:57 +0000
> >>
> >>
> >>
> >> On 9/16/15, 12:55 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >>
> >> >> I started out by trying to compile every AS file in Core with
> >> >
> >> >
> >> >> COMPILE::AS3,false and got lots of errors.
> >> >
> >> >Are you talking about the ones not making use of the GCL.swc and having
> >> >no dependencies with the ones which use it ?
> >>
> >> Yeah, like several of the interfaces. But I’ve commented them out of
> >>the
> >> project right now and am just trying to get Application and all of its
> >> dependencies to compile.
> >>
> >> -Alex
> >>
> >>
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/16/15, 1:13 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> Yeah, like several of the interfaces. But I’ve commented them out of
>>the
>> project right now and am just trying to get Application and all of its
>> dependencies to compile.
>
>My guess is it won't be easy in as3 to express some of the GCL calls
>though without the lib
I’m interested to see what you put in GCL.swc. I created a few stubs for
the calls I needed and also changed the compiler so it will allow
goog.events.fireListener to be a class called goog.events with a
fireListener member and not fail by assuming goog.events was a package and
not finding the fireListener class.
Also, I observed that in HTMLElementWrapper, the element is typed as
EventTarget, but I think we’ll need to create a class like FlexHTMLElement
that adds flexjs_wrapper to an HTMLElement. That’s interesting because it
means we won’t be able to do a straight port if we want more type-safety
from the compiler. Instead we’ll have to create some new utilities
classes.
I’m done for today. Will spend more time on it tomorrow.
-Alex
>
>Frédéric THOMAS
>
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Wed, 16 Sep 2015 19:59:57 +0000
>>
>>
>>
>> On 9/16/15, 12:55 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>> >> I started out by trying to compile every AS file in Core with
>> >
>> >
>> >> COMPILE::AS3,false and got lots of errors.
>> >
>> >Are you talking about the ones not making use of the GCL.swc and having
>> >no dependencies with the ones which use it ?
>>
>> Yeah, like several of the interfaces. But I’ve commented them out of
>>the
>> project right now and am just trying to get Application and all of its
>> dependencies to compile.
>>
>> -Alex
>>
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> Yeah, like several of the interfaces. But I’ve commented them out of the
> project right now and am just trying to get Application and all of its
> dependencies to compile.
My guess is it won't be easy in as3 to express some of the GCL calls though without the lib
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 19:59:57 +0000
>
>
>
> On 9/16/15, 12:55 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> I started out by trying to compile every AS file in Core with
> >
> >
> >> COMPILE::AS3,false and got lots of errors.
> >
> >Are you talking about the ones not making use of the GCL.swc and having
> >no dependencies with the ones which use it ?
>
> Yeah, like several of the interfaces. But I’ve commented them out of the
> project right now and am just trying to get Application and all of its
> dependencies to compile.
>
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/16/15, 12:55 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> I started out by trying to compile every AS file in Core with
>
>
>> COMPILE::AS3,false and got lots of errors.
>
>Are you talking about the ones not making use of the GCL.swc and having
>no dependencies with the ones which use it ?
Yeah, like several of the interfaces. But I’ve commented them out of the
project right now and am just trying to get Application and all of its
dependencies to compile.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> I started out by trying to compile every AS file in Core with
> COMPILE::AS3,false and got lots of errors.
Are you talking about the ones not making use of the GCL.swc and having no dependencies with the ones which use it ?
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 19:31:45 +0000
>
> Hi Fred,
>
> I started out by trying to compile every AS file in Core with
> COMPILE::AS3,false and got lots of errors. I think you may have done that
> to keep them out of the errors list while you work on Application, so I’ve
> commented a lot of classes out of the build for now. I think for a lot of
> these classes, they won’t need conditional compilation.
>
> I only now figured out why you were concerned about Sprite. I will
> introduce an ApplicationBase.as class that abstracts away the differences.
>
> I’m about to start writing HTMLElementWrapper.as and try to figure out
> where to put it. I don’t really want to have it in as/src, maybe in a new
> folder like js/as/src?
>
> Thanks for getting this started.
> -Alex
>
> On 9/16/15, 12:20 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >Hi Alex,
> >
> >Actually, I removed all the js files from the compilation path in order
> >to re-code them one by one in as3, so, all the existing classes already
> >in as3, I wrapped them with COMPILE::AS3 because for sure the output
> >artefact for them will be .swc
> >
> >I started to convert the Application sub components to as3 wrapping them
> >with COMPILE:JS because the output artefact for them will be .js
> >
> >Does it makes sense ?
> >
> >Note:
> >1- Those core classes in JS have been modified in the master branch, so,
> >my conversion is not in sync
> >2- I had t2 issues with the GCL.swc and Falcon, the one I mentioned
> >relative to the getter / setter at package level and another one I
> >haven't in mind at the moment but will describe tomorrow, proving more
> >details about the GCL.swc
> >
> >Frédéric THOMAS
> >
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Wed, 16 Sep 2015 16:54:06 +0000
> >>
> >> Hi Fred,
> >>
> >> I started poking around in the branch. I’m confused by how you plan to
> >> use the conditional compilation flags. Whole classes seem to be marked
> >> with COMPILE::AS3, but I would expect any conditional compilation to be
> >>on
> >> or inside methods. Can you explain?
> >>
> >> Thanks,
> >> -Alex
> >>
> >> On 9/16/15, 2:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >>
> >> >Hi Alex,
> >> >
> >> >Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet
> >> >given I will move those things to IJ, neither the one regarding the
> >> >getter / setter functions at package level.
> >> >
> >> >I will share the CGL.swc with its sources and details as soon as I can,
> >> >probably tomorrow along with the Ant targets using the
> >>compiler.clients.*
> >> >
> >> >Thanks,
> >> >Frédéric THOMAS
> >> >
> >> >> From: aharui@adobe.com
> >> >> To: dev@flex.apache.org
> >> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> >> Date: Wed, 16 Sep 2015 06:08:33 +0000
> >> >>
> >> >> FYI, I’m going to start finding time to work on this port.
> >> >>
> >> >> -Alex
> >> >>
> >> >> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
> >> >>
> >> >> >
> >> >> >
> >> >> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com>
> >>wrote:
> >> >> >
> >> >> >>
> >> >> >>One thing I discovered though is that with Falcon, the combination
> >>of
> >> >> >>getter / setter for a same function at package level is not
> >>supported
> >> >> >>(the legacy compiler support it):
> >> >> >>
> >> >> >>package goog.events {
> >> >> >>public function get fireListener():Function{return null;}
> >> >> >>public function set fireListener(value:Function):void{}
> >> >> >>}
> >> >> >>
> >> >> >>Error: An externally-visible definition with the name
> >> >> >>'goog.events.fireListener' was unexpectedly found.
> >> >> >>
> >> >> >>Can you take care of it or drive me into fixing it ?
> >> >> >
> >> >> >That’s interesting. I’ve never seen a ‘global’ property in AS
> >>before.
> >> >> If
> >> >> >you want to try to fix it, what I would do is set a breakpoint in
> >> >> >CompilerProblem.java. Then you’ll see on the call stack what logic
> >> >> >decided to generate that error and can try to add other logic to
> >> >>accept it
> >> >> >in this case.
> >> >> >
> >> >> >Speaking of doing things like that, it occurred to me recently that
> >> >> >ambiguous definition errors when the global Event class conflicts
> >>with
> >> >> >org.apache.flex.events.Events could be handled by adjusting the
> >>logic
> >> >>for
> >> >> >detecting ambiguous definitions. IIRC, the logic resolves the
> >>“Event”
> >> >>and
> >> >> >if it finds more than one definition it generates the error. The
> >>logic
> >> >> >could be adjusted to see if one of the definitions is a global
> >> >>definition
> >> >> >and then use the global and maybe additionally generate a warning
> >> >>instead
> >> >> >of an error.
> >> >> >BTW, it looks like this week and next will be spent on getting a
> >> >>release
> >> >> >out the door, then I hope to work on this port from JS to AS.
> >> >> >
> >> >> >-Alex
> >> >> >
> >> >>
> >> >
> >>
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/16/15, 12:58 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> Ah, glad I asked. Somehow I missed seeing HTMLElementWrapper.as.
>
>Weird, it was in my commit, I will have more time tomorrow to find out
>what's happening.
Yes, it is there and I found it, I just didn’t see it earlier.
Thanks,
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> Ah, glad I asked. Somehow I missed seeing HTMLElementWrapper.as.
Weird, it was in my commit, I will have more time tomorrow to find out what's happening.
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 19:54:32 +0000
>
> On 9/16/15, 12:48 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> I’m about to start writing HTMLElementWrapper.as and try to figure out
> >> where to put it. I don’t really want to have it in as/src, maybe in a
> >>new
> >> folder like js/as/src?
> >
> >I probably have some changes not committed for this class but most of it
> >was converted making use of the GCL.swc
>
> Ah, glad I asked. Somehow I missed seeing HTMLElementWrapper.as.
>
>
> >Also, I liked to have the AS and AS/JS counterpart in the same file, I
> >thought it was easier to maintain, what's wrong with this approach, why
> >do you prefer having them apart ?
>
> HTMLElementWrapper should be one of very few JS-only classes so I was
> going to keep it in another folder tree, but I’ll leave it where it is for
> now.
>
> Thanks again,
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/16/15, 1:02 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>
>
>> HTMLElementWrapper should be one of very few JS-only classes so I was
>> going to keep it in another folder tree, but I’ll leave it where it is
>>for
>> now.
>
>I've been able to convert it using GCL.swc with no AS specific part, why
>it should stay JS only ?
Because it isn’t used in the AS code for SWF since there is no HTMLElement
to wrap.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> HTMLElementWrapper should be one of very few JS-only classes so I was
> going to keep it in another folder tree, but I’ll leave it where it is for
> now.
I've been able to convert it using GCL.swc with no AS specific part, why it should stay JS only ?
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 19:54:32 +0000
>
> On 9/16/15, 12:48 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> I’m about to start writing HTMLElementWrapper.as and try to figure out
> >> where to put it. I don’t really want to have it in as/src, maybe in a
> >>new
> >> folder like js/as/src?
> >
> >I probably have some changes not committed for this class but most of it
> >was converted making use of the GCL.swc
>
> Ah, glad I asked. Somehow I missed seeing HTMLElementWrapper.as.
>
>
> >Also, I liked to have the AS and AS/JS counterpart in the same file, I
> >thought it was easier to maintain, what's wrong with this approach, why
> >do you prefer having them apart ?
>
> HTMLElementWrapper should be one of very few JS-only classes so I was
> going to keep it in another folder tree, but I’ll leave it where it is for
> now.
>
> Thanks again,
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/16/15, 12:48 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> I’m about to start writing HTMLElementWrapper.as and try to figure out
>> where to put it. I don’t really want to have it in as/src, maybe in a
>>new
>> folder like js/as/src?
>
>I probably have some changes not committed for this class but most of it
>was converted making use of the GCL.swc
Ah, glad I asked. Somehow I missed seeing HTMLElementWrapper.as.
>Also, I liked to have the AS and AS/JS counterpart in the same file, I
>thought it was easier to maintain, what's wrong with this approach, why
>do you prefer having them apart ?
HTMLElementWrapper should be one of very few JS-only classes so I was
going to keep it in another folder tree, but I’ll leave it where it is for
now.
Thanks again,
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> I’m about to start writing HTMLElementWrapper.as and try to figure out
> where to put it. I don’t really want to have it in as/src, maybe in a new
> folder like js/as/src?
I probably have some changes not committed for this class but most of it was converted making use of the GCL.swc
Also, I liked to have the AS and AS/JS counterpart in the same file, I thought it was easier to maintain, what's wrong with this approach, why do you prefer having them apart ?
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 19:31:45 +0000
>
> Hi Fred,
>
> I started out by trying to compile every AS file in Core with
> COMPILE::AS3,false and got lots of errors. I think you may have done that
> to keep them out of the errors list while you work on Application, so I’ve
> commented a lot of classes out of the build for now. I think for a lot of
> these classes, they won’t need conditional compilation.
>
> I only now figured out why you were concerned about Sprite. I will
> introduce an ApplicationBase.as class that abstracts away the differences.
>
> I’m about to start writing HTMLElementWrapper.as and try to figure out
> where to put it. I don’t really want to have it in as/src, maybe in a new
> folder like js/as/src?
>
> Thanks for getting this started.
> -Alex
>
> On 9/16/15, 12:20 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >Hi Alex,
> >
> >Actually, I removed all the js files from the compilation path in order
> >to re-code them one by one in as3, so, all the existing classes already
> >in as3, I wrapped them with COMPILE::AS3 because for sure the output
> >artefact for them will be .swc
> >
> >I started to convert the Application sub components to as3 wrapping them
> >with COMPILE:JS because the output artefact for them will be .js
> >
> >Does it makes sense ?
> >
> >Note:
> >1- Those core classes in JS have been modified in the master branch, so,
> >my conversion is not in sync
> >2- I had t2 issues with the GCL.swc and Falcon, the one I mentioned
> >relative to the getter / setter at package level and another one I
> >haven't in mind at the moment but will describe tomorrow, proving more
> >details about the GCL.swc
> >
> >Frédéric THOMAS
> >
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Wed, 16 Sep 2015 16:54:06 +0000
> >>
> >> Hi Fred,
> >>
> >> I started poking around in the branch. I’m confused by how you plan to
> >> use the conditional compilation flags. Whole classes seem to be marked
> >> with COMPILE::AS3, but I would expect any conditional compilation to be
> >>on
> >> or inside methods. Can you explain?
> >>
> >> Thanks,
> >> -Alex
> >>
> >> On 9/16/15, 2:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >>
> >> >Hi Alex,
> >> >
> >> >Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet
> >> >given I will move those things to IJ, neither the one regarding the
> >> >getter / setter functions at package level.
> >> >
> >> >I will share the CGL.swc with its sources and details as soon as I can,
> >> >probably tomorrow along with the Ant targets using the
> >>compiler.clients.*
> >> >
> >> >Thanks,
> >> >Frédéric THOMAS
> >> >
> >> >> From: aharui@adobe.com
> >> >> To: dev@flex.apache.org
> >> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> >> Date: Wed, 16 Sep 2015 06:08:33 +0000
> >> >>
> >> >> FYI, I’m going to start finding time to work on this port.
> >> >>
> >> >> -Alex
> >> >>
> >> >> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
> >> >>
> >> >> >
> >> >> >
> >> >> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com>
> >>wrote:
> >> >> >
> >> >> >>
> >> >> >>One thing I discovered though is that with Falcon, the combination
> >>of
> >> >> >>getter / setter for a same function at package level is not
> >>supported
> >> >> >>(the legacy compiler support it):
> >> >> >>
> >> >> >>package goog.events {
> >> >> >>public function get fireListener():Function{return null;}
> >> >> >>public function set fireListener(value:Function):void{}
> >> >> >>}
> >> >> >>
> >> >> >>Error: An externally-visible definition with the name
> >> >> >>'goog.events.fireListener' was unexpectedly found.
> >> >> >>
> >> >> >>Can you take care of it or drive me into fixing it ?
> >> >> >
> >> >> >That’s interesting. I’ve never seen a ‘global’ property in AS
> >>before.
> >> >> If
> >> >> >you want to try to fix it, what I would do is set a breakpoint in
> >> >> >CompilerProblem.java. Then you’ll see on the call stack what logic
> >> >> >decided to generate that error and can try to add other logic to
> >> >>accept it
> >> >> >in this case.
> >> >> >
> >> >> >Speaking of doing things like that, it occurred to me recently that
> >> >> >ambiguous definition errors when the global Event class conflicts
> >>with
> >> >> >org.apache.flex.events.Events could be handled by adjusting the
> >>logic
> >> >>for
> >> >> >detecting ambiguous definitions. IIRC, the logic resolves the
> >>“Event”
> >> >>and
> >> >> >if it finds more than one definition it generates the error. The
> >>logic
> >> >> >could be adjusted to see if one of the definitions is a global
> >> >>definition
> >> >> >and then use the global and maybe additionally generate a warning
> >> >>instead
> >> >> >of an error.
> >> >> >BTW, it looks like this week and next will be spent on getting a
> >> >>release
> >> >> >out the door, then I hope to work on this port from JS to AS.
> >> >> >
> >> >> >-Alex
> >> >> >
> >> >>
> >> >
> >>
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
Hi Fred,
I started out by trying to compile every AS file in Core with
COMPILE::AS3,false and got lots of errors. I think you may have done that
to keep them out of the errors list while you work on Application, so I’ve
commented a lot of classes out of the build for now. I think for a lot of
these classes, they won’t need conditional compilation.
I only now figured out why you were concerned about Sprite. I will
introduce an ApplicationBase.as class that abstracts away the differences.
I’m about to start writing HTMLElementWrapper.as and try to figure out
where to put it. I don’t really want to have it in as/src, maybe in a new
folder like js/as/src?
Thanks for getting this started.
-Alex
On 9/16/15, 12:20 PM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>Hi Alex,
>
>Actually, I removed all the js files from the compilation path in order
>to re-code them one by one in as3, so, all the existing classes already
>in as3, I wrapped them with COMPILE::AS3 because for sure the output
>artefact for them will be .swc
>
>I started to convert the Application sub components to as3 wrapping them
>with COMPILE:JS because the output artefact for them will be .js
>
>Does it makes sense ?
>
>Note:
>1- Those core classes in JS have been modified in the master branch, so,
>my conversion is not in sync
>2- I had t2 issues with the GCL.swc and Falcon, the one I mentioned
>relative to the getter / setter at package level and another one I
>haven't in mind at the moment but will describe tomorrow, proving more
>details about the GCL.swc
>
>Frédéric THOMAS
>
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Wed, 16 Sep 2015 16:54:06 +0000
>>
>> Hi Fred,
>>
>> I started poking around in the branch. I’m confused by how you plan to
>> use the conditional compilation flags. Whole classes seem to be marked
>> with COMPILE::AS3, but I would expect any conditional compilation to be
>>on
>> or inside methods. Can you explain?
>>
>> Thanks,
>> -Alex
>>
>> On 9/16/15, 2:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>> >Hi Alex,
>> >
>> >Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet
>> >given I will move those things to IJ, neither the one regarding the
>> >getter / setter functions at package level.
>> >
>> >I will share the CGL.swc with its sources and details as soon as I can,
>> >probably tomorrow along with the Ant targets using the
>>compiler.clients.*
>> >
>> >Thanks,
>> >Frédéric THOMAS
>> >
>> >> From: aharui@adobe.com
>> >> To: dev@flex.apache.org
>> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> >> Date: Wed, 16 Sep 2015 06:08:33 +0000
>> >>
>> >> FYI, I’m going to start finding time to work on this port.
>> >>
>> >> -Alex
>> >>
>> >> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
>> >>
>> >> >
>> >> >
>> >> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com>
>>wrote:
>> >> >
>> >> >>
>> >> >>One thing I discovered though is that with Falcon, the combination
>>of
>> >> >>getter / setter for a same function at package level is not
>>supported
>> >> >>(the legacy compiler support it):
>> >> >>
>> >> >>package goog.events {
>> >> >>public function get fireListener():Function{return null;}
>> >> >>public function set fireListener(value:Function):void{}
>> >> >>}
>> >> >>
>> >> >>Error: An externally-visible definition with the name
>> >> >>'goog.events.fireListener' was unexpectedly found.
>> >> >>
>> >> >>Can you take care of it or drive me into fixing it ?
>> >> >
>> >> >That’s interesting. I’ve never seen a ‘global’ property in AS
>>before.
>> >> If
>> >> >you want to try to fix it, what I would do is set a breakpoint in
>> >> >CompilerProblem.java. Then you’ll see on the call stack what logic
>> >> >decided to generate that error and can try to add other logic to
>> >>accept it
>> >> >in this case.
>> >> >
>> >> >Speaking of doing things like that, it occurred to me recently that
>> >> >ambiguous definition errors when the global Event class conflicts
>>with
>> >> >org.apache.flex.events.Events could be handled by adjusting the
>>logic
>> >>for
>> >> >detecting ambiguous definitions. IIRC, the logic resolves the
>>“Event”
>> >>and
>> >> >if it finds more than one definition it generates the error. The
>>logic
>> >> >could be adjusted to see if one of the definitions is a global
>> >>definition
>> >> >and then use the global and maybe additionally generate a warning
>> >>instead
>> >> >of an error.
>> >> >BTW, it looks like this week and next will be spent on getting a
>> >>release
>> >> >out the door, then I hope to work on this port from JS to AS.
>> >> >
>> >> >-Alex
>> >> >
>> >>
>> >
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Hi Alex,
Actually, I removed all the js files from the compilation path in order to re-code them one by one in as3, so, all the existing classes already in as3, I wrapped them with COMPILE::AS3 because for sure the output artefact for them will be .swc
I started to convert the Application sub components to as3 wrapping them with COMPILE:JS because the output artefact for them will be .js
Does it makes sense ?
Note:
1- Those core classes in JS have been modified in the master branch, so, my conversion is not in sync
2- I had t2 issues with the GCL.swc and Falcon, the one I mentioned relative to the getter / setter at package level and another one I haven't in mind at the moment but will describe tomorrow, proving more details about the GCL.swc
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 16:54:06 +0000
>
> Hi Fred,
>
> I started poking around in the branch. I’m confused by how you plan to
> use the conditional compilation flags. Whole classes seem to be marked
> with COMPILE::AS3, but I would expect any conditional compilation to be on
> or inside methods. Can you explain?
>
> Thanks,
> -Alex
>
> On 9/16/15, 2:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >Hi Alex,
> >
> >Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet
> >given I will move those things to IJ, neither the one regarding the
> >getter / setter functions at package level.
> >
> >I will share the CGL.swc with its sources and details as soon as I can,
> >probably tomorrow along with the Ant targets using the compiler.clients.*
> >
> >Thanks,
> >Frédéric THOMAS
> >
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Wed, 16 Sep 2015 06:08:33 +0000
> >>
> >> FYI, I’m going to start finding time to work on this port.
> >>
> >> -Alex
> >>
> >> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
> >>
> >> >
> >> >
> >> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >> >
> >> >>
> >> >>One thing I discovered though is that with Falcon, the combination of
> >> >>getter / setter for a same function at package level is not supported
> >> >>(the legacy compiler support it):
> >> >>
> >> >>package goog.events {
> >> >>public function get fireListener():Function{return null;}
> >> >>public function set fireListener(value:Function):void{}
> >> >>}
> >> >>
> >> >>Error: An externally-visible definition with the name
> >> >>'goog.events.fireListener' was unexpectedly found.
> >> >>
> >> >>Can you take care of it or drive me into fixing it ?
> >> >
> >> >That’s interesting. I’ve never seen a ‘global’ property in AS before.
> >> If
> >> >you want to try to fix it, what I would do is set a breakpoint in
> >> >CompilerProblem.java. Then you’ll see on the call stack what logic
> >> >decided to generate that error and can try to add other logic to
> >>accept it
> >> >in this case.
> >> >
> >> >Speaking of doing things like that, it occurred to me recently that
> >> >ambiguous definition errors when the global Event class conflicts with
> >> >org.apache.flex.events.Events could be handled by adjusting the logic
> >>for
> >> >detecting ambiguous definitions. IIRC, the logic resolves the “Event”
> >>and
> >> >if it finds more than one definition it generates the error. The logic
> >> >could be adjusted to see if one of the definitions is a global
> >>definition
> >> >and then use the global and maybe additionally generate a warning
> >>instead
> >> >of an error.
> >> >BTW, it looks like this week and next will be spent on getting a
> >>release
> >> >out the door, then I hope to work on this port from JS to AS.
> >> >
> >> >-Alex
> >> >
> >>
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
Hi Fred,
I started poking around in the branch. I’m confused by how you plan to
use the conditional compilation flags. Whole classes seem to be marked
with COMPILE::AS3, but I would expect any conditional compilation to be on
or inside methods. Can you explain?
Thanks,
-Alex
On 9/16/15, 2:26 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>Hi Alex,
>
>Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet
>given I will move those things to IJ, neither the one regarding the
>getter / setter functions at package level.
>
>I will share the CGL.swc with its sources and details as soon as I can,
>probably tomorrow along with the Ant targets using the compiler.clients.*
>
>Thanks,
>Frédéric THOMAS
>
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Wed, 16 Sep 2015 06:08:33 +0000
>>
>> FYI, I’m going to start finding time to work on this port.
>>
>> -Alex
>>
>> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>
>> >
>> >
>> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> >
>> >>
>> >>One thing I discovered though is that with Falcon, the combination of
>> >>getter / setter for a same function at package level is not supported
>> >>(the legacy compiler support it):
>> >>
>> >>package goog.events {
>> >>public function get fireListener():Function{return null;}
>> >>public function set fireListener(value:Function):void{}
>> >>}
>> >>
>> >>Error: An externally-visible definition with the name
>> >>'goog.events.fireListener' was unexpectedly found.
>> >>
>> >>Can you take care of it or drive me into fixing it ?
>> >
>> >That’s interesting. I’ve never seen a ‘global’ property in AS before.
>> If
>> >you want to try to fix it, what I would do is set a breakpoint in
>> >CompilerProblem.java. Then you’ll see on the call stack what logic
>> >decided to generate that error and can try to add other logic to
>>accept it
>> >in this case.
>> >
>> >Speaking of doing things like that, it occurred to me recently that
>> >ambiguous definition errors when the global Event class conflicts with
>> >org.apache.flex.events.Events could be handled by adjusting the logic
>>for
>> >detecting ambiguous definitions. IIRC, the logic resolves the “Event”
>>and
>> >if it finds more than one definition it generates the error. The logic
>> >could be adjusted to see if one of the definitions is a global
>>definition
>> >and then use the global and maybe additionally generate a warning
>>instead
>> >of an error.
>> >BTW, it looks like this week and next will be spent on getting a
>>release
>> >out the door, then I hope to work on this port from JS to AS.
>> >
>> >-Alex
>> >
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Hi Alex,
Cool, Btw, I didn't fix the bug I had with the flex-oem-compiler yet given I will move those things to IJ, neither the one regarding the getter / setter functions at package level.
I will share the CGL.swc with its sources and details as soon as I can, probably tomorrow along with the Ant targets using the compiler.clients.*
Thanks,
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Wed, 16 Sep 2015 06:08:33 +0000
>
> FYI, I’m going to start finding time to work on this port.
>
> -Alex
>
> On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
>
> >
> >
> >On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >
> >>
> >>One thing I discovered though is that with Falcon, the combination of
> >>getter / setter for a same function at package level is not supported
> >>(the legacy compiler support it):
> >>
> >>package goog.events {
> >>public function get fireListener():Function{return null;}
> >>public function set fireListener(value:Function):void{}
> >>}
> >>
> >>Error: An externally-visible definition with the name
> >>'goog.events.fireListener' was unexpectedly found.
> >>
> >>Can you take care of it or drive me into fixing it ?
> >
> >That’s interesting. I’ve never seen a ‘global’ property in AS before. If
> >you want to try to fix it, what I would do is set a breakpoint in
> >CompilerProblem.java. Then you’ll see on the call stack what logic
> >decided to generate that error and can try to add other logic to accept it
> >in this case.
> >
> >Speaking of doing things like that, it occurred to me recently that
> >ambiguous definition errors when the global Event class conflicts with
> >org.apache.flex.events.Events could be handled by adjusting the logic for
> >detecting ambiguous definitions. IIRC, the logic resolves the “Event” and
> >if it finds more than one definition it generates the error. The logic
> >could be adjusted to see if one of the definitions is a global definition
> >and then use the global and maybe additionally generate a warning instead
> >of an error.
> >BTW, it looks like this week and next will be spent on getting a release
> >out the door, then I hope to work on this port from JS to AS.
> >
> >-Alex
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
FYI, I’m going to start finding time to work on this port.
-Alex
On 9/9/15, 6:19 AM, "Alex Harui" <ah...@adobe.com> wrote:
>
>
>On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>>
>>One thing I discovered though is that with Falcon, the combination of
>>getter / setter for a same function at package level is not supported
>>(the legacy compiler support it):
>>
>>package goog.events {
>>public function get fireListener():Function{return null;}
>>public function set fireListener(value:Function):void{}
>>}
>>
>>Error: An externally-visible definition with the name
>>'goog.events.fireListener' was unexpectedly found.
>>
>>Can you take care of it or drive me into fixing it ?
>
>That’s interesting. I’ve never seen a ‘global’ property in AS before. If
>you want to try to fix it, what I would do is set a breakpoint in
>CompilerProblem.java. Then you’ll see on the call stack what logic
>decided to generate that error and can try to add other logic to accept it
>in this case.
>
>Speaking of doing things like that, it occurred to me recently that
>ambiguous definition errors when the global Event class conflicts with
>org.apache.flex.events.Events could be handled by adjusting the logic for
>detecting ambiguous definitions. IIRC, the logic resolves the “Event” and
>if it finds more than one definition it generates the error. The logic
>could be adjusted to see if one of the definitions is a global definition
>and then use the global and maybe additionally generate a warning instead
>of an error.
>BTW, it looks like this week and next will be spent on getting a release
>out the door, then I hope to work on this port from JS to AS.
>
>-Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 9/9/15, 3:12 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>One thing I discovered though is that with Falcon, the combination of
>getter / setter for a same function at package level is not supported
>(the legacy compiler support it):
>
>package goog.events {
>public function get fireListener():Function{return null;}
>public function set fireListener(value:Function):void{}
>}
>
>Error: An externally-visible definition with the name
>'goog.events.fireListener' was unexpectedly found.
>
>Can you take care of it or drive me into fixing it ?
That’s interesting. I’ve never seen a ‘global’ property in AS before. If
you want to try to fix it, what I would do is set a breakpoint in
CompilerProblem.java. Then you’ll see on the call stack what logic
decided to generate that error and can try to add other logic to accept it
in this case.
Speaking of doing things like that, it occurred to me recently that
ambiguous definition errors when the global Event class conflicts with
org.apache.flex.events.Events could be handled by adjusting the logic for
detecting ambiguous definitions. IIRC, the logic resolves the “Event” and
if it finds more than one definition it generates the error. The logic
could be adjusted to see if one of the definitions is a global definition
and then use the global and maybe additionally generate a warning instead
of an error.
BTW, it looks like this week and next will be spent on getting a release
out the door, then I hope to work on this port from JS to AS.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Hi Alex,
> For me, when I compile a FlexJS example like FlexJSStore, addDependency is
> called quite often while servicing “handleSyntaxTreeRequest” before any
> walking of the AST. I wonder if there is something different about the
> way you are compiling this code you are working on.
I hadn't a lot and didn't want to spend more time on this issue until today, guess why :-)
Anyway, if I call COMPJSC directly I haven't this issue, so, I will hopefully find out why quickly now.
One thing I discovered though is that with Falcon, the combination of getter / setter for a same function at package level is not supported (the legacy compiler support it):
package goog.events {
public function get fireListener():Function{return null;}
public function set fireListener(value:Function):void{}
}
Error: An externally-visible definition with the name 'goog.events.fireListener' was unexpectedly found.
Can you take care of it or drive me into fixing it ?
Thanks,
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Mon, 24 Aug 2015 16:28:37 +0000
>
>
>
> On 8/24/15, 8:07 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >
> >
> >
> >> I’d have to dig into it, but yes, I think addDependency gets called
> >>quite
> >> often before we start walking the tree. But once you asked the
> >>question,
> >> it did occur to me that we do call into the resolving code during the
> >> walk, but I don’t know if that also results in addDependency.
> >
> >Not sure I understood everything but I can't see any call before walking
> >the tree to FlexJSProject.addDependency() which is the function used to
> >fill the requires that are then wrote in PackageHeaderEmitter using
> >FlexJSProject.getRequires(), is there a function supposed to store the
> >library definitions before the walk ?
>
> For me, when I compile a FlexJS example like FlexJSStore, addDependency is
> called quite often while servicing “handleSyntaxTreeRequest” before any
> walking of the AST. I wonder if there is something different about the
> way you are compiling this code you are working on.
>
> -Alex
>
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 8/24/15, 8:07 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>
>
>> I’d have to dig into it, but yes, I think addDependency gets called
>>quite
>> often before we start walking the tree. But once you asked the
>>question,
>> it did occur to me that we do call into the resolving code during the
>> walk, but I don’t know if that also results in addDependency.
>
>Not sure I understood everything but I can't see any call before walking
>the tree to FlexJSProject.addDependency() which is the function used to
>fill the requires that are then wrote in PackageHeaderEmitter using
>FlexJSProject.getRequires(), is there a function supposed to store the
>library definitions before the walk ?
For me, when I compile a FlexJS example like FlexJSStore, addDependency is
called quite often while servicing “handleSyntaxTreeRequest” before any
walking of the AST. I wonder if there is something different about the
way you are compiling this code you are working on.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> I’d have to dig into it, but yes, I think addDependency gets called quite
> often before we start walking the tree. But once you asked the question,
> it did occur to me that we do call into the resolving code during the
> walk, but I don’t know if that also results in addDependency.
Not sure I understood everything but I can't see any call before walking the tree to FlexJSProject.addDependency() which is the function used to fill the requires that are then wrote in PackageHeaderEmitter using FlexJSProject.getRequires(), is there a function supposed to store the library definitions before the walk ?
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Mon, 24 Aug 2015 12:55:05 +0000
>
>
>
> On 8/24/15, 2:21 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >Do you mean, the FlexJSProject.addDependency() should be called while the
> >AST is generated for the libraries dependencies or maybe be a pass for
> >collecting them as we do in the externc ?
>
> I’d have to dig into it, but yes, I think addDependency gets called quite
> often before we start walking the tree. But once you asked the question,
> it did occur to me that we do call into the resolving code during the
> walk, but I don’t know if that also results in addDependency.
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 8/24/15, 2:21 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>Do you mean, the FlexJSProject.addDependency() should be called while the
>AST is generated for the libraries dependencies or maybe be a pass for
>collecting them as we do in the externc ?
I’d have to dig into it, but yes, I think addDependency gets called quite
often before we start walking the tree. But once you asked the question,
it did occur to me that we do call into the resolving code during the
walk, but I don’t know if that also results in addDependency.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Do you mean, the FlexJSProject.addDependency() should be called while the AST is generated for the libraries dependencies or maybe be a pass for collecting them as we do in the externc ?
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Sun, 23 Aug 2015 21:15:36 +0000
>
>
>
> On 8/23/15, 10:59 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >Hi Alex or Mike,
> >
> >Thanks for the advice, I've been checking that my lib was set in
> >library-path but still the same, actually there's something that make me
> >confused, maybe you can enlighten me:
> >
> >It seems to me the requires are collected during the emit phase as I can
> >see FlexJSProject.addDependency() are called along the call chain from
> >the emitPackageContents() if I followed well.
> >So, given the emitPackageHeader() is called even before, how the
> >dependencies for a same CU which are collected after could be included ?
>
> Hmm. I wonder if we are missing some dependencies? But, IIRC, some/most
> should still be there as things get resolved as the AST is generated.
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 8/23/15, 10:59 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>Hi Alex or Mike,
>
>Thanks for the advice, I've been checking that my lib was set in
>library-path but still the same, actually there's something that make me
>confused, maybe you can enlighten me:
>
>It seems to me the requires are collected during the emit phase as I can
>see FlexJSProject.addDependency() are called along the call chain from
>the emitPackageContents() if I followed well.
>So, given the emitPackageHeader() is called even before, how the
>dependencies for a same CU which are collected after could be included ?
Hmm. I wonder if we are missing some dependencies? But, IIRC, some/most
should still be there as things get resolved as the AST is generated.
-Alex
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Hi Alex or Mike,
Thanks for the advice, I've been checking that my lib was set in library-path but still the same, actually there's something that make me confused, maybe you can enlighten me:
It seems to me the requires are collected during the emit phase as I can see FlexJSProject.addDependency() are called along the call chain from the emitPackageContents() if I followed well.
So, given the emitPackageHeader() is called even before, how the dependencies for a same CU which are collected after could be included ?
Maybe I'm missing something though.
Thanks,
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Fri, 21 Aug 2015 12:58:34 +0000
>
> I suspect the issue is:
>
> -Classes found in SWCs on the external-library-path are not goog.required.
> -Classes found in SWCs on the library-path are goog.required.
>
> It is a bit confusing, I suppose, but I don’t have an easier way to
> distinguish right now. A JQuery.swc would go on the external-library path
> because its classes are going to be loaded some other way than
> goog.require. But for this exercise, if you made a set of externs for
> Google Closure Library, you would put it on the library-path so its
> classes get goog.require’d but the code in the externs will not get linked
> in.
>
> HTH,
> -Alex
>
> On 8/21/15, 1:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >Cool, thanks for the details, I will try to pay attention to those @expose
> >
> >My first goal now is to migrate and compile Application because I want to
> >validate it works generating a simple app based on it, so, I'm in the
> >process to migrate and compile all sub elements, I finished with
> >HTMLElementWrapper.
> >
> >Everything compiles but I just notice the goog.require() are not emitted,
> >except if you know some of the possible reasons it can occur, I will have
> >to debug it, in this case can you speed me up telling me where to break
> >and what to check ?
> >
> >Thanks,
> >Frédéric THOMAS
> >
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Thu, 20 Aug 2015 23:06:33 +0000
> >>
> >> I think I have discovered that Sprite is intended to be more like
> >> SimpleApplication and serve as the base class for other applications. I
> >> may end up creating some other base class in the org.apache.flex
> >>packages
> >> instead.
> >>
> >> On 8/8/15, 10:33 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >>
> >> >> We shouldn’t. Make sure you are using the latest from flex-falcon
> >>repo.
> >> >
> >> >My bad, thanks.
> >> >
> >> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> >> >> remove it if we can.
> >> >
> >> >Yep, @Erik, any hint ?
> >> >
> >> >Still remain the start function def, should it be moved to an interface
> >> >or removed too ?
> >> >
> >> >Frédéric THOMAS
> >> >
> >> >
> >> >----------------------------------------
> >> >> From: aharui@adobe.com
> >> >> To: dev@flex.apache.org
> >> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> >> Date: Sat, 8 Aug 2015 16:27:53 +0000
> >> >>
> >> >>
> >> >>
> >> >> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com>
> >>wrote:
> >> >>
> >> >>>I thought I could have used the framework as a test for what I'm
> >>about
> >> >>>to
> >> >>>implement in the compiler to make IJ compiling externs/as3 based
> >> >>>projects
> >> >>>with 1 build conf.
> >> >>>Apparently I was wrong but I will try to implement it first anyway.
> >> >>>
> >> >>>For the framework migration, I just had a look and indeed I will
> >>have a
> >> >>>lot of questions, the 2 first ones:
> >> >>>
> >> >>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
> >> >>>needs to stay JS only but it includes a "start" method definition,
> >>not
> >> >>>having this methos in the AS part, I won't be able to use it, should
> >> >>>this
> >> >>>definition be moved to an interface in asjs and be shared by both
> >>sides
> >> >>>?
> >> >>
> >> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> >> >> remove it if we can.
> >> >>
> >> >>>
> >> >>>2- Classes and Interfaces are written this way in JS:
> >> >>>
> >> >>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
> >> >>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
> >> >>>
> >> >>>But if I cross compile IStrand.as, I get:
> >> >>>
> >> >>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names:
> >>[{
> >> >>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
> >> >>>
> >> >>>Why we still have the underscores ?
> >> >>
> >> >> We shouldn’t. Make sure you are using the latest from flex-falcon
> >>repo.
> >> >>
> >> >> -Alex
> >> >>
> >> >
> >>
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
I suspect the issue is:
-Classes found in SWCs on the external-library-path are not goog.required.
-Classes found in SWCs on the library-path are goog.required.
It is a bit confusing, I suppose, but I don’t have an easier way to
distinguish right now. A JQuery.swc would go on the external-library path
because its classes are going to be loaded some other way than
goog.require. But for this exercise, if you made a set of externs for
Google Closure Library, you would put it on the library-path so its
classes get goog.require’d but the code in the externs will not get linked
in.
HTH,
-Alex
On 8/21/15, 1:42 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>Cool, thanks for the details, I will try to pay attention to those @expose
>
>My first goal now is to migrate and compile Application because I want to
>validate it works generating a simple app based on it, so, I'm in the
>process to migrate and compile all sub elements, I finished with
>HTMLElementWrapper.
>
>Everything compiles but I just notice the goog.require() are not emitted,
>except if you know some of the possible reasons it can occur, I will have
>to debug it, in this case can you speed me up telling me where to break
>and what to check ?
>
>Thanks,
>Frédéric THOMAS
>
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Thu, 20 Aug 2015 23:06:33 +0000
>>
>> I think I have discovered that Sprite is intended to be more like
>> SimpleApplication and serve as the base class for other applications. I
>> may end up creating some other base class in the org.apache.flex
>>packages
>> instead.
>>
>> On 8/8/15, 10:33 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>> >> We shouldn’t. Make sure you are using the latest from flex-falcon
>>repo.
>> >
>> >My bad, thanks.
>> >
>> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> >> remove it if we can.
>> >
>> >Yep, @Erik, any hint ?
>> >
>> >Still remain the start function def, should it be moved to an interface
>> >or removed too ?
>> >
>> >Frédéric THOMAS
>> >
>> >
>> >----------------------------------------
>> >> From: aharui@adobe.com
>> >> To: dev@flex.apache.org
>> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> >> Date: Sat, 8 Aug 2015 16:27:53 +0000
>> >>
>> >>
>> >>
>> >> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com>
>>wrote:
>> >>
>> >>>I thought I could have used the framework as a test for what I'm
>>about
>> >>>to
>> >>>implement in the compiler to make IJ compiling externs/as3 based
>> >>>projects
>> >>>with 1 build conf.
>> >>>Apparently I was wrong but I will try to implement it first anyway.
>> >>>
>> >>>For the framework migration, I just had a look and indeed I will
>>have a
>> >>>lot of questions, the 2 first ones:
>> >>>
>> >>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>> >>>needs to stay JS only but it includes a "start" method definition,
>>not
>> >>>having this methos in the AS part, I won't be able to use it, should
>> >>>this
>> >>>definition be moved to an interface in asjs and be shared by both
>>sides
>> >>>?
>> >>
>> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> >> remove it if we can.
>> >>
>> >>>
>> >>>2- Classes and Interfaces are written this way in JS:
>> >>>
>> >>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>> >>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>> >>>
>> >>>But if I cross compile IStrand.as, I get:
>> >>>
>> >>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names:
>>[{
>> >>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>> >>>
>> >>>Why we still have the underscores ?
>> >>
>> >> We shouldn’t. Make sure you are using the latest from flex-falcon
>>repo.
>> >>
>> >> -Alex
>> >>
>> >
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
Cool, thanks for the details, I will try to pay attention to those @expose
My first goal now is to migrate and compile Application because I want to validate it works generating a simple app based on it, so, I'm in the process to migrate and compile all sub elements, I finished with HTMLElementWrapper.
Everything compiles but I just notice the goog.require() are not emitted, except if you know some of the possible reasons it can occur, I will have to debug it, in this case can you speed me up telling me where to break and what to check ?
Thanks,
Frédéric THOMAS
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Thu, 20 Aug 2015 23:06:33 +0000
>
> I think I have discovered that Sprite is intended to be more like
> SimpleApplication and serve as the base class for other applications. I
> may end up creating some other base class in the org.apache.flex packages
> instead.
>
> On 8/8/15, 10:33 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
> >> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
> >
> >My bad, thanks.
> >
> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> >> remove it if we can.
> >
> >Yep, @Erik, any hint ?
> >
> >Still remain the start function def, should it be moved to an interface
> >or removed too ?
> >
> >Frédéric THOMAS
> >
> >
> >----------------------------------------
> >> From: aharui@adobe.com
> >> To: dev@flex.apache.org
> >> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> >> Date: Sat, 8 Aug 2015 16:27:53 +0000
> >>
> >>
> >>
> >> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
> >>
> >>>I thought I could have used the framework as a test for what I'm about
> >>>to
> >>>implement in the compiler to make IJ compiling externs/as3 based
> >>>projects
> >>>with 1 build conf.
> >>>Apparently I was wrong but I will try to implement it first anyway.
> >>>
> >>>For the framework migration, I just had a look and indeed I will have a
> >>>lot of questions, the 2 first ones:
> >>>
> >>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
> >>>needs to stay JS only but it includes a "start" method definition, not
> >>>having this methos in the AS part, I won't be able to use it, should
> >>>this
> >>>definition be moved to an interface in asjs and be shared by both sides
> >>>?
> >>
> >> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> >> remove it if we can.
> >>
> >>>
> >>>2- Classes and Interfaces are written this way in JS:
> >>>
> >>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
> >>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
> >>>
> >>>But if I cross compile IStrand.as, I get:
> >>>
> >>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
> >>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
> >>>
> >>>Why we still have the underscores ?
> >>
> >> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
> >>
> >> -Alex
> >>
> >
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
I think I have discovered that Sprite is intended to be more like
SimpleApplication and serve as the base class for other applications. I
may end up creating some other base class in the org.apache.flex packages
instead.
On 8/8/15, 10:33 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>
>My bad, thanks.
>
>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> remove it if we can.
>
>Yep, @Erik, any hint ?
>
>Still remain the start function def, should it be moved to an interface
>or removed too ?
>
>Frédéric THOMAS
>
>
>----------------------------------------
>> From: aharui@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
>> Date: Sat, 8 Aug 2015 16:27:53 +0000
>>
>>
>>
>> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>>
>>>I thought I could have used the framework as a test for what I'm about
>>>to
>>>implement in the compiler to make IJ compiling externs/as3 based
>>>projects
>>>with 1 build conf.
>>>Apparently I was wrong but I will try to implement it first anyway.
>>>
>>>For the framework migration, I just had a look and indeed I will have a
>>>lot of questions, the 2 first ones:
>>>
>>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>>>needs to stay JS only but it includes a "start" method definition, not
>>>having this methos in the AS part, I won't be able to use it, should
>>>this
>>>definition be moved to an interface in asjs and be shared by both sides
>>>?
>>
>> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
>> remove it if we can.
>>
>>>
>>>2- Classes and Interfaces are written this way in JS:
>>>
>>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>>>
>>>But if I cross compile IStrand.as, I get:
>>>
>>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
>>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>>>
>>>Why we still have the underscores ?
>>
>> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>>
>> -Alex
>>
>
RE: [FlexJS] Framework using externs (was: Setup Error)
Posted by Frédéric THOMAS <we...@hotmail.com>.
> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
My bad, thanks.
> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> remove it if we can.
Yep, @Erik, any hint ?
Still remain the start function def, should it be moved to an interface or removed too ?
Frédéric THOMAS
----------------------------------------
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
> Date: Sat, 8 Aug 2015 16:27:53 +0000
>
>
>
> On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>
>>I thought I could have used the framework as a test for what I'm about to
>>implement in the compiler to make IJ compiling externs/as3 based projects
>>with 1 build conf.
>>Apparently I was wrong but I will try to implement it first anyway.
>>
>>For the framework migration, I just had a look and indeed I will have a
>>lot of questions, the 2 first ones:
>>
>>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>>needs to stay JS only but it includes a "start" method definition, not
>>having this methos in the AS part, I won't be able to use it, should this
>>definition be moved to an interface in asjs and be shared by both sides ?
>
> I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
> remove it if we can.
>
>>
>>2- Classes and Interfaces are written this way in JS:
>>
>>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>>
>>But if I cross compile IStrand.as, I get:
>>
>>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
>>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>>
>>Why we still have the underscores ?
>
> We shouldn’t. Make sure you are using the latest from flex-falcon repo.
>
> -Alex
>
Re: [FlexJS] Framework using externs (was: Setup Error)
Posted by Alex Harui <ah...@adobe.com>.
On 8/8/15, 8:46 AM, "Frédéric THOMAS" <we...@hotmail.com> wrote:
>I thought I could have used the framework as a test for what I'm about to
>implement in the compiler to make IJ compiling externs/as3 based projects
>with 1 build conf.
>Apparently I was wrong but I will try to implement it first anyway.
>
>For the framework migration, I just had a look and indeed I will have a
>lot of questions, the 2 first ones:
>
>1- If I'm not wrong, sprite.js can't have an AS counterpart, this one
>needs to stay JS only but it includes a "start" method definition, not
>having this methos in the AS part, I won't be able to use it, should this
>definition be moved to an interface in asjs and be shared by both sides ?
I don’t remember why we have sprite.js. Maybe Erik does. I’d rather
remove it if we can.
>
>2- Classes and Interfaces are written this way in JS:
>
>org.apache.flex.core.IStrand.prototype.FLEXJS_CLASS_INFO ={ names: [{
>name: 'IStrand', qName: 'org.apache.flex.core.IStrand' }] };
>
>But if I cross compile IStrand.as, I get:
>
>org_apache_flex_core_IStrand.prototype.FLEXJS_CLASS_INFO = { names: [{
>name: 'IStrand', qName: 'org_apache_flex_core_IStrand'}] };
>
>Why we still have the underscores ?
We shouldn’t. Make sure you are using the latest from flex-falcon repo.
-Alex