On 6/28/06, Trent Mick <[EMAIL PROTECTED]> wrote:
Brett Cannon wrote:
> The plan is to allow pure Python code to be embedded into web pages like
> _javascript_. ...

> ...Then again, Mark Hammond has already done a bunch of work for pyXPCOM, so getting Python compiled right into Firefox itself shouldn't be too bad.
>
> If this really takes off, will probably want both: get into Firefox, but have an extension for pre-existing installations.

You should really speak with Mark, if you haven't recently. He's gotten
a lot further than just PyXPCOM. My understanding (I might be a bit off
on the branches and timing) is that his "DOM_AGNOSTIC" work on the
Mozilla code has mostly been checked into the trunk. This work is to do
mostly what you are describing: Python as a client-side scripting
language along-side _javascript_.

Handling the Firefox integration is next month, so I will be talking to him.

I can't recall what Mozilla's distribution plans are for this. Certainly
it wouldn't be before Firefox 3. Then again, default Firefox builds
would like not include Python by default.

It sounds to me that a restricted-execution/security-model story for
Python would be important here.

Yep.  One of the reasons I am dealing with it.

Mark (and me a little bit) has been sketching out creating a "Python for
Mozilla/Firefox" extension for installing an embedded Python into an
existing Firefox installation on the pyxpcom list:

http://aspn.activestate.com/ASPN/Mail/Message/pyxpcom/3167613

> The idea is that there be a separate Python interpreter per web browser page instance.

I think there may be scaling issues there. _javascript_ isn't doing that
is it, do you know? As well, that doesn't seem like it would translate
well to sharing execution between separate chrome windows in a
non-browser XUL/Mozilla-based app.

I don't know how _javascript_ is doing it yet.  The critical thing for me for this month was trying to come up with a security model.

And if you don't think it is going to scale, how do you think it should be done?

-Brett
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to