Sure, it's up at http://github.com/Bluebie/legs/tree/master

Though the chat server and shoes client up on there are terribly out of date. I think i'm okay on the architecture front at the moment. For now I just have the thing clear the whole window and rebuild it again when an event happens, which seems good enough.

It's important to understand that in Legs I'm using the idea of RPC simply as a simple way to send messages between clients which act pretty much as peers, except that in the chat server example, one of the legs peers is set up as a central server, and the 'clients' are set up not to listen on any tcp ports, so their methods can only be called by the server they connected out to. It works over a persistent tcp connection using JSON-RPC 1.0 as the basis of the messages. The idea of a 'method' and parameters which has a result, is quite a nice one when it comes to networking, and the use of JSON means we can just talk in regular objects like strings and hashes and not have to do any complex decoding or parsing, like you need to with protocols like IRC or XMPP. It's just a little fiddly thing for making little hacks, nothing serious. As why used to describe camping: A pocket full of gags microframework. The whole thing is really about having a bit of fun with networking. My experience with networking before has always been getting boged down with message formats and interfacing with sockets instead of.. you know... getting things done and having fun. I hope one day to see it included with hackety hack for user's who are up to the level of being able to write their own class, use hashes, arrays, strings, do math, that sort of stuff, and who also understand how to create objects, and enough about IP protocol to know how IP addresses, hostnames, and ports work. It's a more advanced sort of a thing than most of what seems to be in hackety hack, but still I think very useful and quite fun. :)

Also thinking a friendly interface to the ruby net-mdns libraries over on rubyforge would be a good companion... It's a pure ruby implementation of apple's bonjour thingo, which would be niftier than using hostnames and ip addresses for beginners who might want to be more p2p than hard coding a 'server' hostname in to their clients, or having to enter an IP address to be able to connect to the other apps running on their lan.

Shoes sure is nifty!

Reply via email to