[racket] Serializable struts and the quoted module path

From: Michael Wilber (mwilber at uccs.edu)
Date: Thu May 24 20:14:20 EDT 2012

Hey there!

So I'm trying to use racket/serialize according to
http://docs.racket-lang.org/reference/serialization.html?q=serialize#(def._((lib._racket/private/serialize..rkt)._deserialize))

According to the third bullet point, custom serializable structure types
include a "quoted module path" pointing to a module that provides the
serialized structure's serialization info. It seems to be a full
absolute filesystem path in my tests.

Problem is, I want to send serializable structs across the network to a
machine where the module path is different.

Is there a sane way to, uh, strip off the absolute parts in that path? I
could just mess around with the serialized info myself, but... oy,
that just feels nasty.

(If anyone's curious, my ultimate goal is to send serializable lambdas
to other machines. Just like Distributed Places, but not as conceptually
confusing and constraining.)
http://blog.racket-lang.org/2009/06/serializable-closures-in-plt-scheme.html

Thanks in advance.

Posted on the users mailing list.