Friday, August 8th, 2008

JSBridge: Powering Mozilla with Python

Category: Python

<p>JSBridge is an incredibly alpha, but interesting new project, lead by Mikeal Rogers, that bridges Python and JavaScript with respect to Mozilla. It uses mozrunner, the Python library that can power Mozilla applications (e.g. Firefox).

Once you fire up jsbridge MozRepl will kick into gear, and you will be able to interact across the bridge. “This includes JavaScript < -> Python object translations and a callback mechanism for Python responses to custom events fired in the javascript environment.”

Of course, this isn’t related to IronMonkey the project that allows you to write Python (and Ruby and …) on top of Tamarin.

Posted by Dion Almaer at 7:22 am
3 Comments

+++--
3.5 rating from 18 votes

3 Comments »

Comments feed TrackBack URI

And also unrelated to Silverlight, which also enables you to write Python and Ruby and have them interact with the DOM and JavaScript.

Comment by BertrandLeRoy — August 8, 2008

MozRepl (which is a contributed project) also has a Perl interface.

Comment by bard — August 9, 2008

This week I’m actually replacing MozRepl with some jsbridge specific socket code.

The reason is simple, MozRepl is designed to be an interactive shell interface scoped to a given window and jsbridge is intended to be a window neutral programmatic bridge.

Eventually I found it too difficult to keep around various repl objects when all the jsbridge code runs in the windowless “ether” that resources get evaluated in.

I had planned on having a destabalizing period in the trunk to accommodate this work but with the influx of people we’ve gotten from this post I’ll probably end up getting everything working locally before I check it in.

Thanks for the interest :)

Comment by mikeal — August 12, 2008

Leave a comment

You must be logged in to post a comment.