From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18086 invoked by alias); 10 Dec 2009 13:42:26 -0000 Received: (qmail 18070 invoked by uid 22791); 10 Dec 2009 13:42:25 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail.phy.duke.edu (HELO mail.phy.duke.edu) (152.3.182.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Dec 2009 13:42:17 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.phy.duke.edu (Postfix) with ESMTP id 309B0780B1; Thu, 10 Dec 2009 08:42:13 -0500 (EST) Received: from mail.phy.duke.edu ([127.0.0.1]) by localhost (mail.phy.duke.edu [127.0.0.1]) (amavisd-new, port 10026) with LMTP id p+TyBSIsFvZ5; Thu, 10 Dec 2009 08:42:13 -0500 (EST) Received: from lilith.rgb.private.net (cpe-069-134-079-008.nc.res.rr.com [69.134.79.8]) by mail.phy.duke.edu (Postfix) with ESMTP id ED255780B0; Thu, 10 Dec 2009 08:42:12 -0500 (EST) Date: Thu, 10 Dec 2009 13:42:00 -0000 From: "Robert G. Brown" To: James Amundson cc: gsl-discuss@sourceware.org, Brian Gough , Gerard Jungman Subject: Re: using GSL with C++ (was Re: gsl container designs) In-Reply-To: <4B20105C.3080501@fnal.gov> Message-ID: References: <1259110486.3028.69.camel@manticore.lanl.gov> <4B20105C.3080501@fnal.gov> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00057.txt.bz2 On Wed, 9 Dec 2009, James Amundson wrote: > On 12/04/2009 12:36 PM, Brian Gough wrote: >> At Tue, 24 Nov 2009 17:54:46 -0700, >> Gerard Jungman wrote: >> >>> Here are header files for a couple different approaches to containers. >> Regarding the introductory points. >> >> 2a+b) While we may have had some kind of goal of supporting C++ I >> don't think it's worth encouraging that today as the gap between the >> languages has widened so much since the start of the project. >> > > I, for one, use GSL almost exclusively from C++. When I'm not using C++, I am > usually using Python. How are other readers of this list using GSL? Are you > using a pure C environment, or do you use C++ and/or other languages? > > I have no interest in debating the relative merits of various languages; I am > just curious to know what is happening in practice. I use C only. Consequently I come down in favor of using casts to type e.g. generalized tensor forms, because pointer-based indirection can lead to reasonably efficient, highly readable code (and because the GSL really needs a generalized tensor form -- the computational universe of interest to many scientists is not just one or two dimensional, rectangular, with indices starting at 0 or 1. rgb Robert G. Brown http://www.phy.duke.edu/~rgb/ Duke University Dept. of Physics, Box 90305 Durham, N.C. 27708-0305 Phone: 1-919-660-2567 Fax: 919-660-2525 email:rgb@phy.duke.edu