Re: [FalconJX] Scope when calling member function from a reference

2015-07-16 Thread Frank Wienberg
Hi guys, honestly I didn't read through the whole thread, but just wanted to remind you of what we collected about binding methods in the Apache Flex Wiki:

Re: AW: [FLEX-JS] Streamlining the packaging

2014-11-11 Thread Frank Wienberg
What about including a single JS file that contains all the code of the module into the SWC? This would even be closer to an SWF (which also contains all code). In Jangaroo packaging, we includ both a single, minified file for deployment as well as the tree of non-minified JS files for development

Re: [FLEX-JS] Streamlining the packaging

2014-11-10 Thread Frank Wienberg
From WebJars and Jangaroo, I have some experience with Maven artifact packaging of Web resources, and I'd recommend to follow Christofer's advice and bundle everything into a single artifact. Maven *does* allow a module to produce multiple artifacts (using different classifiers), but this is

Re: [FlexJS] FW: Cross-compiling to build components

2013-12-16 Thread Frank Wienberg
for SWF than for JS. I'm not clear how you could generate the JS from the AS version. -Alex On 12/10/13 12:13 AM, Frank Wienberg fr...@jangaroo.net wrote: Hi, great to hear of this new approach! I never understood why you guys implement Flex components for HTML5 in JS

Re: AS3 on the server

2013-12-16 Thread Frank Wienberg
you should have a look at the Nashorn Project. It's a JavaScript engine running natively inside the Java VM and hereby on the Server: https://blogs.oracle.com/thejavatutorials/entry/javaone_2013_nashorn_javascript_on Chris Von: Frank Wienberg fr

Re: AS3 on the server

2013-12-10 Thread Frank Wienberg
What about compiling AS3 to JS using FalconJx and running the result in Node.js? All you'd need are some ActionScript stub APIs of the corresponding Node.js modules... On Sat, Nov 30, 2013 at 11:06 PM, jude flexcapaci...@gmail.com wrote: At one time there was talk about AS3 on the server. With

Re: [FlexJS] FW: Cross-compiling to build components

2013-12-10 Thread Frank Wienberg
Hi, great to hear of this new approach! I never understood why you guys implement Flex components for HTML5 in JS, not in ActionScript. Once you have AS3 API stubs of the browser APIs (DOM, BOM, remember my suggestions about a [Native] annotation some time ago?), you would not be limited to

Re: [FLEXJS] inheritance/interfaces

2013-11-15 Thread Frank Wienberg
As far as I know, instanceof checks do *not* work with interfaces. That's what is is for. is works for both classes and interfaces. new B() instanceof A = true new B() instanceof IA = false (or even compile error?) new B() is A = true new B() is IA = true On Thu, Nov 14, 2013 at 7:18 PM,

Re: [FlexJS] New Wiki Writeup

2013-10-18 Thread Frank Wienberg
You should also have a look at StageXL http://www.stagexl.org/ (formerly known as DartFlash), since Dart compiles to JavaScript. It is based on the Flash DisplayList, but not an exact implementation of the Flash API. For JooFlash, I sometimes had a glance at their code, and their project is still

Re: [FalconJx] AMD-based JavaScript code implemented in Jangaroo

2013-03-04 Thread Frank Wienberg
Hi Tom, On Sat, Mar 2, 2013 at 6:11 PM, Tom Brazil tom.bra...@systar.com wrote: Rather amazing work. Good job. thanks! However, what can be done about the massive difference in cpu utilization? The flash version used so little cpu that it wasn't noticeable, whereas the html5 version pegs

Re: [FalconJx] AMD production update inheritence

2013-02-08 Thread Frank Wienberg
BTW, my question about native was wrong, you had already answered why you use native, I MEANT to ask why you took the !native calls out Ha, funny that was the only thing I *didn't* answer :-) But my explanation of why use native! anyway hints at why I took it out for some classes, so there is

Re: [FalconJx] AMD production update inheritence

2013-02-08 Thread Frank Wienberg
On Thu, Feb 7, 2013 at 11:33 PM, Frank Wienberg fr...@jangaroo.net wrote: When writing the Wiki page, I tried out how Flash / mxmlc handle field initializers (remember, there is no language spec), and to my surprise found out that non-static field initializer code gets evaluated *before

Re: [FalconJx] AMD source production update

2013-02-06 Thread Frank Wienberg
Mike, this is really amazing! Or just art, as you called it in a tweet. It you continue at this pace, we'll have the Open Flash Chart demo up and running in FalconJx by the end of next week! Excited, -Frank-

Re: [FalconJx] AMD implementation

2013-02-06 Thread Frank Wienberg
I am going to change that in Jangaroo and in the as-js-runtime-prototype accordingly. I just pushed the changes to master of as-js-runtime-prototype.

Re: [FalconJx] AMD source production update

2013-02-06 Thread Frank Wienberg
Wow. FalconJx FTW! But this is a good start. Definitely so! The *only* thing I noticed (besides the missing static trace line of code you already mentioned) is that staticMembers slipped into the members level, while it should be a sibling of members (I mean on the same level as members). I

Re: [FalconJx] AMD source production update

2013-02-06 Thread Frank Wienberg
On Wed, Feb 6, 2013 at 5:06 PM, Michael Schmalle apa...@teotigraphix.comwrote: Quoting Frank Wienberg fr...@jangaroo.net: Wow. FalconJx FTW! But this is a good start. Definitely so! The *only* thing I noticed (besides the missing static trace line of code you already mentioned

Re: [FalconJx] AMD source production update

2013-02-06 Thread Frank Wienberg
Sure, I didn't mean to push, always mind the DoD! :-) Another goal to get something a bit more complex working could be FlexUnit. For Jangaroo, we use an older versionhttps://github.com/CoreMedia/jangaroo-libs/tree/jangaroo-3/joounit(I think it is called 0.9) that works without test annotations

Re: [FalconJx] AMD implementation

2013-02-05 Thread Frank Wienberg
Almost there... hold on... On Mon, Feb 4, 2013 at 6:37 PM, Michael Schmalle apa...@teotigraphix.comwrote: Hmm.. Now that I looked back at the wiki you are using Object.defineProperty() but you don't use that in your charts code. You wrapped it with AS3.class_ correct? Is that what you plan

Re: [FalconJx] AMD implementation

2013-02-05 Thread Frank Wienberg
Okay, I just pushed to the as-js-runtime-prototype repository (I just noticed I didn't update the Github pages yet, so please do not use the online version but pull). All JavaScript files are updated to the latest and greatest code layout. Because now I know you'll notice every detail, anyway, I

Re: [FalconJx] AMD implementation

2013-02-05 Thread Frank Wienberg
Ok, I know git pretty well but, this makes no sense to me, what does but pull mean when I see no updated source code? Ooops, sorry, I pushed not to master, but to a branch called less-files. I just merged that branch into master, so you should now see the updated sources there. -Frank-

Re: [FalconJx] AMD implementation

2013-02-05 Thread Frank Wienberg
Mike, too bad our different time zones slow down communication so much... Ah yes, this is about the [Native] annotation we discussed in this other thread. Jangaroo needs the ActionScript API of all the built-in classes (JavaScript globals), so when using String, it actually parses String.as and

Re: [FalconJx] AMD implementation

2013-02-04 Thread Frank Wienberg
Hi Mike, great to hear you are well again and have some time to spend on the AMD approach! On Mon, Feb 4, 2013 at 12:56 PM, Michael Schmalle apa...@teotigraphix.comwrote: Frank, I am starting on this and you have confused me starting off. The wiki entry under the header of Implementation

Re: [FalconJx] AMD implementation

2013-02-04 Thread Frank Wienberg
On Mon, Feb 4, 2013 at 3:21 PM, Michael Schmalle apa...@teotigraphix.comwrote: Oh yeah, As far as the AS3 output you have in the graph example, that will not be possible with the current incarnation with Falcon. Unfortunately, the the parser does not keep the whitespace tokens or really any

Re: [Dart] - playing around

2013-02-03 Thread Frank Wienberg
On Sun, Feb 3, 2013 at 6:29 AM, Om bigosma...@gmail.com wrote: Dart is supported only on IE9+ I can understand this decision. Implementing high-level language features in a JS version that does not even allow get/set functions or non-enumerable custom properties really is a pain. But to be

Re: [ASJS] debugging output JS?

2013-01-29 Thread Frank Wienberg
On Tue, Jan 29, 2013 at 9:38 AM, Roland Zwaga rol...@stackandheap.comwrote: We have 2 camps now, performance vs debugging features. I believe you are incorrect. The debugging features are only relevant when compiling in debug mode. Every camp here agrees that release mode should output

Re: [ASJS] debugging output JS?

2013-01-29 Thread Frank Wienberg
To give an impression of how you could switch between different debug levels and also to see how the AMD approach compares to the goog approach, I re-compiled Erik's VanillaSDK demo with Jangaroo 3 to AMD-style JavaScript output. This is the output format Mike Schmalle will be implementing as an

Re: [ASJS] debugging output JS?

2013-01-29 Thread Frank Wienberg
On Tue, Jan 29, 2013 at 7:52 PM, Erik de Bruin e...@ixsoftware.nl wrote: It seems you needed to make changes to VanillaSDK to make it work with Jangaroo. What alternative for the 'goog' UI framework will you be using on the AMD side? The only change to VanillaSDK is that I removed the

Re: [ASJS] debugging output JS?

2013-01-29 Thread Frank Wienberg
On Tue, Jan 29, 2013 at 3:13 AM, Daniel Wasilewski devudes...@gmail.comwrote: I do understand that Frank might have personal interest in getting Flex close to Jangaroo for compatibility purposes, or maybe I am wrong and this just came from experience building that very tool. Dan, to put that

Re: [ASJS] Integration with existing JS libraries and components

2013-01-28 Thread Frank Wienberg
Hi Alain, for Jangaroo, I answered this question here: http://markmail.org/message/bwjwc7sxfbertu7f For Flex / FalconJx, it seems nobody was extremely fond of the idea to have to keep all the white-space and take care of generating JS code in the exact line of the source AS code. So we have to

Re: [ASJS] Integration with existing JS libraries and components

2013-01-28 Thread Frank Wienberg
On Mon, Jan 28, 2013 at 10:04 AM, Erik de Bruin e...@ixsoftware.nl wrote: Alain, In my view all development, including debugging, is done in AS. The JS output, like bytecode, should just work. EdB This won't work for us (Jangaroo/Ext AS users). In our development workflow, JS/HTML5 is the

Re: Tools vs Impl - Don't mix the two was [ASJS] Integration with existing JS libraries and components

2013-01-28 Thread Frank Wienberg
On Mon, Jan 28, 2013 at 10:44 AM, Erik de Bruin e...@ixsoftware.nl wrote: Mike, I was aleady afraid we were boring, or worse, bothering the community. I apologize for my part in it. Like you I'm more of a tool maker, as you know well. I do get distracted when I get the impression that my

Re: [FalconJx] AMD emitter

2013-01-28 Thread Frank Wienberg
Great! Thanks you said finished, as there are still some TODO sections on the Wiki page. I hope to get rid of them tomorrow, but my days are full of meetings *sigh*. But as said before, the main concepts are now settled (esp. compilation units), so don't wait for me! Do you need more recipe-like

Re: [FalconJx] AMD emitter

2013-01-28 Thread Frank Wienberg
Okay, so now I guess I am really finished with my brain-dump into the Wiki page :-)

Re: [ASJS] Integration with existing JS libraries and components

2013-01-27 Thread Frank Wienberg
On Fri, Jan 25, 2013 at 11:56 PM, Alain Ekambi jazzmatad...@gmail.comwrote: @Roland For the SDK it s surely not a problem since it s all Apache. But anyone using the Apache Flex SDK to write an ExtJS application will need a commercial license from Sencha or will have to open source the code.

Re: [ASJS] Integration with existing JS libraries and components

2013-01-27 Thread Frank Wienberg
On Sun, Jan 27, 2013 at 1:03 PM, Erik de Bruin e...@ixsoftware.nl wrote: Please take a look at the proof of concept (both the intermediate and release code) before making these kinds of statements. I'd like to, but you admitted yourself that it has quite an initial overhead to set up.

Re: [ASJS] Integration with existing JS libraries and components

2013-01-27 Thread Frank Wienberg
On Sun, Jan 27, 2013 at 2:51 PM, Michael Schmalle apa...@teotigraphix.comwrote: Quoting Frank Wienberg fr...@jangaroo.net: I'm looking forward to seeing the Falcon implementation of your AMD/RequireJS ideas and it's output, so we can compare the various suggested approaches

Re: [ASJS] Integration with existing JS libraries and components

2013-01-27 Thread Frank Wienberg
That being said, I think both Erik and I got the ball rolling. It is not as if we are just talking theory here. We both have a working demo everybody can look at, and have both posted our arguments. Maybe we should just start a new thread to get this to a decision. But I don't want to force a

Re: [ASJS] Integration with existing JS libraries and components

2013-01-27 Thread Frank Wienberg
On Sun, Jan 27, 2013 at 5:52 PM, Erik de Bruin e...@ixsoftware.nl wrote: I think I can now pinpoint the difference to RequireJS: It is in the existence of deps.js. deps.js says it's generated, and seems to be the extracted dependencies of all the other JS files, right? Aha, so this is

Re: [ASJS] AS to HTML5 in action: announcing the ASJS Publisher and the VanillaSDK JS framework.

2013-01-25 Thread Frank Wienberg
Erik, its really amazing to witness your progress! On Fri, Jan 25, 2013 at 7:30 PM, Alex Harui aha...@adobe.com wrote: On 1/25/13 10:11 AM, Frank Pepermans frankp...@hotmail.com wrote: I concur, this is huge news for the future of Flex! Congrats to making this possible! About the

Re: [ASJS] Integration with existing JS libraries and components

2013-01-25 Thread Frank Wienberg
Hi Roland, thank you for bringing up this point, I think it is crucial for the success of Apache Flex / JS! I Erik's latest thread, we just discussed the different approaches to come up with a JS-enabled component library for Flex. I mentioned that we already have an ActionScript-API for Ext JS

Re: [ASJS] AS to HTML5 in action: announcing the ASJS Publisher and the VanillaSDK JS framework.

2013-01-25 Thread Frank Wienberg
On Fri, Jan 25, 2013 at 10:13 PM, Roland Zwaga rol...@stackandheap.comwrote: I'm really glad to read about this, if you read the [ASJS] Integration with existing JS libraries and components you will see that I was actually talking about exactly what you're describing. Yeah, you sure saw

[OT] PixelPlant Flash-to-HTML5 converter

2013-01-24 Thread Frank Wienberg
A colleague just pointed me at a Flash-to-HTML5 conversion service: https://www.pixelplant.com/ The online version has serious limits (e.g. only allows 50k ActionScript, so no Flex apps!), but you can try out simple things. It seems to support AS3. Does anybody know (technical) details about

[ASJS] Apache Flex and JooFlash

2013-01-22 Thread Frank Wienberg
With ASJS/FalconJS and FalconJx, we have different approaches to generate JavaScript from ActionScript to make Flex applications run directly in any browser. If I am not mistaken, we do not yet have the Flash core library available (DisplayList etc.). Bernd Paradies, the original author of

Re: [ASJS] Apache Flex and JooFlash

2013-01-22 Thread Frank Wienberg
On Tue, Jan 22, 2013 at 6:30 PM, Alex Harui aha...@adobe.com wrote: If you'd be interested, I'd contribute JooFlash to FalconJx (or FalconJs; should not really make a difference, as it is ActionScript code). My employer CoreMedia signed a CCLA, so there shouldn't be a legal problem.

[FalconJx] Compiling i18n properties / ResourceBundles

2013-01-21 Thread Frank Wienberg
Besides ActionScript and MXML, there is a third source file format for which mxmlc can produce code: properties files. Thus, for FalconJx, like for MXML, we have to decide which way to go: either 1. let Falcon generate the temporary ActionScript class and compile that to JavaScript, or

Re: [FalconJx] AMD-based JavaScript code implemented in Jangaroo

2013-01-21 Thread Frank Wienberg
On Mon, Jan 21, 2013 at 1:55 PM, Michael Schmalle apa...@teotigraphix.comwrote: Frank, Let me be direct, do you want to start working on AMD output? Not necessarily right now. Still seems like a steep learning curve for me. IMO you should definitely finish up the Wiki stuff so it clear

Re: [FalconJx] Compiling i18n properties / ResourceBundles

2013-01-21 Thread Frank Wienberg
PM, Alex Harui aha...@adobe.com wrote: On 1/21/13 12:01 AM, Frank Wienberg fr...@jangaroo.net wrote: Besides ActionScript and MXML, there is a third source file format for which mxmlc can produce code: properties files. Thus, for FalconJx, like for MXML, we have to decide which way to go

Re: [FalconJx] AMD-based JavaScript code implemented in Jangaroo

2013-01-21 Thread Frank Wienberg
curious because I have a WebAudio project I am going to be starting and I want to know how I would hook the compiler up to it's build system. Ideas? Mike Quoting Frank Wienberg fr...@jangaroo.net: On Mon, Jan 21, 2013 at 1:55 PM, Michael Schmalle apa...@teotigraphix.com**wrote: Frank

Re: [FalconJx] AMD-based JavaScript code implemented in Jangaroo

2013-01-20 Thread Frank Wienberg
Hi Michael, hi Erik, On Sun, Jan 20, 2013 at 12:16 PM, Michael Schmalle apa...@teotigraphix.comwrote: As Erik has said, he made a stub for this already and we can start writting it once I actually understand somethings. One thing I need to get clear, are you asking the output to be like

Re: [FalconJx] AMD-based JavaScript code implemented in Jangaroo

2013-01-20 Thread Frank Wienberg
On Sun, Jan 20, 2013 at 11:28 PM, Michael Schmalle apa...@teotigraphix.comwrote: I think what my plan is, is to tell you I'm not going to ignore you, I'm focused on MXML just so I can get it into the flow. After I get it committed I will try and see what is going on with the code you wrote.

Re: [FalconJx] where I'm going to be

2013-01-19 Thread Frank Wienberg
After some time off, I just became aware of this discussion, and it has already become quite longish, so please forgive me if I missed or misunderstood some arguments. That said, my understanding of MXML is that it is just another (for some use cases more convenient) syntax to write an

[FalconJx] AMD-based JavaScript code implemented in Jangaroo

2013-01-19 Thread Frank Wienberg
Hi folks, I have been rather quiet for a while, but that's because I have been busy implementing JavaScript code generation according to the Runtime prototype I posted some weeks ago. However, I started off implementing this in the Jangaroo compiler, not in Falcon. I am far quicker implementing