On Thu, May 14, 2009 at 6:28 PM, Alex Holkner <[email protected]>wrote:
> > Definitely infeasible. Besides the sandbox security issue you > mentioned, python doesn't support multiple interpreters within the > same process. While the core CPython is not suitable for sandboxing, etc. there are a few varianst which might work, such as TinyPy (http://www.tinypy.org/), which is small, sandboxable, and threadable. There's no way currently to run pyglet in jython, because there's no > ctypes. Even if it were added, browser sandboxing would prevent it > from doing the things pyglet needs (access to the os). Pyglet itself would certainly be unsuitable, and ctypes isn't feasible. The best idea would probably be to build a browser plugin in C/C++, which provides an OpenGL context and embeds a TinyPy/similar interpreter. The best approach I can think of is to use a tool such as pyjamas to > convert python code to javascript/actionscript, and provide a pyglet- > like api for either flash or HTML canvas. > That doesn't really support 3D though - I envision something more like the Unity (http://unity3d.com/) web plugin, but with a Python interpreter rather than Unity's Mono interpreter. -- Tristam MacDonald http://swiftcoder.wordpress.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
