I can currently write Ruby code in C, using Ruby's C API. This is much faster than native Ruby code and allows me to use the C-code from within the Ruby object model. For this to work, the C code must be structured in a certain way, and using pre-defined types, macros and function signatures, example here .
I would like to be able to produce this code from Nim. My question is: how can I do this? The way I see it, I have 3 options:
nim c --cc:gcc --ext:rb mycode
I'm thinking out loud here and any opinions / suggestions are welcome.
cheers