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 08E73DC78 for ; Mon, 19 Nov 2012 10:10:33 +0000 (UTC) Received: (qmail 71048 invoked by uid 500); 19 Nov 2012 10:10:32 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 70843 invoked by uid 500); 19 Nov 2012 10:10:32 -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 70835 invoked by uid 99); 19 Nov 2012 10:10:32 -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 10:10:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mahnmal@gmail.com designates 209.85.220.47 as permitted sender) Received: from [209.85.220.47] (HELO mail-pa0-f47.google.com) (209.85.220.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 10:10:25 +0000 Received: by mail-pa0-f47.google.com with SMTP id fa11so2964689pad.6 for ; Mon, 19 Nov 2012 02:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=/8moKwxAX3rTVEhAh5+djLUo/TK+V4n4NrqSVH18MwY=; b=RG6QXZViewnHElXCpZm+pQdiT1O3Vn409W/T/lhrxrQJe3+GJL+oLVvoGJ2XiahCbA BHgYiYJ18p+yV47AJKB8zsfpCb2tnJfwKXgc/0nD3SgpjcWHfT8D6xqkcD7xc2+LxRYI vL/fj6cJjvBTh1H7XblD4tvu2xRShQlpdtMXSIySZNaEMYmXzVmxB9tl1Ok9DF4i2y+5 FFX56wSfTivgGDL5Xmby9BM5DDQ4rOC3zOOOirwGvueBeIntCe/rewwMYmT5xm2xvZwQ +/Ar8pgWGf13WnDoGxyiHWfNl259NfeHApIbTRxdaz1Do75pYdksJyDTCh/qX9/+8RyU KqCQ== Received: by 10.68.234.201 with SMTP id ug9mr31699655pbc.63.1353319804117; Mon, 19 Nov 2012 02:10:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.254.9 with HTTP; Mon, 19 Nov 2012 02:09:43 -0800 (PST) In-Reply-To: <149F8129B58B2D418508E63117D9C5419B5B360077@nambx05.corp.adobe.com> References: <813661353067194@web29g.yandex.ru> <2AF11B3E-2586-4973-9030-A225C35F0879@classsoftware.com> <149F8129B58B2D418508E63117D9C5419B5B360077@nambx05.corp.adobe.com> From: John Cunliffe Date: Mon, 19 Nov 2012 11:09:43 +0100 Message-ID: Subject: Re: Flex 5 in haxe To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b33da183122f104ced652bf X-Virus-Checked: Checked by ClamAV on apache.org --047d7b33da183122f104ced652bf Content-Type: text/plain; charset=ISO-8859-1 According to Wikipedia: Haxe also includes platform-specific API, but as of 2012, it only supports a subset of the functionality available in each platform[5] , with only the Flash platform API fully usable. On Mon, Nov 19, 2012 at 1:32 AM, Gordon Smith wrote: > > 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 > http://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 = Std.parseFloat(neko.Sys.stdin().readLine()); > > neko.Lib.println("How Many Iterations?"); > var count : Int = Std.parseInt(neko.Sys.stdin().readLine()); > > // Initialization of variables > var f0 : Float; > var df0 : Float; > var p0 : Float; > var p1 : Float; > > p0=x0; // Initial guess at x0 > > for(i in 0...count) > > { > > f0=x0*x0-401; // f(x) = x^2-401 or evaluate sqrt(401) > df0=2*x0; // f'(x) = 2x (derivative of f(x)) > > p1=p0-(f0/df0); // p1=p0-(f(x)/f'(x)) Newton's Method Here > > neko.Lib.println("p1 = " + p1); > p0=p1; //switch variables for next iteration > x0=p1; //switch variables for next iteration > > } > } > }ess at x0 > > for(i in 0...count) > > { > > f0=x0*x0-401; // f(x) = x^2-401 or evaluate sqrt(401) > df0=2*x0; // f'(x) = 2x (derivative of f(x)) > > p1=p0-(f0/df0); // p1=p0-(f(x)/f'(x)) Newton's Method Here > > neko.Lib.println("p1 = " + p1); > p0=p1; //switch variables for next iteration > x0=p1; //switch variables for next iteration > > } > } > } > > -----Original Message----- > From: Nicholas Kwiatkowski [mailto:nicholas@spoon.as] > 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 >wrote: > > > > > I only know a little about Haxe. Could you comment on what would be > > required (in terms of skills and effort) to port Flex to Haxe? I know > > it's ActionScript like but is missing a few features that Flex may be > using? > > Other than compiling to multiple targets does it have any other > > significant advantages? Any idea if there are likely to be major > > performance issues due to the fact that Flex is reasonably complex and > designed 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 > and use. > > Haxe is unique in that that single C++ like language then can output to > navtive apps, SWF, Silverlight, HTML/JS, etc. It's not very good at any of > them, and the biggest problem with the language is that it limits itself to > the least common detonator of all the platforms it supports. > > > > Currently I see no compelling reason to move to the new VM when it > > comes out. Once we know more about it that may change but it sounds > > like it wont be compatible with AS3. The existing one for the moment > > works and is likely to be around for many many years. > > > > > AS2 is still well supported (and, surprisingly used) in most outputs. No > reason 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. > --047d7b33da183122f104ced652bf--