From user-return-876-archive-asf-public=cust-asf.ponee.io@arrow.apache.org Sun Jan 3 00:46:23 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 49434180670 for ; Sun, 3 Jan 2021 01:46:23 +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 9932B64FF9 for ; Sun, 3 Jan 2021 00:46:22 +0000 (UTC) Received: (qmail 57543 invoked by uid 500); 3 Jan 2021 00:46:21 -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 57533 invoked by uid 99); 3 Jan 2021 00:46:21 -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; Sun, 03 Jan 2021 00:46:21 +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 6ED09BFD6E for ; Sun, 3 Jan 2021 00:46:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: -2.404 X-Spam-Level: X-Spam-Status: No, score=-2.404 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-2.403, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamproc1-he-fi.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=crvm-io.20150623.gappssmtp.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 e89_rH1Efozp for ; Sun, 3 Jan 2021 00:46:19 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::334; helo=mail-wm1-x334.google.com; envelope-from=thomas@crvm.io; receiver= Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 988D47FBC4 for ; Sun, 3 Jan 2021 00:46:19 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id g185so14447474wmf.3 for ; Sat, 02 Jan 2021 16:46:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=feLUCIPfIF8uX+72VhSod9jhuUyOWp5YxKN/yqcmv3o=; b=UD4KK1rK/wuGV0QBa2vkwBTvQfKj+Bfbj3ctek+JiVW844NDXCjjavoQSxeiiYepAr y3HutopgrfSaE5FzT4vWtRoncGA/hJz1RbCI9oNZi1f+p2eDqrSfzdp4HfM4A9ibAw27 ovKs49IINWAvj6rTISupJvWeZrOoyXl4vkWnAdIxaKW35NG/sweBjx6zkY3LYRcLALAn fqh97CMjm8AKl+1nmOgHPfjVfu9thUHW6Gq+cH3Mz/AC2C9v/xx6f0ORfEpmz2ZSQpwD IuemQZlbkL2BCzXl1arjSQeQINf/uCfox1BrjZ5qOl2u+VGR2wVfp8uhIgO3BrWTEohk aMFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=feLUCIPfIF8uX+72VhSod9jhuUyOWp5YxKN/yqcmv3o=; b=uiA+Qxe69RbwnBK16funpDL5TIfeiUI17E3mzlmolO4D4Wie8DPWDGfNI502jT/i5d djh98GQojYo19b91ZKj52Jt6l029bXFCTejIjCmakMTXjQJjHjKlxj6t7NI1kOprHiOM qneIStjZnQRI3IL41qXltQuTU7UsGgqXDt94TNVxgHasTo/rIicf3qzL6Yv9z205RZiK HwHP/e+CJma7HJFBLd2GsDpZ0HinjF4jUclOTZ+0EKwEgeGguJZGpwnX97TMR8NdAqCX OJdJDHSbZmYuPLgpw84DeomwqrtAceJayXtVSYqa5LIEmXVmfu82wK/Gb71Tbcidy6SL qQ2Q== X-Gm-Message-State: AOAM5329CY2n/EBBu9ZtBbIz5/4f9jBLBQ3yFsQ6JH1OamkQxLKtjcnQ zdgSjjhA1Hj7vD3AxAZqyjvQGfcbWmBLaFsXEEk= X-Google-Smtp-Source: ABdhPJwF4qqbShBtcf5sWS3FwB60lFXow5VJKXw2IDkqqPdVWtx8s1RqZFo47FsnuVYZpgVvTugC9A== X-Received: by 2002:a05:600c:3549:: with SMTP id i9mr19998750wmq.89.1609634773073; Sat, 02 Jan 2021 16:46:13 -0800 (PST) Received: from [192.168.1.127] (host-79-78-60-183.static.as9105.net. [79.78.60.183]) by smtp.gmail.com with ESMTPSA id q73sm28958622wme.44.2021.01.02.16.46.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Jan 2021 16:46:12 -0800 (PST) Subject: Re: Sharing a C++-level pointer between Python and R To: user@arrow.apache.org References: From: Thomas Browne Message-ID: Date: Sun, 3 Jan 2021 00:46:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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 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 >> >>