News for hackers. Stuff that matters.
Re:Swift for Tensorflow 0.3.1 by mlevental on Saturday May 11, 2019 @08:57AM (#19885921)
how does this work? does it actually compile/embed there python interpreter or does it make calls to the system interpreter somehow?
Re:Swift for Tensorflow 0.3.1 by wool_gather on Saturday May 11, 2019 @12:06PM (#19886809)
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.

Re:Swift for Tensorflow 0.3.1 by mlevental on Saturday May 11, 2019 @01:16PM (#19887232)
yea i realized it's the obvious thing: load the dll.
Re:Swift for Tensorflow 0.3.1 by mlevental on Saturday May 11, 2019 @11:24AM (#19886619)
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?