From user-return-874-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Sat Jan 2 23:20:30 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 004B5180670 for ; Sun, 3 Jan 2021 00:20:30 +0100 (CET) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 297946519A for ; Sat, 2 Jan 2021 23:20:29 +0000 (UTC) Received: (qmail 4268 invoked by uid 500); 2 Jan 2021 23:20:28 -0000 Mailing-List: contact user-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@arrow.apache.org Delivered-To: mailing list user@arrow.apache.org Received: (qmail 4249 invoked by uid 99); 2 Jan 2021 23:20:28 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jan 2021 23:20:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id 98E18C0111 for ; Sat, 2 Jan 2021 23:20:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id R4DAi7NugfCX for ; Sat, 2 Jan 2021 23:20:27 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::12b; helo=mail-lf1-x12b.google.com; envelope-from=lgautier@gmail.com; receiver= Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id EC2657FBC4 for ; Sat, 2 Jan 2021 23:20:26 +0000 (UTC) Received: by mail-lf1-x12b.google.com with SMTP id 23so56015878lfg.10 for ; Sat, 02 Jan 2021 15:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=C6/wrwjKEm1KqKNJM4bkXh8h64FlzW07eA8X5cWz47I=; b=ghwZwn8z3XVFsjuc0FQNXTbS5/kedGZq1TyqP/hPp6WRlo+andDqwCLeeQCw9F5pbu 1eu8QHLjA2O86rU0RglddUnM2mmPK3+u1IjzzQxmJ0ufrTfuktHX/tT7rWPe9A0LZjDz BpSg2RBCvO+CEbwUwryV2fsI4aEC4ed8XycejUB8R/rpZZz6PwdPv64JyaV8Lk+r3nhQ SODbuYnMvJzfvwHvxIQFpDqbdhrDn+hZcGEWgCaR3Ap4XVX5ZGphPrsMQ19aM1voCy5b jvva5OJVGY+ZDrHm0bgvpi/ZxGqmLKFcVmwlgnIEg+e0VN+sU9XtTK24n1bbelDXc0dN W5iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=C6/wrwjKEm1KqKNJM4bkXh8h64FlzW07eA8X5cWz47I=; b=sFGnllMcxrh9bi7cwRFytoXpPUaZHMDjNSH5j3ZuNL8s8LY7o8hNcwYLG9DYLayBvu HYNEzdGKVvF+zZPGyhCNJkMnqlV9MZF2IPwmdU4JUJlBeWuYq1b0915nJuQycrjv0WOA 1gZJeLsGrLTg+9mKLAwUGqwF7r7M49jQ89yS+5MUHx/4NIdQgTaTkea6mTQSwf5SY/yA 8HCmIwcVj6jwdMdE9OG+HMWiJvFMGXWI6ukqneoaNXV9gnsrS6Y4MpM2YUwTavb7yMwY cWOMxuFyL7e4ETxklndozH3qeOFPQWDS9JZIexfwvPiqhCSTm0Bpfvbfn7mCrTAhWaAm 0+8w== X-Gm-Message-State: AOAM531hblMUgO4sweQvmkNeHs/flWQqfpmxuKQsWWdgnpEV9TehIXKF vMj9uBBzKj4WU8sdjrIFjHqlkwWVZawQvJPxHke5JazbrFH7wA== X-Google-Smtp-Source: ABdhPJw0yi5HWNBvkM6l5suEWmirXs0wPasGMf/bIrbm7CU6SAmSh1xgI/538JH2BIUx8Govre+g0gGUJjrzVgjYE50= X-Received: by 2002:a2e:a402:: with SMTP id p2mr32012386ljn.270.1609629620210; Sat, 02 Jan 2021 15:20:20 -0800 (PST) MIME-Version: 1.0 From: Laurent Gautier Date: Sat, 2 Jan 2021 18:20:09 -0500 Message-ID: Subject: Sharing a C++-level pointer between Python and R To: user@arrow.apache.org Content-Type: multipart/alternative; boundary="000000000000bb90df05b7f3198a" --000000000000bb90df05b7f3198a Content-Type: text/plain; charset="UTF-8" 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 --000000000000bb90df05b7f3198a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I am looking at sharing a pointer= =20 between Python and R. For example create an Arrow object with Python, perform initial filtering, and then pass a shared=20 pointer to R through rpy2 (meaning that an R6 object is created from=20 this pointer and R package arrow).

I found in = the source a file that suggest thats Python-to-R is either planned or may b= e even already functional: https://github.com/apache/arrow= /blob/master/r/src/py-to-r.cpp
However, I did not find docume= ntation about it.

Would anyone here know more abou= t this?

Best,

Laurent

--000000000000bb90df05b7f3198a--