search for: altstring

Displaying 8 results from an estimated 8 matches for "altstring".

2019 Dec 19
1
ALTREP string methods for substr and nchar
...e number of characters of a given string element and to return a substring of an element. Having these methods would allow retrieving these values without needing to create a CHARSXP for the full element data, which could potentially be costly for long elements. For example say you have an ALTREP altstring vector where each element holds the sequence of a single chromosome, it would be useful to query the lengths of each chromosome and retrieve the first 100 characters etc. without having to put the whole chromosome in memory. I realize there are tools in Bioconductor to handle this particular case,...
2019 Jul 23
3
Any plans for ALTREP lists (VECSXP)?
Hello, I was wondering if there were any plans for ALTREP lists (VECSXP)? It seems to me that they could be supported in a similar way to how ALTSTRING works, with Elt() and Set_elt() methods, or would there be some problems with that I?m not seeing due to lists not being atomic vectors? I was taking an approach of converting each list element (of a file-based list data structure) to an ALTREP representation to build up an ?ALTREP list?. This se...
2019 Jul 23
3
Any plans for ALTREP lists (VECSXP)?
...On Tue, Jul 23, 2019 at 9:09 AM Bemis, Kylie <k.bemis at northeastern.edu> > wrote: > > > > Hello, > > > > I was wondering if there were any plans for ALTREP lists (VECSXP)? > > > > It seems to me that they could be supported in a similar way to how > ALTSTRING works, with Elt() and Set_elt() methods, or would there be some > problems with that I?m not seeing due to lists not being atomic vectors? > > > > I was taking an approach of converting each list element (of a > file-based list data structure) to an ALTREP representation to build...
2019 Jul 24
1
[External] Re: Any plans for ALTREP lists (VECSXP)?
...astern.edu> > >> wrote: > >>> > >>> Hello, > >>> > >>> I was wondering if there were any plans for ALTREP lists (VECSXP)? > >>> > >>> It seems to me that they could be supported in a similar way to how > >> ALTSTRING works, with Elt() and Set_elt() methods, or would there be > some > >> problems with that I?m not seeing due to lists not being atomic vectors? > >>> > >>> I was taking an approach of converting each list element (of a > >> file-based list data structure...
2019 Jul 23
0
Any plans for ALTREP lists (VECSXP)?
...to lazily create the objects. Michael On Tue, Jul 23, 2019 at 9:09 AM Bemis, Kylie <k.bemis at northeastern.edu> wrote: > > Hello, > > I was wondering if there were any plans for ALTREP lists (VECSXP)? > > It seems to me that they could be supported in a similar way to how ALTSTRING works, with Elt() and Set_elt() methods, or would there be some problems with that I?m not seeing due to lists not being atomic vectors? > > I was taking an approach of converting each list element (of a file-based list data structure) to an ALTREP representation to build up an ?ALTREP list?....
2019 Jul 30
2
Questions regarding ALTREP_SET_ELT APIs
Hi all, I'm wondering if there is any way to define a `SET_ELT` function for an ALTREP class? I see there are ` ALTINTEGER_SET_ELT` etc. functions exported in Rinternal.h, but there is no corresponding ALTREP APIs to define them. The only way to set the value of an ALTREP is through a pointer, which will require that the ALTREP data is in memory. Is it on purpose? Will there be any plan to
2019 Jul 24
0
[External] Re: Any plans for ALTREP lists (VECSXP)?
...09 AM Bemis, Kylie <k.bemis at northeastern.edu> >> wrote: >>> >>> Hello, >>> >>> I was wondering if there were any plans for ALTREP lists (VECSXP)? >>> >>> It seems to me that they could be supported in a similar way to how >> ALTSTRING works, with Elt() and Set_elt() methods, or would there be some >> problems with that I?m not seeing due to lists not being atomic vectors? >>> >>> I was taking an approach of converting each list element (of a >> file-based list data structure) to an ALTREP representa...
2019 Jul 30
0
[External] Questions regarding ALTREP_SET_ELT APIs
...etc. functions exported > in Rinternal.h, but there is no corresponding ALTREP APIs to define them. > The only way to set the value of an ALTREP is through a pointer, which will > require that the ALTREP data is in memory. Is it on purpose? For now, yes. We do support a Set_elt method for ALTSTRING classes but not yet for others. I seem to recall that there are some issues with going there for others, but we'll probably take a closer look later this year. One thing to keep in mind is that the R pass-by-value semantics require that C code duplicate an object for which MAYBE_REFERENCED is...