3 ms·
> Pyffi automatically exports Python modules as scheme objects and that's quite > practical. I'm quite pleased how well that feature works. > We worked on th
by soegaard 4y ago
> Pyffi automatically exports Python modules as scheme objects and that's quite
> practical.
I'm quite pleased how well that feature works.
> We worked on this briefly while building the Gambit interface to
> CPython (https://github.com/gambit/python https://github.com/gambit/python), but ran into some quirks with the
> current Gambit macro and module systems that forced us to postpone. It is
> definitely something we want!
I just watched your video from Scheme 22 and I liked how you handled "passthroughs" and threads. Currently pyffi if more "one sided".
The motivation was mainly to use Numpy (and friends) from Racket.
- belmarca 4y agoYes the core of the contribution is the threading mechanism. Writing a low-level integration of CPython and $SCHEME is not trivial, but any implementer can do it. The syntactic interface we have clearly separates Scheme and Python code and we don't have to have new semantics for e.g. method accessors (you just write them as you would in Python).