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 1C5CBD6BF for ; Wed, 29 Aug 2012 22:31:59 +0000 (UTC) Received: (qmail 98098 invoked by uid 500); 29 Aug 2012 22:31:58 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 98066 invoked by uid 500); 29 Aug 2012 22:31:58 -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 98056 invoked by uid 99); 29 Aug 2012 22:31:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 22:31:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of carlos.rovira@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2012 22:31:53 +0000 Received: by wgbdr1 with SMTP id dr1so692493wgb.0 for ; Wed, 29 Aug 2012 15:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JLkNk/aliD+76eYs2YiB8T7odREqIDbcSxb3Ul7VoVc=; b=wjFP5OtJV3LBgERo7gDVRdWzJ+ZuzLfvi7N8clrgBygAL4FjXyXUPZjyYaHhshE012 w8ilpilzHqqQG8ydXKT3Byacbw6tS3qxqowVE6i+7knfQdQvw9AEnfYJru33KCCH/WC6 5zbp+pxa2fWq56HrqENwZd4GhpNXzb3q5jvzl4uHus/UukUBtt7PJN3zaPz8k5vxT5zx YCYDDrXdGqXwkThiJT9YXUJFt7cgEbEfYf+bCfgO8t7HqNygECj0cHMKl4zk8D+BcmUU P6rNgeQjfvYXwat0APuN+IiHTOFaWn8U6XKTcIujPJhHOwt0Q8cgmR2lwW9e7l24uewe JXUg== MIME-Version: 1.0 Received: by 10.216.138.13 with SMTP id z13mr1689162wei.65.1346279492001; Wed, 29 Aug 2012 15:31:32 -0700 (PDT) Sender: carlos.rovira@gmail.com Received: by 10.194.21.195 with HTTP; Wed, 29 Aug 2012 15:31:31 -0700 (PDT) In-Reply-To: References: <149F8129B58B2D418508E63117D9C5419B3A6E3C61@nambx05.corp.adobe.com> <5AFAEF43-03C2-4782-80DF-0C9341EA6912@lndgrn.se> Date: Thu, 30 Aug 2012 00:31:31 +0200 X-Google-Sender-Auth: iBWKcSnNBI4yL7n195ce0LNyobU Message-ID: Subject: Re: Cross-compiling Flex to HTML5/Javascript (Was : Update on Falcon donation) From: Carlos Rovira To: flex-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org AFAIK Google has made the same with GWT as Adobe with Flex. But GWT has the problem to generate overbloated JS code... 2012/8/30 Nick Tsitlakidis : > Hello guys, I'm following all the topics here but I post rarely because > most of the times someone else has said something that I agree with 100%. > > This time though, I was trying to think about similar technologies which > are either compiled to js or they are converted in js in some other way. > So I thought about GWT. The appproach google has taken with it is very > similar to Flex. They even have a skin architecture equivalent. > What I'm trying to say is, what if we could achieve something similar. Th= ey > seem to be translating Java to JS without a problem because they exclude > Java features that are not compatible. > It's a small Java subset, I'll give you that, but developing in Java and > creating skins just like in Flex is way more interesting and agile compar= ed > to pure HTML and JS. > > As far as I can tell, both languages are not that different (Java and AS3= ). > > Any thoughts on this? > > On Wed, Aug 29, 2012 at 10:55 PM, Om wrote: > >> On Wed, Aug 29, 2012 at 12:19 PM, Michael A. Labriola < >> labriola@digitalprimates.net> wrote: >> >> > >Can you please elaborate? >> > >> > >The point I was trying to make was that HTML5 language itself is not >> > designed to be extensible. Using Javascript does not really count (in >> this >> > >context) >> > >> > >As far as using the DOM, I assume you mean the Microdata format. Thi= s >> > results in non-standard HTML most of the time and is not supported acr= oss >> > browsers. And it deals more with extending data semantics and >not >> > functional extension. >> > >> > In flex, IMO, we worried too much about extension and not enough about >> > composition. >> >> >> I think that is besides the point. There is nothing in MXML that preven= ts >> composition. It is just that the current set of Flex components are bui= lt >> like that. We can fix that given time and effort. There is no need to >> structurally modify MXML to achieve this. >> >> Whereas with HTML(5) there is nothing in the standard that will let us d= o >> specialization (via inheritance or composition) I cannot dream up new >> elements and expect a browser to understand it out of the box. >> >> >> > So long as I have a good series of patterns (and the discipline to fol= low >> > them) then I can look at the HTML DOM elements as the Atoms of the >> universe >> > and assembly them with some bonds (JavaScript) to make an element. And >> then >> > in turn assemble those to make any application. >> > >> >> Right, we need Javascript to do this kind of extension to HTML. To do t= his >> in the Flex world would mean that we either >> >> * Bring in JS as a language we support in Flex >> or >> * Keep Flex as it is (i.e. Actionscript based) and have a AS to JS >> translation layer. >> >> The latter is a better approach because of various reasons ranging from = JS >> not being a real OOP language, no package organization possible, etc (we >> all know why AS is better than JS) >> >> I think being able to code in MXML and Actionscript would be a key goal = of >> this cross-compilation effort, right? Unless we want to fundamentally >> change what 'Flex' means. >> >> >> > So, the key is not trying to extend the Atom but trying to assemble it= in >> > useful ways and allow those to be extended or recomposed. So far, I ha= ve >> > found few limitations of this approach and often times ended up much >> > happier. >> > >> > >> I definitely agree with you on this. But again, this requires Javascrip= t >> to assemble things. My above points still hold good as well. >> >> >> > Mike >> > >> > >> Thanks, >> Om >> > > > > -- > Nick Tsitlakidis, > > CEO and Software Architect at Perfect Edge LTD. > www.perfectedz.com --=20 Carlos Rovira Director de Tecnolog=EDa M: +34 607 22 60 05 F: +34 912 35 57 77 CODEOSCOPIC S.A. Avd. del General Per=F3n, 32 Planta 10, Puertas P-Q 28020 Madrid