extendr / rextendr

An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically
https://extendr.github.io/rextendr/
Other
180 stars 27 forks source link

Some solid examples. #48

Open andy-thomason opened 3 years ago

andy-thomason commented 3 years ago

I would like to start generating some real examples of packages if @Ilia-Kosenkov and @clauswilke could help.

We could, for example:

yutannihilation commented 3 years ago

Plot some data in 3D/VR using Vulkan or OpenGL.

I'd suggest using WebGPU instead, with wgpu. Since it's implemented in Rust in its core, I think this is something meaningful to show the advantage of using Rust. (Disclaimer: wgpu is one of the reasons I happened to learn Rust, so I might be biased here. I don't know anything about Vulkan and OpenGL...).

clauswilke commented 3 years ago

This spring, I'm teaching a new class and have very little free capacity to do anything else.

Once things calm down, I'd like to port the sinab package to extendr: https://clauswilke.com/sinab/ If somebody would like to help you're welcome to do so.

I believe there's going to be huge potential for sinab once it's easily available for people and integrated with the ggtext package. In particular in combination with the recent improvements in font rendering and RTL text in the agg graphics devices.

andy-thomason commented 3 years ago

Happy to help once things are calmer (and warmer!).

On Fri, Feb 19, 2021 at 4:26 PM Claus Wilke notifications@github.com wrote:

This spring, I'm teaching a new class and have very little free capacity to do anything else.

Once things calm down, I'd like to port the sinab package to extendr: https://clauswilke.com/sinab/ If somebody would like to help you're welcome to do so.

I believe there's going to be huge potential for sinab once it's easily available for people and integrated with the ggtext https://wilkelab.org/ggtext/ package. In particular in combination with the recent improvements in font rendering and RTL text in the agg graphics devices.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/extendr/rextendr/issues/48#issuecomment-782182971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL36XBGTL7NUFVVUJEADR3S72GKXANCNFSM4X4DCG2Q .

clauswilke commented 3 years ago

@andy-thomason On that note, where are we with a 0.2 release of the extendr crate? It looks like most of the remaining issues are just cleanup: https://github.com/extendr/extendr/milestone/1

And the x86 bug doesn't seem to be fixable at this time, so it shouldn't hold up a release.

andy-thomason commented 3 years ago

@clauswilke @yutannihilation, I have submitted PRs for three of the five issues in the milestone.

The Win32 panic handling will have to wait until afterwards, but the tests should pass for now.

The final issue is the crate publish itself.

If you could make a PR for this, we can go ahead.

clauswilke commented 3 years ago

I think the crate publish has to happen from the main branch. I can take care of it if you'd like me to.

markusgumbel commented 2 years ago

Any news here with the examples? I am using the rextendr package in some bioinformatics projects but currently I am stuck with the interface between R and Rust (via #[extendr]). Looking at the sources in extendr etc. I guess there is much more possible than I am aware of. Any more complex examples or a tutorial would really help.

I could help to write any tutorials (once I know how it works ;-)).

yutannihilation commented 2 years ago

Thanks for your interest on contributing. I'd recommend writing it on your own blog or somewhere else. As you can see this issue is still open, doing it as an "official" is too heavy, considering our bandwidth is very limited. So, I think it's better to start small (e.g. the package vignette is what was first published on my blog).