Re: [FalconJS] concepts

2012-11-30 Thread Alex Harui
Ah ok. Makes sense to me. We should certainly have support for vector drawing for those who need it. I'm still going to build the interactive widgets using as much of the native HTML/HTML5 controls as possible. Thanks, -Alex On 11/30/12 2:40 AM, "Frank Wienberg" wrote: > On Thu, Nov 29, 2012

Re: [FalconJS] concepts

2012-11-30 Thread Kevin Newman
Interesting info on this, thanks! There is also Mozilla Shumway (based on Gordon I believe), which actually parses and runs SWFs without a need for a head of time AS3->JS compile, and has a whole Flash API layer (I don't know how complete any of it is). How does Shumway compare with the way

Re: [FalconJS] concepts

2012-11-30 Thread Daniel Wasilewski
When I was thinking about how to make distinction between canvas and DOM based display list output, I thought of letting developer choose on compile time. But I really like your solution with casheAsBitmap. On top of graphics API I was planing to add another feature casheStyle("id") and what it

Re: [FalconJS] concepts

2012-11-30 Thread Frank Wienberg
Btw, since only the "cacheAsBitmap" feature and the Graphics implementation use canvas, it is completely possible to implement SVG rendering as an alternative. The "cacheAsBitmap" flag of a flash.display.Bitmap object could be used as the switch whether to use canvas or SVG. On Fri, Nov 30, 2012

Re: [FalconJS] concepts

2012-11-30 Thread Frank Wienberg
On Thu, Nov 29, 2012 at 6:29 PM, Alex Harui wrote: > > On 11/29/12 3:31 AM, "Frank Wienberg" wrote: > > > Primarily, I also map DOs to DOM elements! > > > > Greetings > > -Frank- > Just curious, but how does this mapping work? How many DOM objects are > being created and what does the drawing,

Re: [FalconJS] concepts

2012-11-30 Thread Frank Wienberg
Yes and no. I implemented single-canvas-mode on a branch, but when merging into the master, I re-activated the DOM mode. Single-canvas-mode is activated by setting cacheAsBitmap on the stage! On Thu, Nov 29, 2012 at 4:47 PM, Kevin Newman wrote: > Oh, I thought Jangaroo switched to a single Canv

Re: [FalconJS] concepts

2012-11-29 Thread Alex Harui
On 11/29/12 3:31 AM, "Frank Wienberg" wrote: > Dan, are you aware of FlashJS ? > Btw, JooFlash also uses canvas optionally, namely for Graphics and if you > set DisplayObject#cacheAsBitmap to true. > Primarily, I also map DOs to DOM elements! > > Greetings > -Frank- Just cu

Re: [FalconJS] concepts

2012-11-29 Thread Kevin Newman
Oh, I thought Jangaroo switched to a single Canvas a while back. I may have introduced that incorrect information. Sorry about that. Kevin N. On 11/29/12 6:31 AM, Frank Wienberg wrote: Primarily, I also map DOs to DOM elements!

Re: [FalconJS] concepts

2012-11-29 Thread Erik de Bruin
Actually, the third argument of 'adobe.extend()' is what can probably considered "the rest" of the output of the JSEmitter (yes, Mike, it did make a little more sense). And that "the rest: is a "simple" object literal, which can easily be parse (as the 'extend' method does). If you want to change

Re: [FalconJS] concepts

2012-11-29 Thread Daniel Wasilewski
On 11/29/2012 1:36 PM, Michael Schmalle wrote: Laymans; A SWF is created for all classes just like in MXMLC, there is a visitor pattern that is used that traverses the internals of the ISWF. As each of the elements in the SWF are traversed (classes, methods, members etc) calls to the JSEmitt

Re: [FalconJS] concepts

2012-11-29 Thread Michael Schmalle
Mike Quoting Kessler CTR Mark J : Funniest site I've been to today. It's a good point, but it's prob pretty difficult to not use a framework at all. -Original Message- From: Justin Mclean [mailto:justinmcl...@gmail.com] On Behalf Of Justin Mclean Sent: Wednesday, November

Re: [FalconJS] concepts

2012-11-29 Thread Erik de Bruin
ryday. For >>> alittle dev time saved, you kill the actual applications performance. >>> >>> I was just saying that using AS, you can already have a "framework" you >>> use >>> that is light, but the compiler would transcode it to the fastest >>>

Re: [FalconJS] concepts

2012-11-29 Thread Michael Schmalle
's now hands off. Mike Quoting Kessler CTR Mark J : Funniest site I've been to today. It's a good point, but it's prob pretty difficult to not use a framework at all. -Original Message----- From: Justin Mclean [mailto:justinmcl...@gmail.com] On Behalf Of Justin M

Re: [FalconJS] concepts

2012-11-29 Thread Daniel Wasilewski
On 11/29/2012 12:59 PM, Frank Wienberg wrote: On Thu, Nov 29, 2012 at 1:47 PM, Michael Schmalle wrote: It's not that you can't use a framework and "vanilla" js... Yeah, we use this framework: http://vanilla-js.com/ ;-) Hehe, me too without even knowing ;)

Re: [FalconJS] concepts

2012-11-29 Thread Frank Wienberg
On Thu, Nov 29, 2012 at 1:47 PM, Michael Schmalle wrote: > It's not that you can't use a framework and "vanilla" js... Yeah, we use this framework: http://vanilla-js.com/ ;-)

Re: [FalconJS] concepts

2012-11-29 Thread Erik de Bruin
's now hands off. > > Mike > > > Quoting Kessler CTR Mark J : > >> Funniest site I've been to today. It's a good point, but it's prob pretty >> difficult to not use a framework at all. >> >> -----Original Message- >> From: Justin

RE: [FalconJS] concepts

2012-11-29 Thread Michael Schmalle
clean Sent: Wednesday, November 28, 2012 18:21 To: flex-dev@incubator.apache.org Subject: Re: [FalconJS] concepts Hi, And to eliminate the 'IF' from your conditional statement, just a quick one: http://jsperf.com/jqury-vs-plainjs Slightly off topic but amusing all the same: http://

RE: [FalconJS] concepts

2012-11-29 Thread Kessler CTR Mark J
ator.apache.org Subject: Re: [FalconJS] concepts Hi, > And to eliminate the 'IF' from your conditional statement, just a quick one: > http://jsperf.com/jqury-vs-plainjs Slightly off topic but amusing all the same: http://vanilla-js.com Reinforces the point that if you wa

Re: [FalconJS] concepts

2012-11-29 Thread Daniel Wasilewski
Yes I do, I was doing research on this subject. In fact my project is about something else, high performance application framework on top of native platforms. AS a bare bones to make a common ground for development. And trying to add few new concepts into it. http://www.bixbite.org/BixBitePres

Re: [FalconJS] concepts

2012-11-29 Thread Frank Wienberg
Dan, are you aware of FlashJS ? Btw, JooFlash also uses canvas optionally, namely for Graphics and if you set DisplayObject#cacheAsBitmap to true. Primarily, I also map DOs to DOM elements! Greetings -Frank-

Re: [FalconJS] concepts

2012-11-29 Thread Daniel Wasilewski
One more idea/concept in regards of mimic flash display list. This is copy paste from my code I am working on. Early prototype stage but... http://www.bixbite.org/html/dsp.html var s,sc; var max = 1000; var stage = new Stage(); var time = getTimer(); for (var i = 0; i trace("TIME:

Re: [FalconJS] concepts

2012-11-29 Thread Michael Schmalle
Right, Yeah, comparing the old MXMLC compiler to Falcon MXMLC code base is like going from a stone cave to a highrise building in terms of engineering. It uses JFlex to create the tokenizer so there is not lexer from antlr. Anyway, others... I am not saying ditch work that has been done on

Re: [FalconJS] concepts

2012-11-29 Thread Daniel Wasilewski
What I am trying to understand in regards to this. Is it, that AS3 -> AST needs to deal with those but AST->JS simply ignore it? AS3 -> AST -> JS Type safe we don't care as long output represents input? Abstract syntax tree is abstract by definition right? On 11/29/2012 8:26 A

Re: [FalconJS] concepts

2012-11-29 Thread Daniel Wasilewski
Yeah, sorry guys, it was quite late yesterday :) On 11/29/2012 5:47 AM, Kevin Newman wrote: I believe that's Frank's blog. :) Kevin N. On 11/28/2012 7:28 PM, Daniel Wasilewski wrote: But I know what the community is capable of, and seeing stuff like jangaroo (I went trough Kevin's blog alrea

Re: [FalconJS] concepts

2012-11-29 Thread Frank Wienberg
On Thu, Nov 29, 2012 at 8:45 AM, Erik de Bruin wrote: > Well, there is the JavaScript operator "instanceof", what's wrong with > that? > Nothing, but it only works when you actually use the prototype chain, not when you copy all members from the superclass to the subclass. Also, when using Actio

Re: [FalconJS] concepts

2012-11-29 Thread Frank Wienberg
Thanks for the pointer, Alex! I'll hand it on to Andreas Gawecki who is the Jangaroo compiler guy.

Re: [FalconJS] concepts

2012-11-28 Thread Erik de Bruin
> That said, because we are cross compiling AS, does the classic route support > as many features of AS, especially the reflection-oriented features? We > want to try to compile business logic untouched and it might be using "is", > "in", "instanceof", etc. Resig's blog seems to indicate that sup

Re: [FalconJS] concepts

2012-11-28 Thread Kevin Newman
I believe that's Frank's blog. :) Kevin N. On 11/28/2012 7:28 PM, Daniel Wasilewski wrote: But I know what the community is capable of, and seeing stuff like jangaroo (I went trough Kevin's blog already, very good read) and many initiatives I remember from the past, like make AS3 evaluators,

Re: [FalconJS] concepts

2012-11-28 Thread Alex Harui
On 11/28/12 4:44 PM, "Frank Wienberg" wrote: > Dan, > > I am completely with you in ditching jQuery for FalconJS. I'm not at all clear that the Jquery code path in the donation works. I'm sure it did when Bernd did his demo, but I have not tested it in the donation. And I'm not particularly

Re: [FalconJS] concepts

2012-11-28 Thread Alex Harui
On 11/28/12 5:03 PM, "Frank Wienberg" wrote: > On Thu, Nov 29, 2012 at 1:44 AM, Michael Schmalle > wrote: > >> I bet if I had some time I could port some of your generation code using >> the Falcon AST. > > > Mike, that would be the way to go! > I believe every word you say about the Falcon

Re: [FalconJS] concepts

2012-11-28 Thread Frank Wienberg
On Thu, Nov 29, 2012 at 1:44 AM, Michael Schmalle wrote: > I bet if I had some time I could port some of your generation code using > the Falcon AST. Mike, that would be the way to go! I believe every word you say about the Falcon compiler, since my information about the Flex compiler is surely

Re: [FalconJS] concepts

2012-11-28 Thread Frank Wienberg
On Thu, Nov 29, 2012 at 1:35 AM, Daniel Wasilewski wrote: > Man, what can I say, I love you :) > > > On 11/29/2012 12:13 AM, Frank Wienberg wrote: > >> ...Open Flash >> Charts >> > >> > Thanks! :-) Did yo

Re: [FalconJS] concepts

2012-11-28 Thread Michael Schmalle
Quoting Frank Wienberg : Totally agreed, Mike! We're facing a great opportunity, but also a big challenge. Adobe's code is, especially considering the lack of a language specification, the best you can get to parse ActionScript 3. I have written an AS3.g (1600 lines) file with a rewrite tree,

Re: [FalconJS] concepts

2012-11-28 Thread Frank Wienberg
Dan, I am completely with you in ditching jQuery for FalconJS. While we would have to deal with some cross-browser issues ourselves, jQuery is mainly tailored at providing convenience for JavaScript developers. That convenience is not necessary for ActionScript/Flex developers, since many features

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Man, what can I say, I love you :) On 11/29/2012 12:13 AM, Frank Wienberg wrote: On Thu, Nov 29, 2012 at 12:51 AM, Daniel Wasilewski wrote: One question straight away after looking at your source code implementation. Why did you have to implement custom display list for AS3 itself? Do you m

Re: [FalconJS] concepts

2012-11-28 Thread Frank Wienberg
Totally agreed, Mike! We're facing a great opportunity, but also a big challenge. Adobe's code is, especially considering the lack of a language specification, the best you can get to parse ActionScript 3. However, when we (especially Andreas Gawecki, the original author of the Jangaroo compiler) l

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Well, I'm not a compiler expert, have a basic undertaking of AST, parsing and compiling it back to desire language. In fact I didn't even grasp a Java side of FalconJS yet. But knowing the Adobe way of doing things I wouldn't be surprised if somebody have it worked out a better way. Adobe it

Re: [FalconJS] concepts

2012-11-28 Thread Michael Schmalle
I hate adding on to my own reply but I have on more comment on this. As Dan and I were discussing and others as well, performance. Obviously browser execution is top most priority but what about the other performance not mentioned... the community contributions. If you have something as com

Re: [FalconJS] concepts

2012-11-28 Thread Frank Wienberg
On Thu, Nov 29, 2012 at 12:51 AM, Daniel Wasilewski wrote: > One question straight away after looking at your source code > implementation. > > Why did you have to implement custom display list for AS3 itself? > Do you mean JooFlash? Well, Adobe still did not open-source the Flash runtime, so we

Re: [FalconJS] concepts

2012-11-28 Thread Michael Schmalle
jangaroo/jooc/backend/JsCodeGenerator.java This is the exact pattern I was talking about implementing. I think it's so solid and you have done a great job at implementing it. As I have said in previous posts today, The way FalconJS digests it's AST is through SWF visitors. You are using st

Re: [FalconJS] concepts

2012-11-28 Thread Kevin Newman
On 11/28/12 4:42 PM, Alex Harui wrote: I don't know enough to have an reason not to go the classic route. But someone else will have to step up to do the work. Classic is the fastest for me (often by a lot) - at least in Firefox. Maybe I'm missing some reason to go with the others? That said

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
One question straight away after looking at your source code implementation. Why did you have to implement custom display list for AS3 itself? Was my assumption correct? That you were trying to bridge a gaps? If so, how much effort it would be to do the same with mxml? Dan On 11/28/2012 11:43

Re: [FalconJS] concepts

2012-11-28 Thread Michael Schmalle
Hi Frank, I was just looking at your code today in GIT, all I can say is what a great job coding that!!! Seriously I have always loved AS3 AST and code generation I have some experience as well and I was actually looking at your visitor/sink pattern today for ideas! I have gone through yo

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Here we go! welcome on board :) On 11/28/2012 11:43 PM, Frank Wienberg wrote: Hi folks, here is another "outsider" who would like to contribute to the JS runtime format, if you are interested. I am co-founder of the Open Source project Jangaroo, and as such have been dealing with JavaScript-to-

Re: [FalconJS] concepts

2012-11-28 Thread Frank Wienberg
Hi folks, here is another "outsider" who would like to contribute to the JS runtime format, if you are interested. I am co-founder of the Open Source project Jangaroo, and as such have been dealing with JavaScript-to-ActionScript-3 compilation for several years now. In response to Bernd Paradies b

Re: [FalconJS] concepts

2012-11-28 Thread Justin Mclean
Hi, > And to eliminate the 'IF' from your conditional statement, just a quick one: > http://jsperf.com/jqury-vs-plainjs Slightly off topic but amusing all the same: http://vanilla-js.com Reinforces the point that if you want pure performance don't use a framework and as we're generating the JS

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
On 11/28/2012 11:08 PM, Michael Schmalle wrote: That being said. I may be a complete idiot in thinking here but, why use a framework like jQuery if you have a framework in ActionScript. Now let me finish my thought, I know we arn't talking about using jQuery but we do have the compiler that

Re: [FalconJS] concepts

2012-11-28 Thread Michael Schmalle
That being said. I may be a complete idiot in thinking here but, why use a framework like jQuery if you have a framework in ActionScript. Now let me finish my thought, I know we arn't talking about using jQuery but we do have the compiler that can do "majic" when transcoding. So I agree t

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Well, I feel like one, because only FalconJS subject activated me on this list :) And to eliminate the 'IF' from your conditional statement, just a quick one: http://jsperf.com/jqury-vs-plainjs Dan On 11/28/2012 10:26 PM, Michael Schmalle wrote: Hey, Your not an outsider, everything I have

Re: [FalconJS] concepts

2012-11-28 Thread Michael Schmalle
Hey, Your not an outsider, everything I have read of yours is golden. At least you are trying to explain this stuff to people who don't have a lot of js experience. If what you are saying about jQuery and performance is true then; "I do believe that it is possible to make a easy to develop

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
I can spare my free time on this, Possibly not on Apache contributor level because I am total noob when comes to it. I don't even managed to set up my environment for flexSDK ;) But this is because I've got AIR corrupted and some windows x86 redistributable corupted libs blabla, the only reason

Re: [FalconJS] concepts

2012-11-28 Thread Alex Harui
On 11/28/12 1:35 PM, "Daniel Wasilewski" wrote: > > So, please tell me why not to go the classic route as a very little overhaul > for the application that can be built on top of AS3/Flex? > This is bloody 3 classes with 4 methods in it, and we are not talking here > about few % but tens. > I

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Ok, both test are up to date including HaXe. *Test of creation of this little structure* http://jsperf.com/inheritance-yet-another-test/3 *Test of speed of accession already created objects* http://jsperf.com/inheritance-yet-another-test/4 Which confirms what I have said before, that is a best

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Good point, I will try to add HaXe output to this test as well. But as far as I can tell. It was the best JS output out there but had some fundamental issues with namespaces represented by object chain. I was playing around it a while ago. Dan On 11/28/2012 8:26 PM, Markus Gritsch wrote: Hi e

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
Thanks for hint, I figured it out. I was confused about it and was trying to call this._super.init(); but just this._super() inside the init does a job. Here is speed of accession test http://jsperf.com/inheritance-yet-another-test/4 Dan On 11/28/2012 8:04 PM, Alex Harui wrote: On 11/28/12 1

Re: [FalconJS] concepts

2012-11-28 Thread Markus Gritsch
Hi everyone, Maybe someone can clarify the difference between haxe`s - as3-2-js output target and falcon-js. Both are producing js code. Haxe supports a collection of multiple output formats, too. Maybe the solution everyone is talking about is already out there - have??? Thanks for your inpu

Re: [FalconJS] concepts

2012-11-28 Thread Alex Harui
On 11/28/12 12:01 PM, "Daniel Wasilewski" wrote: > Ok will try again by changing a subject because you seems to moved away > from original topic, and I don't want to interrupt :) > > So far I have a test to compare very simple model of prototypal > inheritance and proposed module pattern that s