News for hackers. Stuff that matters.
Re:Want to call C from Python? Use D by klyrs on Wednesday February 19, 2020 @07:03PM (#22371514)
I've been using Cython since it was called Pyrex, and I'm perpetually annoyed with rewriting c/c++ headers in Cython. This seems neat. But the reason that I use Cython is that I can wrap complex data structures (including templated c++ classes) and do processing in a fuzzy boundary between Python and c/c++.

The "code-free" approach here seems to forbid such a fuzzy boundary. Am I wrong?

Re:Want to call C from Python? Use D by atilaneves on Wednesday February 26, 2020 @09:02AM (#22422954)
I can't really comment without an example. I don't think this approach stops you from doing anything. It can (and has) allowed Python to call into templated D code, as long as you give the particular instantiation you're interested in an alias.
Re:Want to call C from Python? Use D by biotronic on Thursday February 27, 2020 @03:49AM (#22431717)
Since Cython compiles to C++, it can use C++ templates directly, without the need for creating aliases to the specific instantiations you're gonna use. As far as I understand, you'll still have to write Cython bindings, though: https://cython.readthedocs.io/en/latest/src/userguide/wrappi...