Git Product home page Git Product logo

Comments (3)

paleolimbot avatar paleolimbot commented on July 23, 2024 1

A while back I was involved in implementing Arrow UDFs and the challenge was basically that R code must execute on the same thread, so there is a slightly awkward dance where whenever Arrow does something that might execute some R code (like a user-defined function), we have to launch a thread to do "do arrow stuff" and run an event loop on the R thread that waits for R tasks that need executing on the other thread.

Some (not so) light reading that might be relevant (I am not sure how similar DuckDB UDFs are to Arrow UDFs):

https://github.com/apache/arrow/blob/fd11b7a042f0a020a0cde34e043ad2e77752bca6/r/src/safe-call-into-r.h

https://github.com/apache/arrow/blob/fd11b7a042f0a020a0cde34e043ad2e77752bca6/r/src/compute.cpp#L633-L788

from duckdb-r.

alejandrohagan avatar alejandrohagan commented on July 23, 2024 1

I'm just here to lend my support.

I'm building shiny apps with duckdb back ends and it would be so fantastic if we could get R UDFs.

from duckdb-r.

ran-codes avatar ran-codes commented on July 23, 2024 1

coming back to this. Yes I think happy to contribute as well.

@paleolimbot do you have any PR for other duckdb features similiar to this that potentially itnerested contributors can get a glimpse at just to try to understand at a high level the work that would have to happen for this?

from duckdb-r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.