RCall.jl VS cxx

Compare RCall.jl vs cxx and see what are their differences.

cxx

Safe interop between Rust and C++ (by dtolnay)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
RCall.jl cxx
8 97
310 5,485
1.0% -
5.5 9.3
20 days ago 3 days ago
Julia Rust
GNU General Public License v3.0 or later Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

RCall.jl

Posts with mentions or reviews of RCall.jl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-04.
  • Makie, a modern and fast plotting library for Julia
    3 projects | news.ycombinator.com | 4 Jul 2023
    I don't use it personally, but RCall.jl[1] is the main R interop package in Julia. You could call libraries that have no equivalent in Julia using that and write your own analyses in Julia instead.

    [1] https://github.com/JuliaInterop/RCall.jl

  • Making Python 100x faster with less than 100 lines of Rust
    21 projects | news.ycombinator.com | 29 Mar 2023
    You can have your cake and eat it with the likes of

    * PythonCall.jl - https://github.com/cjdoris/PythonCall.jl

    * NodeCall.jl - https://github.com/sunoru/NodeCall.j

    * RCall.jl - https://github.com/JuliaInterop/RCall.jl

    I tend to use Julia for most things and then just dip into another language’s ecosystem if I can’t find something to do the job and it’s too complex to build myself

  • Interoperability in Julia
    3 projects | dev.to | 23 Jan 2022
    To inter-operate Julia with the R language, the RCall package is used. Run the following commands on the Julia REPL
  • Convert Random Forest from Julia to R
    2 projects | /r/Julia | 10 Jun 2021
    https://github.com/JuliaInterop/RCall.jl may help
  • I'm considering Rust, Go, or Julia for my next language and I'd like to hear your thoughts on these
    12 projects | /r/rust | 16 Apr 2021
    If you need to bindings to your existing R packages then Julia is the way. Check out RCall.jl
  • translate R code to Julia code
    1 project | /r/Julia | 26 Mar 2021
    I have no experience with R, but maybe this will be of use: https://github.com/JuliaInterop/RCall.jl
  • Julia 1.6: what has changed since Julia 1.0?
    9 projects | news.ycombinator.com | 14 Feb 2021
    You can use RCall to use R from Julia: https://github.com/JuliaInterop/RCall.jl
  • Julia Update: Adoption Keeps Climbing; Is It a Python Challenger?
    17 projects | news.ycombinator.com | 18 Jan 2021
    I worked with R and Python during the last 3 years but learning and dabbling with Julia since 0.6. Since the availability of [PyCall.jl] and [RCall.jl], the transition to Julia can already be easier for Python/R users.

    I agree that most of the time data wrangling is super confortable in R due to the syntax flexibility exploited by the big packages (tidyverse/data.table/etc). At the same time, Julia and R share a bigger heritage from Lisp influence that with Python, because R is also a Lisp-ish language (see [Advanced R, Metaprogramming]). My main grip from the R ecosystem is not that most of the perfomance sensitive packages are written in C/C++/Fortran but are written so deeply interconnect with the R environment that porting them to Julia that provide also an easy and good interface to C/C++/Fortran (and more see [Julia Interop] repo) seems impossible for some of them.

    I also think that Julia reach to broader scientific programming public than R, where it overlaps with Python sometimes but provides the Matlab/Octave public with an better alternative. I don't expected to see all the habits from those communities merge into Julia ecosystem. On the other side, I think that Julia bigger reach will avoid to fall into the "base" vs "tidyverse" vs "something else in-between" that R is now.

    [PyCall.jl]: https://github.com/JuliaPy/PyCall.jl

    [RCall.jl]: https://github.com/JuliaInterop/RCall.jl

    [Julia Interop]: https://github.com/JuliaInterop

    [Advanced R, Metaprogramming] by Hadley Wickham: https://adv-r.hadley.nz/metaprogramming.html

cxx

Posts with mentions or reviews of cxx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-07.
  • Rust is having a positive effect in C/C++
    2 projects | /r/rust | 7 Dec 2023
    There are cxx and autocxx, what else do you propose to do?
  • Interoperability: Swift’s Super Power
    1 project | news.ycombinator.com | 22 Sep 2023
    I would like to see a comparison of how this compares to Rust. In terms of interoperability it has Cxx (https://cxx.rs) to offer safe bindings to C++ but also has great support for Android, Linux and many other systems. You don't even need to hack together Windows bindings (as explained in the blog post) because Microsoft offers official bindings (https://crates.io/crates/windows). I'm not sure if I'd call it a superpower if any potential interoperability has to be written to be used (compared to it already being available). Or rather, in comparison to what is interoperability a Swift superpower? Certainly not C++ or C which can be used in a far wider set of targets.
  • Rust Cryptography Should Be Written in Rust
    10 projects | news.ycombinator.com | 26 Aug 2023
    We selected Qt as a cross-platform solution. The C++/Rust interface is the clunkiest and ugliest part of the application, and rather complex because some state is shared between several windows in the GUI and several threads in the backend, and any component might modify that state at any time, and updates have to be transmitted to the other components without introducing inconsistencies. Using cxx [1] helped a little, though.

    The project began in 2020, and I'm not sure what I'd choose as a GUI framework today – definitely not Qt Widgets, though.

    [1] https://cxx.rs/

  • Link a C static library to rust cargo project
    2 projects | /r/rust | 24 Jun 2023
    If the build process for the C library isn't too involved I recommend using cxx bridge (https://cxx.rs/) and letting cargo handle the build and linking. cxx basically allows you to describe the bidirectional interface (although it sounds like you only need 1 direction, which is fine too) in Rust code and it provides a "good enough" API for compiling C code inside the build.rs file.
  • ffizz: Build a Beautiful C API in Rust
    6 projects | dev.to | 20 Jun 2023
    The tooling for the first kind -- calling Rust from another language -- is a bit less developed, and tends to rely on code generation that doesn't necessarily produce a natural C API. cbindgen, uniffi, cxx, and Diplomat all take this course.
  • Best practices in creating a Rust API for a C++ library? Seeking advice from those who've done it before.
    7 projects | /r/rust | 26 May 2023
    I would like to utilize OMPL's functionality in Rust code, so I want to call into OMPL C++ code somehow in Rust. I've seen two (non-mutually-exclusive) options so far: - rust-cpp, which allows you to write C++ code in Rust within the cpp!() macro. - cxx, which allows you to define both sides of the FFI boundary manually (as opposed to bindgen's automatic generation).
  • Hey Rustaceans! Got a question? Ask here (20/2023)!
    4 projects | /r/rust | 15 May 2023
    I'm not sure how to do this in cxx; issues like https://github.com/dtolnay/cxx/issues/447 suggest that this isn't settled yet?
  • Hello r/Rust! We are Meta Engineers who created the Open Source Buck2 Build System! Ask us anything! [Mod approved]
    9 projects | /r/rust | 3 May 2023
    I use non-vendored dependencies for the Buck build in https://github.com/dtolnay/cxx.
  • Microsoft is rewriting core Windows libraries in Rust
    6 projects | /r/programming | 29 Apr 2023
    There's also the cpp and cxx crates for doing C++/Rust interop, but they probably aren't appropriate to use in all cases. The C ABI is definitely the safest way to go unless you're really trying to marry Rust and C++ code bases, not just writing library bindings.
  • How can I use rust libraries in C++
    2 projects | /r/cpp_questions | 16 Apr 2023
    There's also cxx (can't vouch for it personally but it claims to make things a lot easier) https://github.com/dtolnay/cxx

What are some alternatives?

When comparing RCall.jl and cxx you can also consider the following projects:

Makie.jl - Interactive data visualizations and plotting in Julia

cbindgen - A project for generating C bindings from Rust code

org-mode - This is a MIRROR only, do not send PR.

rust-bindgen - Automatically generates Rust FFI bindings to C (and some C++) libraries.

Chain.jl - A Julia package for piping a value through a series of transformation expressions using a more convenient syntax than Julia's native piping functionality.

autocxx - Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers

cmssw - CMS Offline Software

uniffi-rs - a multi-language bindings generator for rust

Revise.jl - Automatically update function definitions in a running Julia session

rust-cpp - Embed C++ directly inside your rust code!

PyCall.jl - Package to call Python functions from the Julia language

ritual - Use C++ libraries from Rust