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 37D41DD74 for ; Mon, 19 Nov 2012 00:33:20 +0000 (UTC) Received: (qmail 61685 invoked by uid 500); 19 Nov 2012 00:33:19 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 61645 invoked by uid 500); 19 Nov 2012 00:33:19 -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 61637 invoked by uid 99); 19 Nov 2012 00:33:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 00:33:19 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gosmith@adobe.com designates 64.18.1.77 as permitted sender) Received: from [64.18.1.77] (HELO exprod6og126.obsmtp.com) (64.18.1.77) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 00:33:11 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob126.postini.com ([64.18.5.12]) with SMTP ID DSNKUKl+MX6pMEhcA+oXgfU5011Mc/nY919U@postini.com; Sun, 18 Nov 2012 16:32:50 PST Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id qAJ0Tw1v003299 for ; Sun, 18 Nov 2012 16:29:58 -0800 (PST) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id qAJ0WkXL013213 for ; Sun, 18 Nov 2012 16:32:47 -0800 (PST) Received: from nambx05.corp.adobe.com ([10.8.189.124]) by nacas02.corp.adobe.com ([10.8.189.100]) with mapi; Sun, 18 Nov 2012 16:32:46 -0800 From: Gordon Smith To: "flex-dev@incubator.apache.org" Date: Sun, 18 Nov 2012 16:32:45 -0800 Subject: RE: Flex 5 in haxe Thread-Topic: Flex 5 in haxe Thread-Index: Ac3EIDZOYfuxpjvIR3ynUmF2T4YJZgBzHbEg Message-ID: <149F8129B58B2D418508E63117D9C5419B5B360077@nambx05.corp.adobe.com> References: <813661353067194@web29g.yandex.ru> <2AF11B3E-2586-4973-9030-A225C35F0879@classsoftware.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > Haxe is a C++ "like" language. It is not ActionScript, JavaScript, etc. It looks more like ActionScript than C++ to me. Below is an example from ht= tp://haxe.org/doc/snip/newtonmethod . Note that variable declarations are var f0:Float not Float f0; - Gordon class Newton{ public static function main(){ neko.Lib.println("Enter Starting Point"); var x0 : Float =3D Std.parseFloat(neko.Sys.stdin().readLine()); neko.Lib.println("How Many Iterations?"); var count : Int =3D Std.parseInt(neko.Sys.stdin().readLine()); // Initialization of variables var f0 : Float; var df0 : Float; var p0 : Float; var p1 : Float; p0=3Dx0; // Initial guess at x0 for(i in 0...count)=20 { f0=3Dx0*x0-401; // f(x) =3D x^2-401 or evaluate sqrt(401) df0=3D2*x0; // f'(x) =3D 2x (derivative of f(x)) p1=3Dp0-(f0/df0); // p1=3Dp0-(f(x)/f'(x)) Newton's Method Here neko.Lib.println("p1 =3D " + p1); p0=3Dp1; //switch variables for next iteration x0=3Dp1; //switch variables for next iteration } } }ess at x0 for(i in 0...count)=20 { f0=3Dx0*x0-401; // f(x) =3D x^2-401 or evaluate sqrt(401) df0=3D2*x0; // f'(x) =3D 2x (derivative of f(x)) p1=3Dp0-(f0/df0); // p1=3Dp0-(f(x)/f'(x)) Newton's Method Here neko.Lib.println("p1 =3D " + p1); p0=3Dp1; //switch variables for next iteration x0=3Dp1; //switch variables for next iteration } } } -----Original Message----- From: Nicholas Kwiatkowski [mailto:nicholas@spoon.as]=20 Sent: Friday, November 16, 2012 9:31 AM To: flex-dev@incubator.apache.org Subject: Re: Flex 5 in haxe On Fri, Nov 16, 2012 at 8:17 AM, Justin Mclean wr= ote: > > I only know a little about Haxe. Could you comment on what would be=20 > required (in terms of skills and effort) to port Flex to Haxe? I know=20 > it's ActionScript like but is missing a few features that Flex may be usi= ng? > Other than compiling to multiple targets does it have any other=20 > significant advantages? Any idea if there are likely to be major=20 > performance issues due to the fact that Flex is reasonably complex and de= signed for the Flash VM? > Haxe is a C++ "like" language. It is not ActionScript, JavaScript, etc. It would be a complete re-write of everything we currently already know an= d use. Haxe is unique in that that single C++ like language then can output to nav= tive apps, SWF, Silverlight, HTML/JS, etc. It's not very good at any of th= em, and the biggest problem with the language is that it limits itself to t= he least common detonator of all the platforms it supports. > Currently I see no compelling reason to move to the new VM when it=20 > comes out. Once we know more about it that may change but it sounds=20 > like it wont be compatible with AS3. The existing one for the moment=20 > works and is likely to be around for many many years. > > AS2 is still well supported (and, surprisingly used) in most outputs. No r= eason to move and essentially invalidate all the work done up to this point= in time. If we change technologies (HaXe or AS4) we throw out EVERYTHING = the community has built up to now. Sure, we will have a shiney new product= , but nothing will stand on it.