From: Michael Fellinger Date: 2010-12-17T13:43:31+09:00 Subject: Re: Communicating with Smalltalk On Sat, Oct 30, 2010 at 6:03 AM, Sean DeNigris wrote: > I'm using the Mechanize library from Squeak Smalltalk.  Right now, I'm > sending hard-coded text commands back and forth via TCPServer, but > someone suggested that, if I wrote DRb for Smalltalk, any ruby object > would be sharable with Smalltalk processes. > > How should I attack this?  Has it been done for any other language? > Is it a huge undertaking? I'd say it is. You'd have to emulate Marshal (de)serialization and a mapping between the Smalltalk and Ruby object models and message sends. Being optimistic, you might get something of hello-world dimensions working in a few days. Full compatibility might never be possible, and Marshal format changes with Ruby versions, so this is some major effort. It might be easier doing serialization with YAML, as there are libraries for most Smalltalk implementations available. I think Eric Hodel did some work in that direction. Another project to look at is Maglev, I have little experience with it, but worth mentioning anyway. -- Michael Fellinger CTO, The Rubyists, LLC