arrow-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes McKinney <wesmck...@gmail.com>
Subject Re: Sharing a C++-level pointer between Python and R
Date Sun, 03 Jan 2021 02:36:05 GMT
Hi Thomas — no worries. Plasma is for brokering shared memory between
processes. Here we are talking about passing data structures between the
Python and R interpreter running in the same process.

On Sat, Jan 2, 2021 at 6:46 PM Thomas Browne <thomas@crvm.io> wrote:

> Apols new user here - I thought this kind of use case is what the plasma
> store was for?
>
> On 03/01/2021 00:20, Wes McKinney wrote:
> > We can go R to/from Python from an R perspective with reticulate
> >
> > https://arrow.apache.org/docs/r/articles/python.html
> >
> > There are unit tests attesting to this working:
> >
> >
> https://github.com/apache/arrow/blob/master/r/tests/testthat/test-python.R
> >
> > However, I don't know of anyone trying to get interop from a Python
> > perspective with rpy2; there may be a small amount of plumbing needed
> > to get it working, others may know more.
> >
> > On Sat, Jan 2, 2021 at 5:20 PM Laurent Gautier <lgautier@gmail.com>
> wrote:
> >> Hi,
> >>
> >> I am looking at sharing a pointer between Python and R. For example
> create an Arrow object with Python, perform initial filtering, and then
> pass a shared pointer to R through rpy2 (meaning that an R6 object is
> created from this pointer and R package arrow).
> >>
> >> I found in the source a file that suggest thats Python-to-R is either
> planned or may be even already functional:
> https://github.com/apache/arrow/blob/master/r/src/py-to-r.cpp
> >> However, I did not find documentation about it.
> >>
> >> Would anyone here know more about this?
> >>
> >> Best,
> >>
> >> Laurent
> >>
> >>
>

Mime
View raw message