From owner-freebsd-questions@FreeBSD.ORG Wed Jun 6 19:11:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 985E41065673; Wed, 6 Jun 2012 19:11:54 +0000 (UTC) (envelope-from bunchou@googlemail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id E519F8FC16; Wed, 6 Jun 2012 19:11:53 +0000 (UTC) Received: by bkvi18 with SMTP id i18so7683287bkv.13 for ; Wed, 06 Jun 2012 12:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=E2H79muTw6hoOBXgMzlIskA5yfoMO+xvbklTII5f2TU=; b=dd3BTprL+JACJWJgNkOT8ivZWy3Qdwy1I6kDOR0Fd2qSfg3BzZe92WsFgJody6BEQ8 +wh21HCkGBAXJxFYu00OxRCzTmEhLVHwX3DzzbCFu+2kC2lY+IxnhT0p+fSgkKUZjK/3 cCTMSpN8CWH2VTjE/OCtzhuyqQ3p2D0UbQl/KGh1SvCf14bt1nkc0dtl+VoOf7NrypJz PwnteSsQfGkn7IWZNLX5GM7CxIZXHzFdE/o3wnRM8+yKqOY5/Hd5jI9dVzBQS6/kzp2u x/CP6dyfy4881qbm1E18eLCI+51QOQIk9ojORim02Ob73S5bkSfMzr3sJjtiuHbandxQ jgGg== Received: by 10.205.134.6 with SMTP id ia6mr13617108bkc.51.1339009907135; Wed, 06 Jun 2012 12:11:47 -0700 (PDT) Received: from kuro.5550h.net (p54AEFAE2.dip.t-dialin.net. [84.174.250.226]) by mx.google.com with ESMTPS id o4sm1000736bkv.15.2012.06.06.12.11.45 (version=SSLv3 cipher=OTHER); Wed, 06 Jun 2012 12:11:46 -0700 (PDT) Date: Wed, 6 Jun 2012 21:11:44 +0200 From: "=?UTF-8?B?5paH6bOl?=" To: Matthew Seaman Message-ID: <20120606211144.5135cce9@kuro.5550h.net> In-Reply-To: <4FCF9C07.2000607@FreeBSD.org> References: <4FCF9333.70201@speakeasy.org> <4FCF9C07.2000607@FreeBSD.org> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@FreeBSD.org Subject: Re: Why Clang X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2012 19:11:54 -0000 On Wed, 06 Jun 2012 19:05:59 +0100 Matthew Seaman wrote: > On 06/06/2012 18:28, Thomas D. Dean wrote: > > Has the discussion on why change to clang been made available? >=20 > Yes, endlessly. Mostly on lists like freebsd-hackers@... and at > various conferences and developer summits. Check the list archives. >=20 > > I would like to know the reasoning. >=20 > It's simple. gcc-4.2, which is what the base system compiler is > derived from is: >=20 > * fairly old >=20 > * doesn't perform as well as more recent compilers >=20 > * doesn't adhere to recently established standards There's another good reason for clang which nobody mentioned so far: clear diagnostics. If you ever had to wade through gcc's debug output and compare several thousand character long template instantiations, just to find where they differ and then see the clear problem descriptions that clang produces instead, you'll understand what I mean.=20 And in combination with libc++, which just arrived on stable, I am finally able to use all the features of C++11 that I want. Try to use e.g. std::regex even on g++47, and just see what happens. Of course, getting rid of GPL is an added benefit ;) After reading all those complaints, I just had to respond and thank everyone involved very much for importing clang and libc++. Great job well done! Best regards, =E6=96=87=E9=B3=A5