Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Michael Schmalle
Thanks, I will report back when I have some spare time.

Mike

On Thu, Sep 7, 2017 at 1:52 PM, Alex Harui <aha...@adobe.com.invalid> wrote:

> Unzip
> In FB, go to Preferences/Flash Builder/Installed Flex SDKs
> Hit Add...
>
> I would not make this folder the default SDK.  For some existing FlexJS
> project, go to Project/Properties/Flex Compiler and choose this new SDK.
> Note that Project/Clean does not clean up the "bin" folder so you may want
> to manually delete it.
>
> In this zip, I have not fixed up the launch scripts.  So, if you don't
> already have a FlexJS project, you might want to first install  FlexJS
> 0.8.0 or a nightly and set up the launch scripts as described here [1].
> Otherwise you have to manually set up your FlexJS project.
>
> [1]
> https://cwiki.apache.org/confluence/display/FLEX/Using+
> FlexJS+with+Adobe+Fl
> ash+Builder
>
> HTH,
> -Alex
>
> On 9/7/17, 10:42 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Alex,
> >
> >Being completely out of the loop, what do I have to do to use this zip
> >content on Windows with FB? (quick and dirty bullet list?)
> >
> >Mike
> >
> >On Thu, Sep 7, 2017 at 1:38 PM, Alex Harui <aha...@adobe.com.invalid>
> >wrote:
> >
> >> Here's a zip:
> >>https://na01.safelinks.protection.outlook.com/?url=
> http:%2F%2Fhome.apache
> >>.org%2F~aharui%2FFlexJS%2F=02%7C01%7C%
> 7Cacaad6d80da64f7219a008d4f617
> >>d641%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%
> 7C636404029622319234
> >>a=xDBrnKjpkF2dsRpBdoGcD5VRXWQ4w3wqa6aVzrrjuR4%3D=0
> >> ApacheFlexJSJSOnly.zip
> >>
> >> I only tried on Mac.
> >>
> >> I didn't realize we had an NPM package that overlaid AIR/Flash into an
> >>SDK
> >> folder.  I agree that would be better than Ant.
> >>
> >> What I would really like to see, but not sure if it is possible, is to
> >> have folks actually visit the Adobe site to choose their AIR and Flash
> >>SDK
> >> version, but somehow get other code to manage the download.  That would
> >> get us out of the hassle of presenting license acceptance dialogs.  I'm
> >> guessing that Adobe may want to change what customers see when they go
> >>get
> >> AIR and Flash SDKs some day.  That's why I thought about having the
> >> compiler search for a download and expand it.
> >>
> >> Thoughts?
> >> -Alex
> >>
> >> On 9/7/17, 9:55 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> >>wrote:
> >>
> >> >If I could get a zip to just try it, I am all for this.
> >> >
> >> >On the plus side, if you can get a zip only for windows and documented
> >> >setup for quick testing, I think this goes a long way with being able
> >>to
> >> >develop the compiler and develop the ui framework separation a lot
> >> >cleaner.
> >> >
> >> >Getting stuff ripped away from the Flash player and Adobe in a new
> >>project
> >> >is #1. Plus the lightweight nature of not having to download the AIR
> >>SDK
> >> >for dev and just js.
> >> >
> >> >@Om what would be the difference between npm and a zip?
> >> >
> >> >Mike
> >> >
> >> >On Thu, Sep 7, 2017 at 12:48 PM, Piotr Zarzycki
> >> ><piotrzarzyck...@gmail.com>
> >> >wrote:
> >> >
> >> >> Hi Alex,
> >> >>
> >> >> Since you fake airglobal.swc and playerglobal.swc maybe it will also
> >> >>work
> >> >> with Moonshine. I will try to do same operation as you did and see
> >> >>whether
> >> >> I will not have previous errors.
> >> >>
> >> >> Thanks!
> >> >> Piotr
> >> >>
> >> >> 2017-09-07 18:43 GMT+02:00 OmPrakash Muppirala
> >><bigosma...@gmail.com>:
> >> >>
> >> >> > This is a big big deal.  Thanks for getting this done.
> >> >> >
> >> >> > I would be very interested in the non-installer, simple zip file
> >> >> download.
> >> >> >
> >> >> > I dont care much for Ant as a requirement, I would rather continue
> >> >> > maintaining the npm FlexJS package for AIR download + setup.
> >> >> >
> >> >> > Thoughts?
> >> >> >
> >> >> > Thanks,
&

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Michael Schmalle
Alex,

Being completely out of the loop, what do I have to do to use this zip
content on Windows with FB? (quick and dirty bullet list?)

Mike

On Thu, Sep 7, 2017 at 1:38 PM, Alex Harui <aha...@adobe.com.invalid> wrote:

> Here's a zip:  http://home.apache.org/~aharui/FlexJS/
> ApacheFlexJSJSOnly.zip
>
> I only tried on Mac.
>
> I didn't realize we had an NPM package that overlaid AIR/Flash into an SDK
> folder.  I agree that would be better than Ant.
>
> What I would really like to see, but not sure if it is possible, is to
> have folks actually visit the Adobe site to choose their AIR and Flash SDK
> version, but somehow get other code to manage the download.  That would
> get us out of the hassle of presenting license acceptance dialogs.  I'm
> guessing that Adobe may want to change what customers see when they go get
> AIR and Flash SDKs some day.  That's why I thought about having the
> compiler search for a download and expand it.
>
> Thoughts?
> -Alex
>
> On 9/7/17, 9:55 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >If I could get a zip to just try it, I am all for this.
> >
> >On the plus side, if you can get a zip only for windows and documented
> >setup for quick testing, I think this goes a long way with being able to
> >develop the compiler and develop the ui framework separation a lot
> >cleaner.
> >
> >Getting stuff ripped away from the Flash player and Adobe in a new project
> >is #1. Plus the lightweight nature of not having to download the AIR SDK
> >for dev and just js.
> >
> >@Om what would be the difference between npm and a zip?
> >
> >Mike
> >
> >On Thu, Sep 7, 2017 at 12:48 PM, Piotr Zarzycki
> ><piotrzarzyck...@gmail.com>
> >wrote:
> >
> >> Hi Alex,
> >>
> >> Since you fake airglobal.swc and playerglobal.swc maybe it will also
> >>work
> >> with Moonshine. I will try to do same operation as you did and see
> >>whether
> >> I will not have previous errors.
> >>
> >> Thanks!
> >> Piotr
> >>
> >> 2017-09-07 18:43 GMT+02:00 OmPrakash Muppirala <bigosma...@gmail.com>:
> >>
> >> > This is a big big deal.  Thanks for getting this done.
> >> >
> >> > I would be very interested in the non-installer, simple zip file
> >> download.
> >> >
> >> > I dont care much for Ant as a requirement, I would rather continue
> >> > maintaining the npm FlexJS package for AIR download + setup.
> >> >
> >> > Thoughts?
> >> >
> >> > Thanks,
> >> > Om
> >> >
> >> > On Thu, Sep 7, 2017 at 9:38 AM, Alex Harui <aha...@adobe.com.invalid>
> >> > wrote:
> >> >
> >> > > Hi folks,
> >> > >
> >> > > Yesterday, I was able to manually create a folder of files that
> >> contained
> >> > > no Adobe AIR or Adobe Flash files and still was an acceptable
> >> Flex/FlexJS
> >> > > SDK for Adobe Flash Builder and allowed me to compile
> >> DataBindingExample
> >> > > for JSFlex output only (it did not build a SWF).
> >> > >
> >> > > This is interesting because it could significantly change the way we
> >> > > package FlexJS releases.  We could have a default package that is a
> >> > > ready-to-use zip of this folder of files.  Then the Installer is no
> >> > longer
> >> > > needed if your goal is just to install FlexJS, fire up an IDE, and
> >>see
> >> > how
> >> > > it works in the browser without Flash and you don't need to see how
> >>it
> >> > > looks in Flash.
> >> > >
> >> > > If this sound good to folks, I will try to alter the Ant build
> >>scripts
> >> to
> >> > > produce such a package (maybe some other volunteer can take on doing
> >> this
> >> > > in Maven).  In case you are wondering, what I did was fake some of
> >>the
> >> > > Adobe files that Flash Builder looks for by making copies of some
> >> Apache
> >> > > files.  For example, I copied the js.swc that contains the Object
> >> > > definition for the browser to be airglobal.swc and playerglobal.swc.
> >> So
> >> > > far, it appears that Flash Builder is only checking for existence of
> >> > > files, not actual classes in these files.  But we might hit some bug
> >> > later
&

Re: [FlexJS][Installer] Future packaging of FlexJS releases

2017-09-07 Thread Michael Schmalle
If I could get a zip to just try it, I am all for this.

On the plus side, if you can get a zip only for windows and documented
setup for quick testing, I think this goes a long way with being able to
develop the compiler and develop the ui framework separation a lot cleaner.

Getting stuff ripped away from the Flash player and Adobe in a new project
is #1. Plus the lightweight nature of not having to download the AIR SDK
for dev and just js.

@Om what would be the difference between npm and a zip?

Mike

On Thu, Sep 7, 2017 at 12:48 PM, Piotr Zarzycki 
wrote:

> Hi Alex,
>
> Since you fake airglobal.swc and playerglobal.swc maybe it will also work
> with Moonshine. I will try to do same operation as you did and see whether
> I will not have previous errors.
>
> Thanks!
> Piotr
>
> 2017-09-07 18:43 GMT+02:00 OmPrakash Muppirala :
>
> > This is a big big deal.  Thanks for getting this done.
> >
> > I would be very interested in the non-installer, simple zip file
> download.
> >
> > I dont care much for Ant as a requirement, I would rather continue
> > maintaining the npm FlexJS package for AIR download + setup.
> >
> > Thoughts?
> >
> > Thanks,
> > Om
> >
> > On Thu, Sep 7, 2017 at 9:38 AM, Alex Harui 
> > wrote:
> >
> > > Hi folks,
> > >
> > > Yesterday, I was able to manually create a folder of files that
> contained
> > > no Adobe AIR or Adobe Flash files and still was an acceptable
> Flex/FlexJS
> > > SDK for Adobe Flash Builder and allowed me to compile
> DataBindingExample
> > > for JSFlex output only (it did not build a SWF).
> > >
> > > This is interesting because it could significantly change the way we
> > > package FlexJS releases.  We could have a default package that is a
> > > ready-to-use zip of this folder of files.  Then the Installer is no
> > longer
> > > needed if your goal is just to install FlexJS, fire up an IDE, and see
> > how
> > > it works in the browser without Flash and you don't need to see how it
> > > looks in Flash.
> > >
> > > If this sound good to folks, I will try to alter the Ant build scripts
> to
> > > produce such a package (maybe some other volunteer can take on doing
> this
> > > in Maven).  In case you are wondering, what I did was fake some of the
> > > Adobe files that Flash Builder looks for by making copies of some
> Apache
> > > files.  For example, I copied the js.swc that contains the Object
> > > definition for the browser to be airglobal.swc and playerglobal.swc.
> So
> > > far, it appears that Flash Builder is only checking for existence of
> > > files, not actual classes in these files.  But we might hit some bug
> > later
> > > as we test this further.
> > >
> > > Then the next question is, what do folks do who want to get SWF output?
> > > We could try to write a script for the Installer that downloads the AIR
> > > and Flash SDK and puts them in the right places in the SDK folder but
> it
> > > will run into the same memory limits that is currently a problem for
> the
> > > Installer.  We could write a new AIR app that brings down the AIR and
> > > Flash SDKs.  We could provide Ant scripts that download and deploy the
> > > Adobe bits.  I think we already have bash scripts that do this.  Not
> sure
> > > if folks on Windows will be happy with that or not.
> > >
> > > Using Ant has the advantage that it works on Windows, Mac and Linux.
> > Bash
> > > scripts require a shell on Windows.  I believe AIR apps have issues on
> > > Linux.
> > >
> > > We could try to teach the compiler to look for and expand the AIR SDK
> if
> > > it finds that someone specified SWF output but the AIR SDK is not
> found.
> > > It would look in Downloads folders for the most recent AIR SDK package
> > > name.  So folks who want SWF output go to the Adobe site, download an
> AIR
> > > SDK and then run the compiler.
> > >
> > > This does make SWF output somewhat "second class" and I still believe
> > that
> > > folks who want strong-typing and will be using modules will benefit
> from
> > > at least testing in a Flash/AIR runtime, but I think it makes the
> > releases
> > > truly appear independent from Adobe.
> > >
> > > Thoughts?
> > > -Alex
> > >
> > >
> > >
> >
>
>
>
> --
>
> Piotr Zarzycki
>
> mobile: +48 880 859 557
> skype: zarzycki10
>
> LinkedIn: http://www.linkedin.com/piotrzarzycki
> 
>


Re: [VOTE] Fork FlexJS from Apache Flex

2017-09-01 Thread Michael Schmalle
o be involved with the legacy Apache
> Flex code.
>
> Relationship with Existing Apache Projects
>
> Apache FlexJS might use some releases from Apache Flex for some features
> or for an Installer app.  FlexJS can be used to create Apache Cordova
> applications and we hope to find time to make the Cordova community aware
> of this capability.  The Apache FlexJS Compiler has dependencies on Apache
> Commons, and we use Apache Ant and Apache Maven for building the various
> release artifacts.
>
> Cryptography
>
> Apache FlexJS does not currently does not distribute cryptography code
> other than an MD5 hash algorithm.
>
> Required Resources
>
> Mailing Lists
>
> -private@
> -dev@
> -commits@
> -users@
> -issues@
>
> Version Control
>
> We would like to use GitBox if it is practical to convert the current git
> repos listed above.  We want to explore using GitHub's wiki and
> documentation tools.
>
> Issue Tracking
>
> If GitBox allows us to use GitHub issues, we will use that, otherwise, we
> will request a new JIRA project from Infra.
>
> Other Resources
>
> We would like to try using Git for our website version control and
> whatever the publishing process is.  We will probably continue to run jobs
> on builds.a.o.
>
> Initial PMC
>
> Harbs
> Yishay Weiss
> Alex Harui
> Peter Ent
> Josh Tynjala
> Piotr Zarzycki
> Carlos Rovira
> Erik De Bruin
> Omprakash Muppirala
> Frédéric Thomas
> Olaf Krueger
> Michael Schmalle
> Dave Fisher
>
>
> Initial Committers
>
> Christofer Dutz
> Greg Dove
> Andy Dufilie
> Darrell Loverin
>
>
>
> We propose Harbs as initial PMC Chair and VP Apache FlexJS.
>
> Affiliations
>
> Alex Harui and Peter Ent are currently employees of Adobe Systems Inc.
> Nobody else works for a large corporation.
>
> --- End Proposal ---
>
>


Re: [DISCUSS} Fork FlexJS from Apache Flex

2017-08-31 Thread Michael Schmalle
I think the name thing should be in a separate thread.

Mike

On Thu, Aug 31, 2017 at 5:35 PM, Dave Fisher  wrote:

> That's a conflict. We would want a nonconflicting name that will not
> confuse our users.
>
> Sent from my iPhone
>
> > On Aug 31, 2017, at 2:25 PM, Harbs  wrote:
> >
> > Well, Phoenix is already a thing:
> > http://phoenixframework.org/ 
> >
> > Not sure about trademark issues…
> >
> >> On Aug 31, 2017, at 11:55 PM, OmPrakash Muppirala 
> wrote:
> >>
> >> I want to throw in the name FenixJS for the fork.
> >> Its a play on the words Flex + Phoenix.  You know what that means :-)
> >>
> >> Thanks,
> >> Om
> >
>
>


Re: [DISCUSS} Fork FlexJS from Apache Flex

2017-08-31 Thread Michael Schmalle
I forgot to mention that I am all for this fork. I have a couple projects
that I want to use this with and then I can work on the compiler for my
projects.

Interestingly Web Assembly could be a target, I am naive as what it is
detail wise, not enough research but compiling to something native would be
nice. Maybe it could future proof a compiler emitter.

Mike

On Thu, Aug 31, 2017 at 5:02 PM, Michael Schmalle <teotigraphix...@gmail.com
> wrote:

> Eh, I like the idea but you would then pretty much just use the rise from
> ashes word, because when I first read it I had no idea what it was, my
> dyslexia thought it was like Feline or Kleenex. (don't ask why I see an L)
>
> :)
>
> Mike
>
>
> On Thu, Aug 31, 2017 at 4:55 PM, OmPrakash Muppirala <bigosma...@gmail.com
> > wrote:
>
>> I want to throw in the name FenixJS for the fork.
>> Its a play on the words Flex + Phoenix.  You know what that means :-)
>>
>> Thanks,
>> Om
>>
>
>


Re: [DISCUSS} Fork FlexJS from Apache Flex

2017-08-31 Thread Michael Schmalle
Eh, I like the idea but you would then pretty much just use the rise from
ashes word, because when I first read it I had no idea what it was, my
dyslexia thought it was like Feline or Kleenex. (don't ask why I see an L)

:)

Mike

On Thu, Aug 31, 2017 at 4:55 PM, OmPrakash Muppirala 
wrote:

> I want to throw in the name FenixJS for the fork.
> Its a play on the words Flex + Phoenix.  You know what that means :-)
>
> Thanks,
> Om
>


Re: [FALCONJX] TestAMDClassA

2016-04-12 Thread Michael Schmalle
Looking at the code one more time, :), I bet it's a threading issue with
the AS3Parser. It would seem that something is getting called before the
entire file collection is parsed.

Since I didn't increment anything and was purely using the length of the
returned definition collection, that is what I bet it is.

Mike

On Tue, Apr 12, 2016 at 11:11 AM, Alex Harui  wrote:

>
>
> On 4/12/16, 7:55 AM, "Alex Harui"  wrote:
> >Otherwise, not sure why it is
> >failing for you on Windows, although it could be a Java7 vs Java8 issue.
> >I'm not sure what version of Java the CI Server is running.
>
> I found the place in Jenkins where it says it is running Java 7.  We might
> need to upgrade to Java 8 soon, although we still need compatibility back
> to Java 1.6 so the jars work in Flash Builder.
>
> -Alex
>
>


Re: [FALCONJX] TestAMDClassA

2016-04-12 Thread Michael Schmalle
I just quickly looked at the code, it has to do with the member field '
inheritenceLevel
' and
the only thing that could be happening is that for some reason the base
test is either reusing an instance of the emitter or there is a thread
issue in the test.

That is the only thing it could be looking at my code it gathers the number
by resolving the class hierarchy.

Mike

On Tue, Apr 12, 2016 at 10:58 AM, Josh Tynjala 
wrote:

> I'm on Mac. I'm pretty sure Jenkins is running on Windows, and tests have
> been completing successfuly there. I wonder what the difference could be?
>
> - Josh
>
> On Tue, Apr 12, 2016 at 3:14 AM, Christofer Dutz <
> christofer.d...@c-ware.de>
> wrote:
>
> > Hi,
> >
> >
> > I am currently making sure all the tests that pass on my Mac also pass on
> > Windows. I did find a few tests that didn't work and fixed them (I really
> > wonder how they could have passed for ANT on Windows though). I fixed all
> > the Unit tests in FalconJX except one: TestAMDClassA ... on Windows most
> of
> > these are failing, because the output uses $1 on Windows instead of $0 on
> > the Mac.
> >
> >
> > java.lang.AssertionError:
> > Expected: is "baz: function baz() {\n\tvar tmp = AS3.bind(this,
> > \"secret$1\");\n\treturn tmp(\"-bound\");\n}"
> >  got: "baz: function baz() {\n\tvar tmp = AS3.bind(this,
> > \"secret$0\");\n\treturn tmp(\"-bound\");\n}"
> >
> > Anyone know the reason for this?
> >
> >
> > And I would really appreciate you guys working on Falcon and Falcon JX to
> > drop a line on what platform you are working on Mac, Windows, Linux ... I
> > think we need to give the Windows part a little more love in the future.
> >
> >
> > Chris
> >
>


Re: [FALCONJX] TestAMDClassA

2016-04-12 Thread Michael Schmalle
Well the last time I did anything was about 1 year ago and at that point I
was writing the extern compiler. I refactored the js base emitter but life
got in the way as usual.

I wanted to rip out all of the AMD and VF2JS parts in the tests AND
compiler but never got to it.

Mike

On Tue, Apr 12, 2016 at 7:05 AM, Christofer Dutz <christofer.d...@c-ware.de>
wrote:

> Ok so I just added an @Ignore annotation to the tests, this prevents them
> from being executed.
> But I think it is a good idea to clean up stuff like that. Currently we
> have a lot of tests, but I don't know what they actually test. It seems the
> code base is regularly cleaned up, but not the testsuite.
>
> I also disabled one test in the VF2JS part as I remember it being sort of
> obsolete.
>
> Chris
>
> ________
> Von: Michael Schmalle <teotigraphix...@gmail.com>
> Gesendet: Dienstag, 12. April 2016 12:26
> An: dev@flex.apache.org
> Betreff: Re: [FALCONJX] TestAMDClassA
>
> Either ignore those for AMD or delete them. It was a prototype I did 3+
> years ago, so DON'T waste time on it.
>
> I use windows.
>
> Mike
>
> On Tue, Apr 12, 2016 at 6:14 AM, Christofer Dutz <
> christofer.d...@c-ware.de>
> wrote:
>
> > Hi,
> >
> >
> > I am currently making sure all the tests that pass on my Mac also pass on
> > Windows. I did find a few tests that didn't work and fixed them (I really
> > wonder how they could have passed for ANT on Windows though). I fixed all
> > the Unit tests in FalconJX except one: TestAMDClassA ... on Windows most
> of
> > these are failing, because the output uses $1 on Windows instead of $0 on
> > the Mac.
> >
> >
> > java.lang.AssertionError:
> > Expected: is "baz: function baz() {\n\tvar tmp = AS3.bind(this,
> > \"secret$1\");\n\treturn tmp(\"-bound\");\n}"
> >  got: "baz: function baz() {\n\tvar tmp = AS3.bind(this,
> > \"secret$0\");\n\treturn tmp(\"-bound\");\n}"
> >
> > Anyone know the reason for this?
> >
> >
> > And I would really appreciate you guys working on Falcon and Falcon JX to
> > drop a line on what platform you are working on Mac, Windows, Linux ... I
> > think we need to give the Windows part a little more love in the future.
> >
> >
> > Chris
> >
>


Re: [FALCONJX] TestAMDClassA

2016-04-12 Thread Michael Schmalle
Either ignore those for AMD or delete them. It was a prototype I did 3+
years ago, so DON'T waste time on it.

I use windows.

Mike

On Tue, Apr 12, 2016 at 6:14 AM, Christofer Dutz 
wrote:

> Hi,
>
>
> I am currently making sure all the tests that pass on my Mac also pass on
> Windows. I did find a few tests that didn't work and fixed them (I really
> wonder how they could have passed for ANT on Windows though). I fixed all
> the Unit tests in FalconJX except one: TestAMDClassA ... on Windows most of
> these are failing, because the output uses $1 on Windows instead of $0 on
> the Mac.
>
>
> java.lang.AssertionError:
> Expected: is "baz: function baz() {\n\tvar tmp = AS3.bind(this,
> \"secret$1\");\n\treturn tmp(\"-bound\");\n}"
>  got: "baz: function baz() {\n\tvar tmp = AS3.bind(this,
> \"secret$0\");\n\treturn tmp(\"-bound\");\n}"
>
> Anyone know the reason for this?
>
>
> And I would really appreciate you guys working on Falcon and Falcon JX to
> drop a line on what platform you are working on Mac, Windows, Linux ... I
> think we need to give the Windows part a little more love in the future.
>
>
> Chris
>


Re: [DRAFT] Apache FlexJS 0.6.0 and Apache Flex FalconJX 0.6.0 Released

2016-04-06 Thread Michael Schmalle
Ah, I guess I don't know what I am doing. I thought I had to run -ant -f
installer.xml on the stuff downloaded from the installer.

Mike

On Wed, Apr 6, 2016 at 3:15 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> Yes, the npm installer creates a flexjs folder which you can use from an
> IDE.  I've tested it with FDT and it works fine.  Other IDEs should work
> fine as well.
>
> It also registers mxmlc, asjsc, etc. so you can directly use it from the
> commandline.
>
> This is just another way to install flexjs without using the Installer or
> ant or maven.
>
> Thanks,
> Om
>
> On Wed, Apr 6, 2016 at 11:45 AM, Michael Schmalle <
> teotigraphix...@gmail.com
> > wrote:
>
> > Om, does the npm installer do what the Apache Flex installer does
> > basically?
> >
> > Or does it do the whole shabang? Once you install it's all build, no need
> > to create IDE specific stuff?
> >
> > Mike
> >
> > On Wed, Apr 6, 2016 at 2:42 PM, OmPrakash Muppirala <
> bigosma...@gmail.com>
> > wrote:
> >
> > > I'm planning to push out the npm package for flexjs 0.6 today.  Can we
> > > announce them together?
> > >
> > > Thanks,
> > > Om
> > > On Apr 6, 2016 8:24 AM, "Alex Harui" <aha...@adobe.com> wrote:
> > >
> > > > Below is a draft of the FlexJS and FalconJX announcements.  Please
> > check
> > > > for errors, and add other new features you want mentioned.
> > > >
> > > > Thanks,
> > > > -Alex
> > > >
> > > > ---
> > > >
> > > > The Apache Flex community is pleased to announce the release of
> Apache
> > > > FlexJS SDK 0.6.0 and Apache Flex FalconJX Compiler 0.6.0.
> > > >
> > > > Apache Flex is a highly productive, open source application framework
> > for
> > > > building and maintaining expressive applications that deploy
> > consistently
> > > > on all major browsers, desktops and devices (including smartphones,
> > > > tablets and tv).
> > > >
> > > > Apache FlexJS is a next-generation Flex SDK that enables developers
> to
> > > use
> > > > MXML and ActionScript to not only create SWFs but also cross-compile
> > the
> > > > same MXML and ActionScript to HTML/JS/CSS so applications can run
> > > natively
> > > > in browsers.  The cross-compiled code can also be used in Apache
> > Cordova
> > > > (Adobe PhoneGap) mobile applications.
> > > >
> > > > Apache Flex FalconJX is a next-generation MXML and ActionScript
> > > > cross-compiler.  It extends the next-generation SWF compiler known as
> > > > Falcon.  Both are contained in the release package and are used by
> the
> > > > FlexJS package to compile SWFs or cross-compile to HTML/JS/CSS.
> > > >
> > > > This is the fourth release of FlexJS and FalconJX.  It is ‘beta'
> > > > quality.  In this release, all JS used to implement framework
> > > > functionality is actually written in AS and cross-compiled, which
> helps
> > > > show that there is developer productivity improvements using
> > higher-level
> > > > languages.  In addition, the there is a new Storage.swc for working
> > with
> > > > the persistent storage and a Reflection.swc for basic reflection
> > > > functionality.
> > > >
> > > > In addition, there is a new tool called asnodec (in js/bin).  It
> causes
> > > > the compiler to output an index.js that can be run with Node.js.
> > > >
> > > > The purpose of this release is to gather feedback about the
> > > > features and implementation strategies, and recruit new contributors
> as
> > > we
> > > > grow these code bases into an SDK and tool chain that delivers the
> > > highest
> > > > productivity developing applications that can run in the most places.
> > > > These releases may not handle production needs.  Expect lots of bugs
> > and
> > > > missing features.  Please file bugs at:
> > > >
> > > > https://issues.apache.org/jira/browse/FLEX/
> > > >
> > > > For questions about how to use FlexJS and FalconJX, send email to
> > > > us...@flex.apache.org.  Please try to prefix the subject with
> [FlexJS]
> > > or
> > > > [FalconJX] so it is clear the questions refer to this release and not
> > the
> > > > Flex SDK a

Re: [DRAFT] Apache FlexJS 0.6.0 and Apache Flex FalconJX 0.6.0 Released

2016-04-06 Thread Michael Schmalle
Om, does the npm installer do what the Apache Flex installer does basically?

Or does it do the whole shabang? Once you install it's all build, no need
to create IDE specific stuff?

Mike

On Wed, Apr 6, 2016 at 2:42 PM, OmPrakash Muppirala 
wrote:

> I'm planning to push out the npm package for flexjs 0.6 today.  Can we
> announce them together?
>
> Thanks,
> Om
> On Apr 6, 2016 8:24 AM, "Alex Harui"  wrote:
>
> > Below is a draft of the FlexJS and FalconJX announcements.  Please check
> > for errors, and add other new features you want mentioned.
> >
> > Thanks,
> > -Alex
> >
> > ---
> >
> > The Apache Flex community is pleased to announce the release of Apache
> > FlexJS SDK 0.6.0 and Apache Flex FalconJX Compiler 0.6.0.
> >
> > Apache Flex is a highly productive, open source application framework for
> > building and maintaining expressive applications that deploy consistently
> > on all major browsers, desktops and devices (including smartphones,
> > tablets and tv).
> >
> > Apache FlexJS is a next-generation Flex SDK that enables developers to
> use
> > MXML and ActionScript to not only create SWFs but also cross-compile the
> > same MXML and ActionScript to HTML/JS/CSS so applications can run
> natively
> > in browsers.  The cross-compiled code can also be used in Apache Cordova
> > (Adobe PhoneGap) mobile applications.
> >
> > Apache Flex FalconJX is a next-generation MXML and ActionScript
> > cross-compiler.  It extends the next-generation SWF compiler known as
> > Falcon.  Both are contained in the release package and are used by the
> > FlexJS package to compile SWFs or cross-compile to HTML/JS/CSS.
> >
> > This is the fourth release of FlexJS and FalconJX.  It is ‘beta'
> > quality.  In this release, all JS used to implement framework
> > functionality is actually written in AS and cross-compiled, which helps
> > show that there is developer productivity improvements using higher-level
> > languages.  In addition, the there is a new Storage.swc for working with
> > the persistent storage and a Reflection.swc for basic reflection
> > functionality.
> >
> > In addition, there is a new tool called asnodec (in js/bin).  It causes
> > the compiler to output an index.js that can be run with Node.js.
> >
> > The purpose of this release is to gather feedback about the
> > features and implementation strategies, and recruit new contributors as
> we
> > grow these code bases into an SDK and tool chain that delivers the
> highest
> > productivity developing applications that can run in the most places.
> > These releases may not handle production needs.  Expect lots of bugs and
> > missing features.  Please file bugs at:
> >
> > https://issues.apache.org/jira/browse/FLEX/
> >
> > For questions about how to use FlexJS and FalconJX, send email to
> > us...@flex.apache.org.  Please try to prefix the subject with [FlexJS]
> or
> > [FalconJX] so it is clear the questions refer to this release and not the
> > Flex SDK and MXMLC compiler.
> >
> > For questions and feedback on the development of the source code in these
> > release, send email to dev@flex.apache.org.  Again, please prefix the
> > subject with [FlexJS] or [FalconJX].
> >
> > Apache FlexJS and Apache Flex FalconJX are available in source and binary
> > form from the following download page:
> > http://flex.apache.org/download-flexjs.html
> >
> > When downloading from a mirror site, please remember to verify the
> > downloads using signatures or MD5 hashes.
> >
> > A simple way to try these releases is to use the
> > InstallApacheFlex 3.1 or 3.2 application which is available at the
> > following url:
> > http://flex.apache.org/installer.html
> >
> > Choose Apache FlexJS 0.6.0 and it will create an Adobe Flash
> > Builder-compatible SDK that uses the Falcon and FalconJX compilers to
> > generate SWFs and HTML/JS/CSS output.  You can also use FDT as your IDE
> > for developing FlexJS applications.  Some folks have been successful
> > using IntelliJ, FlashDevelop as well.  Moonshine is also working on
> > FlexJS support.
> >
> > See the README or the FlexJS wiki for more information.  The FlexJS
> > section of the wiki is at the following
> > url:
> > https://cwiki.apache.org/confluence/display/FLEX/FlexJS
> >
> > For more information on Apache Flex, visit the project home page:
> > http://flex.apache.org 
> >
> > Please try FlexJS and become involved in shaping the future of Flex.
> >
> > The Apache Flex Community
> >
> >
> >
> >
> >
>


Re: Starling framework compiled to JavaScript

2016-04-05 Thread Michael Schmalle
On Tue, Apr 5, 2016 at 6:38 PM, Justin Mclean 
wrote:

> Hi,
>
> > Everything can be simpler, last year I went through the main javascript
> > emitter and broke every thing out into sub emitters, MethodEmitter etc.
>
> Interesting you should say that. I noticed  that in the heat maps I
> produced (of the Flex Falcon repo) that MXMLFlexJSEmitter.java and
> JSFlexJSEmitter.java are the hottest things in the map.
>
> Thanks,
> Justin


Justin, that is the problem, I never finished my refactor. I can probably
say that other than Alex, I am about the only person that could feel
confident going in that code and breaking things apart in 3 days and have
every thing still working.

You just proved my point.

There is probably a post where I told Alex I was going to do the same thing
to the MXML emitter that I did to the js emitter.

I don't think I got into the JSFlexJSEmitter because that was Alex's area
at the time.

If we can get Starling working to HTML5 target, I can justify spending a
lot fo time fixing and refactoring the compiler for sure.

Mike


Re: Starling framework compiled to JavaScript

2016-04-05 Thread Michael Schmalle
On Tue, Apr 5, 2016 at 6:29 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> Hey Mike,
>
> In my work on source maps, I've overridden a number of methods from
> ASEmitter that aren't currently in sub-emitters for JS. Should I go ahead
> and make new sub-emitters for those things?
>
> - Josh
>


Yeah, that is exactly what I am talking about. :) Then it's just delegation
and not inheritance. It also makes it very maintenance free down the road
if you want to switch something out.

I know when I started the compiler it was all about template methods and
strategies for each emitter.

The problem came when different outputs started getting add ed and goog
emitter started getting large that the inheritance really turned into
something I had not meant it to be.

Just like the backends, I aimed at it all be configurable, so overriding
wouldn't need to happen, just change the strategy.

Anyway, yes make the emitter, and I guess just create the instance where it
should be created for now. I know that was one thing I nver got to was
creating a factory for them and calling the factory where new is used right
now so it's still kind of half baked but doesn't mean it has to stay that
way.

Mike





>
> On Tue, Apr 5, 2016 at 3:19 PM, Michael Schmalle <
> teotigraphix...@gmail.com>
> wrote:
>
> > On Tue, Apr 5, 2016 at 5:36 PM, bill <b...@beecavegames.com> wrote:
> >
> > > Here's our fork of the flex-falcon repo:
> > >
> > > https://github.com/Bee-Cave-Games/flex-falcon
> > >
> > > The last handful of commits reflect the changes Nimai mentioned above.
> > > We're
> > > still learning our way around the code, so some of these things could
> > > likely
> > > be done in a simpler / better way.
> > >
> > >
> > >
> > Looks good to me!
> >
> > Everything can be simpler, last year I went through the main javascript
> > emitter and broke every thing out into sub emitters, MethodEmitter etc.
> >
> > I did that because it was starting to turn into a rats nest, I think
> there
> > is to much inheritance right now but that is more design. So I created
> > composites so you could easily do what you are doing right now, work in
> the
> > Class/Method emitters and feel pretty safe you are only changing that
> code.
> >
> > I can say with a pretty good certainty that is the way most of those
> > emitters behave right now. There are a few places where there is still un
> > needed coupling and I think I still have those as TODOs.
> >
> > Mike
> >
> >
> >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-flex-development.247.n4.nabble.com/Starling-framework-compiled-to-JavaScript-tp52188p52192.html
> > > Sent from the Apache Flex Development mailing list archive at
> Nabble.com.
> > >
> >
>


Re: Starling framework compiled to JavaScript

2016-04-05 Thread Michael Schmalle
On Tue, Apr 5, 2016 at 5:36 PM, bill  wrote:

> Here's our fork of the flex-falcon repo:
>
> https://github.com/Bee-Cave-Games/flex-falcon
>
> The last handful of commits reflect the changes Nimai mentioned above.
> We're
> still learning our way around the code, so some of these things could
> likely
> be done in a simpler / better way.
>
>
>
Looks good to me!

Everything can be simpler, last year I went through the main javascript
emitter and broke every thing out into sub emitters, MethodEmitter etc.

I did that because it was starting to turn into a rats nest, I think there
is to much inheritance right now but that is more design. So I created
composites so you could easily do what you are doing right now, work in the
Class/Method emitters and feel pretty safe you are only changing that code.

I can say with a pretty good certainty that is the way most of those
emitters behave right now. There are a few places where there is still un
needed coupling and I think I still have those as TODOs.

Mike



>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Starling-framework-compiled-to-JavaScript-tp52188p52192.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: Starling framework compiled to JavaScript

2016-04-05 Thread Michael Schmalle
During my original dev of the compiler I used eclipse and ran all the tests
from it, running individual unit tests when I knew I was in a "sandbox".

Honestly, If I start developing the compiler again, I will probably just
use Eclipse again, it may not have as many neat features as IntelliJ but I
could code Java really fast in it.

Mike

On Tue, Apr 5, 2016 at 5:38 PM, bill  wrote:

> @Josh - we're using exactly the same workflow. IDEA for code navigation &
> search, command line ant for build.
>
> Also using -Dskip.compiler.tests=true and -Dskip.compiler.jx.tests=true on
> the ant command line - I gave up on getting the tests to run after an hour
> or so with no luck.
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Starling-framework-compiled-to-JavaScript-tp52188p52194.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: Starling framework compiled to JavaScript

2016-04-05 Thread Michael Schmalle
> I'd like to get the FalconJX code compiling and debugging, and
running unit tests using IntelliJ IDEA, but I haven't gotten there yet.

I wish I knew. Fred and I worked on this project for years and still didn't
get it.

I think "maybe" with what Chris might be doing with Maven it will be
possible in the coming months.

Good, I have some very large apps using Feathers so... maybe there might be
a way to get some UI components going, and if that is the case I could be
working on the compiler part time since I definitely have some things I
would love to try with web audio and starling.feathers in HTML5/WebGL. :)

I would also explore Cordova extensions with Starling and try to create a
bridge with my native extensions and Cordova extensions.

I would LOVE to be able to to take one of my simple audio apps that uses
native Java/C++ and run that in a Cordova extension with Starling/Feathers
in HTML5.

So you can see I have some motivations here.

Mike



On Tue, Apr 5, 2016 at 5:13 PM, Nimai  wrote:

> Our goal is to ship a real, full featured, professional video game by the
> end
> of the year using ActionScript3 and Starling Framework (as-is, not a fork)
> running in a browser; with *and* without Flash Player.
>
> Conceptually, we would like to see WebGL HTML5 JavaScript become just
> another build target for Adobe AIR along with iOS, Android, desktop, and
> web
> Flash Player.  For now, we expect to use a custom build script, but if some
> day Adobe AIR could get there, that'd be cool.
>
> I started making small test classes for the various bugs we found and
> adding
> issues to Apache Flex JIRA (FalconJX "component") with minimal reproduction
> examples.  I'd like to get the FalconJX code compiling and debugging, and
> running unit tests using IntelliJ IDEA, but I haven't gotten there yet.
> Open to suggestions on how best to set up my local development environment
> for working on the compiler as well.
>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Starling-framework-compiled-to-JavaScript-tp52188p52190.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: Starling framework compiled to JavaScript

2016-04-05 Thread Michael Schmalle
Nice, we got Hungary Heros in 2012 to cross compile with the Randori
compiler.

Some of the issues you stated I had to correct for in that compiler but
never made it into FalconJX's emitter.

Curious, what are your plans for this? Are you attempting to have a fork of
Starling run n WebGL?

Basically, I am really interested in what your goals are because if you are
saying this is more then a prototype, I might be willing to give some code
work in the next month/2 if you can nail down bugs and features that need
to be fixed/implemented.

I know the compiler a little bit anyway. :)

Mike

On Tue, Apr 5, 2016 at 4:44 PM, Nimai  wrote:

> We (actually, my coworker Bill) got the entire Starling 2.0 framework
> successfully transpiled to JavaScript using FalconJX!
>
> We are using lizhi's spriteflexjs library to provide code for the flash
> runtime APIs.
>
> In order to get a successful compilation, we developed a way to emit the
> goog requires and depends in a way that is correct for ActionScript3 import
> and extends, avoiding circular dependencies.
>
> At a high level, here's how the code organization changed:
> * Static class var initialization is run later, not when the js file is
> loaded.
> * All requires (other than extend/inherit classes) moved to the
> project-dependencies.js file.
>
> A handful of ActionScript code workarounds were required in the Starling
> 2.0
> codebase, which we hope to turn into FalconJX unit tests, and pursue fixes.
> Hacks to the Starling 2.0 code include:
> * internal class vars were changed to public.
> * Local functions (functions inside of functions) needed to be assigned to
> and accessed through a var.
> * Inline XML (in the Starling demo class) commented out for now.
> * One place using "apply" did not emit properly formed JavaScript code;
> worked around for now.
> * The namespace "starling.core.starling_internal" was showing up in
> requires
> but is not a module.
> * The @flexjsignorecoercion was used to ignore casts to Class.
> * Other uses of Class commented out for now, such as "if (foo is Class)..."
> * Vars inside of class methods were confused by class accessors (getters)
> of
> the same name.
>
>
> Where are we now?  We have JavaScript code that loads and runs in the
> browser, but it doesn't get very far.  There are more Flash APIs that need
> filling out in the spriteflexjs library.  We will enumerate what we've
> found
> so far.
>
> We are working on a patch or pull request with the FalconJX compiler code
> changes related to the use of goog requires and depends.
>
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Starling-framework-compiled-to-JavaScript-tp52188.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [FlexJS] Demo: FalconJX + AngularJS + Angular Material

2016-04-02 Thread Michael Schmalle
That is nice, seeing a shinny UI on things makes it all the more real.

Is there any prerequisites to using this? I saw you were making an external
swc with Josh's dts2as util.

Mike

On Sat, Apr 2, 2016 at 6:25 AM, OmPrakash Muppirala 
wrote:

> As promised, here is a small taste of an AngularJS + Angular Material app
> built completely in ActionScrpt3, using FalconJX.
>
> *Features:*
>
>1. Create an AngularJS application
>2. Create an AngularJS Controller
>3. Use Angular Material component set
>1. md-whiteframe
>   2. md-button
>   3. md-input
>   4. md-datepicker
>   5. md-dialog
>4. Use Angular's databinding and object watch features
>   1. Type in the input box to see the button's label change
>   2. Click on the button to see a DatePicker  Selecting a date will
>   update the text below.
>
> *Demo app: *
> Release version (fast download):
> http://bigosmallm.github.io/flexjs/angular/release.html
> Debug version (slower download, but you can look at generated JS code):
> http://bigosmallm.github.io/flexjs/angular/debug.html
>
> *AS3 code:*
>
> https://github.com/apache/flex-asjs/tree/develop/examples/native/AngularExample
> (its missing the externs swcs for jquery, angular and angularmaterial, I
> can put them up on my private repo if someone wants them)
>
> I hope to work with Alex and others to figure out how this fits into the
> FlexJS framework over the next few days.
>
> Thanks,
> Om
>


Re: Moonshine-IDE.com -- FlexJS, Flex, and ActionScript focused open source IDE -- contribution to Apache FlexJS ?

2016-04-01 Thread Michael Schmalle
Well side note, asblocks (Apache 2) was written by me and still in my
github repo.

@JustinHill, what are you using asblocks for? Another member of your team
said just the FileUtils, so you are including 200k of files for one class?
I see you have the mxmlblocks in the source code as well.

Mike

On Fri, Apr 1, 2016 at 7:05 PM, Justin Mclean  wrote:

> Hi Justin
>
> Good to hear from you.
>
> > Having said this, I am not sure it meets the code clearance requirements
> right now
> > because it is NOT all our code.
>
> The first steps would be to get the people working on the submit ICLAs [1]
> and the prepare a software grant [2]. We can help you with that.
>
> There is an alternative path and that’s to apply to the incubator and
> become a separate project.
>
> > : Originally found at http://code.google.com/p/moonshineproject/ <
> http://code.google.com/p/moonshineproject/>
>
> It would be nice to ask the original owners (if they are still
> contactable) if they would be OK with that, the Apache license allows it
> but it’s considered polite to ask.
>
> > : Uses as3abc (LGPL), as3swf (MIT), fzip (ZLIB), asblocks (Apache 2),
> > NativeApplicationUpdater (LGPL)
>
> Apache (obviously), MIT and ZLIB as comparable with the Apache license.
> LGPL isn’t compatible, how how would it be to get that software either
> relicensed or replaced?
>
> Although it may be that NativeApplicationUpdater license has changed and
> it’s now Apache? [3]
>
> The code base would also need to undergo an IP review, you may want to do
> this yourself before submitting a grant. (Or again we can help out here.)
>
> > 1) Alex, do you see a value in having Moonshine IDE be contributed
> > officially to Apache FlexJS?
>
> That question is probably one for the Flex PMC not just just Alex. We have
> had software grants in the past but there's been a tendency for the people
> involved to not work on them after they have been donated. I don’t think
> that is the case here but if you can spell out what you plans are after
> this got donated and how you expect to support it after donation that would
> be great.
>
> > 2) Who handles the code clearance for the source?  Especially given that
> > some of the licenses are non-Apache per my statement above.
>
> That would be part of the software grant, which is reviewed by us and the
> incubator PMC.
>
> > 3) Would we still have rights to contribute?  I don't think any of us are
> > code contributors right now.
>
> Everyone has the right to contribute (via pull requests in the github
> mirror for instance), but not access to the repo unless they are voted in
> as a committer. If you contribute a few good patches it’s very likely
> you’ll be voted in as a committer. A few good patches to FlexJS may get you
> voted in as a committer before the software grant happens. Hanging out on
> the mailing list and helping people and interacting with the community here
> also helps.
>
> > 4) Would we still have control or at least influence over the
> > Moonshine-ide.com website, or whatever the corresponding Apache page(s)
> > would be?
>
> I’d assume that it would need to move to Apache. Anyone can contribute to
> those pages, but only committers could directly change the pages.
>
> > 5) Right now we track the source code in SVN and JIRA internal ticketing
> > systems.  I assume we would need to move this to GitHub?
>
> These would need to move to Apache. You could use git or svn. Apache also
> mirror their git and svn repos on github.
>
> Thanks,
> Justin
>
> 1. http://www.apache.org/dev/new-committers-guide.html#cla <
> http://www.apache.org/dev/new-committers-guide.html#cla>
> 2. http://www.apache.org/licenses/#grants <
> http://www.apache.org/licenses/#grants>
> 3. https://code.google.com/archive/p/nativeapplicationupdater/ <
> https://code.google.com/archive/p/nativeapplicationupdater/>
>
>
>


Re: [FlexJS] Using externs swc, how to specify js path

2016-04-01 Thread Michael Schmalle
BTW I meant 20 seconds 80 was a typo.

Yeah I had mentioned that to Josh about the closure library, he said he
might do something about just copying base.js if using jsc.

Mike

On Fri, Apr 1, 2016 at 10:47 AM, Alex Harui <aha...@adobe.com> wrote:

> I think jsc (and for sure mxmljsc) have both a compilation and a
> "publishing" phase.  You could be seeing the effects of the publishing
> phase which has not been optimized at all.  The mxmljsc publisher copies
> the entire Google Closure Library into your bin/js-debug folder, and in my
> unscientific testing, that takes a long time.  I don't even know if jsc
> needs any GCL code.  I've thought about writing a "smarter" copy that only
> copies the GCL files we need, or even better, deletes the files we don't
> need from the base copy in the FlexJS folder so there is less to copy each
> time.  The reason we don't do that know is that we don't know if some
> folks will want to use more of GCL in their project, and because GCL
> doesn't have a 1:1 goog.provide to file name mapping so it does require a
> bit more work to be smart.  As always, volunteers are welcome to work on
> improving this.
>
> -Alex
>
> On 4/1/16, 3:45 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >What are your compile times? I was testing in IDEA and it seemed like 80
> >seconds was as fast as I could get a full compile with jsc and a 1 class
> >project.
> >
> >I know with Randori compiler I had it conditionally compiling, there has
> >got to be a way to conditionally compile this JS, that is the only thing
> >that bothered me yesterday when I tried RC2.
> >
> >Mike
> >
> >On Fri, Apr 1, 2016 at 4:13 AM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> >wrote:
> >
> >> That worked!!
> >>
> >> FalconJX + AngularJS + Angular Material  = unbelievable!
> >>
> >> Will post some examples soon :-)
> >>
> >> Thanks,
> >> Om
> >>
> >> On Thu, Mar 31, 2016 at 7:51 PM, Josh Tynjala <joshtynj...@gmail.com>
> >> wrote:
> >>
> >> > Yep, you need to use -external-library-path instead. An externs SWC
> >>only
> >> > defines the APIs for compile-time checks. The real code needs to come
> >> from
> >> > a 

Re: [FlexJS] Using externs swc, how to specify js path

2016-04-01 Thread Michael Schmalle
What are your compile times? I was testing in IDEA and it seemed like 80
seconds was as fast as I could get a full compile with jsc and a 1 class
project.

I know with Randori compiler I had it conditionally compiling, there has
got to be a way to conditionally compile this JS, that is the only thing
that bothered me yesterday when I tried RC2.

Mike

On Fri, Apr 1, 2016 at 4:13 AM, OmPrakash Muppirala 
wrote:

> That worked!!
>
> FalconJX + AngularJS + Angular Material  = unbelievable!
>
> Will post some examples soon :-)
>
> Thanks,
> Om
>
> On Thu, Mar 31, 2016 at 7:51 PM, Josh Tynjala 
> wrote:
>
> > Yep, you need to use -external-library-path instead. An externs SWC only
> > defines the APIs for compile-time checks. The real code needs to come
> from
> > a 

Re: FlexJS with Bootstrap example

2016-03-31 Thread Michael Schmalle
HA, I see you are using ASBlocks! I wrote that framework like 6 years ago,
hahaha that is to funny! It's still in my github repos.

https://github.com/teotigraphix/as3-commons-asblocks

Can I ask how you are using it, just code generation?

That is SO COOL! It finally got used!

Mike

On Thu, Mar 31, 2016 at 7:05 PM, Michael Schmalle <teotigraphix...@gmail.com
> wrote:

> Ok, just had an idiot moment, I have been reading to much today, the
> source code link is in bold on your site. :)
>
> Mike
>
> On Thu, Mar 31, 2016 at 7:04 PM, Michael Schmalle <
> teotigraphix...@gmail.com> wrote:
>
>> @Dhwani
>>
>> Interesting project. You have put a lot of time into it I can see.
>>
>> Since it's built in AS, are you keeping it closed source or did I miss a
>> source code link?
>>
>> I noticed you have the notion of plugins, is this something an outside
>> developer can extend in the IDE to add functionality outside of your
>> company?
>>
>> Mike
>>
>> On Thu, Mar 31, 2016 at 6:22 PM, dhwanishah85 <dhwanisha...@gmail.com>
>> wrote:
>>
>>> Hi Om,
>>>
>>> I have tried this before. But they are using pure actionscript and it is
>>> not
>>> helpful to what we are working on.
>>>
>>> Thanks
>>> Dhwani Shah,
>>> My Apache Flex community contribution is working on the open source
>>> Moonshine-IDE.com for FlexJS.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-flex-development.247.n4.nabble.com/FlexJS-with-Bootstrap-example-tp52055p52083.html
>>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>>
>>
>>
>


Re: FlexJS with Bootstrap example

2016-03-31 Thread Michael Schmalle
Ok, just had an idiot moment, I have been reading to much today, the source
code link is in bold on your site. :)

Mike

On Thu, Mar 31, 2016 at 7:04 PM, Michael Schmalle <teotigraphix...@gmail.com
> wrote:

> @Dhwani
>
> Interesting project. You have put a lot of time into it I can see.
>
> Since it's built in AS, are you keeping it closed source or did I miss a
> source code link?
>
> I noticed you have the notion of plugins, is this something an outside
> developer can extend in the IDE to add functionality outside of your
> company?
>
> Mike
>
> On Thu, Mar 31, 2016 at 6:22 PM, dhwanishah85 <dhwanisha...@gmail.com>
> wrote:
>
>> Hi Om,
>>
>> I have tried this before. But they are using pure actionscript and it is
>> not
>> helpful to what we are working on.
>>
>> Thanks
>> Dhwani Shah,
>> My Apache Flex community contribution is working on the open source
>> Moonshine-IDE.com for FlexJS.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-flex-development.247.n4.nabble.com/FlexJS-with-Bootstrap-example-tp52055p52083.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>
>


Re: FlexJS with Bootstrap example

2016-03-31 Thread Michael Schmalle
@Dhwani

Interesting project. You have put a lot of time into it I can see.

Since it's built in AS, are you keeping it closed source or did I miss a
source code link?

I noticed you have the notion of plugins, is this something an outside
developer can extend in the IDE to add functionality outside of your
company?

Mike

On Thu, Mar 31, 2016 at 6:22 PM, dhwanishah85 
wrote:

> Hi Om,
>
> I have tried this before. But they are using pure actionscript and it is
> not
> helpful to what we are working on.
>
> Thanks
> Dhwani Shah,
> My Apache Flex community contribution is working on the open source
> Moonshine-IDE.com for FlexJS.
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/FlexJS-with-Bootstrap-example-tp52055p52083.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: [VOTE] Release Apache FlexJS 0.6.0 RC2

2016-03-31 Thread Michael Schmalle
I won't vote with a binding vote but I did use the installer to install
RC2, ran the installer script and compiled an app in IntelliJ.

All worked fine.

Mike

On Thu, Mar 31, 2016 at 11:40 AM, Alex Harui  wrote:

>
>
> On 3/31/16, 4:03 AM, "Justin Mclean"  wrote:
> >
> >The bigger issue is that is looks like there is crypto code bundled here
> >[11]. I’m not 100% sure if it required but have we followed the policy
> >here [12] and informed the US government?
> >11. ./js/lib/google/closure-library/closure/goog/crypt
> >12. http://www.apache.org/dev/crypto.html
> >
>
> Those files are bundled from Google Closure Library.  I opened a ticket
> [13] to see if they have or require an ECCN.  In looking at the code, it
> doesn't.  Did you see anything that would require it?  So, I think we're
> ok. I will also ask on legal-discuss.
>
> -Alex
>
> [13] https://github.com/google/closure-library/issues/690
>
>


Re: [FLEXJS][FALCONJX] News on the Spark-like component set

2016-03-28 Thread Michael Schmalle
Man, I would have never guessed my little tissy about FalconJS and just
starting FalconJX would have got to this point that FlexJS is with all the
different outputs and things being compiled with it and how you guys are
not even writing js anymore, giving you time to do stuff like this. :)

I will note that when I wrote the Randori compiler I was still using
FalconJX right up to the end and it did the Hungry Heros and Starling cross
compile so there were a huge amount of little nit pick bugs I got out of it
then.

Right on Alex! I am so glad Adobe is still letting you work on this and
trying to get it to a point more people find it.

Mike

On Mon, Mar 28, 2016 at 5:37 PM, Alex Harui  wrote:

> Hi,
>
> As you may know, I've been exploring what it would take to create a set of
> components for FlexJS that more closely match the Spark (and MX) APIs from
> the regular Flex SDK.
>
> Today, I reached an early milestone:  I got a subset of UIComponent to
> subclass the FlexJS UIBase and cross-compile with zero errors.  It doesn't
> run yet, but it gives us information about the effort and patterns
> involved and some early idea of the size.
>
> In order to create a manageable subset, I commented out all code in
> UIComponent related to:
>
> -accessibility
> -rotation
> -scale
> -3D and Transforms and other AdvancedLayoutFeatures
> -designLayer
> -BlendModes and BlendShaders
> -Filters
> -doubleClick
> -cacheAsBitmap, cachePolicy and cacheHeuristic
> -AdvancedStyleClient
> -Repeater
> -XML DataBinding
>
> Most of what is in the list is stuff related to "fancy" visuals.  IMO, you
> can build many apps without these features.
>
> In addition, I changed some weak reference listeners to strong listeners
> since we don't have weak reference support on the JS side so any code that
> does a lot of discarding of UIComponents is going to leak (for now).  The
> only idea I have for dealing with lack of weak references going forward is
> to add a dispose() call to UIComponent and other objects similar to what
> you already have to do for Bitmaps and XML.
>
> It turns out that it still took some 212 files to compile UIComponent.
> That's how complex the web of interdependencies are in the Flex SDK.  But
> interestingly, the cross-compiled output minified down to "only" an
> additional 140K!  I was thinking it would be 10 times as big.
>
> So that's promising, and means I will continue pushing on getting this to
> run and port more code.  I think the next milestone is to port
> mx:Container, mx:Label, mx:Application just to see a Hello World run.
> Then start porting Spark.  How long that will take is unknown.  The key
> question is how many touch-points there are with Flash, especially APIs
> with good names that shouldn't be renamed (like 'parent').  Maybe
> UIComponent (and UITextField) are the primary points of contact with the
> Runtime and higher-level components will port more cleanly.
>
> But first, I have slides and demos and hopefully a release (without this
> stuff) to finish by next Monday.
>
> Feel free to ask questions,
> -Alex
>
>


Re: AW: AW: [FALCONJX] Some help with the externs

2016-03-22 Thread Michael Schmalle
Yeah and when I wrote the test, the externs were in a different place that
I was testing. I think Alex or somebody else refactored the locations, and
if it does have an @Ignore, that would backup the fact the test wasn't run
since that refactor.

Mike

On Tue, Mar 22, 2016 at 3:46 PM, Alex Harui  wrote:

> I think that test has a @ignore on the entire test class.
>
> -Alex
>
> On 3/22/16, 12:32 PM, "Christofer Dutz"  wrote:
>
> >Another thing I just noticed while separating the tests that I need to
> >adjust from the ones I need to move:
> >Ho can the test TestExternJQuery pass? In the configure it creates a path:
> >String coreRoot =
> >ExternalsTestUtils.EXTERNAL_JS_DIR.getAbsolutePath();
> >config.addExternal(coreRoot + "/jquery-1.9.js");
> >
> >The stupid thing is this evaluates to
> >"../externs/js/externs/jquery-1.9.js" but this file does not exist as it
> >should be "../externs/jquery/externs/jquery-1.9.js" ... so I would like
> >to state that I mistrust this test ;-)
> >
> >Chris
> >
> >
> >Von: carlos.rov...@gmail.com  im Auftrag von
> >Carlos Rovira 
> >Gesendet: Sonntag, 20. März 2016 09:29
> >An: dev@flex.apache.org
> >Betreff: Re: AW: [FALCONJX] Some help with the externs
> >
> >Amazing work Chris! Thanks to share your progress! :)
> >
> >2016-03-19 14:33 GMT+01:00 Christofer Dutz :
> >
> >> YE!
> >>
> >> I finally managed to port the builds for ALL externs to maven. I was
> >> thinking about how I could de-couple the compiler and the maven plugin
> >>till
> >> I noticed that this was exactly the problem I always had with Flexmojos
> >>and
> >> what I created the Flex tool-api for. With this it was super easy to
> >>create
> >> universal Maven plugins for externc and mxmlc.
> >>
> >> Currently the maven build is far from perfect ... currently I reference
> >> the js.swc via relative paths, which is a super no-go for production,
> >>but
> >> at least I can build and as Ant used relative paths it's not even a step
> >> back :-)
> >>
> >> Also every module is currently still a "jar" project and hence maven
> >> produces "jar" files in the target, all of which are probably completely
> >> empty. In order to address this I will actually have to provide a custom
> >> lifecycle mapping which will make the hack more and more real flex
> >>support
> >> for maven.
> >>
> >> Now I have to find out how to separate the tests that currently use
> >>other
> >> parts of the build and move them into a dedicated "testsuite" module.
> >>
> >> But I think for now the hardest steps have been taken.
> >>
> >> Now I'm going to actually start programming my Cyborg ... don't want to
> >> arrive at ApacheCon with nothing to show ;-)
> >>
> >> Chris
> >>
> >> 
> >> Von: Christofer Dutz 
> >> Gesendet: Samstag, 19. März 2016 11:02
> >> An: dev@flex.apache.org
> >> Betreff: AW: AW: [FALCONJX] Some help with the externs
> >>
> >> Ok ... so have a look at this image :-)
> >>
> >>
> http://s21.postimg.org/lx4dux0jr/Bildschirmfoto_2016_03_19_um_10_53_31.pn
> >>g
> >>
> >> I finally managed to finish a first build of an extern swc, using Maven
> >> and using my brand-new externc and compiler Maven plugins. My plugins
> >>are
> >> currently a simple prototype wich I am hoping to extend to support
> >> everything needed to build the test cases in the test suite. As the
> >>rest of
> >> the compiler blows up if you leave the 100% correct path at least I
> >>have no
> >> pressure to make it perfect ... so I'll stick to "it doesn't blow up if
> >>you
> >> do everything correct"-strategy for now, which makes things a lot
> >>simpler
> >> (but also unusable for others)
> >>
> >> Currently my plugins are tightly coupled with compiler and compiler.jx
> >>...
> >> this would complicate the build, so I think I'm going to use my
> >>Tool-API to
> >> decouple them. And I am going to write the plugin in the falcon repo as
> >>it
> >> makes things very complicated as long as not everything is released at
> >> least once.
> >>
> >> Chris
> >>
> >> 
> >> Von: Christofer Dutz 
> >> Gesendet: Samstag, 19. März 2016 09:19
> >> An: dev@flex.apache.org
> >> Betreff: AW: AW: [FALCONJX] Some help with the externs
> >>
> >> I'm using this one:
> >>
> >> 
> >> com.google.javascript
> >>
> >>closure-compiler-externs
> >> v20150609
> >> 
> >>
> >> But your post was very valuable input as I re-checked and found out that
> >> the closure compiler version has changed. So I updated to that version
> >>an
> >> now I do have a browser directory and the number of errors went down to
> >>2
> >> ;-) ... thanks Alex :-)
> >>
> >> Guess I sticked to the 

Re: [FALCONJX] Some help with the externs

2016-03-20 Thread Michael Schmalle
Yeah that is what I was walking about. I know there are some conflicts in
AS vrs JS and they are warnings.

My point is, the exceptions in the compiler are what you should be worrying
about right now. Those are secondary to the actual transpiler logic of the
semantics of as to js.

Mike

On Fri, Mar 18, 2016 at 3:25 PM, Christofer Dutz <christofer.d...@c-ware.de>
wrote:

> Well this is the output:
>
>
> Mrz 18, 2016 8:01:12 PM com.google.javascript.jscomp.LoggerErrorManager
> println
> SCHWERWIEGEND: [missing]:101: ERROR - Parse error. identifier is a
> reserved word
> function int() {}
>  ^
>
> Mrz 18, 2016 8:01:12 PM com.google.javascript.jscomp.LoggerErrorManager
> println
> SCHWERWIEGEND: [missing]:107: ERROR - Parse error. identifier is a
> reserved word
> int.prototype.toString = function(opt_radix) {}
> ^
>
> Mrz 18, 2016 8:01:12 PM com.google.javascript.jscomp.LoggerErrorManager
> println
> SCHWERWIEGEND: [missing]:226: ERROR - Parse error. identifier is a
> reserved word
> int.MAX_VALUE = 2147483648;
> ^
>
> Mrz 18, 2016 8:01:12 PM com.google.javascript.jscomp.LoggerErrorManager
> println
> SCHWERWIEGEND: [missing]:233: ERROR - Parse error. identifier is a
> reserved word
> int.MIN_VALUE = -2147483648;
> ^
>
> Mrz 18, 2016 8:01:12 PM com.google.javascript.jscomp.LoggerErrorManager
> printSummary
> WARNUNG: 4 error(s), 17 warning(s)
>
> Guess this shouldn't happen.
>
> Chris
>
> 
> Von: Michael Schmalle <teotigraphix...@gmail.com>
> Gesendet: Freitag, 18. März 2016 20:20
> An: dev@flex.apache.org
> Betreff: Re: [FALCONJX] Some help with the externs
>
> > Another thing I noticed, was that I was getting errors while generating
> the AS code for "js"
>
> Are you sure these aren't errors/warnings from the actual GCC compiler?
>
> Mike
>
> On Fri, Mar 18, 2016 at 3:15 PM, Christofer Dutz <
> christofer.d...@c-ware.de>
> wrote:
>
> > Hi Alex,
> >
> > Oh gee ... I should never have started migrating the externs ;-)
> >
> > I have invested about 3 full days now and have all projects creating the
> > identical AS output as the Ant build. Currently I'm working on the last
> > module "js". Unfortunately this seems to be the "playerglobal" of FlexJS
> > :-( ... one thing I noticed, was that the "externs/js/externs" directory
> > contains the content of the externs.zip which is embedded in google's
> > closure compiler. So far so good, but looking at the build, the zip is
> > extracted to the "externs/js/externs" directory, but strangely the files
> > are structured with a "browser" directory. The original zip however
> doesn't
> > contain any directories, so where does that directory structure come
> from?
> >
> > Another thing I noticed, was that I was getting errors while generating
> > the AS code for "js", now I compared that output with the one of the Ant
> > build and I am getting exactly the same errors. Why that? Errors
> shouldn't
> > be part of the build and they should break the build.
> >
> > But on the cool side, I have started building a first flex-maven-plugin.
> > As the Ant build uses manually created config files, I simply created
> > something that does it the same way. Now I sill have to think of a way
> how
> > to make the build reference the swcs in the maven-local repo as
> referencing
> > relative paths is really bad. But probably I'll stick to that first.
> >
> > Chris
> >
> > 
> > Von: Alex Harui <aha...@adobe.com>
> > Gesendet: Freitag, 18. März 2016 16:22
> > An: dev@flex.apache.org
> > Betreff: Re: [FALCONJX] Some help with the externs
> >
> > On 3/18/16, 7:22 AM, "Christofer Dutz" <christofer.d...@c-ware.de>
> wrote:
> > >
> > >The problem I am having is that I completely don't understand how
> EXTERNC
> > >sometimes generates the AS immediately and for createjs it is invoked
> > >twice. The first time creating JS output, the second time creating AS
> > >output. This is really strange as I would like to Build all projects the
> > >same way or at least know why they are built differently and document
> > >this in the pom.
> > >
> >
> > Crap, forgot all about that "feature".  The js-root option gets the
> > ExternC compiler to consume the JS implementation of a library where the
> > code has function bodies and doesn't have a clean mapping from its file
> > paths to package names and output the .js files that ExternC otherwise
> > expects.  I supposed it could be another tool broken out from ExternC or
> > maybe we could make ExternC's normal code paths handle the situations the
> > js-root handles.
> >
> > HTH,
> > -Alex
> >
>


Re: [FALCONJX] Some help with the externs

2016-03-19 Thread Michael Schmalle
> Another thing I noticed, was that I was getting errors while generating
the AS code for "js"

Are you sure these aren't errors/warnings from the actual GCC compiler?

Mike

On Fri, Mar 18, 2016 at 3:15 PM, Christofer Dutz 
wrote:

> Hi Alex,
>
> Oh gee ... I should never have started migrating the externs ;-)
>
> I have invested about 3 full days now and have all projects creating the
> identical AS output as the Ant build. Currently I'm working on the last
> module "js". Unfortunately this seems to be the "playerglobal" of FlexJS
> :-( ... one thing I noticed, was that the "externs/js/externs" directory
> contains the content of the externs.zip which is embedded in google's
> closure compiler. So far so good, but looking at the build, the zip is
> extracted to the "externs/js/externs" directory, but strangely the files
> are structured with a "browser" directory. The original zip however doesn't
> contain any directories, so where does that directory structure come from?
>
> Another thing I noticed, was that I was getting errors while generating
> the AS code for "js", now I compared that output with the one of the Ant
> build and I am getting exactly the same errors. Why that? Errors shouldn't
> be part of the build and they should break the build.
>
> But on the cool side, I have started building a first flex-maven-plugin.
> As the Ant build uses manually created config files, I simply created
> something that does it the same way. Now I sill have to think of a way how
> to make the build reference the swcs in the maven-local repo as referencing
> relative paths is really bad. But probably I'll stick to that first.
>
> Chris
>
> 
> Von: Alex Harui 
> Gesendet: Freitag, 18. März 2016 16:22
> An: dev@flex.apache.org
> Betreff: Re: [FALCONJX] Some help with the externs
>
> On 3/18/16, 7:22 AM, "Christofer Dutz"  wrote:
> >
> >The problem I am having is that I completely don't understand how EXTERNC
> >sometimes generates the AS immediately and for createjs it is invoked
> >twice. The first time creating JS output, the second time creating AS
> >output. This is really strange as I would like to Build all projects the
> >same way or at least know why they are built differently and document
> >this in the pom.
> >
>
> Crap, forgot all about that "feature".  The js-root option gets the
> ExternC compiler to consume the JS implementation of a library where the
> code has function bodies and doesn't have a clean mapping from its file
> paths to package names and output the .js files that ExternC otherwise
> expects.  I supposed it could be another tool broken out from ExternC or
> maybe we could make ExternC's normal code paths handle the situations the
> js-root handles.
>
> HTH,
> -Alex
>


Re: [FALCON] Definitely needs some love ...

2016-03-19 Thread Michael Schmalle
Yes and at the complexity of the transpiler and amount of people that have
actually touched the code, it's all understandable.

When I started that project, I actually used the strategy of unit testing
pretty much every AS statement and expression to produce valid AS, I didn't
even think about JS production in the beginning.

Once the GOOG emitter was started and things got complex, the standard
100's of unit tests I wrote became mute.

IMHO I think th unit tests right now are a mess only due to the fact that
if you realized something was wrong in the impl it might be an actual pain
in the ass to fix it because there is so many things dependent on each
other.

And yeah, there is not a lot of course correction in the logic and it was
brute force from the beginning to get something that actually was close to
working.

Mike


On Fri, Mar 18, 2016 at 3:06 PM, Christofer Dutz 
wrote:

> Hi Josh,
>
> the problem is that sometimes I can't even say what's the cause of the
> npes. Most of them occured inside the compiler and from the context
> variables I can only guess what's going on. And I would probably have to
> open a big 2 digit number of issues, I would like to prevent that. I guess
> as soon as I have ported things to maven I can start using some of my
> static code analysis tools and start mass-producing test-cases ;-)
>
> But I would like to suggest to start thinking about the case that people
> do things wrong. FlexJS works well if you are on the correct path, but the
> code currently simply can't cope well with errors.
>
> Chris
>
> 
> Von: Josh Tynjala 
> Gesendet: Freitag, 18. März 2016 15:59
> An: dev@flex.apache.org
> Betreff: Re: [FALCON] Definitely needs some love ...
>
> I think the first step is documenting these null pointer exceptions as they
> are encountered. Opening bug reports in JIRA seems like the right course of
> action.
>
> - Josh
>
> On Fri, Mar 18, 2016 at 7:09 AM, Christofer Dutz <
> christofer.d...@c-ware.de>
> wrote:
>
> > Hi,
> >
> >
> > Well I think one thing we definitely need to work on, is making Falcon
> and
> > FalconJX a lot more robust. During my work on Mavnizing everything I
> > continuously encounter NullPointerExceptions all over the place. It seems
> > that most of the code seems to currently work if everything is correct,
> but
> > fail miserably with NullPointers if you are not 100% correct. Guess this
> > will cause a lot of frustration with our users.
> >
> >
> > Chris
> >
>


Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-14 Thread Michael Schmalle
I would have to look at the code but I am pretty sure it just uses either
some utilities(classes) or there are some dependencies in the tests.

There should be nothing in the code that is tied to any classes in
compiler.jx. If there is, it should be removed because when I wrote it, I
had nothing in mind with AS->JS transformations.

I even wrote a small little Reference framework so I could keep the code
abstract from the rest of the project.

Mike



On Mon, Mar 14, 2016 at 6:42 PM, Alex Harui <aha...@adobe.com> wrote:

> Let me try to make sure everyone has the same information.
>
> As I understand it, ExternC doesn't have its own parsing code.  It relies
> on the Google Closure Compiler to parse .js files and build an AST.  That
> is why I put forth the idea that ExternC could be separated out from the
> compiler.jx folder.  Mike, can you tell us more about what ExternC uses
> from compiler.jx?
>
> I would imagine that independent of whether we separate ExternC or not,
> there will be some number of existing tests that have dependencies on
> other repos and thus should be separated out.  But IMO, just about every
> test is going to want some set of default definitions, even if it is just
> Number and String.  Currently, we get those definitions from
> playerglobal.swc via some environment variable (or I guess some Maven
> default), but it turns out the js.swc we build with ExternC/CompC could be
> a source of definitions for Number and String and not require playerglobal
> or other dependency outside of the flex-falcon repo.  Although, I suppose,
> one could argue that the "extern" SWCs generated by the flex-falcon build
> should be in a separate repo from the actual compiler.
>
> So, it could be possible for Maven to build ExternC, then a js.swc, then
> FalconJX and run most of its tests and have those tests use js.swc.  And
> some other test suite could then bring in a dependency on playerglobal,
> FlexJS, and/or the Flex SDK.
>
> I don't know what the right answer is, I just want to make sure everybody
> has a better understanding of the factors involved.
>
> -Alex
>
>
> On 3/14/16, 2:50 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Well I am not planning on doing anything atm so it was just a question to
> >Josh.
> >
> >The thing is, EXTERNC is not just a generator and actually, the generation
> >of the AS is not that complex. Remember it's using the GCC compiler to get
> >the AST ree of the JS file and that is the major reason I created it, was
> >for the JS parsing of GCC.
> >
> >I think creating a generator from antlr would be over kill.
> >
> >The issue here is symantic analization of JS AST to create AS code, not
> >the
> >other way around.
> >
> >Mike
> >
> >On Mon, Mar 14, 2016 at 5:44 PM, Christofer Dutz
> ><christofer.d...@c-ware.de>
> >wrote:
> >
> >> HI,
> >>
> >> well I'm not talking about taking EXTERNC out of compiler.jx into a
> >> dedicated, package. I'm talking about taking the Integration-Tests that
> >> rely on parts of compiler.jx being built into a dedicated testsuite
> >> artifact. I think EXTERNC is ok to be kept where it is.
> >>
> >> I am worried about yet another tool that has to be installed, yet
> >>another
> >> packaging system and all the integration problems that come with it. I
> >> would probably be able to integrate things into the Maven build, but we
> >>are
> >> not making things simpler but adding another technology stack for
> >>creating
> >> simple AS code. I think it should be easier to crate such a generator
> >>using
> >> a JavaScript grammar and Antlr4. But I would really like to start
> >>working
> >> on something like this AFTER finishing the migration to Maven. Otherwise
> >> it's shooting on moving targets.
> >>
> >> Chris
> >>
> >> 
> >> Von: Michael Schmalle <teotigraphix...@gmail.com>
> >> Gesendet: Montag, 14. März 2016 18:02
> >> An: dev@flex.apache.org
> >> Betreff: Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release
> >> FlexJS/FalconJX 0.6.0
> >>
> >> Yeah lets not get started on the whole parsing js files. :)
> >>
> >> What I liked about gcc is it abstracted the AST and took care of the
> >> parsing irregularities of JS.
> >>
> >> The problem is the AST walking like I did in ExternC, I had to template
> >> that as though I knew I was parsing prototypes as the extern definition
> >> says.
>

Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-14 Thread Michael Schmalle
Well I am not planning on doing anything atm so it was just a question to
Josh.

The thing is, EXTERNC is not just a generator and actually, the generation
of the AS is not that complex. Remember it's using the GCC compiler to get
the AST ree of the JS file and that is the major reason I created it, was
for the JS parsing of GCC.

I think creating a generator from antlr would be over kill.

The issue here is symantic analization of JS AST to create AS code, not the
other way around.

Mike

On Mon, Mar 14, 2016 at 5:44 PM, Christofer Dutz <christofer.d...@c-ware.de>
wrote:

> HI,
>
> well I'm not talking about taking EXTERNC out of compiler.jx into a
> dedicated, package. I'm talking about taking the Integration-Tests that
> rely on parts of compiler.jx being built into a dedicated testsuite
> artifact. I think EXTERNC is ok to be kept where it is.
>
> I am worried about yet another tool that has to be installed, yet another
> packaging system and all the integration problems that come with it. I
> would probably be able to integrate things into the Maven build, but we are
> not making things simpler but adding another technology stack for creating
> simple AS code. I think it should be easier to crate such a generator using
> a JavaScript grammar and Antlr4. But I would really like to start working
> on something like this AFTER finishing the migration to Maven. Otherwise
> it's shooting on moving targets.
>
> Chris
>
> ____
> Von: Michael Schmalle <teotigraphix...@gmail.com>
> Gesendet: Montag, 14. März 2016 18:02
> An: dev@flex.apache.org
> Betreff: Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release
> FlexJS/FalconJX 0.6.0
>
> Yeah lets not get started on the whole parsing js files. :)
>
> What I liked about gcc is it abstracted the AST and took care of the
> parsing irregularities of JS.
>
> The problem is the AST walking like I did in ExternC, I had to template
> that as though I knew I was parsing prototypes as the extern definition
> says.
>
> It also relies on jsdoc tags so add another layer. JS is just a pain in the
> ass to deal with, plain and simple. Years ago I was able create a grammar,
> parser and a read/write framework for ActionScript using ANTLR only because
> it closely followed a spec, I hate JS for this reason. :)
>
> I just hate duplicating work and that is why I asked Josh what I did, I
> totally wasn't asking him to donate anything.
>
> Mike
>
>
> On Mon, Mar 14, 2016 at 12:13 PM, Alex Harui <aha...@adobe.com> wrote:
>
> >
> >
> > On 3/14/16, 8:34 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
> >
> > >On Mon, Mar 14, 2016 at 11:29 AM, Alex Harui <aha...@adobe.com> wrote:
> > >
> > >>
> > >>
> > >> On 3/14/16, 8:19 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> > >>wrote:
> > >>
> > >> >That said, there is only "so much" that compiler can do because I
> > >>hacked
> > >> >it
> > >> >together in about a month. Thinking about a way to create something
> > >>that
> > >> >can support a yriad amount of definitions that are supported by the
> > >> >current
> > >> >TS community is definitely something to think about.
> > >>
> > >> Yes, but when last discussed, Justin called the licensing integrity of
> > >>the
> > >> TS files into question, so it may be less work for us to have any code
> > >> that generates extern SWCs from those files come from a non-Apache
> > >>project
> > >> unless someone wants to take the time to sort through it all.  Of
> course
> > >> Apache is interested in all sorts of things like dts2as to be
> > >>open-sourced
> > >> at Apache, but the reality is that it won't always be the case.
> > >>
> > >>
> > >Yeah, Yeah yeah :) I remember that conversation and that is why I made
> the
> > >compiler. But, I forgot that it was never resolved.
> >
> > It is really up to Josh as to whether he wants to bring dts2as to Apache.
> > He has every right to keep it outside of Apache and maybe even make some
> > money off of it.
> >
> > >
> > >Ok I ask this, is there anything it doesn't do right now for the core
> > >stuff
> > >you are working?
> >
> > Are you asking about ExternC?  It works well enough for good extern .js
> > files.  The problem is that there are a few libraries (Google Closure
> > Library and CreateJS and probably Cordova) were there i

Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-14 Thread Michael Schmalle
Yeah lets not get started on the whole parsing js files. :)

What I liked about gcc is it abstracted the AST and took care of the
parsing irregularities of JS.

The problem is the AST walking like I did in ExternC, I had to template
that as though I knew I was parsing prototypes as the extern definition
says.

It also relies on jsdoc tags so add another layer. JS is just a pain in the
ass to deal with, plain and simple. Years ago I was able create a grammar,
parser and a read/write framework for ActionScript using ANTLR only because
it closely followed a spec, I hate JS for this reason. :)

I just hate duplicating work and that is why I asked Josh what I did, I
totally wasn't asking him to donate anything.

Mike


On Mon, Mar 14, 2016 at 12:13 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/14/16, 8:34 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >On Mon, Mar 14, 2016 at 11:29 AM, Alex Harui <aha...@adobe.com> wrote:
> >
> >>
> >>
> >> On 3/14/16, 8:19 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> >>wrote:
> >>
> >> >That said, there is only "so much" that compiler can do because I
> >>hacked
> >> >it
> >> >together in about a month. Thinking about a way to create something
> >>that
> >> >can support a yriad amount of definitions that are supported by the
> >> >current
> >> >TS community is definitely something to think about.
> >>
> >> Yes, but when last discussed, Justin called the licensing integrity of
> >>the
> >> TS files into question, so it may be less work for us to have any code
> >> that generates extern SWCs from those files come from a non-Apache
> >>project
> >> unless someone wants to take the time to sort through it all.  Of course
> >> Apache is interested in all sorts of things like dts2as to be
> >>open-sourced
> >> at Apache, but the reality is that it won't always be the case.
> >>
> >>
> >Yeah, Yeah yeah :) I remember that conversation and that is why I made the
> >compiler. But, I forgot that it was never resolved.
>
> It is really up to Josh as to whether he wants to bring dts2as to Apache.
> He has every right to keep it outside of Apache and maybe even make some
> money off of it.
>
> >
> >Ok I ask this, is there anything it doesn't do right now for the core
> >stuff
> >you are working?
>
> Are you asking about ExternC?  It works well enough for good extern .js
> files.  The problem is that there are a few libraries (Google Closure
> Library and CreateJS and probably Cordova) were there is no externs files
> so we are asking ExternC to try to process the actual code, which it
> doesn't do so well, so we've fashioned other ways of skipping ExternC or
> batch modification of the .js files to get ExternC to work and that is
> making more work for Chris' Maven stuff since the 8 SWCs have at least 3
> or 4 different recipes.
>
> IMO, it would be awesome to see ExternC grow into a tool that could
> generate the SWCs from the actual library code so folks don't have to
> maintain d.ts files or extern .js files, but I think that's a ton of work
> especially given that some JS libraries are written with different JS
> patters like the IIFE pattern.
>
> Also, Chris and I are wondering if ExternC could be its own folder like
> compiler and compiler.jx.  It might simplify the Maven work.
>
> -Alex
>
>
>


Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-14 Thread Michael Schmalle
On Mon, Mar 14, 2016 at 11:29 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/14/16, 8:19 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >That said, there is only "so much" that compiler can do because I hacked
> >it
> >together in about a month. Thinking about a way to create something that
> >can support a yriad amount of definitions that are supported by the
> >current
> >TS community is definitely something to think about.
>
> Yes, but when last discussed, Justin called the licensing integrity of the
> TS files into question, so it may be less work for us to have any code
> that generates extern SWCs from those files come from a non-Apache project
> unless someone wants to take the time to sort through it all.  Of course
> Apache is interested in all sorts of things like dts2as to be open-sourced
> at Apache, but the reality is that it won't always be the case.
>
>
Yeah, Yeah yeah :) I remember that conversation and that is why I made the
compiler. But, I forgot that it was never resolved.

Ok I ask this, is there anything it doesn't do right now for the core stuff
you are working?

Mike




> -Alex
>
>


Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-14 Thread Michael Schmalle
On Mon, Mar 14, 2016 at 11:09 AM, Josh Tynjala <joshtynj...@gmail.com>
wrote:

> dts2as pretty much does the same job as externc, except it uses TypeScript
> definitions instead of JS externs. So yes, it probably could replace
> externc.
>
> One thing to keep in mind is that dts2as requires Node.js. Everything in
> the SDK currently uses Java, as far as I know. Requiring another runtime
> will make it more challenging to build everything.
>

Ok, well then that meas node js needs to be installed on the build computer
correct?

It just seems to me that if this project gets more traction, using the huge
TS definitions seems like a win and you are developing the dts2as right now.

Oh well, just a question.

Chris I know what you mean about the Java relm but when I created EXTERNC
it was to get Alex and Peter out of handwritting js.

That said, there is only "so much" that compiler can do because I hacked it
together in about a month. Thinking about a way to create something that
can support a yriad amount of definitions that are supported by the current
TS community is definitely something to think about.

Mike



>
> - Josh
>
> On Sun, Mar 13, 2016 at 2:47 PM, Michael Schmalle <
> teotigraphix...@gmail.com
> > wrote:
>
> > Curious Josh if your typescript definition compiler can replace externc?
> > How much overlap is there?
> >
> > I wanted to do exactly what you did with typescipt and use it's compiler
> > but I didn't have enough time so I went the gcc extern route, there was a
> > couple massive discussions a year ago bout that and using typescript
> > definition files.
> >
> > Mike
> >
> > On Sun, Mar 13, 2016 at 4:08 PM, Christofer Dutz <
> > christofer.d...@c-ware.de>
> > wrote:
> >
> > > Thanks for the explanation :-)
> > >
> > > And what's actually happening in GCL? Here I can see a whole bunch of
> > > JavaScript files as well as matching ActionScript sources. Here the
> > out/as
> > > sort of contains the same classes as the src directory, but the ones in
> > the
> > > src contain Apache headers and some imports. Is this eventually a relic
> > > because the generated code had problems, that the generated code was
> > > checked in in order to manually fix stuff. The generated code isn't
> > picked
> > > up as it is not mentioned in the source-path of the compile-config.xml
> > > file. So actually downloading the lib, processing it and generating the
> > AS
> > > is simply obsolete now?
> > >
> > > The "js" extern directory seems to be similar, but in this case it
> seems
> > > that only a hand full of classes are manually added. Is this too just a
> > > "monkey patch" of falsely generated code and the "src" directory has
> > > precedence before the "out/as" one?
> > >
> > > Chris
> > >
> > > 
> > > Von: Josh Tynjala <joshtynj...@gmail.com>
> > > Gesendet: Sonntag, 13. März 2016 19:09
> > > An: dev@flex.apache.org
> > > Betreff: Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release
> > > FlexJS/FalconJX 0.6.0
> > >
> > > 1. Externs tell the Google Closure compiler which JS APIs it shouldn't
> > > rename when optimizing/minifying because they come from external
> > libraries.
> > >
> > > They're also a handy way to get all the interfaces for a JS library
> > > because...
> > >
> > > 2. externc generates ActionScript stubs from the externs. When we
> > compile a
> > > SWC from them, we get something kind of like playerglobal.swc, but for
> a
> > JS
> > > library. Something the compiler can use the check types, and an IDE can
> > use
> > > to suggest APIs, but not actually included in the output.
> > >
> > > 3. The SWF would compile, but you'd get runtime errors in Flash Player
> or
> > > AIR because the libraries don't exist there.
> > >
> > > - Josh
> > > On Mar 13, 2016 9:46 AM, "Christofer Dutz" <christofer.d...@c-ware.de>
> > > wrote:
> > >
> > > > Hi Alex,
> > > >
> > > > having a look at everything I think I am figuring out how to build
> the
> > > > externs:
> > > > 1. Get the JavaScript code:
> > > > - google_maps, jasmine, jquery, js are downloaded in
> > > > compiler.jx/downloads.xml
> > > > - cordova, GCL and node is manually checked in (Guess the
> input
> > > 

Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-13 Thread Michael Schmalle
Curious Josh if your typescript definition compiler can replace externc?
How much overlap is there?

I wanted to do exactly what you did with typescipt and use it's compiler
but I didn't have enough time so I went the gcc extern route, there was a
couple massive discussions a year ago bout that and using typescript
definition files.

Mike

On Sun, Mar 13, 2016 at 4:08 PM, Christofer Dutz 
wrote:

> Thanks for the explanation :-)
>
> And what's actually happening in GCL? Here I can see a whole bunch of
> JavaScript files as well as matching ActionScript sources. Here the out/as
> sort of contains the same classes as the src directory, but the ones in the
> src contain Apache headers and some imports. Is this eventually a relic
> because the generated code had problems, that the generated code was
> checked in in order to manually fix stuff. The generated code isn't picked
> up as it is not mentioned in the source-path of the compile-config.xml
> file. So actually downloading the lib, processing it and generating the AS
> is simply obsolete now?
>
> The "js" extern directory seems to be similar, but in this case it seems
> that only a hand full of classes are manually added. Is this too just a
> "monkey patch" of falsely generated code and the "src" directory has
> precedence before the "out/as" one?
>
> Chris
>
> 
> Von: Josh Tynjala 
> Gesendet: Sonntag, 13. März 2016 19:09
> An: dev@flex.apache.org
> Betreff: Re: AW: AW: AW: AW: AW: AW: AW: LAST CALL] Release
> FlexJS/FalconJX 0.6.0
>
> 1. Externs tell the Google Closure compiler which JS APIs it shouldn't
> rename when optimizing/minifying because they come from external libraries.
>
> They're also a handy way to get all the interfaces for a JS library
> because...
>
> 2. externc generates ActionScript stubs from the externs. When we compile a
> SWC from them, we get something kind of like playerglobal.swc, but for a JS
> library. Something the compiler can use the check types, and an IDE can use
> to suggest APIs, but not actually included in the output.
>
> 3. The SWF would compile, but you'd get runtime errors in Flash Player or
> AIR because the libraries don't exist there.
>
> - Josh
> On Mar 13, 2016 9:46 AM, "Christofer Dutz" 
> wrote:
>
> > Hi Alex,
> >
> > having a look at everything I think I am figuring out how to build the
> > externs:
> > 1. Get the JavaScript code:
> > - google_maps, jasmine, jquery, js are downloaded in
> > compiler.jx/downloads.xml
> > - cordova, GCL and node is manually checked in (Guess the input
> > didn't work well with EXTERNC, so it was manually
> >   tweaked instead of writing the replacement rules for it.)
> > - createjs is downloaded by externs/createjs/build.xml
> > In the end each directory contains an "externs" directory containing
> > JavaScript input
> >
> > 2. Do some post processing by replacing stuff, that was probably causing
> > problems with EXTERNC
> >
> > 3. Run EXTERNC to generate ActionScript from the JavaScript input and
> > output that code to "out/as"
> >
> > 4. Use falcon to compile the code in "src" and "out/as" into an swc.
> >
> > Am I correct with this? If yes, it would have been great, if at least two
> > externs would actually do it the same way ;-)
> >
> > In any case, I do have a few big questions:
> > - What are externs?
> > - What does EXTERNC actually do? The Input JavaScript files don't seem to
> > contain any form of logic and only seem to be some sort of interface, but
> > interfaces to what?
> > - If EXTERNC generates an ActionScript stub to connect to the real lib in
> > a real JavaScript environment, what happens if I do a Flash compile with
> > externs?
> >
> > I think the best solution would be to provide a maven-plugin with 2/3
> > goals:
> > - prepare: to download/unpack any javascript resources and do the
> > replacing of strings (executed in Mavens generate-sources phase). The
> stuff
> > will be output to "target/generated-sources/externs-js"
> > - externc: to generate the ActionScript code based on the "externs-js"
> > JavaScript to "target/generated-sources/externs-as"(executed in Mavens
> > generate-sources phase after the prepare goal) (Eventually I should merge
> > both logical goals into one real one)
> > - compile: a simple wrapper that passes the 3 or 4 commandline args to
> the
> > falcon compiler to compile the sources in "src/main/flex" and
> > "target/generated-sources/externs-as" into a SWC
> > - Pull out the tests that use externs from compiler.jx as they seem to
> add
> > a circular dependency between compiler.jx and the externs as I need the
> > externs built in order to run some of the tests and I need part of
> > compiler.jx to be built in order to build the externs. (Would suggest
> some
> > sort of "testsuite" project, that could also contain the "SDKSWCTests"
> form
> > the compiler package, which 

Re: LAST CALL] Release FlexJS/FalconJX 0.6.0

2016-03-10 Thread Michael Schmalle
+1 I would try using the npm stuff and framework as an outside user, not s
core developer right now so it would be positive.

Mike

On Thu, Mar 10, 2016 at 6:09 AM, Kessler CTR Mark J <
mark.kessler@usmc.mil> wrote:

> +1
>
> Would have a positive impact and show continuous progress.
>
>
> -Mark
>
> -Original Message-
> From: Alex Harui [mailto:aha...@adobe.com]
> Sent: Wednesday, March 09, 2016 1:41 PM
> To: dev@flex.apache.org
> Subject: [Non-DoD Source] LAST CALL] Release FlexJS/FalconJX 0.6.0
>
> Hi,
>
> Should we try to cut a release before the SF event?  I don't think the big
> things under development (Maven integration, Spark-like component set,
> XML) will land in time for the SF event, but we've fixed some bugs, added
> some features like Tree, Storage, Proxy, Reflection, and eliminated all
> hand-written JS files.
>
> Thoughts?
> -Alex
>
>


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
On Tue, Mar 1, 2016 at 6:48 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/1/16, 3:43 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
>
> >The problem as you have stated is there are multiple threads running and I
> >can't just go in a rip stuff apart. I don't see why the if blocks of the
> >children as data can't be separated. To me that would make things much
> >more
> >clear for future dev.
>
> If you have the time, go for it.
>

Well it's something I will think about. I can't see doing this right
without getting my hands dirty. It would be in a month or so probably April
but I think the best way for me to figure out what needs to be done is
complete a task like this, will server two purposes, one it will get me
into the code on a low level so I actually understand what I am doing, two
it will create a non cluttered surface so I can see what I want to do.


>
> >
> >Now I remember how this all works, the BURM is calling the directives
> >which
> >then are calling their builders. The BURM is actually traversing the AST
> >of
> >AS3.
>
> I think the Directives call the BURM which calls the reducer which calls
> the emitter.  But I could be wrong about that.
>

Yeah you are right, I really meant that the BURM traverses the dark
recesses of the AST like statements and expressions. But yeah, the
directives are calling BURM methods on it's contexts which just ends up
being recursive back on the directive.


>
> >
> >I can't remember without looking but what is parsing the MXML? Is that
> >JFlex?
>
> I don't know for sure, I think it is custom code in MXMLTreeBuilder.  I
> don't think it uses one of the parsing libraries but I could definitely be
> wrong.  I haven't come across a grammar or even a DTD + XML handler for it.
>
>
Yup it's JFlex

/**
 * This class is a scanner generated by
 * http://www.jflex.de/;>JFlex 1.6.0
 * from the specification file
C:/Users/Teoti/Documents/ApacheFlex/git/flex-falcon/compiler/src/org/apache/flex/compiler/internal/parsing/mxml/RawMXMLTokenizer.lex
 */

for RawMXMLTokenizer.java

Mike



> -Alex
>
>


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
Yeah when I was speaking about a backend I didn't mean as verbose as the js
backends. I just meant when compiling for say Feathers, why have code even
close to anything Flex SDK. There is a line between MXML AST and Flex
styles, effects, design layer... ehe...

The problem as you have stated is there are multiple threads running and I
can't just go in a rip stuff apart. I don't see why the if blocks of the
children as data can't be separated. To me that would make things much more
clear for future dev.

Now I remember how this all works, the BURM is calling the directives which
then are calling their builders. The BURM is actually traversing the AST of
AS3.

I can't remember without looking but what is parsing the MXML? Is that
JFlex?

Mike

On Tue, Mar 1, 2016 at 6:31 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/1/16, 3:17 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >
> >In my ignorant view right now I would say the goal is to make the MXML
> >compiler have a backend for the framework API hooks, this would be correct
> >in my head, the right way to direct.
>
> Well, better abstraction is probably always good.  I don't know if the
> framework abstraction can be completely encapsulated in a "backend".  I
> think there is some resolving going on during the building of the AST that
> required knowing what namespaces and classes are being used for data
> binding.  So right now there are several things dictated in the
> -config.xml.  IMO, it would be just as fine if all of the output
> differences were defined in the -config.xml file so that there was just
> one backend for mxml-children-as-data.  The name of the flag has meaning:
> I think the goal is to not have the compiler generate code for MXML, but
> rather generate data that the framework can turn into code.
>
> Then you could compile your app with a flex-config.xml and switch to a
> feathers-config.xml and it wouldn't change too much of the internal logic.
>
> There is a potential runtime advantage to MXML as data as well.  With
> MXMLC, all of the generated code is run once (and in Flash/AIR
> JIT-compiled once as well) which is wasteful.  With MXML as data, there is
> no generated code to run and JIT compile once, the code that "interprets"
> the data gets run many times which is a better use of JIT compilation and
> supposedly the runtime optimizations in the browser.
>
> >
> >I'm only guessing right now but some of my guesses have worked out pretty
> >well. :)
>
> Yes they have, and I'm very interested in what you will come up with in
> this regard.
>
> Thanks,
> -Alex
>
>


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
On Tue, Mar 1, 2016 at 6:11 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/1/16, 2:32 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >>
> >> >
> >> >What does -mxml-children-as-data actually do? Does it output something?
> >>
> >> It tells the compiler to generate these data structures and API calls
> >> instead of generating the Flex SDK code that MXMLC does.
> >>
> >>
> >Ok, so the MXML compiler "does" have ties to the Flex SDK API but not
> >directly in the directives correct?
>
> Well, when you look in MXMLClassDirectiveProcessor you will see lots of
> code forks for when -mxml-children-as-data is true.  I suppose at some
> point someone could do more refactoring to clean it up.  It just hasn't
> been a priority.  One side of the fork generates the MXMLC code, the other
> generates the data structures I've described in this thread.
>
>

Yup, carrying on from my last post I already had an intuition that class
needs to be refactored and abstracted for the very same reason you stated.
I can imagine what it would look like if you ripped all the Flex SDK out
and placed it into a FlexClassDirective and used a strategy to call it.

It seems to me that this would be somewhat of a backend like we have with
JS and AS in the FlaconJX framework.

What is really kewl is I think I will actually be a ble to do this and
maybe break it a part to be able to add those flags that would direct the
compiler which way to actually generate the hooks.

In my ignorant view right now I would say the goal is to make the MXML
compiler have a backend for the framework API hooks, this would be correct
in my head, the right way to direct.

I'm only guessing right now but some of my guesses have worked out pretty
well. :)

Mike


> -Alex
>
>


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
Alex, I think you have known me long enough o see where I am headed with
this. I agree with everything you have said and it's more of a conceptual
issue with me right now. I have definitely proven to myself that once I
figure out the actual problem I can usually solve it pretty quick.

I guess it's that I don't have the compiler setup right now to do a simple
test so I am still in the dark. I did look at
MXMLClassDirectiveProcessorand the light bulb went on, I remember looking
at this class extensively years ago.

So my main thought is what you have side, the compiler MXML, should require
an interface which it seems it does, the framework should hook into it
without worrying about anything. TO me a well design compiler would do this
and if it doesn't it wasn't designed the way we need it.

Mike


On Tue, Mar 1, 2016 at 6:07 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/1/16, 2:30 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Hey Om,
> >
> >This is all purely hypothetical in my head right now so I may be missing
> >something as well but the first goal is to use Feathers out right, that
> >means hooking into Josh's classes.
>
> I think that's the key.  You can continue to have forks of compilers that
> don't require touching existing AS code, or touch and/or wrap the AS code
> so we only need one compiler.  I'm hoping to convince folks that the
> latter takes less energy from the greater community.
>
> Of course, if someone can come up with a set of compiler options that
> allows us to dictate enough aspects of the generated code to abstract
> between differences in frameworks that would probably be ok, but IMO it is
> more than just addChild/addElement.  In Flex, children are not always
> created at certain points in the lifecycle.  There is a concept of
> Navigators that have deferred instantiation:  the children are not created
> until you navigate to that Tab or Page.  The current Falcon output says
> "here are your child descriptors.  You figure out what to do with it".
>
> Another consideration is that unlike the Flex SDK which has MXMLC in the
> code base, Falcon is currently its own code base and potentially its own
> release cycle, so trying to minimize interdependencies between the
> frameworks and compilers seems like a good idea, and almost every bug can
> be fixed by AS developers of the framework; they don't have to learn
> enough about Java and how to build the compiler.
>
> -Alex
>
>


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
On Tue, Mar 1, 2016 at 5:27 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 3/1/16, 2:08 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Hmm, interesting. There are a couple things here I misinterpreted from my
> >journey through the code a couple years ago.
> >
> >It's great to hear that there are no dependencies, I think one major thing
> >Josh had to do was mangle how Event was handled since MXMLC required
> >flash.events.Event for bindings.
> >
> >So basically it's synthesizing implementation calls that the sub framework
> >must implement to use it's children API IE in Feathers it would be
> >addChild() of the Starling framework.
> >
> >From what you have written, it seems like this might now be as hard as I
> >originally thought. I guess i need to open Eclipse and look at the code.
>
> Rats, you were supposed to get the impression that it would be easy. But
> you might be right that it is hard.  I don't know the Starling/Feathers
> code.  The main file to look at is MXMLClassDirectiveProcessor
>
>
HAHA I made a typo, where I wrote "now" I meant "not". :)



> >
> >So generateMXMLAttributes() is setting instance properties on StarlingApp?
>
> All it does is hand in the properties, styles and events on the top-level
> tag.  What the implementation does is up to the framework.
>

Ok, I am not sounding eloquent today, I guess that is what I meant, it
passes properties that must be set on the instance by the implementing
framework.


>
> >
> >What does -mxml-children-as-data actually do? Does it output something?
>
> It tells the compiler to generate these data structures and API calls
> instead of generating the Flex SDK code that MXMLC does.
>
>
Ok, so the MXML compiler "does" have ties to the Flex SDK API but not
directly in the directives correct? I know, I know I should just look at
the code again. :)

Mike



> -Alex
>
>


Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
Hey Om,

This is all purely hypothetical in my head right now so I may be missing
something as well but the first goal is to use Feathers out right, that
means hooking into Josh's classes. He does use a Bootstrap class to start
the app and that is what you are talking about with Application, that is
the boostrap, but from there is has not much else.

But I am not going to say much more until I get my head around the actual
problem which I don't have, just wanted to throw this out there.

Mike

On Tue, Mar 1, 2016 at 5:16 PM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> If I may, there might be a better approach by just doing it within the
> FlexJS framework.  You should be able to create a
> org.apache.flex.starling.Application.as class where a starling display
> list
> is used instead of the regular display list.  You can follow the pattern
> that the org.apache.flex.jquery.Application.as or
> org.apache.flex.createjs.Application.as follows.
>
> Once you have the basic application setup, you should be able to construct
> individual components and use the Starling display list as you go.  You
> might have to create a new version of UIBase (and possible other classes)
> to use the starling display list instead.
>
> And theoretically, for each of these starling based classes, you could have
> the COMPILE::JS versions that do the same/similar thing on Canvas/WebGL.
> Something along the lines of https://github.com/matrix3d/spriteflexjs
>
> Just a thought.  I might be missing something big here.
>
> Thanks,
> Om
>
> On Tue, Mar 1, 2016 at 1:35 PM, Alex Harui <aha...@adobe.com> wrote:
>
> > I don't know what Josh did to MXMLC to get it to work for
> > Starling/Feathers.  I have encouraged him in the past to try to work
> > directly with the Falcon output.  IMO, MXMLC should be abandoned.
> >
> > Falcon supposedly has no real ties to any particular ActionScript
> > framework.  MXMLC generated code that expected the Flex SDK to be around.
> >
> > Maybe the best place to start is with a simple Starling/Feathers app
> > written with some MXML and AS.  Run it through Falcon with
> > -mxml-children-as-data and see what you get.  It won't run right away,
> but
> > will give us tangible issues to discuss.  In theory, you won't need to
> > touch any of the JBurg stuff at all.  The MXML reduction does not use
> > JBurg except for any AS code in event handlers and script blocks.
> >
> > What Falcon currently does is add one method and a few new properties to
> > the subclass.  So for some MXML like
> >
> >  MyApp.mxml 
> > 
> >   
> > 
> >  MyApp.mxml 
> >
> > The effective output (because there is no generated AS output from
> Falcon)
> > is something like:
> >
> > public class MyApp extends StarlingApp
> > {
> >public function MyApp()
> >{
> > super();
> > generateMXMLAttributes([2, "width", false, 900, "height", false,
> > 600]);
> >}
> >
> >override public function get MXMLDescriptor():Array
> >{
> >return [1, FeathersComponent, 2, "id", false, "foo", "label",
> > false, "bar"];
> >}
> > }
> >
> > IOW, any base-class for an MXML file must support:
> >
> > public function generateMXMLAttributes(data:Array):void
> >
> > public function get MXMLDescriptor():Array;
> >
> >
> > Another property called mxmlsd is added for state-dependent nodes.  Not
> > sure if you will need that.
> >
> > There might even be a better way to do this, and better names.  The
> reason
> > it is this way is because I think it is better to have some requirements
> > on the base classes of the framework rather than have the output assume
> > other kinds of lifecycle calls: addElement vs addChild, when to
> > instantiate child nodes, etc.  By passing in MXML as data, the framework
> > gets to decide when to actually apply properties, map them to different
> > things, etc.
> >
> > HTH,
> > -Alex
> >
> > On 3/1/16, 9:40 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
> >
> > >Would I even need to fork it?
> > >
> > >I mentioned to Josh that I use MXML and Feathers extensively for these
> > >audio apps I am about to release on Android which means I have a high
> > >stake
> > >in the tech at the moment.
> > >
> > >That tinkerer side of me feels I could do something about this but I am
> at
> > >a loss of what I need to do to get the

Re: Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
Hmm, interesting. There are a couple things here I misinterpreted from my
journey through the code a couple years ago.

It's great to hear that there are no dependencies, I think one major thing
Josh had to do was mangle how Event was handled since MXMLC required
flash.events.Event for bindings.

So basically it's synthesizing implementation calls that the sub framework
must implement to use it's children API IE in Feathers it would be
addChild() of the Starling framework.

>From what you have written, it seems like this might now be as hard as I
originally thought. I guess i need to open Eclipse and look at the code.

So generateMXMLAttributes() is setting instance properties on StarlingApp?

What does -mxml-children-as-data actually do? Does it output something?

Mike


On Tue, Mar 1, 2016 at 4:35 PM, Alex Harui <aha...@adobe.com> wrote:

> I don't know what Josh did to MXMLC to get it to work for
> Starling/Feathers.  I have encouraged him in the past to try to work
> directly with the Falcon output.  IMO, MXMLC should be abandoned.
>
> Falcon supposedly has no real ties to any particular ActionScript
> framework.  MXMLC generated code that expected the Flex SDK to be around.
>
> Maybe the best place to start is with a simple Starling/Feathers app
> written with some MXML and AS.  Run it through Falcon with
> -mxml-children-as-data and see what you get.  It won't run right away, but
> will give us tangible issues to discuss.  In theory, you won't need to
> touch any of the JBurg stuff at all.  The MXML reduction does not use
> JBurg except for any AS code in event handlers and script blocks.
>
> What Falcon currently does is add one method and a few new properties to
> the subclass.  So for some MXML like
>
>  MyApp.mxml 
> 
>   
> 
>  MyApp.mxml 
>
> The effective output (because there is no generated AS output from Falcon)
> is something like:
>
> public class MyApp extends StarlingApp
> {
>public function MyApp()
>{
> super();
> generateMXMLAttributes([2, "width", false, 900, "height", false,
> 600]);
>}
>
>override public function get MXMLDescriptor():Array
>{
>return [1, FeathersComponent, 2, "id", false, "foo", "label",
> false, "bar"];
>}
> }
>
> IOW, any base-class for an MXML file must support:
>
> public function generateMXMLAttributes(data:Array):void
>
> public function get MXMLDescriptor():Array;
>
>
> Another property called mxmlsd is added for state-dependent nodes.  Not
> sure if you will need that.
>
> There might even be a better way to do this, and better names.  The reason
> it is this way is because I think it is better to have some requirements
> on the base classes of the framework rather than have the output assume
> other kinds of lifecycle calls: addElement vs addChild, when to
> instantiate child nodes, etc.  By passing in MXML as data, the framework
> gets to decide when to actually apply properties, map them to different
> things, etc.
>
> HTH,
> -Alex
>
> On 3/1/16, 9:40 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Would I even need to fork it?
> >
> >I mentioned to Josh that I use MXML and Feathers extensively for these
> >audio apps I am about to release on Android which means I have a high
> >stake
> >in the tech at the moment.
> >
> >That tinkerer side of me feels I could do something about this but I am at
> >a loss of what I need to do to get the ball rolling.
> >
> >If I could get this project to work, this would be huge for the project
> >since the Falcon compiler could actually start to be used in production.
> >It
> >also means I would have a monetary reason to be able to contribute to the
> >development and learning deeper of the compiler.
> >
> >Alex, I need some advice man. :) Where would I even begin?
> >
> >Below is what I posted on Josh's Feathers SDK issue, just me talking to
> >myself.
> >
> >Mike
> >
> >"
> >
> >I'm putting this here just so if anybody else reads it and wants to chime
> >in.
> >
> >Background; I have worked extensively with the Falcon compiler mainly in
> >creating/writing the FalconJX compiler FlexJS uses to cross compile
> >AS/MXML
> >to JS.
> >
> >The problem I see is that I wrote a traversing framework that was a
> >visitor
> >and walker implementation which was an abstraction outside of the actual
> >AST Falcon produces when it parses AS3.
> >
> >The actual MXML compiler uses JBurg and is completely outside of my
> >knowledge base.

Forking the Falcon compiler for Starling/Feathers MXML generation

2016-03-01 Thread Michael Schmalle
Would I even need to fork it?

I mentioned to Josh that I use MXML and Feathers extensively for these
audio apps I am about to release on Android which means I have a high stake
in the tech at the moment.

That tinkerer side of me feels I could do something about this but I am at
a loss of what I need to do to get the ball rolling.

If I could get this project to work, this would be huge for the project
since the Falcon compiler could actually start to be used in production. It
also means I would have a monetary reason to be able to contribute to the
development and learning deeper of the compiler.

Alex, I need some advice man. :) Where would I even begin?

Below is what I posted on Josh's Feathers SDK issue, just me talking to
myself.

Mike

"

I'm putting this here just so if anybody else reads it and wants to chime
in.

Background; I have worked extensively with the Falcon compiler mainly in
creating/writing the FalconJX compiler FlexJS uses to cross compile AS/MXML
to JS.

The problem I see is that I wrote a traversing framework that was a visitor
and walker implementation which was an abstraction outside of the actual
AST Falcon produces when it parses AS3.

The actual MXML compiler uses JBurg and is completely outside of my
knowledge base. I don't off the top of my head know of any hooks to extend
MXML generation or even how to start.

I do understand "what" the original compiler does as far as setting up AS
to be compiled again so the theory is there for me but I am totally lacking
in the vision from start to end of what I need to do to get Falcon to
produce different byte code since there is no code generation pass.

Anyway, I think this could be HUGE for Starling and Feathers if it could be
done since then we could add a whole bunch of specific things that could
enhance the dynamic nature of constructing a Starling/Feathers
mobile/desktop app."


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-15 Thread Michael Schmalle
On Mon, Feb 15, 2016 at 4:36 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 2/15/16, 1:32 PM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
> >exactly why I set that template file up.
>
> Well, I'm glad it worked for you, and it worked for me, but now I am
> spending time trying to implement something else to make others happy.
> Yes, we want to make it easier for others to contribute, but I don't like
> it that it always falls on me to try to figure it out for others.
>

Seriously I don't understand, I worked on it off and on for 1.5 years and
came back 2 years later and got it to work the first time. So is it really
broken?

I was only trying to add humor to your situation which I get. I have 2-3
weeks before the uploads to google play start with my audio stuff. After
that if I get some monetary stuff coming in, I can finally start to venture
out into more experimental directions and I was investigating Cordova as we
talked before.

Although, if I get more time this next 2-3 months, I am no good at these
massive build targets.

Mike



>
> -Alex
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-15 Thread Michael Schmalle
Alex, if I had time I wouldn't do it. :) I hate build stuff and this is
exactly why I set that template file up.

I have never had a problem getting things going, so people that are having
problems are missing a step or two.

It seems like a youtube video showing exactly the steps would help hehehe.
;-)

Mike

On Mon, Feb 15, 2016 at 4:20 PM, Alex Harui  wrote:

> And there is a template-unittest.properties file in compiler.tests which
> explains the options.
>
> The README supposedly contains sufficient information to build from
> sources since several PMC members have successfully done so and voted to
> release.
>
> I don't know how much time to devote to make the build system simpler.
> Some place have full time build engineers.  Should I become a full-time
> build engineer and stop developing features?  Everyone has their favorite
> way of configuring their system.  I am not enjoying trying to guess what
> people want to do.  This is not my itch that I want to scratch, but
> apparently, nobody else has the time to make it better.  They just want to
> complain.  I've been using scripts that set environment variables for
> years.  It seems to work for me.
>
> I will try to get the build system to read an env.properties file from a
> repo root.  I don't think we can have an uber env.properties.  We can't
> guarantee all repos will stay in sync.
>
> -Alex
>
> On 2/15/16, 9:16 AM, "Josh Tynjala"  wrote:
>
> >I think I found that you need to add unittest.properties in both compiler
> >and compiler.jx. The readme file has details about what properties should
> >be defined. It's near the bottom, as I recall, which means it's easy to
> >miss.
> >
> >I agree with Harbs that we should probably make this simpler. Instead of a
> >separate properties file for tests, why not use env.properties?
> >
> >- Josh
> >On Feb 15, 2016 8:01 AM, "Harbs"  wrote:
> >
> >> Where do I need to set the unittest.properties file?
> >>
> >> I’m happy to do so, but I think it would be great if we could at least
> >>get
> >> some instructions on everything needed to build from source.
> >>
> >> Every time I come back to this, I have trouble. Maybe it’s just me, but
> >>it
> >> seems like it raises the bar needed to contribute.
> >>
> >> On Feb 15, 2016, at 5:01 PM, Alex Harui  wrote:
> >>
> >> >
> >> >
> >> > On 2/14/16, 11:52 PM, "Harbs"  wrote:
> >> >
> >> >> Cleaning the repo seemed to have helped somewhat, but I still could
> >>not
> >> >> compile, and I’m assuming because I need to build falcon:
> >> >> Buildfile:
> >> >>
> >>
> >>/Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build
> >>.
> >> >> xml
> >> >>
> >> >> clean:
> >> >>
> >> >> check-falcon-home:
> >> >>[echo] FALCON_HOME is
> >> >> /Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
> >> >>
> >> >> check-falconjx-home:
> >> >>[echo] FALCONJX_HOME is
> >> >> /Users/harbs/Documents/ApacheFlex/flex-falcon/compiler.jx
> >> >
> >> > This implies you still have environment variables set somehow.  The
> >> > defaults would use relative paths with ../ in them.
> >> > Do you have an env.properties file or local.properties file?
> >> >
> >> >
> >> >>
> >> >> unit.tests:
> >> >>   [junit] unittest.properties not found
> >> >>   [junit] environment property - FLEX_HOME =
> >> >>
> >>
> >>/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler/generated/dist/sdk
> >> >>   [junit] environment property - PLAYERGLOBAL_HOME =
> >> >>
> >>
> >>/Users/harbs/Documents/ApacheFlex/flex-falcon/compiler/generated/dist/sdk
> >>/
> >> >> frameworks/libs/player
> >> >>   [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
> >> >>   [junit] environment property - TLF_HOME = null
> >> >>   [junit] environment property - AIR_HOME = null
> >> >>   [junit] environment property - FLASHPLAYER_DEBUGGER = null
> >> >
> >> > I will spend time today trying to get the build to work without
> >> > unittest.properties files, but I think it will still require setting
> >> > PLAYERGLOBAL_HOME, AIR_HOME, FLASHPLAYER_DEBUGGER and maybe
> >> > PLAYERGLOBAL_VERSION in the environment.  I have spent several hours
> >> > already trying to make sure folks don't have to specify relative
> >>paths to
> >> > other Apache Flex repos, but right now we don't have a good way to
> >>guess
> >> > where folks put the Adobe stuff.
> >> >
> >> > -Alex
> >>
> >>
>
>


Re: [FALCONJX][FLEXJS] XML handling (was Re: [FlexJS] Back port)

2016-02-15 Thread Michael Schmalle
This all came back to the beginning. The tests(Falcon, etal) were a
nightmare, I'm talking 2012.

When I started writing the FalconJX compiler and created falcon.jx and
falcon.jx.tests Eclipse projects, I needed something that worked, so I
created the template file so it would work in the two projects I was
developing. I didn't need to run the falcon tests all the time.

Anyway, it's just one of those legacy hacks that can be corrected by
somebody that knows how to fix it. :)

Mike

On Mon, Feb 15, 2016 at 12:16 PM, Josh Tynjala 
wrote:

> I think I found that you need to add unittest.properties in both compiler
> and compiler.jx. The readme file has details about what properties should
> be defined. It's near the bottom, as I recall, which means it's easy to
> miss.
>
> I agree with Harbs that we should probably make this simpler. Instead of a
> separate properties file for tests, why not use env.properties?
>
> - Josh
> On Feb 15, 2016 8:01 AM, "Harbs"  wrote:
>
> > Where do I need to set the unittest.properties file?
> >
> > I’m happy to do so, but I think it would be great if we could at least
> get
> > some instructions on everything needed to build from source.
> >
> > Every time I come back to this, I have trouble. Maybe it’s just me, but
> it
> > seems like it raises the bar needed to contribute.
> >
> > On Feb 15, 2016, at 5:01 PM, Alex Harui  wrote:
> >
> > >
> > >
> > > On 2/14/16, 11:52 PM, "Harbs"  wrote:
> > >
> > >> Cleaning the repo seemed to have helped somewhat, but I still could
> not
> > >> compile, and I’m assuming because I need to build falcon:
> > >> Buildfile:
> > >>
> >
> /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/projects/XML/build.
> > >> xml
> > >>
> > >> clean:
> > >>
> > >> check-falcon-home:
> > >>[echo] FALCON_HOME is
> > >> /Users/harbs/Documents/ApacheFlex/flex-falcon/compiler
> > >>
> > >> check-falconjx-home:
> > >>[echo] FALCONJX_HOME is
> > >> /Users/harbs/Documents/ApacheFlex/flex-falcon/compiler.jx
> > >
> > > This implies you still have environment variables set somehow.  The
> > > defaults would use relative paths with ../ in them.
> > > Do you have an env.properties file or local.properties file?
> > >
> > >
> > >>
> > >> unit.tests:
> > >>   [junit] unittest.properties not found
> > >>   [junit] environment property - FLEX_HOME =
> > >>
> > /Users/harbs/Documents/ApacheFlex/flex-falcon/compiler/generated/dist/sdk
> > >>   [junit] environment property - PLAYERGLOBAL_HOME =
> > >>
> >
> /Users/harbs/Documents/ApacheFlex/flex-falcon/compiler/generated/dist/sdk/
> > >> frameworks/libs/player
> > >>   [junit] environment property - PLAYERGLOBAL_VERSION = 11.1
> > >>   [junit] environment property - TLF_HOME = null
> > >>   [junit] environment property - AIR_HOME = null
> > >>   [junit] environment property - FLASHPLAYER_DEBUGGER = null
> > >
> > > I will spend time today trying to get the build to work without
> > > unittest.properties files, but I think it will still require setting
> > > PLAYERGLOBAL_HOME, AIR_HOME, FLASHPLAYER_DEBUGGER and maybe
> > > PLAYERGLOBAL_VERSION in the environment.  I have spent several hours
> > > already trying to make sure folks don't have to specify relative paths
> to
> > > other Apache Flex repos, but right now we don't have a good way to
> guess
> > > where folks put the Adobe stuff.
> > >
> > > -Alex
> >
> >
>


Re: New Website Work

2016-02-10 Thread Michael Schmalle
I think the lime green text for links needs to be darkened, usability issue.

Other than that it's definitely 2016 responsive bootstrap, nice. :)

Mike

On Wed, Feb 10, 2016 at 12:41 AM, Justin Mclean  wrote:

> Hi,
>
> > You can see a preview of it here :  http://flex.suroot.com
>
> Looking good.
>
> A couple suggestions:
> - list the dates in reverse order on the project history page
> - I thought the facebook, twitter and linked in buttons were for Apache
> (given there proximity to the Apache logo) rather than Flex. Perhaps put
> them under the text below them?
>
> While I like this:
> "The Open-Source ActionScript Framework that creates web, mobile, desktop
> applications from a single code-base as either JavaScript or SWF.”
>
> id “or SWF” actually correct when referring to AIR applications?
>
> Thanks,
> Justin
>
>


Re: [FLEXJS] FlexJS Event: Monday April 4, 2016 in San Francisco

2016-02-09 Thread Michael Schmalle
It's kewl to see this. I think I might try something with Cordova, but it
might take me a bit to get going. I will try and use a native extension but
I must say, my whole understanding of the HTML/JS UI is not that great.

Maybe I will have an example of Cordova and FlexJS by April, is my favorite
time of year. ;-)

I know Om talked about SVG and I showed him some apps that I would need UI
for but it ended there.

Mike

On Tue, Feb 9, 2016 at 2:30 PM, OmPrakash Muppirala 
wrote:

> On Mon, Feb 8, 2016 at 8:53 PM, Alex Harui  wrote:
>
> > Actually I just saw one thing:  It says "TECHNOLOGY, MOBILE".  Can we get
> > more categories (Web, Desktop)?
> >
>
> They were the only relevant categories available.  Although I have added a
> few custom tags now.
>
> Thanks,
> Om
>
>
> >
> > Thanks,
> > -Alex
> >
> > On 2/8/16, 8:45 PM, "Alex Harui"  wrote:
> >
> > >Om,
> > >
> > >Looks ok. Thanks for choosing a registration service.
> > >
> > >-Alex
> > >
> > >On 2/8/16, 6:20 PM, "omup...@gmail.com on behalf of OmPrakash
> Muppirala"
> > > wrote:
> > >
> > >>Okay, looks like folks are able to register and/or follow the event.  I
> > >>am
> > >>going to go ahead and add more details before starting to publicize it
> > >>more
> > >>widely.  Please give me feedback on the page
> > >>https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area
> at
> > >>any time and I will make the appropriate changes.
> > >>
> > >>Thanks,
> > >>Om
> > >>
> > >>On Mon, Feb 8, 2016 at 11:24 AM, OmPrakash Muppirala
> > >>
> > >>wrote:
> > >>
> > >>> I quickly created an event here:
> > >>>
> https://www.conferize.com/conferences/flexjs-world-tour---sf-bay-area
> > >>>
> > >>> Can a couple of folks try to register (using LinkedIn, Twitter or
> > >>> Facebook) and let's tweak it as needed.
> > >>>
> > >>> Once we figure out registration details, I will go in add more
> details.
> > >>> Then we can start publicizing the event.
> > >>>
> > >>> Thanks,
> > >>> Om
> > >>>
> > >>> On Mon, Feb 8, 2016 at 11:07 AM, OmPrakash Muppirala
> > >>> > >>> > wrote:
> > >>>
> >  If no one has objections, I will set up a Conferize event where
> folks
> > can
> >  sign up.
> > 
> >  Thanks,
> >  Om
> > 
> >  On Mon, Feb 8, 2016 at 10:42 AM, Alex Harui 
> wrote:
> > 
> > > It's on!  The conference room is booked and I've got my plane
> > >tickets.
> > > Even if you already said you will attend, please reply again to
> > >confirm.
> > >
> > > The event will be held in the ATS Training Room at Adobe's San
> > >Francisco
> > > office located at 601 Townsend St.
> > >
> > > The current agenda is:
> > >  9:30am Doors Open
> > > 10:00am Introduction to FlexJS - Alex Harui
> > > 11:00am Writing JavaScript in ActionScript - Omprakash Muppirala
> > > 12:00pm - 5:00pm (or later) Hackathon/Hands-on Training/Open
> > >Discussion
> > >
> > > There will be lunch as part of the afternoon session.  Impromptu
> > > presentations on other aspects of FlexJS may be put together and
> > > presented
> > > in the afternoon as discussion topics arise.
> > >
> > > At the end of the morning sessions, you will have seen how FlexJS
> > >works
> > > and how you can use MXML and ActionScript to write applications
> that
> > >run
> > > in browser and as desktop and mobile apps with or without the
> > >Flash/AIR
> > > runtime.  And you will have an understanding of how ActionScript is
> > >being
> > > used to write JavaScript with greater developer productivity.  Did
> > >you
> > > know:  there are no longer any .js files in the FlexJS code base.
> > >All
> > > JavaScript we need is written in ActionScript and cross-compiled.
> No
> > > more
> > > forgetting to type 'this.' or mis-typing a property name and
> finding
> > >out
> > > at run-time.
> > >
> > > At the end of the afternoon session, you will have installed the
> > >FlexJS
> > > SDK and written (at least) a simple application and, if interested,
> > >set
> > > up
> > > the FlexJS development environment so you can contribute to the
> > >future of
> > > Flex.
> > >
> > > Hope to see you there.
> > > -Alex
> > >
> > > PS:  If this event proves to be successful, we might stage other
> > >events
> > > in
> > > other regions during the year.  Seattle is certainly a possibility.
> > >
> > >
> > 
> > >>>
> > >
> >
> >
>


Re: flexjs game hugryhero

2016-01-21 Thread Michael Schmalle
Oh yeah one other things to those that read. What Renaun proved was that
the Starling framework "could" be used and it compiled to JS, so.

@Alex, this is why lizhi was asking about Embed, the hungry heros examples.

Mike

On Thu, Jan 21, 2016 at 5:41 AM, Michael Schmalle <teotigraphix...@gmail.com
> wrote:

> Yeah, what I meant was give people like you the ability to write against
> native JS API, so thank you for having interest in what you are doing, it
> makes all the time I spent on this compiler in 2012-2013 totally worth it.
>
> BTW, I have some things I am working on right now but I am really
> interested in this part of graphics and combining them with a web audio
> framework to make some audio apps with web audio and canvas/wegl.
>
> Keep up the great work lizhi! :)
>
> Mike
>
> On Thu, Jan 21, 2016 at 5:06 AM, lizhi <s...@qq.com> wrote:
>
>> and if i have time,i will render the flash api,use the webgl.
>> not depend the starling.just flash api webgl.
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-flex-development.247.n4.nabble.com/flexjs-game-hugryhero-tp51348p51352.html
>> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>>
>
>


Re: flexjs game hugryhero

2016-01-21 Thread Michael Schmalle
Yeah, what I meant was give people like you the ability to write against
native JS API, so thank you for having interest in what you are doing, it
makes all the time I spent on this compiler in 2012-2013 totally worth it.

BTW, I have some things I am working on right now but I am really
interested in this part of graphics and combining them with a web audio
framework to make some audio apps with web audio and canvas/wegl.

Keep up the great work lizhi! :)

Mike

On Thu, Jan 21, 2016 at 5:06 AM, lizhi  wrote:

> and if i have time,i will render the flash api,use the webgl.
> not depend the starling.just flash api webgl.
>
>
>
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/flexjs-game-hugryhero-tp51348p51352.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>


Re: flexjs game hugryhero

2016-01-21 Thread Michael Schmalle
Ha, nice Renaun did this game back with Randori compiler and it worked
great 3 years ago.

One of the main reasons I put some much time into getting externs to work
and why I wrote EXTERNC to generate the js.swc was this example right here
with webgl.

So hats off to you lizhi! You are doing a great job, I am going to have to
look at this when I get more time.

Mike

On Thu, Jan 21, 2016 at 2:22 AM, OmPrakash Muppirala 
wrote:

> Haha, this is freaking amazing!  Its a bit buggy but it's great start.
> Nice job!
>
> Thanks,
> Om
>
> On Wed, Jan 20, 2016 at 8:29 PM, lizhi  wrote:
>
> >
> >
> http://matrix3d.github.io/assets/html5/flexjsstage3d/bin/js-release/#test_hugryhero
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-flex-development.247.n4.nabble.com/flexjs-game-hugryhero-tp51348.html
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
> >
>


Re: flexjs game hugryhero

2016-01-21 Thread Michael Schmalle
Ok, I am ignorant. If I was to make a little audio app with FlexJS, "what"
are the assets as far as like png loading for an image?

Is all that in the FlexJS stor example?

How is the layout working on browsers? Last time I checked there was still
styling and layout hicups.

Do you have an online example of the current FlexJS store app?

Mike

On Thu, Jan 21, 2016 at 11:43 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/21/16, 8:24 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >If/when you have time, could you make a JIRA that sort of outlined the
> >process for the base64 encoding? I am good at somethings but something
> >like
> >this I really don't have any experience, I know the hooks in the compiler
> >and such but what would actually be involved in getting the bytes to emit
> >out.
>
> I would have to do research as well.  Maybe Josh can provide more detail.
> My concern is, if overused, embeds could make the html file really huge.
>
> -Alex
>
>


Re: flexjs game hugryhero

2016-01-21 Thread Michael Schmalle
If/when you have time, could you make a JIRA that sort of outlined the
process for the base64 encoding? I am good at somethings but something like
this I really don't have any experience, I know the hooks in the compiler
and such but what would actually be involved in getting the bytes to emit
out.

If you don't have time, that is fine. I am getting interested in some audio
experiements... (WebAudio)

Mike

On Thu, Jan 21, 2016 at 11:11 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/21/16, 2:43 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >Oh yeah one other things to those that read. What Renaun proved was that
> >the Starling framework "could" be used and it compiled to JS, so.
> >
> >@Alex, this is why lizhi was asking about Embed, the hungry heros
> >examples.
>
> I'm sure other folks will want embed as well, and Josh proposed a
> solution.  If someone has time to work on it, please do so.  It isn't high
> on my list because IMO you can live without it in most cases.
>
> -Alex
>
>


Re: Names for FlexJS MXML

2016-01-19 Thread Michael Schmalle
Agreed, MXML is a markup language and it it's AST form really has nothing
to do with SWF, JS or AS, it's it's own language spec. This is why JS can
be gleaned from the same thing AS is.

I know I am stating the obvious but man, working with MXML since Josh
released it for Feathers has been some of the funnest times programming
these last 3 months for Android/Desktop apps.

I couldn't imagine using the same patterns to make a single page
mobile./web app with the same fluid design/development experience that MXML
gives me right now.

Mike

On Tue, Jan 19, 2016 at 4:22 PM, Josh Tynjala  wrote:

> I don't think it needs a special name. MXML is good as it is. No
> differentiation required.
>
> - Josh
> On Jan 19, 2016 1:19 PM, "jude"  wrote:
>
> > Alex, et al,
> >
> > Is there a name or 3-4 letter acronym we can use for FlexJS MXML to
> > differentiate it from Flex MXML? I'm drawing a blank and these don't seem
> > to fit:
> >
> > FXML
> > FXJSML
> > FxJsML
> > FalconML
> >
> > I don't think the JS part of the name fits because FlexJS also outputs
> SWF.
> > It's a hybrid of Flex, MXML, AS with two different target platforms SWF
> and
> > transpiled HTML / JS.
> >
> > For example, we have HTML, MXML, XAML but what would sound good for
> FlexJS?
> >
>


Re: Policy on commiting unit tests?

2016-01-15 Thread Michael Schmalle
Which project?

I have used @Ignore in the past. You could do that and point to the test
file and method name in the JIRA issue. (if this is Falcon)

Mike

On Fri, Jan 15, 2016 at 9:55 AM, Andy Dufilie 
wrote:

> I would like to write some unit tests for issues I know about, but I'm
> unsure how to proceed.  Should I commit the unit tests even if they
> currently fail?  I can create JIRA issues, but I know that unit tests are
> helpful as well so I would like to know how to contribute those even if I
> don't currently have time to fix the bugs myself.
>
> Andy
>


[FalconJX] unit tests

2016-01-14 Thread Michael Schmalle
I just did a super clean on compiler, compiler.jx and compiler.jx.tests
then a build and I have 14 failing unit tests out of 1250.

Do these tests use asjs repo for anything?

Mike


Re: [FalconJX] unit tests

2016-01-14 Thread Michael Schmalle
Yeah I guess I should have looked closer;

Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml
Unable to parse
C:\Users\Teoti\Documents\ApacheFlex\git\flex-asjs\frameworks\as\basic-manifest.xml

I need to recheckout asjs then something isn't right.

Mike

On Thu, Jan 14, 2016 at 4:50 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 1/14/16, 12:17 PM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
>
> >I just did a super clean on compiler, compiler.jx and compiler.jx.tests
> >then a build and I have 14 failing unit tests out of 1250.
> >
> >Do these tests use asjs repo for anything?
>
> I thought I had set up the default Ant target to not require any other
> repos.  However I think if you run the entire compiler.jx.test project
> from Eclipse it will run the test that require other repos.
>
> -Alex
>
>


Re: [FLEXJS] Build failure significant

2016-01-13 Thread Michael Schmalle
On Tue, Jan 12, 2016 at 7:58 PM, Josh Tynjala <joshtynj...@gmail.com> wrote:

> Mike,
>
> flash.utils.clearTimeout.length became a member access expression.
> IdentifierEmitter never used the fully-qualified name for a member access
> expression, so it was emitting as clearTimeout.length, without the package
> name.
>
>
Exactly, this is what I saw looking at the tests and length was the
difference in the AST. This one I had a terrible time with, knowing what
was a package name or an expression.

As you read the code more, you might see better ways to do something that I
didn't do quite right, I was just trying to get it to work in the beginning.

Note: I made a HUGE amount of tests because I knew that eventually, the
FalconJX got used, it was going to get tricky and we needed a lot of pins
in the tarp. ;-)

Mike



> See my commit and/or my reply to Alex for the explanation of how I fixed
> it.
>
> - Josh
>
> On Tue, Jan 12, 2016 at 3:32 PM, Michael Schmalle <
> teotigraphix...@gmail.com
> > wrote:
>
> > Josh, I have much experience with this identifier vrs. function call
> stuff
> > in the compiler. I pulled my hair out when initally implementing the
> > Identifier emitter and in the end made it as dumb as possible.
> >
> > I was looking at your commits, and read this, can you exactly explain
> what
> > was failing , I'm kind of confused.
> >
> > One thing to note, it gets really tricky when member expressions and
> > functional call nodes are being tested.
> >
> > Mike
> >
> > On Tue, Jan 12, 2016 at 6:22 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> > > What I typically do in these situations is examine the node tree and
> see
> > > if I can see some difference that I can test for.
> > >
> > > HTH,
> > > -Alex
> > >
> > > On 1/12/16, 3:17 PM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
> > >
> > > >I'm running into some problem trying to fix this issue. I tried adding
> > the
> > > >following three tests to TestFlexJSExpressions:
> > > >
> > > >@Test
> > > >public void testFunctionCallFullyQualified()
> > > >{
> > > >IFunctionNode node = (IFunctionNode) getNode(
> > > >"import goog.bind; public class B {public function b() {
> > > >goog.bind(b, this); }}",
> > > >IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> > > >asBlockWalker.visitFunction(node);
> > > >assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b =
> function()
> > > >{\n  goog.bind(org.apache.flex.utils.Language.closure(this.b, this,
> > 'b'),
> > > >this);\n}");
> > > >}
> > > >
> > > >@Test
> > > >public void testFunctionCallFullyQualified2()
> > > >{
> > > >IFunctionNode node = (IFunctionNode) getNode(
> > > >"import flash.utils.clearTimeout; public class B {public
> > > >function b() { clearTimeout(12); }}",
> > > >IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> > > >asBlockWalker.visitFunction(node);
> > > >assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b =
> function()
> > > >{\n  flash.utils.clearTimeout(12);\n}");
> > > >}
> > > >
> > > >@Test
> > > >public void testFunctionMemberFullyQualified()
> > > >{
> > > >IFunctionNode node = (IFunctionNode) getNode(
> > > >"import flash.utils.clearTimeout; public class B {public
> > > >function b() { clearTimeout.length; }}",
> > > >IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> > > >asBlockWalker.visitFunction(node);
> > > >assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b =
> function()
> > > >{\n  flash.utils.clearTimeout.length;\n}");
> > > >}
> > > >
> > > >You'll notice that testFunctionCallFullyQualified2 is almost exactly
> the
> > > >same, but it calls flash.utils.clearTimeout() instead of goog.bind().
> > > >Without any changes, testFunctionCallFullyQualified fails, but
> > > >testFunctionCallFullyQualified2 passes.
> > > >
> > > >If I change IdentifierEmitter as you suggest, and check if the parent
> > is a
> > > >MemberAccessExpressionNode, testFunctionCallFullyQualified starts
> > passing.
> > > >However, testFunctionMemberFullyQualified will fa

Re: [FLEXJS] Build failure significant

2016-01-12 Thread Michael Schmalle
Josh, I have much experience with this identifier vrs. function call stuff
in the compiler. I pulled my hair out when initally implementing the
Identifier emitter and in the end made it as dumb as possible.

I was looking at your commits, and read this, can you exactly explain what
was failing , I'm kind of confused.

One thing to note, it gets really tricky when member expressions and
functional call nodes are being tested.

Mike

On Tue, Jan 12, 2016 at 6:22 PM, Alex Harui  wrote:

> What I typically do in these situations is examine the node tree and see
> if I can see some difference that I can test for.
>
> HTH,
> -Alex
>
> On 1/12/16, 3:17 PM, "Josh Tynjala"  wrote:
>
> >I'm running into some problem trying to fix this issue. I tried adding the
> >following three tests to TestFlexJSExpressions:
> >
> >@Test
> >public void testFunctionCallFullyQualified()
> >{
> >IFunctionNode node = (IFunctionNode) getNode(
> >"import goog.bind; public class B {public function b() {
> >goog.bind(b, this); }}",
> >IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> >asBlockWalker.visitFunction(node);
> >assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function()
> >{\n  goog.bind(org.apache.flex.utils.Language.closure(this.b, this, 'b'),
> >this);\n}");
> >}
> >
> >@Test
> >public void testFunctionCallFullyQualified2()
> >{
> >IFunctionNode node = (IFunctionNode) getNode(
> >"import flash.utils.clearTimeout; public class B {public
> >function b() { clearTimeout(12); }}",
> >IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> >asBlockWalker.visitFunction(node);
> >assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function()
> >{\n  flash.utils.clearTimeout(12);\n}");
> >}
> >
> >@Test
> >public void testFunctionMemberFullyQualified()
> >{
> >IFunctionNode node = (IFunctionNode) getNode(
> >"import flash.utils.clearTimeout; public class B {public
> >function b() { clearTimeout.length; }}",
> >IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> >asBlockWalker.visitFunction(node);
> >assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b = function()
> >{\n  flash.utils.clearTimeout.length;\n}");
> >}
> >
> >You'll notice that testFunctionCallFullyQualified2 is almost exactly the
> >same, but it calls flash.utils.clearTimeout() instead of goog.bind().
> >Without any changes, testFunctionCallFullyQualified fails, but
> >testFunctionCallFullyQualified2 passes.
> >
> >If I change IdentifierEmitter as you suggest, and check if the parent is a
> >MemberAccessExpressionNode, testFunctionCallFullyQualified starts passing.
> >However, testFunctionMemberFullyQualified will fail instead.
> >
> >- Josh
> >
> >On Tue, Jan 12, 2016 at 9:41 AM, Alex Harui  wrote:
> >
> >> Yep, I'm seeing this too.  It could be the IdentifierEmitter changes.  I
> >> think the emitter code needs to check if it is already part of a
> >> fully-qualified name, maybe by seeing if the IdentifierNode is parented
> >>by
> >> a MemberAccessExpressionNode.
> >>
> >> Josh, can you look into this?  I think you can add a test case like the
> >> following to
> >>
> >>compiler.jx.tests/src/org/apache/flex/compiler/internal/codegen/js/flexjs
> >>/T
> >> estFlexJSExpressions.java
> >>
> >> @Test
> >> public void testFunctionCallFullyQualified()
> >> {
> >> IFunctionNode node = (IFunctionNode) getNode(
> >> "import goog.bind; public class B {public function b() {
> >> goog.bind(b, this); }}",
> >> IFunctionNode.class, WRAP_LEVEL_PACKAGE, true);
> >> asBlockWalker.visitFunction(node);
> >> assertOut("/**\n * @export\n */\nfoo.bar.B.prototype.b =
> >> function() {\n  goog.bind(org.apache.flex.utils.Language.closure(this.b,
> >> this, 'b'), this);\n}");
> >> }
> >>
> >>
> >>
> >> Thanks,
> >> -Alex
> >>
> >>
> >> On 1/12/16, 7:17 AM, "Peter Ent"  wrote:
> >>
> >> >I updated falcon and flexjs this morning and ran into an issue. First
> >> >thought it was my problem then looked at the logs. When I build I get
> >>the
> >> >same issue as the warnings below and that causes a runtime failure.
> >> >
> >> >[java] WARNING:
> >>
> >>>/Users/pent/dev/flex-asjs/examples/flexjs/MobileTrader/bin/js-debug/org/
> >>>ap
> >> >a
> >> >che/flex/utils/Language.js:345: WARNING - goog.goog is never defined
> >> > [java]   var /** @type {Function} */ boundMethod =
> >>goog.goog.bind(fn,
> >> >object);
> >> > [java] ^
> >> > [java]
> >> > [java] Jan 12, 2016 10:12:53 AM
> >> >com.google.javascript.jscomp.LoggerErrorManager println
> >> > [java] WARNING:
> >>
> >>>/Users/pent/dev/flex-asjs/examples/flexjs/MobileTrader/bin/js-debug/org/
> >>>ap
> >> >a
> >> >che/flex/utils/MXMLDataInterpreter.js:209: WARNING - goog.goog is never
> >> >defined
> >> > [java] 

Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-11 Thread Michael Schmalle
Ther other day I was thinking to myself, in this day and age where most JS
is minified at the least at the time it gets to the client, no body really
knows what you actually made the app with other than maybe your html
markup, So it's the same old story, it only matters what the client sees
and if ActionScript can do it, it doesn't matter.

Josh, I am curious what you have going. Are you attempting a prototype of
Feathers in JS?

Mike

On Sun, Jan 10, 2016 at 11:48 PM, Josh Tynjala <joshtynj...@gmail.com>
wrote:

> Welcome, Andy! ActionScript definitely deserves the opportunity to go head
> to head with other languages that can transpile to JS. Looking forward to
> working with you!
>
> - Josh
> On Jan 10, 2016 6:54 PM, "Andy Dufilie" <andy.dufi...@gmail.com> wrote:
>
> > Thanks all for the warm welcome!
> >
> > I'm using FlexJS to port the non-UI framework of
> > http://github.com/WeaveTeam/Weave so my company can build a new
> > open-source
> > data visualization framework in HTML5.  It's a great test case for FlexJS
> > because of its size and how tightly coupled it is with the nuances of
> > ActionScript.  Alex has fixed many of the problems I've run into, and I'm
> > looking forward to fixing more myself.  I want to help make FlexJS a
> solid
> > alternative to TypeScript and other languages targeting JavaScript.
> >
> > Andy
> >
> > On Sun, Jan 10, 2016 at 11:17 AM, Michael Schmalle <
> > teotigraphix...@gmail.com> wrote:
> >
> > > Heh, I noticed that last commit and it wasn't a pull request! Welcome
> > Andy
> > > and it's great you are working on the compiler.
> > >
> > > Can you tell us a little about what you are aiming to do with your
> > > projects?
> > >
> > > Mike
> > >
> > > On Sun, Jan 10, 2016 at 10:40 AM, Harbs <harbs.li...@gmail.com> wrote:
> > >
> > > > Welcome Andy!
> > > >
> > > > It great to have you on board!
> > > >
> > > > Harbs
> > > >
> > > > On Jan 10, 2016, at 5:39 PM, Alex Harui <aha...@adobe.com> wrote:
> > > >
> > > > > Hi folks,
> > > > >
> > > > > The Apache Flex PMC is excited to welcome Andy Dufilie as our
> newest
> > > > > committer!  Andy has recently been contributing great bugs reports
> > and
> > > > > fixes for FlexJS and FalconJX which has earned him the merit to
> > become
> > > a
> > > > > committer (yes, you can become a committer the same way).
> > > > >
> > > > > Please join us in welcoming him as a committer to the Apache Flex
> > > > project.
> > > > >
> > > > > Welcome Andy!
> > > > > -Alex
> > > > >
> > > >
> > > >
> > >
> >
>


Re: [FalconJX] Is it time to delete the FalconJS code?

2016-01-11 Thread Michael Schmalle
Can't you just create a tag like "Last know existence of FalconJS" commit
then delete. Or were other people saying they still wanted to code
somewhere, seems to me that was some of the conversation.

Mike

On Mon, Jan 11, 2016 at 4:02 PM, Alex Harui <aha...@adobe.com> wrote:

> Does anybody have an actual set of steps to create some sort of archival
> branch or can I just delete this project?
>
> -Alex
>
> On 12/21/15, 7:50 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
>
> >Well garbage is relative. I didn't mean it in a derogatory way, only that
> >the original authors were the ones that could understand it.
> >
> >As far as FlaconJX, I wrote that as a prototype based off of my prior
> >experience with AST traversing and the visitor pattern. That was almost 3
> >years ago now so as far as it actually getting refactored on an
> >application
> >level with compilation unit passes, it never happened! :)
> >
> >When iw rote the front and backend I was more using the Flex compiler as a
> >template, and was slowing digesting how the multithreaded compilation
> >worked in Falcon.
> >
> >It that compiler was a full time/part time paid job for myself I could
> >easily put time into actually optimizing and documenting how the
> >compiler(Falcon) end actually runs. But that is not the case so we have to
> >guess right now what actually could be changed.
> >
> >Besides, my solution was just one and there may be other ways that the
> >compiler could transpile as to js way faster but it's what I knew at the
> >time and had already done it in a few other projects.
> >
> >Mike
> >
> >On Mon, Dec 21, 2015 at 10:44 AM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> @Harbs,
> >>
> >> I don't know enough about Git and branching to know if this is the right
> >> way to "archive" stuff before deleting, but I would think that branch
> >> would need special handling after it is created because any attempt to
> >> merge with that branch might result in the deletion of that code.
> >>
> >> @Mark & Mike,
> >>
> >> Where would you create such an archive folder such that it doesn't show
> >>up
> >> when grep-ing the code?  IMO, that's the goal: on GitHub and locally, I
> >> don't want these files to be found by search tools.
> >>
> >> @Mike,
> >>
> >> I would caution against calling that code base "garbage".  It worked
> >>well
> >> enough to produce the early prototypes, and you never know when we might
> >> want to seek the advice and participation of its author.  Yeah, some
> >>parts
> >> of it were really hard to learn, but it did do things that I had to go
> >>fix
> >> again in FalconJX, and I think FalconJX still runs several of the phases
> >> of the CompilationUnit code that we may need to stop doing some day for
> >> performance reasons and go through another round of bug fixing when we
> >>do,
> >> because semantic errors seem to be caught during reduction.  FalconJS
> >>was
> >> leveraging the CompilationUnit phases.
> >>
> >> -Alex
> >>
> >> On 12/21/15, 3:27 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> >> wrote:
> >>
> >> >Yup, I agree, it doesn't really need to be deleted but it needs to be
> >>so
> >> >far away from FalconJX that a common dev wouldn't mistake it for
> >>anything
> >> >other than archived history.
> >> >
> >> >The code is garbage, another reason why FalconJX even exists, I hated
> >>that
> >> >code with a passion. :)
> >> >
> >> >Mike
> >> >
> >> >On Mon, Dec 21, 2015 at 6:03 AM, Kessler CTR Mark J <
> >> >mark.kessler@usmc.mil> wrote:
> >> >
> >> >> Might as well make an archive folder that's generic and we can put
> >> >> anything else we want to keep but don't want in the main source
> >>areas.
> >> >>
> >> >>
> >> >> -Mark
> >> >>
> >>
> >>
>
>


Re: Welcome Andy Dufilie as Apache Flex Commiter

2016-01-10 Thread Michael Schmalle
Heh, I noticed that last commit and it wasn't a pull request! Welcome Andy
and it's great you are working on the compiler.

Can you tell us a little about what you are aiming to do with your projects?

Mike

On Sun, Jan 10, 2016 at 10:40 AM, Harbs  wrote:

> Welcome Andy!
>
> It great to have you on board!
>
> Harbs
>
> On Jan 10, 2016, at 5:39 PM, Alex Harui  wrote:
>
> > Hi folks,
> >
> > The Apache Flex PMC is excited to welcome Andy Dufilie as our newest
> > committer!  Andy has recently been contributing great bugs reports and
> > fixes for FlexJS and FalconJX which has earned him the merit to become a
> > committer (yes, you can become a committer the same way).
> >
> > Please join us in welcoming him as a committer to the Apache Flex
> project.
> >
> > Welcome Andy!
> > -Alex
> >
>
>


Re: [FALCONJX][FLEXJS] "as" keyword handling

2016-01-08 Thread Michael Schmalle
In the Randori compiler, I wrote the emitter to strip the cast during the
emit stage.

Mike

On Fri, Jan 8, 2016 at 2:38 PM, Josh Tynjala  wrote:

> I wonder if we could define some kind of special global function that would
> make the compiler and IDEs happy with assignments that would normally
> require casting, but the JS emitter could strip out the function call and
> assign directly. We could take advantage of the fact that the * type can be
> assigned to anything without a cast:
>
> // Example "Implementation"
>
> function __assign(value:*):*
> {
> return value;
> }
>
> // ActionScript Usage
>
> var before:SuperClass = new SubClass();
> var after:SubClass = __assign(before);
>
> // JS Output:
>
> var before = new SubClass();
> var after = before;
>
> As you can see, it becomes a simple assignment in JS, without the function
> call overhead.
>
> Obviously, if someone can come up with a better name than __assign(),
> that's cool. Just something off the top of my head.
>
> It's worth noting that TypeScript casting does not have a runtime fail
> state. It's just there to make the compiler happy too. If the types in a
> cast aren't compatible at runtime, the code just continues running without
> error until the incompatibility surfaces elsewhere. This would have a
> similar effect.
>
> - Josh
>
>
> On Fri, Jan 8, 2016 at 11:03 AM, Andy Dufilie 
> wrote:
>
> > On Fri, Jan 8, 2016 at 12:53 PM, Alex Harui  wrote:
> >
> > >
> > > On 1/8/16, 7:23 AM, "Andy Dufilie"  wrote:
> > >
> > > >In all above cases, if Foo is a primitive type, function-style casting
> > can
> > > >never be optimized out because Foo(x) will actually change the type of
> > x.
> > > >For example, String(x) will convert null to the String "null".
> > >
> > > Well, IMO, it isn't always NO.  Sometimes you can optimize that code
> > away.
> > >  It isn't "never".  Currently, FalconJX does know if you are using
> > > function-style casting to primitives and won't optimize that away.
> >
> >
> > Does it know if this code is using primitive casting or not?
> > var type:Class = String;
> > var y = type(x);
> >
> > And what I'm playing with now for function-style casting won't optimize
> it
> > > away if it finds a try/catch around it.
> > >
> >
> > But that won't work if the try/catch is in function A that calls
> function B
> > which has the function-style cast.
> >
> > You were just complaining about how much code massaging you have to do.
> > >
> >
> > I'm happy with the current situation where it preserves the behavior of
> the
> > explicit type casting code and I recommend not changing it. Speed
> > optimizations will always require code massaging. If you're referring to
> > automatic casts for typed variables and parameters, I can live with that
> > because I know if the compiler added those casts everywhere that the
> > performance hit would likely be too much, but I wouldn't be opposed to
> > adding that automatic casting with an option to enable or disable it.
> >
> >
> > > We've heard similar feedback from others, so my first instinct is to
> find
> > > a way to give you control over your code output with less massaging.
> > This
> > > new syntax would still require massaging.
> >
> >
> > Adding new syntax does not *require* massaging to existing code, because
> > you don't *have* to update your code to use the new syntax.  It should be
> > looked at as an optional speed optimization for those that are
> > performance-conscious.  If you change the behavior of existing syntax,
> then
> > that does require massaging.
> >
> >
> > > The @flexjsignorecoercion (or
> > > now @flexjsemitcoercion) is a function-level directive.  We could add
> > > project-level, file-level and/or line-level directives if that is
> easier
> > > than massaging the code.
> > >
> >
> > If you insist on making the compiler misbehave by default, then a
> > project-level setting to bring it back to the correct behavior is
> > absolutely necessary. I'd rather not have to add a directive to every
> > single function just to prevent the compiler from mangling the code.  If
> I
> > write an explicit cast, I expect the compiler to respect that rather than
> > act like it knows better.
> >
> >
> > > IMO, an optimizing compiler would be smart enough to know when to
> remove
> > > the Language.as calls.  All I'm trying to provide is some smarts in the
> > > compiler to do that optimization and some directives to help if we get
> it
> > > wrong.
> > >
> >
> > I believe risky automatic optimizations should enabled or disabled
> through
> > a flag passed to the build command.  The default behavior of the compiler
> > should be to preserve the behavior of the code. Extra directives should
> not
> > be required to let the compiler know that you actually mean what you
> typed
> > if what you typed is valid code.  Why should we have to tell it twice
> > everywhere? ("Hey compiler, do this.  

Re: [FLEXJS] FlexJS Event in San Francisco

2016-01-05 Thread Michael Schmalle
To bad you can't have a portion streaming with some chat.

On Tue, Jan 5, 2016 at 7:32 PM, Jason Taylor  wrote:

> I'll be there
>
> -Original Message-
> From: Alex Harui [mailto:aha...@adobe.com]
> Sent: Monday, January 04, 2016 6:28 PM
> To: dev@flex.apache.org; us...@flex.apache.org
> Subject: [FLEXJS] FlexJS Event in San Francisco
>
> Hi,
>
> I have received permission from my managers to host an Apache FlexJS event
> at the Adobe office in San Francisco.  I want to use this thread to
> finalize plans for the event.  My current thinking is that it will be a
> one-day, all-day event.  A couple of presentations from me and Om about
> FlexJS in the morning, a lunch break, then a lab/hackathon in the
> afternoon.  It will be an opportunity to learn more about FlexJS and ask
> questions face-to-face.  The afternoon session is designed to try to get
> you up and running on FlexJS and ask more questions.
>
> I need to choose one day during the week of April 4-8.  So if you have a
> strong preference for Wednesday or whatever, speak up now otherwise I will
> probably choose Monday the 4th.
>
> Space is limited.  The room can hold around 20 people in a chair and table
> configuration, 40 or so if it is just chairs, so if more than one person
> from a business wants to attend, we might need to put folks on the waiting
> list.  If we get lots more demand than that we can think about other
> venues.  Also, I may run a similar event in Seattle later, and an open to
> replicating this format in other cities if folks can provide the room.
>
> This event is currently free, although we might start a fund to cover food
> or maybe t-shirts or something.  Your response to this email won't be
> considered your registration for this event until we finalize the format,
> date and price.  Then I'll send another email with more official
> registration information.
>
> Thanks,
> -Alex
>
>
>


Re: [GitHub] flex-falcon pull request: (relating to js.swc) Return type with te...

2016-01-01 Thread Michael Schmalle
I'm not setup for doing merges right now but this looks good for anybody
else that wants to. Didn't think about using any instead of Object.

You might find more little things like this, when I wrote this compiler, I
was mainly looking to get it "working", didn't go through it deep.

On Thu, Dec 31, 2015 at 10:50 PM, adufilie  wrote:

> GitHub user adufilie opened a pull request:
>
> https://github.com/apache/flex-falcon/pull/4
>
> (relating to js.swc) Return type with template should be treated as *
>
> The code "var x:int = [1,2].pop();" should not generate an error
> "Implicit coercion of a value with static type Object to a possibly
> unrelated type int."
>
> You can merge this pull request into a Git repository by running:
>
> $ git pull https://github.com/adufilie/flex-falcon patch-3
>
> Alternatively you can review and apply these changes as the patch at:
>
> https://github.com/apache/flex-falcon/pull/4.patch
>
> To close this pull request, make a commit to your master/trunk branch
> with (at least) the following in the commit message:
>
> This closes #4
>
> 
> commit 92bfa13c02f49ccc3c964436e15051b6dc2d5181
> Author: Andy Dufilie 
> Date:   2016-01-01T03:47:50Z
>
> Return type with template should be treated as *
>
> The code "var x:int = [1,2].pop();" should not generate an error
> "Implicit coercion of a value with static type Object to a possibly
> unrelated type int."
>
> 
>
>
> ---
> If your project is set up for it, you can reply to this email and have your
> reply appear on GitHub as well. If your project does not have this feature
> enabled and wishes so, or if the feature is enabled but not working, please
> contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
> with INFRA.
> ---
>


Re: [FlexJS] npm install flexjs

2015-12-28 Thread Michael Schmalle
Just shooting in the dark but some type of Java version conflict? It seems
familiar to me like that could be a possibility.

Mike

On Mon, Dec 28, 2015 at 4:34 AM, OmPrakash Muppirala 
wrote:

> I have this working locally.   If the user has npm and Java installed on
> their machine, they can now simply do:
>
> *npm install flexjs -g*
> (or should it be npm install apache-flexjs -g?)
>
> This will download all the dependencies (which has some bugs for now, will
> get to that in a bit), register the asjsc and asjscompc files as global
> binaries.
>
> One issue I am currently facing is, when I do this:
>
>
> C:\Users\omuppirala\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src>asjsc
> USStatesMap.as
>
> I am getting this error:
> Error: Could not find or load main class
> org.apache.flex.compiler.clients.MXMLJSC
>
> This looks familiar, but I am not sure what I am doing wrong.
>
> Any pointers?
>
> P.S.  I will upload this flexjs npm module as a tarball on to my personal
> site from where the rest of the folks can test.  Once we iron out all the
> kinks, I will set about publishing the module to the npm repository.
>
> Thanks,
> Om
>


Re: [FalconJX] Is it time to delete the FalconJS code?

2015-12-21 Thread Michael Schmalle
Yup, I agree, it doesn't really need to be deleted but it needs to be so
far away from FalconJX that a common dev wouldn't mistake it for anything
other than archived history.

The code is garbage, another reason why FalconJX even exists, I hated that
code with a passion. :)

Mike

On Mon, Dec 21, 2015 at 6:03 AM, Kessler CTR Mark J <
mark.kessler@usmc.mil> wrote:

> Might as well make an archive folder that's generic and we can put
> anything else we want to keep but don't want in the main source areas.
>
>
> -Mark
>


Re: [FalconJX] Is it time to delete the FalconJS code?

2015-12-21 Thread Michael Schmalle
Well garbage is relative. I didn't mean it in a derogatory way, only that
the original authors were the ones that could understand it.

As far as FlaconJX, I wrote that as a prototype based off of my prior
experience with AST traversing and the visitor pattern. That was almost 3
years ago now so as far as it actually getting refactored on an application
level with compilation unit passes, it never happened! :)

When iw rote the front and backend I was more using the Flex compiler as a
template, and was slowing digesting how the multithreaded compilation
worked in Falcon.

It that compiler was a full time/part time paid job for myself I could
easily put time into actually optimizing and documenting how the
compiler(Falcon) end actually runs. But that is not the case so we have to
guess right now what actually could be changed.

Besides, my solution was just one and there may be other ways that the
compiler could transpile as to js way faster but it's what I knew at the
time and had already done it in a few other projects.

Mike

On Mon, Dec 21, 2015 at 10:44 AM, Alex Harui <aha...@adobe.com> wrote:

> @Harbs,
>
> I don't know enough about Git and branching to know if this is the right
> way to "archive" stuff before deleting, but I would think that branch
> would need special handling after it is created because any attempt to
> merge with that branch might result in the deletion of that code.
>
> @Mark & Mike,
>
> Where would you create such an archive folder such that it doesn't show up
> when grep-ing the code?  IMO, that's the goal: on GitHub and locally, I
> don't want these files to be found by search tools.
>
> @Mike,
>
> I would caution against calling that code base "garbage".  It worked well
> enough to produce the early prototypes, and you never know when we might
> want to seek the advice and participation of its author.  Yeah, some parts
> of it were really hard to learn, but it did do things that I had to go fix
> again in FalconJX, and I think FalconJX still runs several of the phases
> of the CompilationUnit code that we may need to stop doing some day for
> performance reasons and go through another round of bug fixing when we do,
> because semantic errors seem to be caught during reduction.  FalconJS was
> leveraging the CompilationUnit phases.
>
> -Alex
>
> On 12/21/15, 3:27 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
>
> >Yup, I agree, it doesn't really need to be deleted but it needs to be so
> >far away from FalconJX that a common dev wouldn't mistake it for anything
> >other than archived history.
> >
> >The code is garbage, another reason why FalconJX even exists, I hated that
> >code with a passion. :)
> >
> >Mike
> >
> >On Mon, Dec 21, 2015 at 6:03 AM, Kessler CTR Mark J <
> >mark.kessler@usmc.mil> wrote:
> >
> >> Might as well make an archive folder that's generic and we can put
> >> anything else we want to keep but don't want in the main source areas.
> >>
> >>
> >> -Mark
> >>
>
>


Re: [FlexJS] No more JS!

2015-12-17 Thread Michael Schmalle
Nice, this is great for me, my time writing the externs compiler actually
helped you out. I know I sound a but self centered here but your paragraph
above is exactly the thing I was thinking about when I wrote the initial
"proposal" for doing  it.

So anyway, I think you can recall the conversation Alex and see some dejavu
here. haha

Mike

On Thu, Dec 17, 2015 at 3:09 AM, Alex Harui  wrote:

> Hi,
>
> I am happy to announce that we've completed the "back port" of the FlexJS
> JavaScript files to ActionScript.  There are no longer any JavaScript
> source files in the FlexJS framework code base.  All JS-specific code is
> now written in ActionScript and cross-compiled to JavaScript.
>
> This is a significant accomplishment because it proves that ActionScript
> is a viable object-oriented language for writing JavaScript, similar to
> how TypeScript is used.  And it proves that our tool chain and workflow
> can be used to create large code bases that utilize 3rd-party libraries.
> Thanks go to all of those who were involved in this effort.
>
> I expect that, going forward, our productivity in developing FlexJS will
> be higher because we won't have to deal with as many mistakes in our JS
> code.  The tool chain catches lots of issues long before you run anything.
>  I'm sure there will be bugs to fix from the back port, and plenty of bugs
> in JIRA already, but now we can get back to bug fixes and features and
> making FlexJS the new way of creating applications.
>
> Short-term, I'm hoping we'll get the regular Flex 4.15.0 SDK released
> soon, then I hope to release all of this back-ported code as a FlexJS
> 0.6.0.
>
> Thanks,
> -Alex
>
>


Re: [DISCUSS] Adopting AS3Commons

2015-12-04 Thread Michael Schmalle
IIRC most of the projects have some pretty thorough unit tests as well.

Mike

On Fri, Dec 4, 2015 at 2:14 PM, jude  wrote:

> +1 for renaming it. make it part of the main package. that way we have to
> commit to it. if we put it off to the side there's more "it's a side
> project. we don't need to maintain it."
>
> On Fri, Dec 4, 2015 at 10:26 AM, Kessler CTR Mark J <
> mark.kessler@usmc.mil> wrote:
>
> > Good point, we should keep it the same then.  However if we do have to
> > reorganize it in the future, we can go over options then.
> >
> > -Mark
> >
> > -Original Message-
> > From: Alex Harui [mailto:aha...@adobe.com]
> > Sent: Friday, December 04, 2015 10:52 AM
> > To: dev@flex.apache.org
> > Subject: Re: [DISCUSS] Adopting AS3Commons
> >
> >
> > I'd either leave it as is:  org.as3commons
> > Or add apache: org.apache.as3commons
> > Or add apache.flex: org.apache.flex.as3commons
> > Or hint at Apache Commons: org.apache.commons.as3
> >
> > There is backward compatibility to be considered, so if we rename the
> > packages folks would have to change their source code to use it, so I'd
> > probably lean towards leaving it as is.
> >
> > -Alex
> >
> >
>


Re: [DISCUSS] Adopting AS3Commons

2015-12-03 Thread Michael Schmalle
I use the async library in my feathers app right now. Some of the utilities
as well. The authors of all the librariues are top rate. :)

BTW, as3commons-asblocks, haha that was me that wrote all that! ;-)

Mike

On Thu, Dec 3, 2015 at 4:37 PM, Alex Harui  wrote:

> Nice find.  Thanks, -Alex
>
> On 12/3/15, 1:09 PM, "Harbs"  wrote:
>
> >This seems to be confirmation:
> >https://twitter.com/as3commons/status/185620600272855040
> >
> >It appears to be donated by the author, so I think we’re okay there.
> >
> >On Dec 3, 2015, at 11:00 PM, Harbs  wrote:
> >
> >> I have heard that FZip moved to be included in AS3Commons, but I have
> >>no idea if that’s true.
> >>
> >> I assume Christophe should know the answer to that.
> >>
> >> On Dec 3, 2015, at 10:51 PM, Alex Harui  wrote:
> >>
> >>>
> >>>
> >>> On 12/3/15, 12:26 PM, "Harbs"  wrote:
> >>>
>  The feature I probably use most often in the zip functionality. It has
>  the best zip library (formally FZip).
> >>>
> >>> Do you know for a fact it uses Fzip?  That could pose a problem since
> >>>Fzip
> >>> isn't Apache-licensed.  It wouldn't block adoption of the rest of the
> >>>code
> >>> though.
> >>>
> >>> -Alex
> >>>
> >>
> >
>
>


Re: [FlexJS] Framework using externs (was: Setup Error)

2015-12-01 Thread Michael Schmalle
On Tue, Dec 1, 2015 at 3:53 PM, Carlos Rovira <carlos.rov...@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 <aha...@adobe.com>:
>
> >
> >
> > On 12/1/15, 11:13 AM, "carlos.rov...@gmail.com on behalf of Carlos
> Rovira"
> > <carlos.rov...@gmail.com on behalf of carlos.rov...@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)

2015-12-01 Thread Michael Schmalle
On Tue, Dec 1, 2015 at 6:15 PM, Alex Harui <aha...@adobe.com> wrote:

>
> On 12/1/15, 2:27 PM, "Michael Schmalle" <teotigraphix...@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 Brand Positioning

2015-12-01 Thread Michael Schmalle
On Mon, Nov 30, 2015 at 8:09 PM, Josh Tynjala  wrote:

> Yeah, I guess that's an unfortunate naming similarity to Adobe's abandoned
> "ActionScript Next". I hadn't even made the association. Regardless, I'm
> not concerned with a little temporary disappointment. Doing something like
> replacing a name associated with darker times with something fresh and
> hopeful is exactly what I intend to do with this project of mine.
> ActionScript deserves to evolve with the web, and maybe that even means new
> language features, if they're compelling enough.
>


Not to many people could add features to the compiler but there are people
that could. I am speaking on language features. The thing is, I already
spent 100's of hours developing FalconJX from the ground up and for me to
put that much time into more compiler development, there would have to be
money, more specifically, an ecosystem that is starting to create things in
a new way.

I can say this, I would not spend more time on this project just to make
Flash developers more money before they left for HTML5/JS. So for me, I
really am on Josh's wave where I like AS's language features. I would also
love to add features to AS's compiler but for that to happen, things need
to evolve and move forward, cause like I said, I am done making Flash
developers money(components etc).

I think what Josh meant by NextGen Actionscript hit the nail on the head
with my sentiment.

Mike



>
> - Josh
>
> On Mon, Nov 30, 2015 at 4:32 PM, jude  wrote:
>
> > I saw this on Twitter, ""Introducing NextGen ActionScript" via @
> > *joshtynjala*  => http://
> > joshblog.net/2015/introducing-nextgen-actionscript/ …
> > "
> >
> > Not to be nitpicky but I think it's misleading. I'm stoked about the new
> > website and tutorials. In fact everything, but when I read, "NextGen
> > ActionScript" I thought of the NextGen AS3 project that Adobe started and
> > then abandoned. Knowing that it wasn't the Adobe project but knowing what
> > you've been working on I immediately did believe AS3 was going to be
> > getting new features. I didn't want to get my hopes up that it was an
> AS3.5
> > or AS4 type of project but after reading the blog post I was still
> > disappointed even with all of the good news in it.
> >
> > To me the title is misleading and other AS3 devs may respond the same way
> > when they read it. While we are trying to announce the good news about
> F-JS
> > we might want to make clearer the distinction. BTW If these things are
> > planned and or I've misunderstood let me know.
> >
> >
> > On Sun, Nov 29, 2015 at 9:13 AM, Josh Tynjala 
> > wrote:
> >
> > > Thanks for the reminder. I'll get the trademark attribution cleaned up
> > this
> > > week.
> > >
> > > Would it be acceptable to create a specific legal page, linked from the
> > > footer, that displays the Apache Flex trademark attribution text? I
> > should
> > > probably acknowledge some Adobe trademarks too, just to be safe, so
> > that's
> > > going to be a lot to add to the footer. The page you linked seems to
> > imply
> > > that's allowed, as long as all trademark attribution is in the same
> > place,
> > > but I figured I'd check.
> > >
> > > - Josh
> > > On Nov 29, 2015 2:10 AM, "Justin Mclean"  wrote:
> > >
> > > > Hi,
> > > >
> > > > We have to be a little careful here  to not be seen to endorse 3rd
> > > parties
> > > > from our official site.
> > > >
> > > > Currently that code is "Copyright 2015 Bowler Hat LLC” and not under
> > any
> > > > obvious license, it would be nice if that was made clearer.
> > > >
> > > > Josh it would also be good if you attribute Apache trademarks
> correctly
> > > > [1] and if you could and link back to the Apache Flex web site. Just
> > > adding
> > > > a TM to the first mention and  a line in the footer is all that is
> > > needed.
> > > >
> > > > Thanks,
> > > > Justin
> > > >
> > > > 1. http://www.apache.org/foundation/marks/#guidelines
> > >
> >
>


Re: AS3JS

2015-11-27 Thread Michael Schmalle
He obviously knows about this project and would have chimed in if he was
remotely interested in contributing.

IMHO -1 because he has already put massive time into his implementation and
likes the fact he controls how it evolves.

If this project is interested in Node.js, then it's all open source and
people could get ideas from his project but other than that, leave it...

Mike

On Fri, Nov 27, 2015 at 1:43 PM, Alex Harui  wrote:

>
>
> On 11/27/15, 8:56 AM, "omup...@gmail.com on behalf of OmPrakash Muppirala"
>  wrote:
> >
> >-1
> >I dont think we should dignify this attempt at spreading FUD.  I am not
> >sure if we should 'join forces' with someone like this.
>
> Hmm.  What did you see as FUD?  IMO, his summary of FlexJS was technically
> correct to the public until we released 0.5.0, which was long after he
> blogged.
>
> -Alex
>
>


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
On Mon, Nov 16, 2015 at 5:44 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 11/16/15, 2:04 PM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
>
> >Is there some one else working on the compiler code other than you Alex?
>
> Josh has made a few changes, but lately I think I’m the main person.  The
> log will show you.
>
> -Alex
>
>
Well I was chatting with Josh a week or so ago and was saying, "knock on
wood" my apps are getting finished and around Jan/Feb. I am releasing my
audio apps, so Jan/Feb/March I am thinking I can do some development and
refactoring of FalconJX. I know a bunch of things I want to do and then do
some things we have standing.

It's just I had to reformat my computer and all my Apache stuff is waxed,
and it has been a horror show trying to get this setup on my machine for
dev so I can't take the time ATM.

Mike


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
On Mon, Nov 16, 2015 at 4:20 PM, Alex Harui  wrote:

> Looks like the work would be:
>
> 1) add the wrapping function
> 2) change all method and property output to not include the package.
>
> Is it worth it just to try to get better privacy?  I think just adding an
> inner class would be less work for me.  Some other volunteer could make
> your proposed change later.
>
>
Is there some one else working on the compiler code other than you Alex?

Mike



> -Alex
>
> On 11/16/15, 1:04 PM, "Josh Tynjala"  wrote:
>
> >All members assigned to the prototype would automatically be available.
> >You'd use pretty much the same syntax, but you wouldn't need to reference
> >the full package name for each member:
> >
> >some.package.SomeClass = (function()
> >{
> >var SomeClass = function(){};
> >SomeClass.prototype.someMethod = function()
> >{
> >};
> >return SomeClass;
> >})();
> >
> >You wouldn't be able to define the methods outside of the IIFE, since they
> >wouldn't be able to access any private classes inside the IIFE.
> >
> >I just checked how TypeScript handles modules, and they use the same
> >technique, with a slight variation on how the package/module is assigned.
> >Here's similar TypeScript:
> >
> >//TypeScript
> >module some.package {
> >export class SomeClass {
> >constructor() {
> >}
> >someMethod() {
> >}
> >}
> >}
> >
> >And here's the generated JavaScript:
> >
> >//JavaScript
> >var some;
> >(function (some) {
> >var package;
> >(function (package) {
> >var SomeClass = (function () {
> >function SomeClass() {
> >}
> >SomeClass.prototype.someMethod = function () {
> >};
> >return SomeClass;
> >})();
> >package.SomeClass = SomeClass;
> >})(package = some.package || (some.package = {}));
> >})(some || (some = {}));
> >
> >The main difference is that it passes in the objects used to define the
> >package/module as arguments rather than assigning them completely outside
> >of the function. I don't know what your concerns are for the compiler work
> >required, but maybe that would make a difference.
> >
> >- Josh
> >
> >On Mon, Nov 16, 2015 at 12:07 PM, Alex Harui  wrote:
> >
> >>
> >>
> >> On 11/16/15, 10:36 AM, "Josh Tynjala"  wrote:
> >>
> >> >The Immediately-Invoked Function Expression (IIFE) pattern could be
> >>used
> >> >to
> >> >create private classes.
> >> >
> >> >some.package.SomeClass = (function()
> >> >{
> >> >var SomeHelperClass = function(){};
> >> >
> >> >var SomeClass = function(){};
> >> >
> >> >return SomeClass;
> >> >})();
> >> >
> >> >SomeHelperClass will only be accessible inside the (function(){}).
> >> >SomeClass will be returned to allow it to be exposed externally. It's a
> >> >pretty common pattern in JavaScript to avoid polluting the global
> >> >namespace.
> >>
> >> Thanks for the suggestion.  Would that work for method access?  For
> >> example:
> >>
> >> package some.package
> >> {
> >>public class SomeClass
> >>{
> >>   public method someMethod()
> >>   {
> >> var foo:SomeHelperClass = new SomeHelperClass();
> >>   }
> >>}
> >> }
> >>
> >> class SomeHelperClass
> >> {
> >> }
> >>
> >>
> >>
> >> Right now, someMethod is generated as:
> >>
> >> some.package.SomeClass.prototype.someMethod = function()
> >> {
> >> }
> >>
> >> Would it have to go within the outer function?  That might be a lot of
> >> compiler work.
> >>
> >> -Alex
> >>
> >>
>
>


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
On Mon, Nov 16, 2015 at 11:28 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 11/16/15, 2:38 AM, "Michael Schmalle" <teotigraphix...@gmail.com>
> wrote:
>
> >It's important. You need to figure out how to do it in JS first, then bend
> >the compiler to your will. :)
> >
> >In a SWF decompile, these are labeled private class.
>
> OK.  Well AFAIK, there is no such thing as private classes in JS.  One
> thought I had was to implement them as “inner classes” in JS.
>

Ok well I was referring to how IDEA shows them and it shows private classes
out side with the private identifier.

Anyway, not really the point, I forget how we did this in Randori but I
know I supported inner classes with that compiler.

Mike


>
> So the output for:
>
> >>
> >> package some.package
> >> {
> >>   public class SomeClass
> >>   {
> >>   }
> >> }
> >>
> >> class SomeHelperClass
> >> {
> >> }
>
> would be:
>
>   some.package.SomeClass = function() {}
>
>   some.package.SomeClass.SomeHelperClass = function() {}
>
> Thoughts?
> -Alex
>
>


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
It's important. You need to figure out how to do it in JS first, then bend
the compiler to your will. :)

In a SWF decompile, these are labeled private class.

Mike

On Mon, Nov 16, 2015 at 2:53 AM, Alex Harui  wrote:

> Hi,
>
> Every once in a while, the framework code uses an “internal class”.  An
> examples would look like:
>
> package some.package
> {
>   public class SomeClass
>   {
>   }
> }
>
> class SomeHelperClass
> {
> }
>
> SomeHelperClass is an “internal class”.  In JS, SomeHelperClass gets
> defined on the global object.  I’m wondering if that’s bad and we should
> ban internal classes in FlexJS?  Right now there’s a bunch of bugs in
> generating JS for these internal classes, so I’m trying to decide whether
> to fix them, or just not use internal classes anymore.
>
> Thoughts?
> -Alex
>
>


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
On Mon, Nov 16, 2015 at 5:40 AM, OmPrakash Muppirala <bigosma...@gmail.com>
wrote:

> Nope, you can still call new Singleton(null) and the compiler won't say
> anything :-)
> The 'enforcer' is required because of this loophole.
>
>
Yeah, you're right, to early in the morning.. :)


> Thanks,
> Om
>
> On Mon, Nov 16, 2015 at 2:36 AM, Michael Schmalle <
> teotigraphix...@gmail.com
> > wrote:
>
> > On Mon, Nov 16, 2015 at 4:14 AM, OmPrakash Muppirala <
> bigosma...@gmail.com
> > >
> > wrote:
> >
> > > Purely pedantic, but the code does not do anything to 'enforce' the
> > > singleton-ness of the class.
> > >
> >
> > The compiler won't even let you compile this code, so the != is just
> sauce
> > that never gets eaten. Since you have to pass an instance of
> > SingletonEnforcer, it's private and the compiler will bitch.
> >
> > Mike.
> >
> >
> > >
> > > It should actually be:
> > > public function Singleton(e:SingletonEnforcer){
> > >   if(e != null)
> > >   {
> > >  trace("new instance of singleton created");
> > >   }
> > > }
> > >
> > > On Mon, Nov 16, 2015 at 12:54 AM, yishayw <yishayj...@hotmail.com>
> > wrote:
> > >
> > > > Actually the comment above 'class SingletonEnforcer' explains it.
> > > >
> > > > package{
> > > > public class Singleton{
> > > > private static var _instance:Singleton=null;
> > > > public function Singleton(e:SingletonEnforcer){
> > > > trace("new instance of singleton created");
> > > > }
> > > > public static function getInstance():Singleton{
> > > > if(_instance==null){
> > > > _instance=new Singleton(new SingletonEnforcer());
> > > > }
> > > > return _instance;
> > > > }
> > > > }
> > > > }
> > > > //I’m outside the package so I can only be accessed internally
> > > > class SingletonEnforcer{
> > > > //nothing else required here
> > > > }
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://apache-flex-development.247.n4.nabble.com/FlexJS-FalconJX-Internal-Classes-tp50091p50102.html
> > > > Sent from the Apache Flex Development mailing list archive at
> > Nabble.com.
> > > >
> > >
> >
>


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
On Mon, Nov 16, 2015 at 4:14 AM, OmPrakash Muppirala 
wrote:

> Purely pedantic, but the code does not do anything to 'enforce' the
> singleton-ness of the class.
>

The compiler won't even let you compile this code, so the != is just sauce
that never gets eaten. Since you have to pass an instance of
SingletonEnforcer, it's private and the compiler will bitch.

Mike.


>
> It should actually be:
> public function Singleton(e:SingletonEnforcer){
>   if(e != null)
>   {
>  trace("new instance of singleton created");
>   }
> }
>
> On Mon, Nov 16, 2015 at 12:54 AM, yishayw  wrote:
>
> > Actually the comment above 'class SingletonEnforcer' explains it.
> >
> > package{
> > public class Singleton{
> > private static var _instance:Singleton=null;
> > public function Singleton(e:SingletonEnforcer){
> > trace("new instance of singleton created");
> > }
> > public static function getInstance():Singleton{
> > if(_instance==null){
> > _instance=new Singleton(new SingletonEnforcer());
> > }
> > return _instance;
> > }
> > }
> > }
> > //I’m outside the package so I can only be accessed internally
> > class SingletonEnforcer{
> > //nothing else required here
> > }
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-flex-development.247.n4.nabble.com/FlexJS-FalconJX-Internal-Classes-tp50091p50102.html
> > Sent from the Apache Flex Development mailing list archive at Nabble.com.
> >
>


Re: [FlexJS][FalconJX] Internal Classes

2015-11-16 Thread Michael Schmalle
On Mon, Nov 16, 2015 at 6:07 AM, Harbs <harbs.li...@gmail.com> wrote:

> It would actually be very nice if there was some way to (optionally)
> prevent null being passed into constructors and function calls. There has
> been more than once that I would have liked to have that feature.
>
> I wonder if that’s something we can add to Falcon?
>

It could be done but there would have to be some kind of config either in
the compiler args or @param tag like @param arg0 !null Foo desc, or
metadata tag with param names for not null params.

The AST has the null identifier and you can tell if it's being passed in a
Function/Method call at compile time.

Mike



>
> On Nov 16, 2015, at 12:43 PM, Michael Schmalle <teotigraphix...@gmail.com>
> wrote:
>
> > On Mon, Nov 16, 2015 at 5:40 AM, OmPrakash Muppirala <
> bigosma...@gmail.com>
> > wrote:
> >
> >> Nope, you can still call new Singleton(null) and the compiler won't say
> >> anything :-)
> >> The 'enforcer' is required because of this loophole.
> >>
> >>
> > Yeah, you're right, to early in the morning.. :)
> >
> >
> >> Thanks,
> >> Om
> >>
> >> On Mon, Nov 16, 2015 at 2:36 AM, Michael Schmalle <
> >> teotigraphix...@gmail.com
> >>> wrote:
> >>
> >>> On Mon, Nov 16, 2015 at 4:14 AM, OmPrakash Muppirala <
> >> bigosma...@gmail.com
> >>>>
> >>> wrote:
> >>>
> >>>> Purely pedantic, but the code does not do anything to 'enforce' the
> >>>> singleton-ness of the class.
> >>>>
> >>>
> >>> The compiler won't even let you compile this code, so the != is just
> >> sauce
> >>> that never gets eaten. Since you have to pass an instance of
> >>> SingletonEnforcer, it's private and the compiler will bitch.
> >>>
> >>> Mike.
> >>>
> >>>
> >>>>
> >>>> It should actually be:
> >>>> public function Singleton(e:SingletonEnforcer){
> >>>>  if(e != null)
> >>>>  {
> >>>> trace("new instance of singleton created");
> >>>>  }
> >>>> }
> >>>>
> >>>> On Mon, Nov 16, 2015 at 12:54 AM, yishayw <yishayj...@hotmail.com>
> >>> wrote:
> >>>>
> >>>>> Actually the comment above 'class SingletonEnforcer' explains it.
> >>>>>
> >>>>> package{
> >>>>>public class Singleton{
> >>>>>private static var _instance:Singleton=null;
> >>>>>public function Singleton(e:SingletonEnforcer){
> >>>>>trace("new instance of singleton created");
> >>>>>}
> >>>>>public static function getInstance():Singleton{
> >>>>>if(_instance==null){
> >>>>>_instance=new Singleton(new SingletonEnforcer());
> >>>>>}
> >>>>>return _instance;
> >>>>>}
> >>>>>}
> >>>>> }
> >>>>> //I’m outside the package so I can only be accessed internally
> >>>>> class SingletonEnforcer{
> >>>>> //nothing else required here
> >>>>> }
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> View this message in context:
> >>>>>
> >>>>
> >>>
> >>
> http://apache-flex-development.247.n4.nabble.com/FlexJS-FalconJX-Internal-Classes-tp50091p50102.html
> >>>>> Sent from the Apache Flex Development mailing list archive at
> >>> Nabble.com.
> >>>>>
> >>>>
> >>>
> >>
>
>


Re: [DISCUSS] Discuss Release Apache Flex FalconJX 0.5.0 RC3

2015-11-13 Thread Michael Schmalle
FYI to those reading, I hope to have some more time in a month or two to do
some dev on the compiler. I have been out straight with life and my other
business stuff so I haven't been able to have my head into this project as
far as the compiler is concerned.

I have been reading all the dev posts mostly so I am pretty to date with
stuff. This install, compile and run stuff seems to have taken a huge
amount of time for people. I know it took me a day to get the whole shabang
compiling.

Mike

On Fri, Nov 13, 2015 at 8:05 PM, Josh Tynjala  wrote:

> Thanks, Alex. I found an extra error message in TEST-as.ASKeywordTests.xml.
> It couldn't find the Flash Player Debugger because I had a typo in the
> path. That would have been super easy to fix without help if it weren't
> hidden in some file. Is that something that could be moved into the console
> output?
>
> Once that path was fixed, I made it through the whole script with a +1.
> Yay!
>
> - Josh
>
>
> On Fri, Nov 13, 2015 at 4:40 PM, Alex Harui  wrote:
>
> > In the compiler.tests/results folder, there should be a
> > TEST-as.ASKeywordTests.xml file.  It might have more info.
> >
> > At some point, my file contains:
> >
> > Generating test:
> > Compiling test:
> >
> -external-library-path=/Users/aharui/adobe/flashplayer/11.1/playerglobal.sw
> > c -library-path=
> > -namespace=
> > http://ns.adobe.com/mxml/2009,/Users/aharui/ApacheFlex4.14.1/fra
> > meworks/mxml-2009-manifest.xml
> >
> /Users/aharui/falcon/apache-flex-falconjx-0.5.0-src/compiler.tests/temp/ASK
> > eywordTests9060700658635002989.as
> >
> > 839 bytes written to
> >
> /Users/aharui/falcon/apache-flex-falconjx-0.5.0-src/compiler.tests/temp/ASK
> > eywordTests9060700658635002989.swf in 0.973 seconds
> > Executing test:
> > [/Users/aharui/adobe/flashplayer/11.1/Flash Player
> > Debugger.app/Contents/MacOS/Flash Player Debugger,
> >
> /Users/aharui/falcon/apache-flex-falconjx-0.5.0-src/compiler.tests/temp/ASK
> > eywordTests9060700658635002989.swf]
> > Generating test:
> > ..
> >
> > I’m wondering if you got to executing test and the Flash Player Debugger
> > part.  That’s another environment variable.
> >
> > -Alex
> >
> >
> >
> > On 11/13/15, 4:25 PM, "Josh Tynjala"  wrote:
> >
> > >Yes, it exists. I can see the 10 SWF files in that directory, and as you
> > >can see, there are no compiler errors in the output.
> > >
> > >- Josh
> > >
> > >On Fri, Nov 13, 2015 at 4:02 PM, Alex Harui  wrote:
> > >
> > >> This line looks suspicious:
> > >>
> >
> >>-external-library-path=/Users/joshtynjala/Development/Flex/sdks/AIRSDK/AI
> > >>R1
> > >> 6.0.0.292/frameworks/libs/player/16.0/playerglobal.swc
> > >>
> > >>
> > >> Does that file actually exist?
> > >>
> > >> -Alex
> > >>
> > >> On 11/13/15, 3:07 PM, "Josh Tynjala"  wrote:
> > >>
> > >> >I don't have time to debug the properties stuff, so I just gave up
> and
> > >>set
> > >> >real environment variables. Unfortunately, now it's failing on some
> of
> > >>the
> > >> >tests, but there's no explanation why. I remember hearing that it
> > >>helps to
> > >> >add the folder to the trusted locations for Flash Player, but that
> > >>made no
> > >> >difference. Here's the output from the last test before the build
> > >>fails:
> > >> >
> > >> >Generating test:
> > >> >Compiling test:
> > >>
> >
> >>>-external-library-path=/Users/joshtynjala/Development/Flex/sdks/AIRSDK/A
> > >>>IR
> > >> >16.0.0.292/frameworks/libs/player/16.0/playerglobal.swc
> > >> >-library-path= -namespace=
> > >> >
> > >>
> > >>
> >
> http://ns.adobe.com/mxml/2009,/Users/joshtynjala/Desktop/apache-flex-falc
> > >>o
> > >>
> >
> >>>njx-0.5.0-src/apache-flex-falconjx-0.5.0-src/compiler/generated/dist/sdk
> > >>>/f
> > >> >rameworks/mxml-2009-manifest.xml
> > >>
> >
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> > >>>lc
> > >> >onjx-0.5.0-src/compiler.tests/temp/ASKeywordTests1508068553086257.as
> > >> >
> > >> >
> > >> >741 bytes written to
> > >>
> >
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> > >>>lc
> > >> >onjx-0.5.0-src/compiler.tests/temp/ASKeywordTests1508068553086257.swf
> > >> >in 0.094 seconds
> > >> >Tests run: 10, Failures: 10, Errors: 0, Skipped: 0, Time elapsed:
> 1.897
> > >> >sec
> > >> >
> > >> >BUILD FAILED
> > >>
> >
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/ApproveFalcon.
> > >>>xm
> > >> >l:606:
> > >> >The following error occurred while executing this line:
> > >>
> >
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> > >>>lc
> > >> >onjx-0.5.0-src/build.xml:82:
> > >> >The following error occurred while executing this line:
> > >>
> >
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> > >>>lc
> > >> >onjx-0.5.0-src/compiler.tests/build.xml:175:
> > >> >Tests failed
> > >> >
> > >> >On Fri, Nov 13, 2015 at 1:11 PM, Alex 

Re: [DISCUSS] Discuss Release Apache Flex FalconJX 0.5.0 RC3

2015-11-13 Thread Michael Schmalle
Seems suspicious, the tests run in alphabetical order I think and that is
probably the first one in the MXML tests?

I know when I didn't have the debugger setup right, the compiler tests
would fail right there.

Mike

On Fri, Nov 13, 2015 at 7:40 PM, Alex Harui  wrote:

> In the compiler.tests/results folder, there should be a
> TEST-as.ASKeywordTests.xml file.  It might have more info.
>
> At some point, my file contains:
>
> Generating test:
> Compiling test:
> -external-library-path=/Users/aharui/adobe/flashplayer/11.1/playerglobal.sw
> c -library-path=
> -namespace=
> http://ns.adobe.com/mxml/2009,/Users/aharui/ApacheFlex4.14.1/fra
> meworks/mxml-2009-manifest.xml
> /Users/aharui/falcon/apache-flex-falconjx-0.5.0-src/compiler.tests/temp/ASK
> eywordTests9060700658635002989.as
>
> 839 bytes written to
> /Users/aharui/falcon/apache-flex-falconjx-0.5.0-src/compiler.tests/temp/ASK
> eywordTests9060700658635002989.swf in 0.973 seconds
> Executing test:
> [/Users/aharui/adobe/flashplayer/11.1/Flash Player
> Debugger.app/Contents/MacOS/Flash Player Debugger,
> /Users/aharui/falcon/apache-flex-falconjx-0.5.0-src/compiler.tests/temp/ASK
> eywordTests9060700658635002989.swf]
> Generating test:
> ..
>
> I’m wondering if you got to executing test and the Flash Player Debugger
> part.  That’s another environment variable.
>
> -Alex
>
>
>
> On 11/13/15, 4:25 PM, "Josh Tynjala"  wrote:
>
> >Yes, it exists. I can see the 10 SWF files in that directory, and as you
> >can see, there are no compiler errors in the output.
> >
> >- Josh
> >
> >On Fri, Nov 13, 2015 at 4:02 PM, Alex Harui  wrote:
> >
> >> This line looks suspicious:
> >>
> >>-external-library-path=/Users/joshtynjala/Development/Flex/sdks/AIRSDK/AI
> >>R1
> >> 6.0.0.292/frameworks/libs/player/16.0/playerglobal.swc
> >>
> >>
> >> Does that file actually exist?
> >>
> >> -Alex
> >>
> >> On 11/13/15, 3:07 PM, "Josh Tynjala"  wrote:
> >>
> >> >I don't have time to debug the properties stuff, so I just gave up and
> >>set
> >> >real environment variables. Unfortunately, now it's failing on some of
> >>the
> >> >tests, but there's no explanation why. I remember hearing that it
> >>helps to
> >> >add the folder to the trusted locations for Flash Player, but that
> >>made no
> >> >difference. Here's the output from the last test before the build
> >>fails:
> >> >
> >> >Generating test:
> >> >Compiling test:
> >>
> >>>-external-library-path=/Users/joshtynjala/Development/Flex/sdks/AIRSDK/A
> >>>IR
> >> >16.0.0.292/frameworks/libs/player/16.0/playerglobal.swc
> >> >-library-path= -namespace=
> >> >
> >>
> >>
> http://ns.adobe.com/mxml/2009,/Users/joshtynjala/Desktop/apache-flex-falc
> >>o
> >>
> >>>njx-0.5.0-src/apache-flex-falconjx-0.5.0-src/compiler/generated/dist/sdk
> >>>/f
> >> >rameworks/mxml-2009-manifest.xml
> >>
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> >>>lc
> >> >onjx-0.5.0-src/compiler.tests/temp/ASKeywordTests1508068553086257.as
> >> >
> >> >
> >> >741 bytes written to
> >>
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> >>>lc
> >> >onjx-0.5.0-src/compiler.tests/temp/ASKeywordTests1508068553086257.swf
> >> >in 0.094 seconds
> >> >Tests run: 10, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: 1.897
> >> >sec
> >> >
> >> >BUILD FAILED
> >>
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/ApproveFalcon.
> >>>xm
> >> >l:606:
> >> >The following error occurred while executing this line:
> >>
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> >>>lc
> >> >onjx-0.5.0-src/build.xml:82:
> >> >The following error occurred while executing this line:
> >>
> >>>/Users/joshtynjala/Desktop/apache-flex-falconjx-0.5.0-src/apache-flex-fa
> >>>lc
> >> >onjx-0.5.0-src/compiler.tests/build.xml:175:
> >> >Tests failed
> >> >
> >> >On Fri, Nov 13, 2015 at 1:11 PM, Alex Harui  wrote:
> >> >
> >> >>
> >> >>
> >> >> On 11/13/15, 12:25 PM, "Josh Tynjala"  wrote:
> >> >>
> >> >> >I try to avoid setting real environment variables since I find it
> >>more
> >> >> >convenient to use the properties files to remember all of the values
> >> >>for
> >> >> >later. For instance, I added approvefalcon.properties to set
> >> >>env.ANT_HOME.
> >> >> >However, it looks like the values from approvefalcon.properties
> >>don't
> >> >>get
> >> >> >inherited by other Ant scripts started by ApproveFalcon.xml, so I
> >> >>guess I
> >> >> >need to set real environment variables this time.
> >> >>
> >> >> Ant does pass properties around although we might be using different
> >> >> property names in some scripts.  But I think the real issue is that
> >>Ant
> >> >>is
> >> >> calling various tools and the tools can’t pick up Ant properties.  If
> >> >>you
> >> >> provide more detail on which environment variables are problematic,
> >>we
> >> >>can
> >> >> discuss ways to 

Re: [FlexJS] internal namespace

2015-11-12 Thread Michael Schmalle
> But to me, the advantages of abstracting
implementations with Interfaces outweighs the effort to “fake” namespaces
in the JS side.

This is essentially a namespace anyway. The interface is the namespace, if
you make the framework interface centric, then casting to the concrete type
is the public namesapce for developers extending it not clients using it. I
think in past AS dev, interface were to underused for a good API.

I know in my apps using Feathers and IOC, I have say IModel and my
ModelImpl. ModelImpl is injected as IModel, so my API is clean, but if
there is any time I need to experiment with some new API I just
ModelImpl(model).foo(). I get that encapsulation still, I know this is
elementary but it is really powerful but it has to be created that way from
the ground up and enforced as a design pattern.

Mike

On Thu, Nov 12, 2015 at 1:50 PM, Harbs  wrote:

> OK. So I’ll just use public for now and put @private in the ASDocs. We’ll
> figure it all out later.
>
> On Nov 12, 2015, at 7:10 PM, Alex Harui  wrote:
>
> >
> >
> > On 11/12/15, 8:52 AM, "Harbs"  wrote:
> >
> >> Here’s where I am (and why I’m asking):
> >>
> >> I figured out how to use Document and Element as the underlying
> structure
> >> for JS XML. But to use them correctly, I need to manipulate the internal
> >> structure of one XML object from another.
> >>
> >> One example: in ActionScript XML you can call appendChild to move the
> >> child of one XML object to another. In JS, appendChild only works if
> both
> >> elements belong to the same document. So if the XML object belongs to a
> >> different document, I need to call removeChild  on its parent (why in
> the
> >> world does ActionScript XML not have removeChild()???) in addition to
> >> importNode(). Also, for appendChild() I need to get the delegate of the
> >> new child to call appendChild() on that.
> >>
> >> So there need to be public methods which expose some of the internals,
> >> but they really should not be full public APIs.
> >>
> >> Any ideas on a good way to structure this?
> >
> > There are going to be plenty of public APIs that we don’t want to expose
> > to certain sets of consumers.  But to me, the advantages of abstracting
> > implementations with Interfaces outweighs the effort to “fake” namespaces
> > in the JS side.  That’s why I’m considering a more elaborate ASDoc viewer
> > that can filter public APIs based on tags.  IMO, that would give us the
> > usability benefits of namespaces.  I’ve seen plenty of folks hack into
> > mx_internal APIs anyway, so why not just make them all public and make it
> > easier to document which ones are provided for application developers vs
> > implementation details?
> >
> > I figure we can decide on some @developer or @application tag (and maybe
> > more) that the doc viewer could filter on.  Maybe even @common and
> > @advanced.
> >
> > -Alex
>
>


Re: [FalconJX] Compiler bugs (was

2015-08-21 Thread Michael Schmalle
 recruit some students

From where?

Mike

On Fri, Aug 21, 2015 at 10:25 AM, Alex Harui aha...@adobe.com wrote:

 OK, I think I got most or all of the cases where function references need
 to be wrapped.

 I’m going to try to add a few native js examples then cut another build.
 Peter is still trying to get the last few kinks out of FlexJSStore then
 we’ll try to get a release out.

 Om, have you made any progress on the ant script that downloads all the
 repos and builds them?  I can try to work on that if you don’t have time.
 I’ve been trying to recruit some students to pitch in and making it easier
 for them to get started would be good.

 -ALex

 On 8/19/15, 2:59 PM, Michael Schmalle teotigraphix...@gmail.com wrote:

 My family just left today and I had lighting strike out powerline which
 fried our router, just got internet back after 3 days. :)
 
 Still a bunch of stuff todo, I will keep watching this thread for you to
 finish everything, haha.
 
 Tests! Nice
 
 Mike
 
 On Wed, Aug 19, 2015 at 5:53 PM, Alex Harui aha...@adobe.com wrote:
 
  OK, checked in initializers (including a test or two!).
 
  Next up is bound function references (goog.bind).
 
  -Alex
 
  On 8/18/15, 2:37 PM, Alex Harui aha...@adobe.com wrote:
 
  
  
  On 8/7/15, 1:04 PM, Alex Harui aha...@adobe.com wrote:
  I’ll let you know when I start on these.  I can’t promise I’ll write
 more
  tests, but I’ll make sure current tests pass or are adjusted so they
  pass.
  
  OK, I’m starting in on these bugs.  First is the non-scalar instance
  initializer.
  
  -Alex
  
 
 




Re: [FlexJS] jsc doesn't follow typical compiler naming convention...

2015-08-20 Thread Michael Schmalle
As much as I hate hyphens, to me we are dealing with a cross compiler from
one language to anther.

I would vote for;

as-jsc
mxml-jsc

read as

ActionScript To JavaScript compiler
MXML To JavaScript compiler

Mike


On Thu, Aug 20, 2015 at 2:38 PM, Alex Harui aha...@adobe.com wrote:



 On 8/20/15, 11:28 AM, Josh Tynjala joshtynj...@gmail.com wrote:

 On Thu, Aug 20, 2015 at 11:00 AM, Alex Harui aha...@adobe.com wrote:
  Interesting, I thought you didn’t want it to start with “js and that it
 should start with “as” instead given the input is “as”.
  So the pattern there is inputoutputc
 
 The most important point for me is including as or mxml in the name,
 which isn't there right now. The order of the input and output formats can
 be debated, I guess.
 
 I feel that the input language should be immediately before the c. If
 jsasc doesn't look like it's in the correct order to some people, then I
 propose ascjs so that the as and the c are not split apart (or
 mxmlcjs).
 
 Ultimately, though, I'd be willing to accept asjsc or mxmljsc, if everyone
 thinks that's better. All I strongly care about is that as or mxml
 appears in the name.

 OK, so the choices are:

 ascjs
 mxmlcjs

 Or:

 asjsc
 mxmljsc

 Or even:

 as-jsc
 mxml-jsc

 asc-js
 mxmlc-js

 as2jsc
 mxml2jsc

 I think I’d pick from one of the first two.  The ‘-' looks funny to me and
 the ‘2’ could be thought of as a language version instead of the word
  ’to’.  What do others think?

 -Alex




Re: [FalconJX] Compiler bugs (was

2015-08-19 Thread Michael Schmalle
My family just left today and I had lighting strike out powerline which
fried our router, just got internet back after 3 days. :)

Still a bunch of stuff todo, I will keep watching this thread for you to
finish everything, haha.

Tests! Nice

Mike

On Wed, Aug 19, 2015 at 5:53 PM, Alex Harui aha...@adobe.com wrote:

 OK, checked in initializers (including a test or two!).

 Next up is bound function references (goog.bind).

 -Alex

 On 8/18/15, 2:37 PM, Alex Harui aha...@adobe.com wrote:

 
 
 On 8/7/15, 1:04 PM, Alex Harui aha...@adobe.com wrote:
 I’ll let you know when I start on these.  I can’t promise I’ll write more
 tests, but I’ll make sure current tests pass or are adjusted so they
 pass.
 
 OK, I’m starting in on these bugs.  First is the non-scalar instance
 initializer.
 
 -Alex
 




Re: [FlexJS] Framework using externs (was: Setup Error)

2015-08-09 Thread Michael Schmalle
On Sun, Aug 9, 2015 at 1:06 AM, Alex Harui aha...@adobe.com wrote:



 On 8/8/15, 12:38 PM, Michael Schmalle teotigraphix...@gmail.com wrote:

 On Sat, Aug 8, 2015 at 1:39 PM, Frédéric THOMAS webdoubl...@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)

2015-08-08 Thread Michael Schmalle
On Sat, Aug 8, 2015 at 1:39 PM, Frédéric THOMAS webdoubl...@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: webdoubl...@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: aha...@adobe.com
  To: dev@flex.apache.org
  Subject: Re: [FlexJS] Framework using externs (was: Setup Error)
  Date: Sat, 8 Aug 2015 16:27:53 +
 
 
 
  On 8/8/15, 8:46 AM, Frédéric THOMAS webdoubl...@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: [FalconJX] Compiler bugs (was

2015-08-07 Thread Michael Schmalle
On Fri, Aug 7, 2015 at 5:13 PM, Josh Tynjala joshtynj...@gmail.com wrote:

 And I just moved to Seattle a few months ago! If you ever get a chance to
 visit, Mike, you have two folks to hack on Flex with. :)


Well my kids are 15  16. In about 2 years I will be traveling a lot more,
if the project is still going I would love to. We have known of each other
for more than a decade now!(Alex included) :)

Mike



 - Josh

 On Fri, Aug 7, 2015 at 1:04 PM, Alex Harui aha...@adobe.com wrote:

 
 
  On 8/7/15, 12:09 PM, Michael Schmalle teotigraphix...@gmail.com
 wrote:
 
  
  It seems like these issues Alex or I am about the only people qualified
 to
  fix them?
 
  Well, others can certainly learn, and Darrell and/or Gordon could show up
  again.
 
  
  Alex how much time do you have to do this stuff? From these 3 issues
 there
  is some time because these changes need to be fully tested and I am
  betting
  they are going to break some existing tests.
  
  I can't commit on when I can get to them, my mom and sister are coming
 out
  from Seattle for a week next week so I can't say I can get to these in
 the
  next two weeks. If you want to hold off or do it yourself before 2 weeks
  let me know here so I don't duplicate work.
 
 
  I’ll let you know when I start on these.  I can’t promise I’ll write more
  tests, but I’ll make sure current tests pass or are adjusted so they
 pass.
 
  You should have opted to come visit your mom in Seattle, then you could
  have snuck out and hacked code with me in person ;-)
 
 
  -Alex
 
 



[FalconJX] Compiler bugs (was

2015-08-07 Thread Michael Schmalle
On 8/7/15, 8:55 AM, Frédéric THOMAS webdoubl...@hotmail.com wrote:
Another thing I would have liked to do before the release is to modify
the front compiler to avoid to have 2 build configurations in IJ when
working with externs but not sure I will have the time, I'm quite busy at
the moment and I've seen a last call already.

Alex;
Not sure what that means, but I’d guess we are two weeks away from any
votes on a release.

I’m almost done with the AS side of FlexJSStore, then have to finish the
JS side and I want to see the following compiler issues fixed:
  - Functions and goog.bind
  - non-scalar initializers in the constructor
  - generate missing getters and setters

Volunteers always welcome!

-

I swear my wife has it out for me, I spent the last month doing
renovations, I wanted to get to these but I have been trying to balance
manual labor and my caustic/feathers projects.

It seems like these issues Alex or I am about the only people qualified to
fix them?

Alex how much time do you have to do this stuff? From these 3 issues there
is some time because these changes need to be fully tested and I am betting
they are going to break some existing tests.

I can't commit on when I can get to them, my mom and sister are coming out
from Seattle for a week next week so I can't say I can get to these in the
next two weeks. If you want to hold off or do it yourself before 2 weeks
let me know here so I don't duplicate work.

Mike


Re: [FalconJX] Compiler bugs (was

2015-08-07 Thread Michael Schmalle
On Fri, Aug 7, 2015 at 4:04 PM, Alex Harui aha...@adobe.com wrote:



 On 8/7/15, 12:09 PM, Michael Schmalle teotigraphix...@gmail.com wrote:

 
 It seems like these issues Alex or I am about the only people qualified to
 fix them?

 Well, others can certainly learn, and Darrell and/or Gordon could show up
 again.

 
 Alex how much time do you have to do this stuff? From these 3 issues there
 is some time because these changes need to be fully tested and I am
 betting
 they are going to break some existing tests.
 
 I can't commit on when I can get to them, my mom and sister are coming out
 from Seattle for a week next week so I can't say I can get to these in the
 next two weeks. If you want to hold off or do it yourself before 2 weeks
 let me know here so I don't duplicate work.


 I’ll let you know when I start on these.  I can’t promise I’ll write more
 tests, but I’ll make sure current tests pass or are adjusted so they pass.

 You should have opted to come visit your mom in Seattle, then you could
 have snuck out and hacked code with me in person ;-)



Well I was born and raised in Seattle (around May Valley) and still a west
coast guy but... birds, dogs and cats dictate they come to New Hampshire.
:)

I was only speaking about people that have worked on it in the last 3-4
months, that could get stuff done.

As far as writing tests, heh I know you are busy but they act as mile posts
for that compiler in my eyes.

Oh well, if I can't et to it, I guess I will write tests based on what you
changed when I have time again! :)

Mike




 -Alex




Re: Feathers prototype with CreateJS built with JSC from FlexJS

2015-07-30 Thread Michael Schmalle
Never thought I would see this;

https://twitter.com/gskinner/status/626806909849354240

Mike

On Tue, Jul 28, 2015 at 6:20 PM, Alex Harui aha...@adobe.com wrote:



 On 7/28/15, 1:29 PM, Josh Tynjala joshtynj...@gmail.com wrote:

 Here's the root class from the demo:
 
 https://gist.github.com/joshtynjala/fb66c96b2fcf35f9409c
 
 AS3 only. I'm pretty sure that I would need to manually wire some things
 up
 to allow MXML to be used with these components. However, as I understand
 it, the Falcon MXML compiler is more data-driven, so the compiler might
 not
 need modifications. I assume the components would need to conform to some
 kind of interface or pass in some kind of callbacks or something like
 that.
 I haven't looked into it.

 That’s the theory: the compiler should not need modification.  The
 component base classes can be modified to accept the MXML data and decide
 when to interpret it.  Let me know when you are ready to try it and I’ll
 provide more detail.

 -Alex




Re: [FlexJS][FalconJX] Ready for another release?

2015-07-30 Thread Michael Schmalle
On Thu, Jul 30, 2015 at 1:42 AM, Alex Harui aha...@adobe.com wrote:

 IMO, both Flash Builder and IntelliJ are saying the same thing:  “show us
 that folks want it, then we’ll look into it”.   It is a chicken and egg
 problem.



IMHO the chicken and egg thing is actually how many people are working on
this project right now.

Looking at commits... 5, 6 randomly through 3-4 months, am I wrong here?

Users want to use something that is getting left behind by the amount of
people actually creating it. If this chicken egg thing keeps happening this
way, there is no way FlexJS can even keep up with all the other options
that are evolving this year.

I put in a bit of time the last two months because I knew 2015 was the time
this project had to jump in.

Maybe Josh's experiment might help the project if he decides to keep going,
at least the compiler would get some attention from people in his circles
which is quite large.

Anyway, I have no answers other than there needs to be some type of written
documentation that spells this whole project out and tires to get people
that have coding skills interested.

I am pretty sure the lowlevel compiler can be maintained by the current 3-4
people that have developed it but, it's the other part Carlos etal are
talking about that needs 20+ devs contributing randomly.

Mike




 For FB, I think FlexJS plugs in pretty easily.  The first rough spot is if
 you want to create a new project: there is no menu option for creating a
 FlexJS project and if you create a Flex project with the FlexJS SDK you
 get a broken MXML file.  We could smooth that a bit by creating an
 external tool that fixes up your MXML.  It would be more work to have an
 external tool generate a project and have you import it, and probably lots
 of work to add a new menu option to generate such a project.

 But again, I am concerned that even if folks get to this point, they
 aren’t going to see beta or 1.0 quality.  But with the help of others, I
 think we can make great strides soon.

 -Alex

 On 7/29/15, 10:26 PM, piotrz piotrzarzyck...@gmail.com wrote:

 Hi Guys,
 
 One thing for simplifying stuff related to FlexJS. I think not everythink
 depends on us, because if you want to use FlexJS and build some app you
 have
 to go through the set up process of your IDE.
 Currently I cant tell my friends - Hey look what you can do in FlexJS -
 download it and add to your IDE - start building something!
 Additional question is how to convince people from JetBrains and get from
 them support for FlexJS in Intellij? How to get their real attention?
 
 What with Flash Builder it is also IDE which needs to be modified in order
 to have FlexJS full support? I doubt that Adobe have any plans to release
 any new version.
 
 So we have only one serious and really good IDE, but currently with semi
 support for FlexJS.
 
 Piotr
 
 
 
 -
 Apache Flex PMC
 piotrzarzyck...@gmail.com
 --
 View this message in context:
 
 http://apache-flex-development.247.n4.nabble.com/FlexJS-FalconJX-Ready
 -for-another-release-tp48655p48670.html
 Sent from the Apache Flex Development mailing list archive at Nabble.com.




Re: [FlexJS][FalconJX] Ready for another release?

2015-07-29 Thread Michael Schmalle
On Wed, Jul 29, 2015 at 6:02 PM, OmPrakash Muppirala bigosma...@gmail.com
wrote:

 +1 for a release of FlexJS.  It would be great to highlight and talk about
 the new version of FlexJS at ApacheCon Europe on Oct 1st, 2015.

 I have been talking to various folks (outside of Apache) about FlexJS.  One
 feedback I've received is that the version number of 0.02 makes folks think
 that it is not ready to be taken seriously.  It is hard to convince folks
 to start using it if it has an 'alpha only' sheen to it.  I really think
 that the next version should be at a 1.0 release.  Even if it is not
 perfect, the FlexJS already has a lot of strong things going for it.  I
 don't think we should keep it under the covers anymore, i.e. keeping it at
 a sub 1.0 release version.

 Thoughts?


Or at least 0.5 or 1.0 alpha. :) I know there are 1000's of hours into the
compiler/transpiler/eternc side so having it at 0.0.2 really sucks.

I know what Carlos is saying but the damn thing need to just have a
release, then release again, and again adding things. This isn't a fashion
show where you get one walk down the ile, it's iterative. haha

Mike



 Thanks,
 Om

 On Wed, Jul 29, 2015 at 6:55 AM, Alex Harui aha...@adobe.com wrote:

  Hi,
 
  It’s been too long since the last release, but I think we are at or near
 a
  good stopping point for the next release.  The default UI looks better,
  you can swap in a theme for many components, the layout subsystem is
  working better, etc.
 
  Is there anything else we “must” put in the next release?  I was going to
  put off the rewrite of our handwritten JS to use the JS externs to a
  future release but I am open to waiting until that gets done as it will
  test the externs code we have now.
 
  Thoughts?
  -Alex
 
 



  1   2   3   4   5   6   7   8   >