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 255D89507 for ; Tue, 12 Jun 2012 21:33:44 +0000 (UTC) Received: (qmail 79097 invoked by uid 500); 12 Jun 2012 21:33:43 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 79051 invoked by uid 500); 12 Jun 2012 21:33:43 -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 79040 invoked by uid 99); 12 Jun 2012 21:33:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 21:33:43 +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 aharui@adobe.com designates 64.18.1.187 as permitted sender) Received: from [64.18.1.187] (HELO exprod6og104.obsmtp.com) (64.18.1.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 21:33:35 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob104.postini.com ([64.18.5.12]) with SMTP ID DSNKT9e1mbY7rE994OhyEHmT9CADIB9vG5PL@postini.com; Tue, 12 Jun 2012 14:33:14 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q5CLUuJ0021235 for ; Tue, 12 Jun 2012 14:30:57 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q5CLXCvm016258 for ; Tue, 12 Jun 2012 14:33:12 -0700 (PDT) Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Tue, 12 Jun 2012 14:33:12 -0700 From: Alex Harui To: "flex-dev@incubator.apache.org" Date: Tue, 12 Jun 2012 14:33:08 -0700 Subject: Re: Asset / i18n resource management improvements Thread-Topic: Asset / i18n resource management improvements Thread-Index: Ac1I1D1vIZL0p5/ZTyqePX0PadpKaQADrftf Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-Entourage/13.11.0.110726 acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 On 6/12/12 12:47 PM, "Dirk Eismann" wrote: > Hi Alex, >=20 >> IMO, something like an "R" class should not be put into the compiler or = the >> IDE. =A0The compiler should be as framework agnostic as possible. =A0It = is >> probably possible to create a set of classes that do what R does. >=20 > maybe I misuderstand you here, but to get compile time code hinting in > an IDE and compile time checking for resource accesses, I wonder how > something like R should be generated then if not by the compiler? To me, the most important thing to get right is the run-time implementation= . Once we nail that, someone will figure out how to get you something like code-hinting. Fundamentally, IMO, a string-only resource system is a simple lookup table of a string key to a longer string. Then for organizational purposes folks tend to group those keys into bundles. What we do today is bake classes for these bundles. Then we install these classes into a manager at startup time. And we do that for error strings you may never see, and Alert labels you hopefully will not see before the first screen appears. And the classes are actually quite big compared to simply embedding a string table in the SWF (or loading the string table at runtime). Also, it isn't clear you need a class. You might be able to us= e simple dynamic objects instead. And if we decide that classes have too much overhead and simply use dynamic objects, what would then happen to code hinting? There wouldn't be any classes to hint. How would you find spelling errors in the keys? I'd hate to see us drag down runtime performance just so you can get code-hinting. = I think some IDE will someday be smart enough to look at the string tables an= d help you get your keys right. --=20 Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui