jsnps

Results 21 comments of jsnps

Hey, I have also considered this and tried it out, but in the end decided against it, because of the java doc stating: "Creates an Executor that uses a single...

Ok, I see. Isn't it also that the stored PyObject would become invalid / unusable as soon as it leaves the interpreter scope (i.e. the exception leaves the try with...

1. I ended up doing something like this: ```java /* package */ static synchronized void initializeExceptionTypes(Jep jep) throws JepException { if (exceptionTypes == null) { Set ignore = Sets.newHashSet(); ignore.add(PyExceptionType.StandardError);...

Hey, thanks for the very quick response. :) Currently I don't see yet how your first suggestion would work, because we need to keep the stack on the python side...

> I'm not sure I understand your use case. I assumed the blocking call in java was a pure java thing with no python interaction, in which case from the...

Hey bsteffensmeier, this helped a lot thanks :) I will give this a try in the bigger context, but the programatically created shared module seems to work nicely already. Short...

Hey, thanks for your efforts and explanations. My eyes are slowly adapting to C code - that's really another world :D I now understood why my test case on a...

To me this looks like a very clean and easy to use solution from the java side :) I guess it would be possible to have the globals backed by...

Hey bsteffensmeier, we encountered some problems with our prototype for sharing the globals between multiple shared interpreters. I tried to implement a "onThisThread" API to create a temporary SharedInterpreter which...

Yes I also thought of grouping before, although already on the shared modules level .. so basically have multiple shared interpreter groups, each of them sharing separate main interpreters for...