No subject

Thu Dec 10 21:37:41 PST 2009

but "native services".

A module, according to the proposals currently on the table, is simply
a piece of code with no powers to affect the outside world. All powers
it gets are through values passed to it by its creator (whether
explicitly, in modules_emaker_style, or implicitly within a sandbox,
in the "require" case of modules_primordials).

Are you really asking for a "service registry"?


Ihab A.B. Awad, Palo Alto, CA
es-discuss mailing list
es-discuss at

Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I had approached this concept in a slightly different way where resources required were <br>specified using a derived MessageEvent type. There is precedence in <br>building from the event system since its the only place I'm aware of where <br>distributed semantics are being formally broached -eg postMessage, MessageChannels, etc.<br>So motivations could be:<br>1) Already a rich hierarchy of DOM events&nbsp; <br>2) MessageEvent, postMessage, onMessage has good support across browsers<br>3) Security is factored into postMessage with remote or cross-document messaging.<br>4) MessagePorts are queued, providing well-defined dependency ordering<br><br>I had also used WebSockets (supported in Chrome and Webkit). Also supported in Jetty<br>and a few other servers.WebSockets can be emulated in other
 browsers via flash. <br>Although this is delving too deep into implementation details, describing resources required <br>within a derived MessageEvent like ResourcesRequest and ResourcesResponse with <br>the ability to send related info per request like if-modified-since would allow a server to <br>respond with a ResourcesResponse that included aggregated content (images,css,js) specified in the <br>ResourcesRequest. Done over a websocket, it would satisfy Ihab's suggestion to do this <br>over a devoted bidirectional channel which is the WebSockets protocol. Performance characteristics <br>especially if you use the gmail technique of delaying eval of javascript sources until needed were <br>very convincing.Is this forum appropriate for discussion of eventing, WebIDL, etc? I'm not sure, though <br>I imagine this committee has spent uncountable hours discussing events related to the DOM
 etc.<br><br><br>kam<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "ihab.awad at" &lt;ihab.awad at;<br><b><span style="font-weight: bold;">To:</span></b> Kevin Curtis &lt;kevinc1846 at;<br><b><span style="font-weight: bold;">Cc:</span></b> es-discuss at<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, January 19, 2010 11:46:56 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Native modules<br></font><br>
On Tue, Jan 19, 2010 at 11:26 AM, Kevin Curtis<br>&lt;<a ymailto="mailto:kevinc1846 at" href="mailto:kevinc1846 at">kevinc1846 at</a>&gt; wrote:<br>&gt; Could a ECMAScript module proposal cover 'native modules' - which are built<br>&gt; into the platform (ECMAScript engine and browser) - and can be imported if<br>&gt; required and are not a binding on the global object. Could be useful for<br>&gt; vendor specific innovation.<br><br>From where I sit, it seems you are asking, not for "native modules",<br>but "native services".<br><br>A module, according to the proposals currently on the table, is simply<br>a piece of code with no powers to affect the outside world. All powers<br>it gets are through values passed to it by its creator (whether<br>explicitly, in modules_emaker_style, or implicitly within a sandbox,<br>in the "require" case of modules_primordials).<br><br>Are you really asking for a "service
 registry"?<br><br>Ihab<br><br>-- <br>Ihab A.B. Awad, Palo Alto, CA<br>_______________________________________________<br>es-discuss mailing list<br><a ymailto="mailto:es-discuss at" href="mailto:es-discuss at">es-discuss at</a><br><a href="" target="_blank"></a><br></div></div>
<!-- compressed/chunked Tue Jan 19 18:57:32 PST 2010 -->

More information about the es-discuss mailing list