[Sugar-devel] Prototype python <-> js IPC

Daniel Narvaez dwnarvaez at gmail.com
Thu Apr 25 21:01:00 EDT 2013


On 26 April 2013 02:36, Daniel Narvaez <dwnarvaez at gmail.com> wrote:

>
> Using an extension, it might be possible to run a seed context (
> https://live.gnome.org/Seed) inside the web content process and then have
> the web context communicate with it through postMessage. Chrome is doing
> something similar with extensions/context scripts. I'm not sure how well
> exchanging binary streams would work with that approach (it's going to be
> important both for datastore and collaboration).
>
>
About binary streams, there is very likely a way to do it efficiently.
ArrayBuffers for example looks like they might be helpful.

In theory, since they use the same javascript interpreter, using seed it
> might even be possible to give access to gobject-introspection (or part of
> it) directly from the web context. Though that starts to feel messy.
>

This is not possible using seed public API at least. Understandably they
don't expose the js core context anywhere.


All in all I'm getting to like seed-context-inside-web-process idea. Might
be worth trying it out.

-- 
Daniel Narvaez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130426/be583a20/attachment.html>


More information about the Sugar-devel mailing list