Return-Path: X-Original-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-directmemory-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 8EF3396C9 for ; Tue, 14 Feb 2012 21:56:16 +0000 (UTC) Received: (qmail 86847 invoked by uid 500); 14 Feb 2012 21:56:16 -0000 Delivered-To: apmail-incubator-directmemory-dev-archive@incubator.apache.org Received: (qmail 86797 invoked by uid 500); 14 Feb 2012 21:56:16 -0000 Mailing-List: contact directmemory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: directmemory-dev@incubator.apache.org Delivered-To: mailing list directmemory-dev@incubator.apache.org Received: (qmail 86788 invoked by uid 99); 14 Feb 2012 21:56:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 21:56:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simone.tripodi@gmail.com designates 209.85.216.47 as permitted sender) Received: from [209.85.216.47] (HELO mail-qw0-f47.google.com) (209.85.216.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2012 21:56:10 +0000 Received: by qadz30 with SMTP id z30so2866864qad.6 for ; Tue, 14 Feb 2012 13:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=DF8dKw4XUOclaSmd9VRcxyFQxbV/aWJMLQpBvcdQoqs=; b=XBassnmYBxUyXUDCWm3D2oR9r1DD4ikC8A3Qk/33OQoP7LRC7XVX/IAXZjB6Xon3eF ywmusCGWlv9Cjva0KbO0UppHu9b0p1GQqTURlVURhu+j1R4Y+9DlbZZV8ZMaSJo2Ljbl 097wqUPgEwNyqxnt5Ukt32o1GtbdyGS+ISvtg= MIME-Version: 1.0 Received: by 10.229.137.18 with SMTP id u18mr13376639qct.153.1329256549563; Tue, 14 Feb 2012 13:55:49 -0800 (PST) Sender: simone.tripodi@gmail.com Received: by 10.224.195.73 with HTTP; Tue, 14 Feb 2012 13:55:49 -0800 (PST) Date: Tue, 14 Feb 2012 22:55:49 +0100 X-Google-Sender-Auth: l4IW8bJnydscrTEdmffWwIidSMI Message-ID: Subject: measures hierarchy From: Simone Tripodi To: directmemory-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi *, actually Sizing has the following hierarchy: - Sizing | `- Heap | `- Memory | `- Ram | `- Space what I see in the current codebase is that extension classes don't add any semantic, I mean calling {{Ram.inKb( size )}} is exactly the same of calling {{Space.inKb( size )}}... users can safety exchange them without any risk to have a compilation failure, so... what is the advantage of keeping multiple implementations of same methods? For what I can see, we can happily living with {{Sizing}} - maybe renaming it to {{Memory}} that sounds more self-explaining... OTOH, in the case we want to work with more semantic, it would be different if each method in each class would return a declaring class object, I mean: Ram inKb( size ) instead of int inKb( size ) Of course, I assume some methods should be modified to accept the right type... Thoughts? Many thanks in advance, all the best! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/