<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ocamljs, OCaml to Javascript compiler</title>
	<atom:link href="http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/feed" rel="self" type="application/rss+xml" />
	<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler</link>
	<description>Your Cell Phone Online</description>
	<lastBuildDate>Sun, 23 May 2010 17:52:08 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: itjob123</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-1122</link>
		<dc:creator>itjob123</dc:creator>
		<pubDate>Wed, 02 Dec 2009 19:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-1122</guid>
		<description>We already have a working prototype implementation using ocamldoc but we need to access the internals of the compiler to get a better tool. Our snippet manager will be released as free software.&lt;br&gt;If you are interested I can provide you further details.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://staffingpower.com/&quot; rel=&quot;nofollow&quot;&gt;http://staffingpower.com/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>We already have a working prototype implementation using ocamldoc but we need to access the internals of the compiler to get a better tool. Our snippet manager will be released as free software.<br />If you are interested I can provide you further details.</p>
<p><a href="http://staffingpower.com/" rel="nofollow">http://staffingpower.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-650</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Mon, 13 Oct 2008 16:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-650</guid>
		<description>Thanks Florian. I am working on a new release of ocamljs (see the Google Code link above) and will make sure this is fixed.</description>
		<content:encoded><![CDATA[<p>Thanks Florian. I am working on a new release of ocamljs (see the Google Code link above) and will make sure this is fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian Hars</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-649</link>
		<dc:creator>Florian Hars</dc:creator>
		<pubDate>Sat, 11 Oct 2008 21:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-649</guid>
		<description>Another try:

The code should compile to someting like

for (var i$60 = 1; i$60 &lt;= 5; i$60++) (function() { var i$60$ = i$60; a$59 = $(_f(function (x$61) { return x$61 + i$60$; }), a$59)})();

instead of

for (var i$60 = 1; i$60 &lt;= 5; i$60++)  a$59 = $(_f(function (x$61) { return x$61 + i$60; }), a$59);

Only functions, not blocks, are scopes in javascript.
The assers in Isaacs code should obviously be

assert ((a.(0) 3) == 8);
assert ((a.(1) 3) == 7);;

And print_int in ocamljs adds a newline that ocaml proper doesn&#039;t add.</description>
		<content:encoded><![CDATA[<p>Another try:</p>
<p>The code should compile to someting like</p>
<p>for (var i$60 = 1; i$60 &lt;= 5; i$60++) (function() { var i$60$ = i$60; a$59 = $(_f(function (x$61) { return x$61 + i$60$; }), a$59)})();</p>
<p>instead of</p>
<p>for (var i$60 = 1; i$60 &lt;= 5; i$60++)  a$59 = $(_f(function (x$61) { return x$61 + i$60; }), a$59);</p>
<p>Only functions, not blocks, are scopes in javascript.<br />
The assers in Isaacs code should obviously be</p>
<p>assert ((a.(0) 3) == 8);<br />
assert ((a.(1) 3) == 7);;</p>
<p>And print_int in ocamljs adds a newline that ocaml proper doesn&#8217;t add.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian Hars</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-648</link>
		<dc:creator>Florian Hars</dc:creator>
		<pubDate>Sat, 11 Oct 2008 21:26:14 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-648</guid>
		<description>I made you a bug report but your submission form has eated it.</description>
		<content:encoded><![CDATA[<p>I made you a bug report but your submission form has eated it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian Hars</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-647</link>
		<dc:creator>Florian Hars</dc:creator>
		<pubDate>Sat, 11 Oct 2008 21:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-647</guid>
		<description>&quot;with&quot; in javascript is absolutely evil. The code should compile to someting like

for (var i$60 = 1; i$60</description>
		<content:encoded><![CDATA[<p>&#8220;with&#8221; in javascript is absolutely evil. The code should compile to someting like</p>
<p>for (var i$60 = 1; i$60</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-646</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Mon, 05 May 2008 17:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-646</guid>
		<description>Issac, thanks for the bug report. I will try to get a fix released soon.</description>
		<content:encoded><![CDATA[<p>Issac, thanks for the bug report. I will try to get a fix released soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Issac Trotts</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-645</link>
		<dc:creator>Issac Trotts</dc:creator>
		<pubDate>Mon, 05 May 2008 05:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-645</guid>
		<description>Nice stuff, thanks very much for implementing it.  In the interest of making it even nicer, here&#039;s a bug report.  It looks like there is a bug with support for closures, that could be fixed using the JS &#039;with&#039; construct.  For details, search for &quot;(with&quot; in http://blogs.bl0rg.net/netzstaub/2005/03/09/javascript-experiences-tooltips/

let foo() =
  let a = ref [] in
  for i = 1 to 5 do
    a := (fun x -&gt; x + i) :: !a;
  done;
  Array.of_list !a;;

let foo_test() =
  let a = foo() in
  assert ((a.(0) 3) == 4);
  assert ((a.(1) 3) == 5);;

foo_test();;</description>
		<content:encoded><![CDATA[<p>Nice stuff, thanks very much for implementing it.  In the interest of making it even nicer, here&#8217;s a bug report.  It looks like there is a bug with support for closures, that could be fixed using the JS &#8216;with&#8217; construct.  For details, search for &#8220;(with&#8221; in <a href="http://blogs.bl0rg.net/netzstaub/2005/03/09/javascript-experiences-tooltips/" rel="nofollow">http://blogs.bl0rg.net/netzstaub/2005/03/09/javascript-experiences-tooltips/</a></p>
<p>let foo() =<br />
  let a = ref [] in<br />
  for i = 1 to 5 do<br />
    a := (fun x -&gt; x + i) :: !a;<br />
  done;<br />
  Array.of_list !a;;</p>
<p>let foo_test() =<br />
  let a = foo() in<br />
  assert ((a.(0) 3) == 4);<br />
  assert ((a.(1) 3) == 5);;</p>
<p>foo_test();;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-644</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Fri, 12 Oct 2007 17:36:02 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-644</guid>
		<description>I just read the source code; it is very clean. However, there is some documentation on the internals in the OCaml-Java project; see

  http://cadmium.x9c.fr/downloads.html

Your snippet manager would be useful in ocamljs since minimizing the resulting Javascript is important for web apps.</description>
		<content:encoded><![CDATA[<p>I just read the source code; it is very clean. However, there is some documentation on the internals in the OCaml-Java project; see</p>
<p>  <a href="http://cadmium.x9c.fr/downloads.html" rel="nofollow">http://cadmium.x9c.fr/downloads.html</a></p>
<p>Your snippet manager would be useful in ocamljs since minimizing the resulting Javascript is important for web apps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Massimiliano</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-643</link>
		<dc:creator>Massimiliano</dc:creator>
		<pubDate>Fri, 12 Oct 2007 10:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-643</guid>
		<description>Wow! I just downloaded it and this seems a top quality work.

Did you have access to some documentation on the internals of the ocaml compiler or did you just read the source code?

In case you had access to docs, could you please tell me what you had to do to obtain it?
If you just read the source would you like to write some documents (a tutorial or a blog post or whatever you like) explaining a bit the internals of the compiler?

I&#039;m working on a snippet manager to ease the distribution and reuse of ocaml code and to reduce the size of the binary by linking only those pieces of libraries that are used in your application and not the whole module. We already have a working prototype implementation using ocamldoc but we need to access the internals of the compiler to get a better tool. Our snippet manager will be released as free software.
If you are interested I can provide you further details.</description>
		<content:encoded><![CDATA[<p>Wow! I just downloaded it and this seems a top quality work.</p>
<p>Did you have access to some documentation on the internals of the ocaml compiler or did you just read the source code?</p>
<p>In case you had access to docs, could you please tell me what you had to do to obtain it?<br />
If you just read the source would you like to write some documents (a tutorial or a blog post or whatever you like) explaining a bit the internals of the compiler?</p>
<p>I&#8217;m working on a snippet manager to ease the distribution and reuse of ocaml code and to reduce the size of the binary by linking only those pieces of libraries that are used in your application and not the whole module. We already have a working prototype implementation using ocamldoc but we need to access the internals of the compiler to get a better tool. Our snippet manager will be released as free software.<br />
If you are interested I can provide you further details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel's All-New New News News Page</title>
		<link>http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/comment-page-1#comment-642</link>
		<dc:creator>Samuel's All-New New News News Page</dc:creator>
		<pubDate>Thu, 11 Oct 2007 23:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://skydeck.com/blog/programming/ocamljs-ocaml-to-javascript-compiler/#comment-642</guid>
		<description>&lt;strong&gt;OcamlJS...&lt;/strong&gt;

When you get a bunch of functional programmers in a room, and leave them with nothing else to do, they&#039;ll widdle away the hours working on interesting back-ends for their favorite compilers, like the OCaml to Javascript compiler.  Yes, you really did ...</description>
		<content:encoded><![CDATA[<p><strong>OcamlJS&#8230;</strong></p>
<p>When you get a bunch of functional programmers in a room, and leave them with nothing else to do, they&#8217;ll widdle away the hours working on interesting back-ends for their favorite compilers, like the OCaml to Javascript compiler.  Yes, you really did &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

