Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0955CD663 for ; Thu, 6 Dec 2012 23:44:56 +0000 (UTC) Received: (qmail 39741 invoked by uid 500); 6 Dec 2012 23:44:52 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 39695 invoked by uid 500); 6 Dec 2012 23:44:52 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 39656 invoked by uid 99); 6 Dec 2012 23:44:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 23:44:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.167.147.50] (HELO franklin.liquidweb.com) (69.167.147.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2012 23:44:47 +0000 Received: from localhost ([127.0.0.1]:45082) by franklin.liquidweb.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1Tgl7B-0001zz-RF for flex-dev@incubator.apache.org; Thu, 06 Dec 2012 18:44:25 -0500 Received: from 71.181.122.158 ([71.181.122.158]) by franklin.liquidweb.com (Horde Framework) with HTTP; Thu, 06 Dec 2012 18:44:25 -0500 Message-ID: <20121206184425.15504ultnr5wx8m1@franklin.liquidweb.com> Date: Thu, 06 Dec 2012 18:44:25 -0500 From: Michael Schmalle To: flex-dev@incubator.apache.org Subject: Re: [ASJS] Some information on "templates" References: <20121206105656.10162rgyv4cdtlqg@franklin.liquidweb.com> <20121206130132.87644dj9e000geik@franklin.liquidweb.com> <20121206143942.99854rj0sybwriwu@franklin.liquidweb.com> <20121206180104.17945vlegsi4oz3k@franklin.liquidweb.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.8) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - franklin.liquidweb.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - teotigraphix.com X-Get-Message-Sender-Via: franklin.liquidweb.com: authenticated_id: teotigra/from_h X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Quoting Frank Wienberg : > On Fri, Dec 7, 2012 at 12:01 AM, Michael Schmalle > wrote: > >> Frank, >> >> I'm working on the compiler but I am far from anybody that knows about how >> to code javascript or get is from as to js right. >> >> I am very good at the getting it done part when I know what needs to be >> done. >> >> I can do fine when people are telling me what they need, I can make that >> happen. (in respect to cross compiling javascript) >> >> How do you propose helping "design" the output and possibly integrating >> code you have already written? >> > > To get more concrete, why not starting a first iteration trying to get > Falcon to generate code in the Jangaroo Runtime "DSL" format, and use the > Jangaroo runtime as-is? I love prototypes with a visible, executable result! > You said you already had a look at Jangaroo's JSCodeGenerator class and > found it quite straight-forward, so porting that to visit a Falcon AST > could be a starting point. > Do we just have the AST of the current compilation unit, or do we have > access to a "class repository" as well? We need the latter to produce some > of the advanced Jangaroo runtime features. For example, we need to resolve > inherited members to add "this." when needed. > > When we got the basic language features up and running, we could continue > with merging our approach with Erik's Google-Closure-friendly output and > see what happens. OK, I get what your aiming at here. Coming from a total AST approach, we have access to everything on a project scope if we set up the main program such as FlasconJS is setup. I have actually written an ASDoc clone using falcon. - check out the docs created by it using Velocity templates [0] What this shows is I had full access to a compile session and was able to use the IDefinition API to traverse what I needed. Now we have the IASNode which will give us the method scopes and expressions. Heh, the expressions are what I am afraid of but, you have done it! So I know it's possible and that is all I need for a flashlight. I might make something in my whiteboard that starts on this idea within the next week and you can checking it out, we could then collaborate that way. - [0] http://www.teotigraphix.org/apache-flex-4.8/index.html > >> Keep in mind you are talking to a relative child here in relation to your >> knowledge and understanding of how your framework works and how it could be >> applied. >> >> I guess I'm asking for a little "hand holding" from you so we can get off >> on the right start and get things implemented. >> >> > Same holds true for me when it comes to getting started with developing on > Apache Flex, in particular the as-js branch you talked about, so I'd need > help there... Not a problem, I won't confuse you right at the moment as it's still taking shape. > >> Remember, your already part of the team with what you have given us so far >> regarding information and javascript, not to mention years of experience >> with all of this! :) >> > > Thank you! Glad if I can help. You see, it is of course in our own interest > that a) ActionScript/Flex survives and works on HTML5/JavaScript platforms > (well I think the latter is a precondition of the former!), and b) the way > JavaScript is generated is to a great extent similar to / compatible with > what we do. We have a large code base of ActionScript code that is meant to > run directly in the browser and use JavaScript libraries (here: Ext JS), > and we would be glad if we could replace our development tools by Apache > Flex in the future! This is what I am counting on. Apache Flex is a GREEN project, we are recycling 100s of thousands of hours of developer and CPU time into a future. Thus Apache Flex is reducing the carbon foot print... heheh Mike > -Frank- > -- Michael Schmalle - Teoti Graphix, LLC http://www.teotigraphix.com http://blog.teotigraphix.com