Communicating with Smalltalk

I’m using the Mechanize library from Squeak S… 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?

Thanks.
Sean

p.s. googling “ruby drb other languages” found nothing interesting

I had a dream to start my business, but I didn’t have got enough of
money to do this. Thank heaven my dude said to take the mortgage
loans
. Thence I took the consolidation loans and realized my desire.

On Sat, Oct 30, 2010 at 6:03 AM, Sean DeNigris [email protected]
wrote:

I’m using the Mechanize library from Squeak S… 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 H. did some work in that direction.

Another project to look at is Maglev, I have little experience with
it, but worth mentioning anyway.

On Dec 16, 2010, at 20:43, Michael F. [email protected]
wrote:

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.

Iirc you can set drb’s serializer to yaml. I think I remember Eric
showing me such a thing at one point.