Re: [Rd] ALTREP: Design concept of alternative string

2019-05-10 Thread 介非王
Hi Gabriel, Thanks for your explanation, I totally understand that it is almost impossible to change the data structure of STRSXP. However, what I'm proposing is not about changing the internal representation, but rather about how we design and use the ALTREP API. I might do not state the workar

Re: [Rd] ALTREP: Design concept of alternative string

2019-05-09 Thread Gabriel Becker
Hi Jiefei, The issue here is that while the memory consequences of what you're describing may be true, this is simply how R handles character vector (what you're calling string) values internally. It doesn't actually have anything to do with ALTREP. Standard character vector SEXPs have an array of

[Rd] ALTREP: Design concept of alternative string

2019-05-09 Thread 介非王
Hello from Bioconductor, I'm developing a package to share R objects across clusters using boost library. The concept is similar to mmap package: https://cran.r-project.org/web/packages/mmap/index.html . However, I have a problem when I was trying to write Dataptr_method for the alternative string