Some new legs
Hiya hackers! I’ve been playing a lot with _why’s Shoes doodad. It’s a funky little UI thingo for making desktop apps that’s really fun to use and all that. There are some really great tool’s coming to life in the ruby universe that I really wish I’d had when I was a kid back playing with Quick/Visual Basic.
So anyway’s, one of the things that used to be so painful was making anything networked! IP sockets are such a pain in the butt. It shouldn’t be so hard, so I’ve done something about it. Legs is my little ruby script a couple hundred lines long. It implements the json-rpc spec for super simple warm gooey peery sort of networking. Because it uses JSON and TCP sockets, it’s compatible with pretty much any language if you can be bothered implementing the json-rpc 1.0 spec in it too. Check it out on my github!
I hope some of you find this useful. I’m really hoping this will get included with Hackety Hack when it gets rebuilt in Shoes. It’s not designed for high load systems or anything where stability is hugely important. You could make server’s that could handle more load by multithreading the requests, but it’s a huge pain in the butt to write servers like that, so Legs doesn’t support it. Legs is for ruby newbies who know enough syntax to make their own class, and know enough about IP to know what an IP address, hostname, and port are. Of course you don’t have to be a newbie to use it! I’m using it for nifty experiments, even thinking about building a little open hackers p2p network on it! It is intentionally designed to blur the lines between client and server, so any idea of a client or server is one the user invents through their own design. :)
