PMXBOT Log file Viewer

Help | Karma | Search:

#python2.8 logs for Friday the 24th of January, 2014

(Back to #python2.8 overview) (Back to channel listing) (Animate logs)
[13:36:06] <ctismer> from Fri. 17:
[13:36:22] <ctismer> "How difficult would it be to have Python2 and Python3 in same process."
[13:37:29] <ctismer> I was thinking about this as a possible way out of the dilemma, kinda "hybrid python".
[13:38:31] <ctismer> What do people think? I heard that probably nobody would like that. Why so?
[13:43:12] <moo-_-> ctismer: like running two interpreters in a single UNIX process?
[13:46:04] <ctismer> yes. Thinking of two interpreters, completely disjoint in the first place, but with the ability to convert object formats.
[13:47:14] <ctismer> moo-_-: as far as possible, of course. Some adjustments need to be configured per module to get it right.
[13:48:47] <ctismer> but the hybrid python would have two personalities. Still with GIL, only one interpreter running, etc.
[13:50:16] <ctismer> I thought this would be a way of very smooth migration, of course with the intent to migrate in the end. ?
[13:56:19] <ctismer> but when I enthusiastically told about this idea to my stackless colleagues, the reaction was not very encouraging by now :-/
[13:59:10] <regebro> ctismer: It certainly is theoretically possible.
[13:59:27] <regebro> But it feels like it would be a lot of work to maintain.
[14:29:33] <ctismer> regebro: sure it is hard. The question is if users would appreciate this and use it.
[14:31:52] <ctismer> regebro: would this be better than a 2.8? Or something else, maybe a 2.8 combined with 3.4, only a few things ported (thinking...)
[14:33:16] <regebro> ctismer: I think that to know that we need to know more of what is actually stopping people from upgrading.
[14:33:26] <regebro> For most code it's not that much work.
[14:37:24] <regebro> The benefits would be that you could use Python 3 libraries from Python 2 code, and you could use Python 2 libraries from Python 3 code.
[14:38:58] <regebro> But to do that in "real life" you would need to really have Python 2 and Python 3, ie with also small differences between the versions supported.
[14:39:04] <regebro> And there are a lot of those.
[14:42:30] <ctismer> regebro: true
[17:01:07] <eriknw> ctismer, I actually like the line of thinking of having a separate Python3 runtime in Python2 and vice versa. I would create a whole new runtime, so both versions would run as separate process
[17:02:15] <eriknw> `import python3 ; py3 = python3.PythonRuntime() ; py3.XXX` where XXX can be `eval`, `execute`, `import`, etc