Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79C4A898A for ; Wed, 10 Aug 2011 19:39:13 +0000 (UTC) Received: (qmail 14434 invoked by uid 500); 10 Aug 2011 19:39:13 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 14284 invoked by uid 500); 10 Aug 2011 19:39:12 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 14276 invoked by uid 99); 10 Aug 2011 19:39:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 19:39:12 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 19:39:07 +0000 Received: from [192.168.178.20] (dslb-088-069-230-108.pools.arcor-ip.net [88.69.230.108]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MW7C9-1QpFbb0aan-00XJ9B; Wed, 10 Aug 2011 21:38:46 +0200 Message-ID: <4E42DE44.5090705@oliver-heger.de> Date: Wed, 10 Aug 2011 21:38:44 +0200 From: Oliver Heger User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [lang] Adding a Memoizer class References: <4E41983B.40201@oliver-heger.de> <2011619111603293442@unknownmsgid> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:fBM19BEvLYIg5ueaoD5E6psvB3QYQjSd9t941sCq4gD AL4K/BRLUjfdoCMsFIxetM28loPSKuREJrRq5DoW6osiCpPeFs cyIWjJaCtV+T3s39YYOn8kpkBbpICjFGpsY4ewebbzjVmF4Mle cFWyi6BBt09hRYINqP0Dxmd4uKF7vAeqjOLpVK2uXXGekJoVVe Mni79J2px6LmuG10BE0Hw== Am 10.08.2011 01:23, schrieb Gary Gregory: > On Tue, Aug 9, 2011 at 6:40 PM, Simone Tripodi wrote: >> Good news! :) > > Well... I am having second thoughts now baed on Tim's reply: > > On Tue, Aug 9, 2011 at 6:13 PM, Tim Peierls wrote: >> Probably not a good idea to use Memoizer unchanged from the book, though. >> See Guava's MapMaker for ideas about how to turn Memoizer into a >> production-ready utility. >> >> --tim >> > > Now I am thinking of dumping my Memoizer in favor of MapMaker... not > sure though. It seems smelly to bring in MapMaker into [lang]. > > Thoughts, Just had a short glance on the API of MapMaker. My impression is that it is out of scope for [lang] as it is a full blown collection with many sophisticated features. Compared to this a Memoizer is a pretty simplistic component, but it may nevertheless be useful for some cases. It could be slightly extended, e.g. by providing a flush() operation. And I would recommend another name. At least for me as non-native speaker it is hard to imagine what a Memoizer is supposed to do. I would probably use something with "Cache" in its name. Oliver > > Gary > >> >> http://people.apache.org/~simonetripodi/ >> http://www.99soft.org/ >> >> >> >> On Tue, Aug 9, 2011 at 11:49 PM, Gary Gregory wrote: >>> We are good! I asked Brian, one of the authors and the code is in the >>> public domain: >>> >>> On Tue, Aug 9, 2011 at 5:40 PM, Brian Goetz wrote: >>>> No license issues -- the code is in the public domain: >>>> >>>> Written by Brian Goetz and Tim Peierls with assistance from members of >>>> JCP JSR-166 Expert Group and released to the public domain, as explained >>>> at >>>> http://creativecommons.org/licenses/publicdomain >>>> >>>> >>>> Code for the samples can be downloaded from >>>> http://www.jcip.net/listings.html. >>>> >>>> Cheers, >>>> -Brian >>>> >>>> >>>> On 8/9/2011 5:38 PM, Gary Gregory wrote: >>>>> >>>>> Hi Brian, >>>>> >>>>> I would like to include a Memoizer in the next release of Apache >>>>> Commons Lang [1]. >>>>> >>>>> Can we use the Memoizer pattern from "Java Concurrency in Practice"? I >>>>> think I would reuse the code from the class Memoizer and change names, >>>>> things like that. >>>>> >>>>> We are talking about this on the Lang mailing list and are wondering >>>>> if there are any licensing issues. >>>>> >>>>> [1] https://commons.apache.org/lang/ >>>>> >>>> >>> >>> >>> >>> -- >>> Thank you, >>> Gary >>> >>> >>> On Tue, Aug 9, 2011 at 5:06 PM, Gary Gregory wrote: >>>> On Aug 9, 2011, at 16:28, Oliver Heger wrote: >>>> >>>>> Am 09.08.2011 20:57, schrieb Gary Gregory: >>>>>> Hello All, >>>>>> >>>>>> I am currently using a class like the Memoizer class [1] from "Java >>>>>> Concurrency in Practice" [2], a great book. >>>>>> >>>>>> It would fit perfectly in org.apache.commons.lang3.concurrent. >>>>>> >>>>>> Any thoughts for or against? >>>>> >>>>> +1, this would be a nice addition to the concurrent package. Are there any licensing issues? >>>> >>>> Good question. It would not be a char for char copy but the pattern >>>> would be the same. I'll look around... >>>> >>>> Gary >>>> >>>>> >>>>> Oliver >>>>> >>>>>> >>>>>> Thank you, >>>>>> >>>>>> Gary >>>>>> >>>>>> [1] http://jcip.net/listings/Memoizer.java >>>>>> [2] http://jcip.net/ >>>>>> >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>>>> For additional commands, e-mail: dev-help@commons.apache.org >>>>> >>>> >>> >>> >>> >>> -- >>> Thank you, >>> Gary >>> >>> http://garygregory.wordpress.com/ >>> http://garygregory.com/ >>> http://people.apache.org/~ggregory/ >>> http://twitter.com/GaryGregory >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >>> For additional commands, e-mail: dev-help@commons.apache.org >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org >> For additional commands, e-mail: dev-help@commons.apache.org >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org