AW: AW: AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Christofer Dutz
flex.apache.org Betreff: Re: AW: AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support On 7/15/16, 9:56 AM, "Christofer Dutz" wrote: > >Regarding the compile time, I have noticed several times that is is ofte

Re: AW: AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Alex Harui
On 7/15/16, 9:56 AM, "Christofer Dutz" wrote: > >Regarding the compile time, I have noticed several times that is is often >several times faster to read static resources from a jar using the >classloader than manually accessing a file on disk. So I wouldn't be sure >that using the jar is a perf

AW: AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Christofer Dutz
degradation. Chris Von: Alex Harui Gesendet: Freitag, 15. Juli 2016 16:20:23 An: dev@flex.apache.org Betreff: Re: AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support IMO, if the Maven build pulls GCL from a public repo (no

Re: AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Alex Harui
meinem Samsung Galaxy Smartphone gesendet. > > > Ursprüngliche Nachricht >Von: Josh Tynjala >Datum: 15.07.16 15:58 (GMT+01:00) >An: dev@flex.apache.org >Betreff: Re: AW: git commit: [flex-asjs] [refs/heads/develop] - >downloads.xml: goog/bootstrap/nodejs.js is required

AW: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Christofer Dutz
: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support That's exactly what I was referring to. The downloads script downloads "Google Closure Library". It deletes most of the library, but it didn't in the

Re: AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Josh Tynjala
.org Betreff: Re: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support FYI: I added goog/bootstrap/nodejs.js to the subset of GCL that we keep. It is required to continue supporting Node.js as a target. Chris, I assume that the M

AW: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-15 Thread Christofer Dutz
: dev@flex.apache.org Betreff: Re: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support FYI: I added goog/bootstrap/nodejs.js to the subset of GCL that we keep. It is required to continue supporting Node.js as a target. Chris, I assume

Re: git commit: [flex-asjs] [refs/heads/develop] - downloads.xml: goog/bootstrap/nodejs.js is required for node.js support

2016-07-14 Thread Josh Tynjala
anches: > refs/heads/develop bf65776b6 -> 84e8ce50b > > > downloads.xml: goog/bootstrap/nodejs.js is required for node.js support > > > Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo > Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/84e8ce50 >

Re: Node.js support

2015-12-03 Thread Harbs
Here: http://apache-flex-development.247.n4.nabble.com/Node-js-support-td50414.html Or here: http://mail-archives.apache.org/mod_mbox/flex-dev/201512.mbox/browser The Flex website has links to the archives here: http://flex.apache.org/community-mailinglists.html On Dec 3, 2015, at 11:02 AM

Re: Node.js support

2015-12-03 Thread OmPrakash Muppirala
This mailing list is mirrored as a Nabble user forum. Sometimes folks post from the Nabble forum directly, which comes with a link in the footer. To access the forum, simply go to this url: s.apache.org/flex-dev-forum You should see all the recent threads there. Thanks, Om P.S. The users@ for

Re: Node.js support

2015-12-03 Thread jude
Sorry to interject but how do I get a link to this thread? I've seen them in footers before but not this one. On Wed, Dec 2, 2015 at 3:29 PM, Josh Tynjala wrote: > Got it. So if I were trying to hide a require() call, @flexjsignorecoercion > could be used in my code without requiring users to do

Re: Node.js support

2015-12-02 Thread Josh Tynjala
Got it. So if I were trying to hide a require() call, @flexjsignorecoercion could be used in my code without requiring users to do anything. I think I may be able to work with that. I'll play around with it, when I have a moment. - Josh On Wed, Dec 2, 2015 at 3:10 PM, Alex Harui wrote: > Curren

Re: Node.js support

2015-12-02 Thread Alex Harui
Currently it works at the method's ASDoc, not at the class level. Here's an excerpt: /** * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement * @flexjsignorecoercion HTMLBodyElement */ COMPILE::JS override public function star

Re: Node.js support

2015-12-02 Thread Josh Tynjala
Interesting... I didn't know about that. How would @flexjsignorecoercion be used? In the asdocs for a class, like this? /** * @flexjsignorecoercion */ public class MyClass {} If I'm understanding your correctly, when using this tag, the JS output would not pass the value to Language.as()? //as

Re: Node.js support

2015-12-02 Thread Alex Harui
On 12/2/15, 2:37 PM, "Josh Tynjala" wrote: >Oh, I see. I didn't realize that you were thinking that users would import >something and also manually call require(). In that case, yes, you could >still potentially have proper type checking. > >I like the idea of using some kind of wrapper class t

Re: Node.js support

2015-12-02 Thread Josh Tynjala
Oh, I see. I didn't realize that you were thinking that users would import something and also manually call require(). In that case, yes, you could still potentially have proper type checking. I like the idea of using some kind of wrapper class to hide the require() call. It's kind of messy to bot

Re: Node.js support

2015-12-02 Thread Alex Harui
On 12/2/15, 12:12 PM, "Josh Tynjala" wrote: >You'd lose out on compiler checks and IDE code hinting if you had to call >require() directly in AS. I probably don't know enough about Node and require to understand that. Let's try looking at source code patterns first. My quick read of require is

Re: Node.js support

2015-12-02 Thread Josh Tynjala
You'd lose out on compiler checks and IDE code hinting if you had to call require() directly in AS. Wrapping the generated JS for a class in an IIFE, like I talked about in an earlier thread, could keep the requires confined to a single class. (function() { var fs = require("fs"); //the f

Re: Node.js support

2015-12-02 Thread Alex Harui
I read up a bit on Node's require system. It seems that because import statements in AS are generally at the package level, it wouldn't be a good equivalent for Node's require. I think Node's require system is an explicit class/package loader like Java's and allows you to defer the loading of cod

Re: Node.js support

2015-12-02 Thread Josh Tynjala
Node.js has its own require system. It's called CommonJS. I was thinking that it could also be based on imported classes. It can be a little tricky, though. A module is pretty flexible with what it exports. Most simply, a module could export a single class. In this case, the translation is pretty

Re: Node.js support

2015-12-02 Thread Alex Harui
On 12/2/15, 9:59 AM, "Josh Tynjala" wrote: >The require() call for a Node.js module should probably be generated in >the >PackageHeaderEmitter, where the goog.require() calls are generated. OK, but based on what kind of source code lines? The goog.requires are generated from import statements

Re: Node.js support

2015-12-02 Thread Josh Tynjala
The require() call for a Node.js module should probably be generated in the PackageHeaderEmitter, where the goog.require() calls are generated. - Josh On Tue, Dec 1, 2015 at 5:47 PM, Alex Harui wrote: > > > On 12/1/15, 5:06 PM, "Josh Tynjala" wrote: > > > >I thought you meant that you were wor

Re: Node.js support

2015-12-02 Thread Carlos Rovira
ear it :-) > > Thanks, > Om > > On Tue, Dec 1, 2015 at 4:12 PM, Josh Tynjala > wrote: > > > I saw Om mention Node.js support in another thread. > > > > On Tue, Dec 1, 2015 at 3:38 PM, OmPrakash Muppirala < > bigosma...@gmail.com> > > wrote: &g

Re: Node.js support

2015-12-01 Thread Harbs
stall flexjs >> asjac src/HellowWorld.as >> >> I have been committing my changes to the feature-npm-install branch of the >> flex-utilities repo: >> >> https://github.com/apache/flex-utilities/tree/feature-npm-install/npm-flexjs >> >> Righ

Re: Node.js support

2015-12-01 Thread Alex Harui
On 12/1/15, 5:06 PM, "Josh Tynjala" wrote: > >I thought you meant that you were working on the compiler to add support >for Node.js modules. Getting the compiler to output good code for running >on Node.js is something that I hope to work on soon. > >For those not familiar, Node.js modules are r

Re: Node.js support

2015-12-01 Thread OmPrakash Muppirala
Oh boy, I wish I had started the FlexJS NPM module after you finished your Node.js support via AS3 :-D Thanks for the tips. I had it in my TODOs to look at your npm dts2as utility. I will ping you when I get to the actual compilation of AS3 files via node part, hopefully soon. I might need

Re: Node.js support

2015-12-01 Thread Josh Tynjala
t; Right now, I am working on getting the Falcon dependencies working (there > are about a dozen of them) > > If there is a better way to do all this, I would love to hear it :-) > > Thanks, > Om > > On Tue, Dec 1, 2015 at 4:12 PM, Josh Tynjala > wrote: > > >

Re: Node.js support

2015-12-01 Thread OmPrakash Muppirala
Tynjala wrote: > I saw Om mention Node.js support in another thread. > > On Tue, Dec 1, 2015 at 3:38 PM, OmPrakash Muppirala > wrote: > > > Right now, I am working on node.js support for FlexJS. > > > It's something that I'm very interested in, and I planned

Node.js support

2015-12-01 Thread Josh Tynjala
I saw Om mention Node.js support in another thread. On Tue, Dec 1, 2015 at 3:38 PM, OmPrakash Muppirala wrote: > Right now, I am working on node.js support for FlexJS. It's something that I'm very interested in, and I planned to work on this too, once I found some time. Om, ca