Re: [pyxpcom] Firepy
by Atul Varma other posts by this author
Jun 8 2008 9:05AM messages near this date
view in the new Beta List Site
[pyxpcom] Firepy
|
Re: [pyxpcom] Firepy
Sergio, have you been working on this? I think it could be very cool.
The thing about PyXPCOM is that it's fairly heavyweight--you get all of the
benefits of Python's "batteries included", which is great, but on Windows
your extension will probably have to include an embedded version of Python
(unless you choose the harder but more extensible route [1]). And
regardless, putting a CPython VM in the Mozilla process is going to eat up
another few megs of memory.
The potentially nice thing about using TinyPy, though, is that at ~64k it's
really easy to pop in a FF extension and just use as an alternative to JS,
perhaps even creating Python standard library proxies that just delegate out
to XPCOM.
Mozilla is also moving away from XPCOM, and a lot of their new code is being
developed as JS modules [2], which, as far as I know, are completely
unreachable from XPCOM. So a bridge between TinyPy (or even CPython) and
Mozilla using something like nsIXPCScriptable [3] might be more desirable,
not to mention easier to use. That's just total speculation on my part
though. :)
[1] http://www.toolness.com/wp/?p=23
[2] http://developer.mozilla.org/en/docs/Using_JavaScript_code_modules
[3] http://developer.mozilla.org/en/docs/nsIXPCScriptable
- Atul
On Sun, May 18, 2008 at 4:25 PM, Sergio Oliveira <seocam@[...].net> wrote:
> Hey Guys,
>
> After the last FISL[1] I was talking to my friends about write a Mozilla
> plugin to run Python on Firefox.
> Initially we thought to use Tinypy as base and run some pypy modules over
> that.
>
> We would like to know your opinion about our idea!
> Are we reinventing the wheel?
> How PyXPCom can help us?
>
>
> [1] The biggest open source event on South America.
>
> Cheers,
>
> --
> Sergio Oliveira
>
> If builders built buildings the way programmers wrote programs, then the
> first woodpecker that came along would destroy civilization.
>
> _______________________________________________
> pyxpcom mailing list
> pyxpcom@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
Thread:
Sergio Oliveira
Atul Varma
Philip Semanchuk
Mark Hammond
Atul Varma
Philip Semanchuk
Atul Varma
Shane Caraveo
|