You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to host IronPython interpreter per worker thread from the TPL library? Should it be possible to somehow override the TPL's ThreadPool to ask them to initialize and keep a IronPython runtime object in threadlocal state?
As I just found out, the cPython unfortunately does not support sub-interpreters and isolated per-thread interpreters just yet (my shallow investigation in pythonnet/pythonnet#2170), so I wonder if IronPython can support in my migration of TPL pipeline using C# payloads to TPL pipeline using Python payloads (I understand the limitations of IronPython / unavailability of NumPy/PyTorch and so forth)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to host IronPython interpreter per worker thread from the TPL library? Should it be possible to somehow override the TPL's ThreadPool to ask them to initialize and keep a IronPython runtime object in threadlocal state?
As I just found out, the cPython unfortunately does not support sub-interpreters and isolated per-thread interpreters just yet (my shallow investigation in pythonnet/pythonnet#2170), so I wonder if IronPython can support in my migration of TPL pipeline using C# payloads to TPL pipeline using Python payloads (I understand the limitations of IronPython / unavailability of NumPy/PyTorch and so forth)
Beta Was this translation helpful? Give feedback.
All reactions