Re: [FalconJx] Package down to Expression production; JSGoogEmiter prototype

2012-12-22 Thread Daniel Wasilewski
And one more thing, We use to think of ourselves, programmers, a problem solvers. We love that phrase so much, that we even creating more for ourself by making wrong design decisions. I realised that all my talks seems to many of you as to much care on the initial state of the process. Like wor

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-22 Thread Daniel Wasilewski
Hehe, is not your bit I am worry about, And well, OK I will stop posting for a moment, because looks like interrupting people at work. Will back to discussion when will be able to help physically, for now just talking during my breaks, because busy working on something that pay my bills. By

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-22 Thread Daniel Wasilewski
s. But for this reason as Alex said let's get going. And I am not saying don't try your way. Go for it prove your point, show us it can be done efficiently. More options better for us. Happy Christmas one again! Dan On 12/22/2012 11:01 AM, Frank Wienberg wrote: On Sat, Dec 22, 2012 a

Re: [FalconJx] Package down to Expression production; JSGoogEmiter prototype

2012-12-22 Thread Daniel Wasilewski
ed to post my progress. I didn't have time to override emitParameters() in ASEmitter to change how a parameter is emitted from AS3. Look at the source code and you will see what I am talking about. But thanks for reading. ;-) Mike Quoting Daniel Wasilewski : well done Mike However

Re: [FalconJx] Package down to Expression production; JSGoogEmiter prototype

2012-12-21 Thread Daniel Wasilewski
well done Mike However JS output has some issues. |JSC_PARSE_ERROR: Parse error. missing ) after formal parameters at line 29 character 52 com.example.components.MyTextButton = function(value:String) { ^ JSC_PARSE_ERROR: Parse error. syntax error at line 31 character 0 } ^| On 12/22/2012 12:0

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-21 Thread Daniel Wasilewski
I was trying hard to get the best performing framework in AS3 ever. Pushing platform to its limits. And I made it happen. I made it the faster AS3 framework ever. Maybe broken few rules, maybe is not pure MVC, However, Let this picture speak for itself. http://bixbite.org/bixbite.jpg With a r

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
d around the world" yet? On Thu, Dec 20, 2012 at 11:18 PM, Daniel Wasilewski wrote: Btw, yes I have checked your links, but stuff on github is 404.

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
http://jsperf.com/global-namespace-chain-vs-string-based-local-modules/12 This is what worries me the most. On 12/20/2012 9:55 PM, Frank Wienberg wrote: Er... I hope I already did. Did you read by previous post in this thread? On Thu, Dec 20, 2012 at 10:49 PM, Daniel Wasilewski wrote

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
Btw, yes I have checked your links, but stuff on github is 404. On 12/20/2012 9:55 PM, Frank Wienberg wrote: Er... I hope I already did. Did you read by previous post in this thread? On Thu, Dec 20, 2012 at 10:49 PM, Daniel Wasilewski wrote: Please enlight us on why you think goog is not a

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
for time being. Dan On 12/20/2012 9:55 PM, Frank Wienberg wrote: Er... I hope I already did. Did you read by previous post in this thread? On Thu, Dec 20, 2012 at 10:49 PM, Daniel Wasilewski wrote: Please enlight us on why you think goog is not a good solution.

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
On 12/20/2012 9:54 PM, Erik de Bruin wrote: *tool/vendor dependency:* The Google Closure Tools are Open Source, available under the Apache License 2.0. *separation of concerns:* 1) a matter of choice and convenience, I'm not married to "goog" here, but I haven't seen a good reason NOT to use it,

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
Please enlight us on why you think goog is not a good solution. On 12/20/2012 9:06 PM, Frank Wienberg wrote: Hi Alex, thanks for your prompt reply anyway! I don't think this is very urgent, I only felt the need to provide a concrete alternative to the "goog" approach before everybody runs off i

Re: [FalconJx] New JavaScript runtime format prototype

2012-12-20 Thread Daniel Wasilewski
Well, some says JS is just JS and I disagree with that statement because it is al about how you write JS. JQuery is popular this days but limited developers by slowing down runtime over 100x times. Impossible to make mobile web application with acceptable performance level when mobile platform

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
Maybe initial design of FalconJS was design for future Flex Builder in mind. I have seen some demo showing how cool will be to see changes on runtime without compiling a project, but it was done in AS3. BURM will definitely be the way to go in that case. But just wonder if both solutions can ac

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
I can see one adventage of BURM. When you have an IDE and you expect to see changes in runtime live. It will be always faster to go from particular leaf up to the root, just to update small chunk, instead traversing entire tree. But in a case when you just need to translate entire structure on

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
Well, that's good news then :) On 12/14/2012 12:30 PM, Erik de Bruin wrote: 'goog' seems to be the reasonable way to go. I would be a bit concern about name-space implementation yet. org.apache.data.blah.foo is the major bottleneck. And currently not that different from haxe approach. Even after

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
es between Scope Object 2 and 3 lvl because this test has been tweaked to run on Android devices as well. But it will give some picture of where we are. Dan On 12/14/2012 11:49 AM, Michael Schmalle wrote: Quoting Daniel Wasilewski : Well, thanks for clarification. And I love you keep AST a

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
On 12/14/2012 11:49 AM, Michael Schmalle wrote: Isn't it the end of 2012 right now? ;-) Mike Nope, we have to survive end of the world first, then end of the world sales and then... :D

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
Well, thanks for clarification. And I love you keep AST abstract as it should be :) Imagine in the future JS 2.0 will came out... 'goog' seems to be the reasonable way to go. I would be a bit concern about name-space implementation yet. org.apache.data.blah.foo is the major bottleneck. And curr

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
I am with you Mike on this in 100%. If I can add something to it. I would rather thing of Falcon/ FalconJS being contributed to Apache as just a cool name. Code base? Does anybody do care these days of quality of it? If possible to investigate a better way of doing it, why not? Equation was

Re: [FalconJx] Prototype ActionScript -> JavaScript compiler code up in svn

2012-12-14 Thread Daniel Wasilewski
Hi guys, I've lost a track on the Falcon JS for a while, (busy freelancing to survive and pay my bills), but at time to time visiting the list. And don't quite understand the status. Is it like we have 3 different people working on their own/favourite implementation at the same time? I've see

Re: ABC -> JS

2012-12-05 Thread Daniel Wasilewski
Well, going over the actual implementation of base.js things like: goog.inherits = function(childCtor, parentCtor) { /** @constructor */ function tempCtor() {}; tempCtor.prototype = parentCtor.prototype; childCtor.superClass_ = parentCtor.prototype; childCtor.prototype = new tempCtor()

Re: ABC -> JS

2012-12-05 Thread Daniel Wasilewski
base.js? it's using 'inherits' instead 'extends' but obviously there must be a substitute. Here is the API. http://closure-library.googlecode.com/svn/docs/closure_goog_base.js.html There is bunch of helpers that actually help you with 'is' and looking at all methods and deep integration with

Re: [FlaconJS] pseudo emitter algorithm

2012-12-03 Thread Daniel Wasilewski
their > trees as they wish. > > Sent from my iPad > > On Dec 2, 2012, at 5:35 PM, "Daniel Wasilewski" > wrote: > > > I do understand differences on conceptual level, but just trying to > > avoid bold statements as arguments that favours one solution o

Re: [FlaconJS] pseudo emitter algorithm

2012-12-02 Thread Daniel Wasilewski
31 PM, Michael Schmalle wrote: I think the point was; - Tree parsers such as the AS3Parser creates a Tree from the parent node down to child aka Recursive Decent Parser. - Tree walkers such as the BURM walk a parse tree from the child nodes up to the parent IE Bottom Up Mike Quoting Daniel Wasil

Re: [FlaconJS] pseudo emitter algorithm

2012-12-02 Thread Daniel Wasilewski
huh? In computer science both conventions are adopted afik. Not reserved, that someone can say, there is only 1 correct. Polish notation or reversed polish notation is correct in computer science? On 12/2/2012 8:07 PM, Gordon Smith wrote: The bottom-upness of the BURM means that subtrees that

Re: [FlaconJS] pseudo emitter algorithm

2012-12-01 Thread Daniel Wasilewski
LoL :) On 12/1/2012 6:23 AM, Alex Harui wrote: Interesting. Someday I will figure out what is bottom up about it. Anyway, thanks, and bottoms up! -Alex On 11/30/12 9:48 PM, "Gordon Smith" wrote: The BURM is the Bottom-Up Rewrite Machine that the BURG or Bottom-Up Rewrite Generator genera

Re: [FlaconJS] pseudo emitter algorithm

2012-12-01 Thread Daniel Wasilewski
The conversation was about exploring a straight AST to JS convertor and bypassing the JS emitting using SWF reducer. My point was in the discussion that I don't know SWF format and JBurg so trying to maintain FalconJS in it's current state would be hard for a lot of developers. A lot of

Re: [FlaconJS] pseudo emitter algorithm

2012-11-30 Thread Daniel Wasilewski
I'm trying to follow, but I feel the same. My main confusion came from the one thing. I've got in my mind AST is just AST. Abstract by definition. It represents a code logic in abstract form. Why JS would collide with AS? Why the Falcon after AST coming back to AS? AST says, create class, crea

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: [FlaconJS] pseudo emitter algorithm

2012-11-29 Thread Daniel Wasilewski
Thanks for detailed explanation Mike! Everything below that, is actually clear without getting into details of recursive methods itself. On 11/29/2012 3:30 PM, Michael Schmalle wrote: Hi, For those asking question about "where to alter" code, it's not pretty but I think I know exactly what

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 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 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 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 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 Ke

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

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 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 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: Installer issue

2012-11-28 Thread Daniel Wasilewski
on of it installed? If yes, can you please uninstall it and try again? Thanks, Om On Wed, Nov 28, 2012 at 3:06 PM, Daniel Wasilewski wrote: On 11/28/2012 10:42 PM, Guthmann, Scott wrote: Can the person who has the Apache flex twitter account post an announcement? Will each one on this

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
S, but I would sacrifice it for the sake of seeing Flex reborn on JS platform as a king of RIA again. Mike Quoting 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, ju

Re: Publicizing Installer release

2012-11-28 Thread Daniel Wasilewski
On 11/28/2012 10:42 PM, Guthmann, Scott wrote: Can the person who has the Apache flex twitter account post an announcement? Will each one on this list please go to Twitter and tweet this next line to promote the installer, please? New Release - @ApacheFlex SDK Installer source distributions and

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
o provide the list of stuff/fields that compiler is expecting to meet on the other side? Dan On 11/28/2012 9:42 PM, Alex Harui wrote: 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 applicati

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
expecting to meet on the other side? Dan On 11/28/2012 9:42 PM, Alex Harui wrote: 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

Re: FalconJS "Demo" checked in

2012-11-28 Thread Daniel Wasilewski
m not sure how Falcon handles that. Did you really mean Falcon here or FalconJS? I'm not sure I understood this. I don't think you can use super from outside the class to skip around an override like I think you can in C++. From a quick look anyway. Kevin N. On 11/28/12 2:54 PM, Danie

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
collection of multiple output formats, too. Maybe the solution everyone is talking about is already out there - have??? Thanks for your input On Nov 28, 2012, at 9:04 PM, Alex Harui wrote: On 11/28/12 12:01 PM, "Daniel Wasilewski" wrote: Ok will try again by changing a subject beca

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
On Nov 28, 2012, at 9:04 PM, Alex Harui wrote: 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 mode

Re: [FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
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 see

[FalconJS] concepts

2012-11-28 Thread Daniel Wasilewski
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 seems to be out of falconJS compiler little syntactic sugar

Re: FalconJS "Demo" checked in

2012-11-28 Thread Daniel Wasilewski
Can any JS savvy person here tell me how according to adobe.js module pattern call super? I just lost my head..., got 3 classes extending each other and the only top one call init(); I am preparing those performance tests for comparison. Dan

Re: FalconJS has landed

2012-11-28 Thread Daniel Wasilewski
The one that Kevin proposed below (jangaroo) and you keep talking about licensing it :). Sorry if that wasn't clear but trying follow the wave here. Dan On 11/28/2012 6:50 PM, Alex Harui wrote: On 11/28/12 10:35 AM, "Daniel Wasilewski" wrote: What I have noticed up ther

Re: FalconJS has landed

2012-11-28 Thread Daniel Wasilewski
What I have noticed up there as well, this project not only have JS bits implemented to mimic flash player, but Action Script bits as well with lots of missing features. I see the point behind this idea, and the guys were trying to find a common ground between both platforms. But ended up rewrit

Re: FalconJS has landed

2012-11-27 Thread Daniel Wasilewski
Hmm... I just actually managed to see that keynote to the very end. http://tv.adobe.com/watch/flex-community-summit-december-2011/open-discussion-about-falcon-and-falconjs And if you can't see that full responsibility of success of this project (due to Adobe representatives attitude and goal) is

Re: FalconJS has landed

2012-11-27 Thread Daniel Wasilewski
And in this article there is a link to: http://tv.adobe.com/watch/flex-community-summit-december-2011/open-discussion-about-falcon-and-falconjs Just seek to frame 4:46 and in front of your eyes: Pros: supported existing Flex SDK leverage FB tooling Cons: Not as HTMLey' SEO *potentially not as

Re: FalconJS has landed

2012-11-27 Thread Daniel Wasilewski
benefit from. A good place - albeit a bit random - to start reading about the benefits of the approach I am advocating is: http://www.examplejs.com/?p=250 Ok, I'll shut up now ;-) EdB On Tue, Nov 27, 2012 at 7:23 PM, Daniel Wasilewski wrote: Erik, If you don't care about memory consum

Re: FalconJS has landed

2012-11-27 Thread Daniel Wasilewski
On 11/27/2012 6:36 PM, Kevin Newman wrote: definitions be outside the testing loop Very good point :) Just modified this test up there http://jsperf.com/closures-vs-objects-vs-object-literals-vs-prototype/5 And will prepare the one, that has inheritance involved as well. Dan

Re: FalconJS has landed

2012-11-27 Thread Daniel Wasilewski
quote, yet you recommend that we don't use it? EdB On Tue, Nov 27, 2012 at 5:22 PM, Daniel Wasilewski wrote: I'll try to help Alex :) But he may correct me if I am wrong. I believe this little test will show full picture and all 4 common styles of JS programming we are talking about

Re: FalconJS has landed

2012-11-27 Thread Daniel Wasilewski
I'll try to help Alex :) But he may correct me if I am wrong. I believe this little test will show full picture and all 4 common styles of JS programming we are talking about here. Notice there is nothing about inheritance, just plain objects (classes) Once inheritance is involved things are

Re: FalconJS has landed

2012-11-26 Thread Daniel Wasilewski
By a term API I've understood something that JS developers use to call 'syntactic sugar' witch seems to be a necessity if you need to use /leverage one of the popular patterns on top of native/standard JS. They keep saying about a beauty and flexibility of JS, then, inventing some patterns and

Re: FalconJS has landed

2012-11-26 Thread Daniel Wasilewski
ex Harui wrote: On 11/24/12 3:42 PM, "Daniel Wasilewski" wrote: And here is a little example of the very nature of this problem: http://jsperf.com/object-create-with-object-literal-vs-prototype I must be missing something, but I don't see where the output code calls Object

Re: FalconJS has landed

2012-11-24 Thread Daniel Wasilewski
I'm a JS newbie. What other output would be more desirable and why? Well, I am JS newbie too. I guess even bigger than you ;) But after Adobe ceased a fire on Flash Mobile Plug-in (that was 3times faster in execution speed that any JS comparable code on flash capable mobile devices) I've sp

Re: FalconJS has landed

2012-11-24 Thread Daniel Wasilewski
2 questions: 1. Why literal notation for JS output? Is it the only output mode available? 2. adobe.extend / adobe.classes? shouldn't be apache? Dan On 11/24/2012 1:00 PM, Michael Schmalle wrote: Hey, I try to avoid the command line when ever possible. :) I set up a simple runner just like we

Re: Flex 5 in haxe

2012-11-21 Thread Daniel Wasilewski
A component is an encapsulation of code, and its API is its contract. To the extend that you can hide aspects of the target inside components and fulfill those contracts, and to the extent that an application is an assembly of components with some glue code, then yes. For sure, you can't do ev

Re: Flex 5 in haxe

2012-11-21 Thread Daniel Wasilewski
Apology for feel instead of fill a gap ;) So once again, this is it, room of interpreters instead force people to learn Esperanto. the phrase 'For disposal of native speakers' could only attract more people. But the Flex itself as a framework should fill that gap imho. Make it more abstract, p

Re: Flex 5 in haxe

2012-11-21 Thread Daniel Wasilewski
For me, AS3 is the key factor. If you make folks learn a new language, it makes their set of choices much wider. My goal is not to get rid of AS3, but preserve it as the one that you can target multiple platforms natively. by my analogy, I don't need an Esperanto, but room of Native tongue

Re: Flex 5 in haxe

2012-11-21 Thread Daniel Wasilewski
I am following this this discussion carefully as well as all what is going on on Apache Flex from the very beginning. Clearly if the future of Flex attached to Flash Player would be bright this thread should not exist at all. But is here, and there is a lot of concerns surrounding it. I have r

Re: [jira] [Updated] (FLEX-51) Please check support for ExactValue initializer

2012-04-24 Thread Daniel Wasilewski
On 4/25/2012 12:57 AM, Left Right wrote: In {a.b.c} the compiler has to understand what a, b, and c resolve to, what [Bindable] metadata there is on each one, etc. It uses the syntax tree and the symbol table to do this. This is very far from reality. What compiler does is actually like this:

Re: flex breakdown

2012-04-05 Thread Daniel Wasilewski
Hi List. Just reading all this and I think I missed something here. You putting on vote many things here every single day and suddenly looking for argument against voting? Even for some rhetorical questions. The guy raised concerns/question, trying to even back it up and then have to fight to