Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 93719 invoked from network); 29 Oct 2006 18:15:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Oct 2006 18:15:46 -0000 Received: (qmail 22129 invoked by uid 500); 29 Oct 2006 18:15:54 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 21975 invoked by uid 500); 29 Oct 2006 18:15:54 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 21962 invoked by uid 99); 29 Oct 2006 18:15:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Oct 2006 10:15:54 -0800 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 216.86.168.178 is neither permitted nor denied by domain of geir@pobox.com) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Oct 2006 10:15:42 -0800 Received: from [192.168.1.104] (unknown [67.86.14.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id AD3E25194E for ; Sun, 29 Oct 2006 13:15:20 -0500 (EST) Message-ID: <4544EFBE.2080704@pobox.com> Date: Sun, 29 Oct 2006 13:15:26 -0500 From: "Geir Magnusson Jr." Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib] Preprocessor (was Re: [classlib][rmi] Code smell - Thread.sleep() in ActivationGroup method) References: <3b3f27c60610282200w2445a56ena39736e4a6c4fed5@mail.gmail.com> <906dd82e0610290109h52808a4fo79eb800c7a7bbb1@mail.gmail.com> <4544A6F7.3070807@pobox.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mikhail Fursov wrote: > On 10/29/06, *Geir Magnusson Jr.* > wrote: > > > 1) The Logging Debate That Won't Die - we don't want to encumber our > "production" code with logging or even with runtime enablement checks > for logging i.e. > > if (logging.isDebugEnabled()) > > but it's clear that some people still want to use it for debugging. > > > Just a small idea: Let teach JIT to purge this code unless special option is ON > ? Doing this we solve performance issue at least . Well, then we have a classlibrary that is only good for use with JIT's that have been specially trained to find code that looks like very common code for logging implementations. The results could be hilarious, actually. > > If we did this, I assume that our build becomes a two step process, > first pre-process the code to create separate "buildable source", which > would go into source jars and such for debugging purposes. Then our > current javac/jar process. > > I'd also like to be able to work in an IDE with the pre-proc stuff > invisible if possible... > > > This is the main problem. Backporting of > your changes from the "buildable source" to the "source with > preprocessor" could have more overhead then support of a separate branch > for different Java version. No - you'd edit the original source directly - you wouldn't edit the pre-processed source. But a plugin would let you flip between original and processed... geir > > > > > -- > Mikhail Fursov