Return-Path: X-Original-To: apmail-reef-dev-archive@minotaur.apache.org Delivered-To: apmail-reef-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 6880F1839F for ; Sun, 27 Dec 2015 12:06:29 +0000 (UTC) Received: (qmail 2249 invoked by uid 500); 27 Dec 2015 12:06:29 -0000 Delivered-To: apmail-reef-dev-archive@reef.apache.org Received: (qmail 2214 invoked by uid 500); 27 Dec 2015 12:06:29 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 2201 invoked by uid 99); 27 Dec 2015 12:06:28 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Dec 2015 12:06:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 566B61A11BC for ; Sun, 27 Dec 2015 12:06:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 9WkP5k2eAg-x for ; Sun, 27 Dec 2015 12:06:19 +0000 (UTC) Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 6175C20467 for ; Sun, 27 Dec 2015 12:06:19 +0000 (UTC) Received: by mail-pf0-f180.google.com with SMTP id 65so55329564pff.3 for ; Sun, 27 Dec 2015 04:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=x7XnAZrluOgGJr6NUZ/0nB4av2Z8IwcewV2oHgclkRE=; b=DYkNeOTmw7XuSVTRFRbNg0JzH8AkyvxhZy192yOVJglrW4eI3Ka9IBzFkobuGGipun WkDMaoOmBYCttUywRFFDFFQN0v2N5BQ0N2ocPKtSJep1JTOX8shNdfkEn4fvnivXN2aL yRHC+7+MJUzAIFze6nfvrR9R+qh7cWyqFVoW8Uq8TDESKhcSgSJyBRKL+QZygTX3AzYE FAF9b+437bpZq7Byv/UdUhFJEWmITPqZmbp04+2FUdhaqvzy2wRg+qWtOFdE52u7jvSh iQW4yrmeiYJOtRrxwczyMsK0W7ttxdTrfEA1Cww9DgxSkA4avvN9yl590nRnF4bttlWP KEoQ== X-Received: by 10.98.70.12 with SMTP id t12mr45314914pfa.38.1451217973668; Sun, 27 Dec 2015 04:06:13 -0800 (PST) Received: from [192.168.0.2] ([203.100.188.76]) by smtp.gmail.com with ESMTPSA id 19sm39531183pfi.73.2015.12.27.04.06.11 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 27 Dec 2015 04:06:12 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: Add dependency to Immutables? From: Tae-Geon Um In-Reply-To: <5679CF9E.1080101@weimo.de> Date: Sun, 27 Dec 2015 21:06:09 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5679CF9E.1080101@weimo.de> To: dev@reef.apache.org X-Mailer: Apple Mail (2.2098) Hi,=20 I=E2=80=99ve take a look at it.=20 The advantages of Immutables are that 1) it can reduce the number of code lines - Simple immutable classes, just having simple getter methods, = can be generated easily. - But, if the class has complex getter methods (such as sum of = the vector elements), the reduction of code lines would not be huge. =20 The disadvantages of Immutables are that=20 1) It doesn=E2=80=99t seem that Immutables is compatible with Tang = @inject.=20 2) it does not support generics, such as Optional class in REEF. It seems that using Immutable has little merit to us. Any thoughts?=20 Taegeon > On Dec 23, 2015, at 7:33 AM, Markus Weimer wrote: >=20 > Hi, >=20 > I just came across the Immutables library[0]. This looks like a rather = handy tool to replace many of the boring immutable data classes in REEF = with generated code. The license is compatible with us. What do you = think? >=20 > Markus >=20 > [0]: http://immutables.github.io/