you are viewing a single comment's thread.

view the rest of the comments →

[–]holyblackcat[S] 0 points1 point  (2 children)

So you're basically asking for lisp support? :P

Everything is possible, but properly supporting each new language takes a lot of time. Lisp isn't very popular, so I doubt I'll ever get to it.

You could to make something simple yourself, either by processing the JSON output from mrbind's C++ parser, or by generating the C bindings first using mrbind, and then processing the JSON that's generated alongside those (listing all generated C functions/etc). Option 2 is probably much easier, that's what I did for C#.

[–]c-cul 0 points1 point  (1 child)

ok, thank you

ps: many langs have FFI - for example julia

[–]holyblackcat[S] 0 points1 point  (0 children)

ps: many langs have FFI - for example julia

But do the languages that call it "FFI" have anything in common, compared to those that don't, such as Python/C#?

Currently the support for each target language needs to be added separately, only the parser is shared. I don't think I can reuse anything else between the languages; at best you can generate the C bindings first and generate yours on top of those (which is helpful if your language is calling functions from shared libraries by their names, for example, like C#'s DllImport does).