Ah, I see now.  Thanks for going deeper on that.<div><br></div><div>I did eventually find the RPC stuff for Go, and thought that that might be interesting to implement.<br><br><div class="gmail_quote">On Tue, Dec 29, 2009 at 8:31 AM, Joan Miller <span dir="ltr">&lt;<a href="mailto:peloko45@gmail.com">peloko45@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">&quot;Each component runs in its own private address space. Inter-component<br>
communication is based on Native Client’s reliable datagram service,<br>
the IMC (Inter-Module Communications). For communications between the<br>
browser and a NaCl module, Native Client provides two options: a<br>
Simple RPC facility (SRPC), and the Netscape Plugin Application<br>
Programming Interface (NPAPI), both implemented on top of the IMC. The<br>
IMC also provides shared memory segments and shared synchronization<br>
objects, intended to avoid messaging overhead for high-volume or<br>
high-frequency communications.&quot; [1]<br>
<br>
The Native Client modules can communicate with the browser using<br>
either NPAPI or simple RPC (SRPC) [2] so there would be that implement<br>
that in Haskell.<br>
<br>
<br>
[1] <a href="http://nativeclient.googlecode.com/svn/data/docs_tarball/nacl/googleclient/native_client/documentation/nacl_paper.pdf" target="_blank">http://nativeclient.googlecode.com/svn/data/docs_tarball/nacl/googleclient/native_client/documentation/nacl_paper.pdf</a><br>

[2] <a href="http://nativeclient.googlecode.com/svn/trunk/src/native_client/documentation/npapi.html" target="_blank">http://nativeclient.googlecode.com/svn/trunk/src/native_client/documentation/npapi.html</a><br>
<br>
<br>
2009/12/29 David Leimbach &lt;<a href="mailto:leimy2k@gmail.com">leimy2k@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; I guess I&#39;m confused by what it means to &quot;support&quot; this in a language.<br>
&gt; My understanding is this is using lightweight virtualization technology<br>
&gt; (perhaps via segment register hacks on x86, and something else on ARM) to<br>
&gt; provide a safe sandbox to run native code in a browser.  If I had to guess,<br>
&gt; I&#39;d say you could run an entire virtualized OS in there, similar to the way<br>
&gt; it was done for vx32 with the Plan 9 port to it.  (9vx is a port of the plan<br>
&gt; 9 operating system to vx32, allowing it to run as a user process on linux,<br>
&gt; freebsd, and Mac OS X)<br>
&gt; Are you talking about porting the GHC Haskell runtime to NaCL?  If so, then<br>
&gt; I think I understand, but the language itself doesn&#39;t really need to do<br>
&gt; anything special to support this as far as I can tell.<br>
&gt; Dave<br>
&gt; On Tue, Dec 29, 2009 at 5:26 AM, Joan Miller &lt;<a href="mailto:peloko45@gmail.com">peloko45@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Native CLient (NaCl) [1] is a technology very cool which lets to run<br>
&gt;&gt; native code in web applications, and it&#39;s being integrated in some<br>
&gt;&gt; languages as Python [2]. Go [3] already has rudimentary support for<br>
&gt;&gt; Native Client (and it&#39;s logical since that both technologies are from<br>
&gt;&gt; Google)<br>
&gt;&gt;<br>
&gt;&gt; I hope that Haskell also gets support for NaCl and doesn&#39;t loose this<br>
&gt;&gt; train else a language as Go could get every time more users that until<br>
&gt;&gt; now they had gone to Haskell or Erlang mainly for its concurrency.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; [1] <a href="http://code.google.com/p/nativeclient/" target="_blank">http://code.google.com/p/nativeclient/</a><br>
&gt;&gt; [2]<br>
&gt;&gt; <a href="http://lackingrhoticity.blogspot.com/2009/06/python-standard-library-in-native.html" target="_blank">http://lackingrhoticity.blogspot.com/2009/06/python-standard-library-in-native.html</a><br>
&gt;&gt; [3] <a href="http://golang.org/pkg/exp/nacl/" target="_blank">http://golang.org/pkg/exp/nacl/</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Haskell-Cafe mailing list<br>
&gt;&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt;&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>