Forum: Ruby Redom: Distributed object based server-centric user-friendly web application framework

Posted by SASADA Koichi (Guest)
on 2013-01-15 16:56
(Received via mailing list)
Hi all,

Let me introduce a new web-application framework "Redom" by Eki Ko. He
is a master course student at graduate school of The University of 
Tokyo.

Redom is a distributed object based server-centric user-friendly web
application framework. Redom enables developers to write all application
logic in Ruby at server side easily using both browser-side and
server-side libraries. Redom provides distributed objects published by
browser in natural Ruby syntax so that developers can access
browser-side objects directly.

In short, you can make a dynamic web application only using server-side
Ruby program with Redom framework.

For example, you can make multi-client chat application in 47 lines
server-side Ruby program. You don't need to write any client-side
JavaScript program.
https://github.com/future-azure/redom/blob/master/...

Feedback is highly welcome.

Thanks,
Koichi
Posted by tamouse mailing lists (Guest)
on 2013-01-16 07:18
(Received via mailing list)
On Tue, Jan 15, 2013 at 9:55 AM, SASADA Koichi <ko1@atdot.net> wrote:
> browser-side objects directly.
>
> Thanks,
> Koichi
>
> --
> // SASADA Koichi at atdot dot net
>

I deem Redom fully buzzword-compliant. :)
Posted by Alec Taylor (Guest)
on 2013-01-16 07:27
(Received via mailing list)
Nice,

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?

Or is it more coupled?

Best regards,

Alec Taylor

PS: And yes Tamouse; gotta love the jargon :P
Posted by SASADA Koichi (Guest)
on 2013-01-16 15:09
(Received via mailing list)
(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 => <ref1>
     <ref1> <--------------
   <ref1>.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.
Posted by Durk B. (dirk_b)
on 2013-01-20 08:32
Attachment: gemlist (995 Bytes)
I am running the redom examples (via rackup). The http-server is running
fine, but after the initial screens of the apps, it says 'socket closed'
in the console-log.

Ubuntu 12.10 / chromium 23.0.1271.97 / ruby-1.9.3-p327 / gems-list
attached
Posted by Durk B. (dirk_b)
on 2013-01-20 13:27
Durk B. wrote in post #1092907:
> I am running the redom examples (via rackup). The http-server is running
> fine, but after the initial screens of the apps, it says 'socket closed'
> in the console-log.
>
> Ubuntu 12.10 / chromium 23.0.1271.97 / ruby-1.9.3-p327 / gems-list
> attached

Solved by running the redom command separately. Perhaps it was in the
manual...
Posted by SASADA Koichi (Guest)
on 2013-01-22 00:03
(Received via mailing list)
Thank you for your trying.

The author Eki Ko is busy to write his master thesis :)
I also Cc'ed this e-mail and your suggestion will apply soon.

Any other comments (productivity and so on) is welcome.

Thanks,
Koichi
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.