From csardi.gabor at gmail.com  Mon Jun 22 15:56:26 2015
From: csardi.gabor at gmail.com (=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=)
Date: Mon, 22 Jun 2015 09:56:26 -0400
Subject: [Rd] Plans to improve reference classes?
In-Reply-To: <CAOQ5NycbBMTRQrtoXU=UrX0J4HLX-CONTDndSB=gKn7gV9pJ5w@mail.gmail.com>
References: <da993e9e95c744a18958291ae25b898d@CRIUS2013.keygene.local>
	<CAOQ5NycbBMTRQrtoXU=UrX0J4HLX-CONTDndSB=gKn7gV9pJ5w@mail.gmail.com>
Message-ID: <CABtg=KnNycpAck+FhJRXbfdkKLsDM54V6YUDKrNHSZDtGr1dBw@mail.gmail.com>

On Mon, Jun 22, 2015 at 9:49 AM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
[...]
> Would you please provide the details on this test case, including your
> benchmarks, and what you are trying to achieve at the high-level?

You can also see http://rpubs.com/wch/17459
Linked from https://github.com/wch/R6/ and also from CRAN, actually:
http://cran.rstudio.com/web/packages/R6/README.html

> On Wed, Jun 17, 2015 at 4:55 AM, Niek Bouman <niek.bouman at keygene.com> wrote:
[...]
>> Background:
>> For a new project we will have many mutable objects, and we therefore want to use a construction like reference classes in this project. However, we observed that the speed performance of our implementation (using reference classes) for a simple test case is rather poor compared to a non-OOP implementation. Further, turning the reference classes into R6classes (using the R6 package) gave the best performance. As speed is an issue in our project, this would for us be an important reason  to use R6 classes instead of reference classes. The drawback, of course, is that the R6 package is developed by a single developer and that further development is therefore less certain than if we would use reference classes, which are in the core. Ideally we would like a system like R6 in the core of R. Are you planning to support R6, or improve reference classes to be on par with (or better than) R6 in terms of speed, in the core?

R6 is backed by RStudio, for example their Shiny framework uses R6
classes, so I would not be too worried about this.

Gabor

[...]



[Rd] Plans to improve reference classes?
=?UTF-8?B?R8OhYm9yIENzw6FyZGk=?=