Hacker News new | ask | show | jobs
by mlevental 2603 days ago
how does this work? does it actually compile/embed there python interpreter or does it make calls to the system interpreter somehow?
2 comments

From the linked document:

> To accomplish this, the Swift script/program simply links the Python interpreter into its code.

I would imagine that having the interpreter in another process would be a gigantice performance hit.

yea i realized it's the obvious thing: load the dll.
i just tried this out and i'm blown away that it works. even matplotlib. does anyone know how to point it at a different interpreter? a venv for example?