GSoC 2013 ideas page
lomereiter
lomereiter at gmail.com
Tue Mar 26 23:13:14 PDT 2013
Once remaining issues with shared libraries are resolved, it
becomes feasible to use D code from dynamic languages. Clearly
it's vital to provide easy path for calling it from Python, as
it's used by most scientists. Although there's PyD, last few
years saw rising interest in PyPy because it shows much better
performance than CPython.
For PyPy, the way to go seems to be generating extern(C) wrappers
for classes/functions/etc. + CFFI bindings
(http://cffi.readthedocs.org/) for that C code.
First part of this can be reused for producing C++ wrapping code
-- this is similar in goals to dtoh
(http://d.puremagic.com/issues/show_bug.cgi?id=9285) but here
entities to be wrapped should be explicitly mentioned. Extra
benefit of producing C++ bindings is ability to call SWIG on them
to support other languages. So, perhaps, C++ is the number one
target in this respect.
More information about the Digitalmars-d
mailing list