<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Python-SpiderMonkey Resurrected</title>
	<atom:link href="http://www.toolness.com/wp/?feed=rss2&#038;p=48" rel="self" type="application/rss+xml" />
	<link>http://www.toolness.com/wp/?p=48</link>
	<description>The Blog of Atul Varma</description>
	<pubDate>Tue, 07 Sep 2010 09:57:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Coming At You Like A Pydermonkey at Toolness</title>
		<link>http://www.toolness.com/wp/?p=48#comment-2296</link>
		<dc:creator>Coming At You Like A Pydermonkey at Toolness</dc:creator>
		<pubDate>Fri, 11 Sep 2009 22:48:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-2296</guid>
		<description>[...] become one of my favorite dynamic programming languages alongside Python. And as I&#8217;ve mentioned before, I think the two languages actually complement each other pretty [...]</description>
		<content:encoded><![CDATA[<p>[...] become one of my favorite dynamic programming languages alongside Python. And as I&#8217;ve mentioned before, I think the two languages actually complement each other pretty [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Bennett</title>
		<link>http://www.toolness.com/wp/?p=48#comment-1918</link>
		<dc:creator>Frank Bennett</dc:creator>
		<pubDate>Thu, 28 May 2009 23:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-1918</guid>
		<description>Atul, scratch that.  I checked the dojo source code, and found that line2pc is used exactly nowhere; the check for that global is just a poke in the dark to see if the interpreter is really spidermonkey.  I commented out the throw the dojo source, and everything seems to be working swimmingly, so far at least.

Go ahead and post these comments, if you like -- the dojo/doh/smjs combination looks to be really handy, and the info might be of use to someone.</description>
		<content:encoded><![CDATA[<p>Atul, scratch that.  I checked the dojo source code, and found that line2pc is used exactly nowhere; the check for that global is just a poke in the dark to see if the interpreter is really spidermonkey.  I commented out the throw the dojo source, and everything seems to be working swimmingly, so far at least.</p>
<p>Go ahead and post these comments, if you like &#8212; the dojo/doh/smjs combination looks to be really handy, and the info might be of use to someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Bennett</title>
		<link>http://www.toolness.com/wp/?p=48#comment-1917</link>
		<dc:creator>Frank Bennett</dc:creator>
		<pubDate>Thu, 28 May 2009 22:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-1917</guid>
		<description>Hi, Atul.  I've picked up your version of python-spidermonkey from Google Code, as part of the test rig for a citation formatter for use in Zotero (code repository under the name link to this post).  This is great stuff, and it's been _extremely_ helpful to the project.  I've run into a little snag, though, and I'd like to fish for some advice.

My code base currently has tests run by the DOH test harness from Dojo.  I thought I would just carry the test suite across to spidermonkey, so I built an sm version of dojo, and gave it a whirl.  It fails with the following error:

  JavaScript error at line 15: "attempt to use SpiderMonkey host environment when no 'line2pc' global":

This appears to be a SpiderMonkey native function that's available from the command line.  So I'm wondering ... is there some means of waking up this side of the interpreter in python-spidermonkey, or should I drop the idea of testing on the JS side of the bridge, and test the string output in Python instead?  Any advice or thoughts would be very welcome.</description>
		<content:encoded><![CDATA[<p>Hi, Atul.  I&#8217;ve picked up your version of python-spidermonkey from Google Code, as part of the test rig for a citation formatter for use in Zotero (code repository under the name link to this post).  This is great stuff, and it&#8217;s been _extremely_ helpful to the project.  I&#8217;ve run into a little snag, though, and I&#8217;d like to fish for some advice.</p>
<p>My code base currently has tests run by the DOH test harness from Dojo.  I thought I would just carry the test suite across to spidermonkey, so I built an sm version of dojo, and gave it a whirl.  It fails with the following error:</p>
<p>  JavaScript error at line 15: &#8220;attempt to use SpiderMonkey host environment when no &#8216;line2pc&#8217; global&#8221;:</p>
<p>This appears to be a SpiderMonkey native function that&#8217;s available from the command line.  So I&#8217;m wondering &#8230; is there some means of waking up this side of the interpreter in python-spidermonkey, or should I drop the idea of testing on the JS side of the bridge, and test the string output in Python instead?  Any advice or thoughts would be very welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.toolness.com/wp/?p=48#comment-1868</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Tue, 21 Apr 2009 23:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-1868</guid>
		<description>This looks pretty neat. Like you describe, I've been looking for a way to avoid duplicating logic in javascript and in my webserver. AppJet is one interesting possibility (just a javascript webserver) but I'd prefer Django for general interoperability. I'll check out pythonspidermonkey.</description>
		<content:encoded><![CDATA[<p>This looks pretty neat. Like you describe, I&#8217;ve been looking for a way to avoid duplicating logic in javascript and in my webserver. AppJet is one interesting possibility (just a javascript webserver) but I&#8217;d prefer Django for general interoperability. I&#8217;ll check out pythonspidermonkey.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skierpage</title>
		<link>http://www.toolness.com/wp/?p=48#comment-545</link>
		<dc:creator>skierpage</dc:creator>
		<pubDate>Sun, 15 Jun 2008 04:28:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-545</guid>
		<description>Another possibly-related project: the Gristmill QA tool, http://wiki.mozilla.org/QA/TDAI/MozMillTestTool, has "MozRepl based Python to Javascript Bridge"

So PyXPCOM lets python invoke XPCOM interfaces; PyDOM lets DOM elements (things in Web pages) invoke scripts written in Python instead of JavaScript; GristMill lets a Python controller talk to the JavaScript of a running Mozilla process; and Python-Spidermonkey "allows for the implementation of JavaScript classes, objects and functions in Python, as well as the evaluation and calling of JavaScript scripts and functions."

Or something like that ;-)</description>
		<content:encoded><![CDATA[<p>Another possibly-related project: the Gristmill QA tool, <a href="http://wiki.mozilla.org/QA/TDAI/MozMillTestTool" rel="nofollow">http://wiki.mozilla.org/QA/TDAI/MozMillTestTool</a>, has &#8220;MozRepl based Python to Javascript Bridge&#8221;</p>
<p>So PyXPCOM lets python invoke XPCOM interfaces; PyDOM lets DOM elements (things in Web pages) invoke scripts written in Python instead of JavaScript; GristMill lets a Python controller talk to the JavaScript of a running Mozilla process; and Python-Spidermonkey &#8220;allows for the implementation of JavaScript classes, objects and functions in Python, as well as the evaluation and calling of JavaScript scripts and functions.&#8221;</p>
<p>Or something like that <img src='http://www.toolness.com/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Lee</title>
		<link>http://www.toolness.com/wp/?p=48#comment-544</link>
		<dc:creator>John Lee</dc:creator>
		<pubDate>Sat, 14 Jun 2008 17:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-544</guid>
		<description>Presumably PyDOM is the result of Mark Hammond's work to make non-JS languages something approaching equal citizens for chrome code running inside Mozilla.  It's for embedded code that will only run inside Mozilla, so in contrast to python-spidermonkey, you can't just "import pydom" from ordinary CPython code.

Is PyDOM included with Firefox 3?</description>
		<content:encoded><![CDATA[<p>Presumably PyDOM is the result of Mark Hammond&#8217;s work to make non-JS languages something approaching equal citizens for chrome code running inside Mozilla.  It&#8217;s for embedded code that will only run inside Mozilla, so in contrast to python-spidermonkey, you can&#8217;t just &#8220;import pydom&#8221; from ordinary CPython code.</p>
<p>Is PyDOM included with Firefox 3?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos</title>
		<link>http://www.toolness.com/wp/?p=48#comment-542</link>
		<dc:creator>Carlos</dc:creator>
		<pubDate>Fri, 13 Jun 2008 12:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-542</guid>
		<description>You might want to take a look at Cython, a pyrex fork which adds support for some other python constructs (e.g. list comprehensions):
www.cython.org</description>
		<content:encoded><![CDATA[<p>You might want to take a look at Cython, a pyrex fork which adds support for some other python constructs (e.g. list comprehensions):<br />
<a href="http://www.cython.org" rel="nofollow">http://www.cython.org</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Ascher</title>
		<link>http://www.toolness.com/wp/?p=48#comment-536</link>
		<dc:creator>David Ascher</dc:creator>
		<pubDate>Thu, 12 Jun 2008 06:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-536</guid>
		<description>V. cool.  I'd love to see Python be available in extensions, e.g. for Thunderbird.  

Note however that there are plans for ChromeBug, which I look forward to as well.</description>
		<content:encoded><![CDATA[<p>V. cool.  I&#8217;d love to see Python be available in extensions, e.g. for Thunderbird.  </p>
<p>Note however that there are plans for ChromeBug, which I look forward to as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skierpage</title>
		<link>http://www.toolness.com/wp/?p=48#comment-535</link>
		<dc:creator>skierpage</dc:creator>
		<pubDate>Thu, 12 Jun 2008 01:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.toolness.com/wp/?p=48#comment-535</guid>
		<description>How does this relate to http://developer.mozilla.org/en/docs/PyDOM ?

I added a link to the MDC PyXPCOM and PyDOM pages.

The OLPC folk are trying to bridge their XULRunner Browse component with Python programming (Google OLPC PyXPCOM and see http://wiki.laptop.org/go/JS-Python), maybe your project will help.</description>
		<content:encoded><![CDATA[<p>How does this relate to <a href="http://developer.mozilla.org/en/docs/PyDOM" rel="nofollow">http://developer.mozilla.org/en/docs/PyDOM</a> ?</p>
<p>I added a link to the MDC PyXPCOM and PyDOM pages.</p>
<p>The OLPC folk are trying to bridge their XULRunner Browse component with Python programming (Google OLPC PyXPCOM and see <a href="http://wiki.laptop.org/go/JS-Python" rel="nofollow">http://wiki.laptop.org/go/JS-Python</a>), maybe your project will help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
