One toolchain
Checks, formats and navigates the R you have today.
Plain R with no annotations: types are inferred, and the bug is found anyway.Checking guide
With that bug fixed, one #: comment finds the next. R reads it as a comment, so the file still runs on GNU R.Annotations
A backwards-compatible R runtime
Runs your R unchanged, and adds the types R is missing.
4 times faster than data.table across 19 benchmark queries on 10 million rows, 4 cores.
| suite | ry vs GNU R | ry | typed |
|---|---|---|---|
| Public R JIT benchmarks | 3.76x | 20x | |
| Package test suites | 2.75x | not typed | |
| Numeric kernels | 6.06x | 26x | |
| Application workloads | 3.77x | 72x | |
| Application test suite | 2.43x | not typed |
Geometric means of the speed-ups over GNU R, except for the application test suite, which is GNU R's total time over ry's, against GNU R 4.6.2; bars on a logarithmic scale. Full table, programs and method
Take your R code into the future
Use ry today on the code you have, and move it to typed code one step at a time.
Works with the code you have todayAdjust your code, still backwards compatibleUse what ry adds, no longer runs on GNU RStrict mode (R--): only this circle
Install
cargo install --git https://github.com/felix-andreas/ry ry-lang
ry check .