RE: Minimal example of extending Guile with Rust?

2024-01-29 Thread M
> (similar to the >native C arrays numpy exposes to C that allow getting the >speed of C). For this in particular, there is pointer->bytevector, bytevector->pointer and bytevector-TYPE-ref, bytevector-TYPE-set! (it’s not limited to only bytes, also floats are available IIRC). Don’t do

Re: Minimal example of extending Guile with Rust?

2024-01-29 Thread Olivier Dion
On Mon, 29 Jan 2024, "Dr. Arne Babenhauserheide" wrote: [...] > Ideally with a fast Scheme-to-Rust-to-Scheme interface (similar to the > native C arrays numpy exposes to C that allow getting the speed of C). See . There is many path to do this. The

Re: Minimal example of extending Guile with Rust?

2024-01-29 Thread Jean Abou Samra
 There are a number of crates with Rust bindings to the Guile C API: https://lib.rs/search?q=guile Most of them are just the result of running the bindgen tool, which autogenerates Rust bindings from C header files. A few of them have slightly more convenient wrapper but none is really

Minimal example of extending Guile with Rust?

2024-01-29 Thread Dr. Arne Babenhauserheide
Hi, do you know a nice minimal example that shows how to extend Guile with Rust to get maximum performance for some tasks? I’m not looking for hints how to speed up Scheme code, or how to do less. Instead I want to learn how to do those cases where I actually need some specific algorithm at