55 ms·
That's essentially what Jython does. He discusses why he does not want to go in that direction in the article.
by scott_s 15y ago
That's essentially what Jython does. He discusses why he does not want to go in that direction in the article.
- albertzeyer 15y agoHe says that it would be much work and hard to do manually. But I think you can add such a behavior in an automatic way.
- DasIch 15y agoIt is also stated why doing that automatically is unfeasible.
- albertzeyer 15y agoThe only issue stated about that is the possibility of deadlocks when done in an automatic way. However, I claim that you can also do it in an automatic way and avoid deadlocks at the same time.
- DasIch 15y agoIn order to avoid dead locks you need to be aware of the language semantics, which you are not if you automatically transform the interpreter.
- albertzeyer 15y agoWhat I mean is that even without knowing that, you can still do it in an automatic way. E.g., like this: https://github.com/albertz/automatic_object_locking/blob/master/draft.cpp https://github.com/albertz/automatic_object_locking/blob/mas...
- mad 15y agoYou are assuming that all the objects that will be accessed are known up front, before any one of them is accessed. Is that what happens in Python?