<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino</id>
  <title type="text">mozilla.dev.tech.js-engine.rhino Google Group</title>
  <subtitle type="text">
  </subtitle>
  <link href="/group/mozilla.dev.tech.js-engine.rhino/feed/atom_v1_0_msgs.xml" rel="self" title="mozilla.dev.tech.js-engine.rhino feed"/>
  <updated>2010-01-06T13:36:48Z</updated>
  <generator uri="http://groups.google.com" version="1.99">Google Groups</generator>
  <entry>
  <author>
  <name>Jarosław Pałka</name>
  <email>jpa...@gmail.com</email>
  </author>
  <updated>2010-01-06T13:36:48Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/f5b3a2b004c61f4f/c4b025490730b887?show_docid=c4b025490730b887</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/f5b3a2b004c61f4f/c4b025490730b887?show_docid=c4b025490730b887"/>
  <title type="text">Delegator and StackOverflowError</title>
  <summary type="html" xml:space="preserve">
  Hi, &lt;br&gt; I tried to use Delegator class to implement some functionality on variable &lt;br&gt; assignment. I have my object that implements Scriptable and would like to &lt;br&gt; call additional functionality when instances of this objects are assigned to &lt;br&gt; variable. Here is a part of my JUnit test for this class. &lt;br&gt; final Context context = ContextFactory.getGlobal().ent erContext();
  </summary>
  </entry>
  <entry>
  <author>
  <name>NeoAlchemy</name>
  <email>neoalch...@gmail.com</email>
  </author>
  <updated>2010-01-06T06:42:01Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/ceb09539cb068e20/e218de5cbc4c4942?show_docid=e218de5cbc4c4942</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/ceb09539cb068e20/e218de5cbc4c4942?show_docid=e218de5cbc4c4942"/>
  <title type="text">Ast FunctionNode types</title>
  <summary type="html" xml:space="preserve">
  What classifies in AST package (if it makes a difference) as a &lt;br&gt; FUNCTION_EXPRESSION vs FUNCTION_STATEMENT vs &lt;br&gt; FUNCTION_EXPRESSION_STATEMENT? I have a list here on various function &lt;br&gt; statements. &lt;br&gt; function foo() {} &lt;br&gt; foo = function() {} &lt;br&gt; foo = new function() {} &lt;br&gt; foo : function() {} &lt;br&gt; What would these be classified? Also would it make a difference if
  </summary>
  </entry>
  <entry>
  <author>
  <name>terry</name>
  <email>u...@mozilla-xp.com/</email>
  </author>
  <updated>2010-01-05T06:35:48Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/bd47b3a9d497dd76/e624e79ecdaea4f6?show_docid=e624e79ecdaea4f6</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/bd47b3a9d497dd76/e624e79ecdaea4f6?show_docid=e624e79ecdaea4f6"/>
  <title type="text">org.mozilla.javascript.EcmaError: ReferenceError: &quot;ByteString&quot; is not defined.</title>
  <summary type="html" xml:space="preserve">
  when exec js in java got the errors ,wonder why got such error and how to solve them &lt;br&gt; thanks! &lt;br&gt; --- &lt;br&gt; frmsrcurl: &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://mozilla-xp.com/mozilla.dev.tech.js-engine.rhino/&quot;&gt;[link]&lt;/a&gt;
  </summary>
  </entry>
  <entry>
  <author>
  <name>Daryl Stultz</name>
  <email>da...@6degrees.com</email>
  </author>
  <updated>2010-01-04T18:16:12Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/8406993ef93b1ebe?show_docid=8406993ef93b1ebe</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/8406993ef93b1ebe?show_docid=8406993ef93b1ebe"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  Wow, this is a bit deeper than I thought. Thanks for the details. What&#39;s &lt;br&gt; your opinion of this: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://mxr.mozilla.org/mozilla/source/js/rhino/examples/DynamicScopes.java&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; Is this an implementation of what you consider problematic/challenging or is &lt;br&gt; this something different?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Attila Szegedi</name>
  <email>szege...@gmail.com</email>
  </author>
  <updated>2010-01-04T18:01:14Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/73463bc81f43af0f?show_docid=73463bc81f43af0f</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/73463bc81f43af0f?show_docid=73463bc81f43af0f"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  Normally, it doesn&#39;t. I myself have a system that uses this approach that churns over a million script executions per day and encounters no problems. The problem is, you&#39;ll hardly be able to completely lock down the shared scope - while you can not easily put anything into it, you can, say, have one script extend or replace functions of standard objects (i.e. Array.push = function() { ... } - you get the idea) and have it be observed by all others. You can, of course, go through the full reachable JS object graph in the shared scope by recursively calling getIds() and then call ScriptableObject.seal() on every one of them.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Attila Szegedi</name>
  <email>szege...@gmail.com</email>
  </author>
  <updated>2010-01-04T17:47:35Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/58588756b5693f54?show_docid=58588756b5693f54</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/58588756b5693f54?show_docid=58588756b5693f54"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  There could be some further separation of scope-independent data (basically, the MemberBox objects obtained through reflection, i.e. actual java.lang.reflect.* objects) and scope-dependent data (JavaMembers instances). &lt;br&gt; Yes, ClassCache attached to a scope is on purpose since it has the Class-&amp;gt;JavaMembers map. JavaMembers has a bunch of NativeJavaMethod instances, which are JavaScript functions (they extend BaseFunction), and as such need to answer true to &amp;quot;instanceof Function&amp;quot;, hence they are scope specific, as they bind their prototype to the object returned by the expression &amp;quot;Function.prototype&amp;quot; in that scope.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Johan Compagner</name>
  <email>jcompag...@gmail.com</email>
  </author>
  <updated>2010-01-04T16:07:19Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/f4fda793a88575cb?show_docid=f4fda793a88575cb</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/f4fda793a88575cb?show_docid=f4fda793a88575cb"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  it could do it (doesnt do it) &lt;br&gt; At least not the code i look at currently (still using 1.6R7) &lt;br&gt; But then if we cache that reflection in a static weakhashmap&amp;lt;Class,xxxx&amp;gt; &lt;br&gt; we could just not get it from the top level scope ClassCache but directly &lt;br&gt; internally so what JavaMembers do have a private static &lt;br&gt; WeakHashmap&amp;lt;Class,JavaMembers&amp;gt; member...
  </summary>
  </entry>
  <entry>
  <author>
  <name>Daryl Stultz</name>
  <email>da...@6degrees.com</email>
  </author>
  <updated>2010-01-04T16:07:03Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/57acf27fa3276682?show_docid=57acf27fa3276682</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/57acf27fa3276682?show_docid=57acf27fa3276682"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  This page: &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;https://developer.mozilla.org/En/Rhino_documentation/Scopes_and_Contexts&quot;&gt;[link]&lt;/a&gt; &lt;br&gt; under &amp;quot;Sharing Scopes&amp;quot; states &amp;quot;for our purposes it gives us an easy way to &lt;br&gt; share a set of read-only variables across multiple scopes&amp;quot;. Is this section &lt;br&gt; describing the &amp;quot;shared-prototype top-level scope pattern&amp;quot; you dislike? Your
  </summary>
  </entry>
  <entry>
  <author>
  <name>Daryl Stultz</name>
  <email>da...@6degrees.com</email>
  </author>
  <updated>2010-01-04T16:02:30Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/639b858772f3e324?show_docid=639b858772f3e324</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/639b858772f3e324?show_docid=639b858772f3e324"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  Could it, should it, does it? Is this a feature/implementation request?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Johan Compagner</name>
  <email>jcompag...@gmail.com</email>
  </author>
  <updated>2010-01-04T15:38:36Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/29d48e6b7a96bd1c?show_docid=29d48e6b7a96bd1c</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/29d48e6b7a96bd1c?show_docid=29d48e6b7a96bd1c"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  the thing is that JavaMembers could cache the reflect stuff inside itself in &lt;br&gt; a WeakHashmap &lt;br&gt; So that it doesnt have to do the reflection over and over again. &lt;br&gt; Then it should not matter if there is a ClassCache or not.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Travis Ennis</name>
  <email>travis.en...@gmail.com</email>
  </author>
  <updated>2010-01-04T15:34:07Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/56b44cffad7b3e3b/f98ca15278efde6f?show_docid=f98ca15278efde6f</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/56b44cffad7b3e3b/f98ca15278efde6f?show_docid=f98ca15278efde6f"/>
  <title type="text">Re: Status and Future of Rhino</title>
  <summary type="html" xml:space="preserve">
  Norris, &lt;br&gt; Thanks for the update. Are these latest features available in the CVS &lt;br&gt; repository? &lt;br&gt; Thanks, &lt;br&gt; Travis
  </summary>
  </entry>
  <entry>
  <author>
  <name>Daryl Stultz</name>
  <email>da...@6degrees.com</email>
  </author>
  <updated>2010-01-04T14:03:41Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/3d60856b2c74bdb5?show_docid=3d60856b2c74bdb5</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/3d60856b2c74bdb5?show_docid=3d60856b2c74bdb5"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  Thanks, Attila, this is good information I&#39;ll file away until I get the time &lt;br&gt; to address performance.
  </summary>
  </entry>
  <entry>
  <author>
  <name>Attila Szegedi</name>
  <email>szege...@gmail.com</email>
  </author>
  <updated>2010-01-04T13:54:17Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/28ca1cbb7a819fd3?show_docid=28ca1cbb7a819fd3</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/28ca1cbb7a819fd3?show_docid=28ca1cbb7a819fd3"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  Caching is performed once per class and top-level scope, and results stored in an instance of ClassCache that is associated with the topmost scope. &lt;br&gt; As an implication, if you use a new top-level scope for every script execution (which you normally do), you&#39;ll end up with the cache being recreated on a per-scope basis. If you use a shared-prototype top-level scope, you&#39;ll avoid this (but then you have to use shared-prototype top-level scope pattern, which I generally dislike).
  </summary>
  </entry>
  <entry>
  <author>
  <name>Daryl Stultz</name>
  <email>da...@6degrees.com</email>
  </author>
  <updated>2010-01-04T13:19:32Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/96205ac65aaf7792?show_docid=96205ac65aaf7792</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/e2990409ddd7248f/96205ac65aaf7792?show_docid=96205ac65aaf7792"/>
  <title type="text">Re: Caching wrapped objects in custom WrapFactory</title>
  <summary type="html" xml:space="preserve">
  My concern was not memory use but the expense of method lookups via &lt;br&gt; reflection. I imagine Rhino does a lot of caching of the lookups, then?
  </summary>
  </entry>
  <entry>
  <author>
  <name>Christian Grigis</name>
  <email>christian.gri...@nexthink.com</email>
  </author>
  <updated>2010-01-04T13:32:17Z</updated>
  <id>http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/efbe638cabd8cfda/598e07fdc8f33027?show_docid=598e07fdc8f33027</id>
  <link href="http://groups.google.com/group/mozilla.dev.tech.js-engine.rhino/browse_thread/thread/efbe638cabd8cfda/598e07fdc8f33027?show_docid=598e07fdc8f33027"/>
  <title type="text">Re: JSON.parse() problem</title>
  <summary type="html" xml:space="preserve">
  Works great. &lt;br&gt; Thank you Raphael and Norris for the very prompt response! &lt;br&gt; -Christian
  </summary>
  </entry>
</feed>
