Hello,I’m thinking of using rust to write high performance functions that can be loaded in kdb. Rust has a nice FFI, so it shouldn’t be too difficult.Has anyone already tried this? I wrote some simple functions and was able to call them using a C shim with k.h, but it would be nicer to handle the K struct directly in rust.Rob
Do look on the KxSystems Github page, Rob, there are 3 repos listed for KDB bindings with Rust. Might help.
Regards,
Kumar
https://github.com/jnordwick/rik - Jason Nordwick
https://github.com/nugend/krust - Daniel Nugent
https://github.com/adwhit/krust - Alex Whitney.
Oh wow, thanks! I’m not sure how my googling missed those..
It would be good to add a link on the cookbook page:
http://code.kx.com/wiki/Cookbook#kdb.2B\_foreign\_interfaces
29.03.2017, 05:43, “Krishna Kumar” <kumar.ramanathan@gmail.com>:
Do look on the KxSystems Github page, Rob, there are 3 repos listed for KDB bindings with Rust. Might help.
Regards,Kumar
https://github.com/jnordwick/rik - Jason Nordwick
https://github.com/nugend/krust - Daniel Nugent
https://github.com/adwhit/krust - Alex Whitney.
On Wed, Mar 29, 2017 at 9:00 AM, Rob Smith <robsmith11@yandex.com> wrote:
Hello,
I’m thinking of using rust to write high performance functions that can be loaded in kdb. Rust has a nice FFI, so it shouldn’t be too difficult.
Has anyone already tried this? I wrote some simple functions and was able to call them using a C shim with k.h, but it would be nicer to handle the K struct directly in rust.
Rob
–Submitted via Google Groups
how about writing a shared object in rust and dynamically loading it into kdb? …interesting …deep magic …