From: SASADA Koichi Date: 2013-01-16T23:08:35+09:00 Subject: Re: Redom: Distributed object based server-centric user-friendly web application framework (2013/01/16 15:27), Alec Taylor wrote: > So it's basically Google Web Toolkit (GWT: > https://developers.google.com/web-toolkit/) for Ruby; much like > Pyjamas (http://pyjs.org/) is for Python? > > How generalised will you be making the client-side, e.g.: will you be > generating a bunch of HTML+JS+CSS files which talks RESTfully with > your Ruby server; that you can then load onto PhoneGap apps? GWT (and maybe Pyjamas) compiles some language to javascript. But redom doesn't make any JS (and other language) code (*1). All of DOM operations (and other JS methods) are invoked by RPC from server-side. example: Server-side Browser-side alert("hello") RPC ----------------> alert("hello") document.foo.bar RPC ----------------> document.foo => <-------------- .bar RPC ----------------> ref1.bar Yes, it has performance drawback because all operations need "server->browser" RPC (and also all browser-side events such as mouse click, etc will be sent to server-side). We optimize huge RPCs sendig using bulk messaging technique. *1: we support Ruby to JS compilation using Opal only for performance. -- // SASADA Koichi at atdot dot net