
Krzysztof KosiĆski wrote:
Ted Gould wrote:
I think that makes sense. One thing that I think would be interesting for this project is to use the new GObject introspection libraries that are being developed. This basically allows for a static API file to be built that there are language libraries that can pick it up. Basically by doing the effort for GObject introspection once, we can pick up Python and Javascript easily, but also other languages pretty quickly.
We would have to roll back most of the C++ conversion in order to do that, and go back to plain GObject. I don't think that's possible.
I think the best solution would be to use SWIG (an automated binding generator). Jon suggested using XForms over DBus, but I think that's just too complicated to be feasible.
I'm certainly no expert but I found that SWIG was mightily unhelpful for exposing C++ code written in true C++ style. For py2geom we chose Boost.Python. I was very impressed at how easily it was to translate C++ thoughts into python thoughts with Boost. But unfortunately I think Boost remains python only. What I mean to say is that I have some reservations about how far SWIG can take you.
Aaron Spike