<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi YC,</div><div><br></div>There are two current, well documented ways of generating Javascript source using Scheme code:<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        <a href="http://planet.plt-scheme.org/package-source/dherman/javascript.plt/9/2/planet-docs/javascript/index.html">http://planet.plt-scheme.org/package-source/dherman/javascript.plt/9/2/planet-docs/javascript/index.html</a></span></div><div><span class="Apple-tab-span" style="white-space:pre"></span><span class="Apple-tab-span" style="white-space:pre">        <a href="http://planet.plt-scheme.org/package-source/untyped/mirrors.plt/2/2/planet-docs/mirrors/index.html">http://planet.plt-scheme.org/package-source/untyped/mirrors.plt/2/2/planet-docs/mirrors/index.html</a></span><br><div><br></div><div>To my knowledge, neither of these libraries compile actual Scheme into Javascript, but they both have a parenthetic syntax for writing Javascript code. So, for example, in Mirrors you can do stuff like this:</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 13px;"> (js (alert ,(string-append "Hello " "world"))</span></font></div><div><br></div><div>I use Mirrors with jQuery quite a lot;</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 13px;"> (js (!dot ($ "#mybutton")</span></font></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 13px;"> (click (function () (alert "Hi")))))</span></font></div><div><br></div><div>As a user of PLT in a commercial environment, I'd be more than happy to talk ideas/code/etc. </div><div><br></div><div>Last note... AJAX and web frameworks... we *do* have a working framework, but it's basically undocumented. I'd welcome feedback/comment/collaboration if you want to take a look (let me know if you have versioning problems when you compile it):</div><div><br></div><div> $ svn co <a href="http://svn.untyped.com/smoke/trunk/src">http://svn.untyped.com/smoke/trunk/src</a> <somewhere></div><div> $ cd <somewhere></div><div> $ mzc run-tests.ss && mzscheme run-tests.ss</div><div> Open <a href="http://localhost:8765">http://localhost:8765</a> in your browser.</div><div><br></div><div>Cheers,</div><div><br></div><div>-- Dave</div><div><br></div><div><blockquote type="cite">I am wondering if anyone is working on the AJAX + PLT scheme problem space, including some or all but not limited to the following:<br><ol><li>server-side vs client-side continuation<br></li><li>generating javascript from PLT scheme source <br></li></ol></blockquote><blockquote type="cite"><ol start="2"><li>graceful degradation of interactivity within web browsers </li></ol></blockquote><blockquote type="cite"><ol start="3"><li>integration with popular javascript frameworks such as jQuery, prototype, etc </li></ol></blockquote><blockquote type="cite"><ol start="4"><li>already have a framework to be released... </li></ol></blockquote><blockquote type="cite"> Please let me know if you are tackling these problems and would like to brainstorm, trade notes, etc. <br> <br>Thanks,<br>yc<br></blockquote></div><br></div></body></html>