People who have done rust bindings to ruby: can you convert ruby primitives (all scalars and arrays) to an efficient equivalent “native” data structure and then do fast rust level compute without having to call rb_ functions? /cc @wycats
Yes, there are macros to convert fixnum to int/long and back, and you can build a slice from the array pointer/len
-
-
same with string, symbol?
-
String yes, symbol is just a usize -- can convert to string easily
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.