Re: [Rd] Non-default build options

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Wed, 25 Jan 2012 15:29:49 -0600

On 25 January 2012 at 12:33, Ivan Zaigralin wrote:
| Hi! I am a current maintainer of the R slackbuild script (for Slackware
| GNU/Linux distribution). I received requests from users to build R with
| --enable-R-shlib and --enable-BLAS-shlib, so now I am trying to decide
| whether to do so by default.
|
| Is there a downside to building R with either option?

To some, building as a shared library is a bad choice because a few percent of peak performance may be left behind. That's the static vs dynamic linking debate of yore. [ And whether this applies to an interpreted language which is not going to be the fastest horse in any race is best left for another debate... ]

To others, it gives you a large amount of flexibility and allows a few good things:

  1. having R as a shared library permits easier linking against R (which has after all a pretty stable APU) as well as embedding into other applications; examples are rApache, rkward, littler (ie "r"), RInside, and probably a few I am forgetting now
  2. having BLAS as a defined interface is wonderful for swapping default (unaccelerated) BLAS for accelerated BLAS like Atlas, Goto, OpenBLAS, MKL, ... Several of these BLAS have in fact been available for either Debian or Ubuntu in some form (sometimes involving a helper script as eg Goto could never be part of an FLOSS distro).

I have been somewhat involved with the Debian builds of R since the late 1990s and we enthusiastically support both options. We have had a drop-in replacement of Atlas (to accelerate linear algebra) for probably a decade. Derivative distro like Ubuntu, Mint, Arch, ... don't seem to mind, and neither do the users.

In fact, apart from the repated calls by one vocal R Core member (who, to the best of my knowledge, uses neither Debian nor a derivative), nobody ever asked for a change in this policy...

So my two cents would be to go for it as your users suggest.

Cheers, Dirk

|
| xapplication/pgp-signature [Click mouse-2 to save to a file]
|
| ----------------------------------------------------------------------
| ______________________________________________
| R-devel_at_r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 25 Jan 2012 - 21:32:03 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 26 Jan 2012 - 14:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive