|
From: | Marcus G. Daniels |
Subject: | Re: [Swarm-Modelling] Something Glen said |
Date: | Mon, 27 Nov 2006 07:28:44 -0700 |
User-agent: | Thunderbird 1.5.0.8 (X11/20061107) |
Steven H. Rogers wrote:
JavaScript is quite powerful, though generally under appreciated. A model executing in the browser calling Swarm methods with XPCOM seems rather tightly coupled and would work best if the browser and Swarm were running on the same machine, or perhaps machines connected by a fast, local network. Is this the anticipated use case?Yes, Swarm gets dynamically linked into Firefox via a plugin. The cost of a call to or from Swarm is the cost of the indirection through a pure virtual table in C++ (a COM interface), e.g. less than message dispatch in a pure Objective C model. Whenever Firefox calls on native code from JavaScript for its own purposes it uses this same XPCOM infrastructure. There are also XPCOM layers for C++ and Perl, Python, and Ruby.
[Prev in Thread] | Current Thread | [Next in Thread] |