[racket-dev] Racket on Rockets

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Wed Jul 27 16:01:35 EDT 2011

On Wed, Jul 27, 2011 at 12:21 PM, Tony Garnock-Jones <tonyg at ccs.neu.edu> wrote:
> On 2011-07-26 1:20 PM, Jay McCarthy wrote:
>> I don't have a lot of expertise on the ORM side, but I think Snooze
>> would probably be awesome and my MongoDB-backed structs may be helpful
>> too.
> Is there a way of generically traversing all structure in a completely
> privileged way in Racket, without programming at the VM level? For
> example, one might wish to serialize some arbitrary data structure or
> write an object inspector or interactive debugger.

If you have a sufficiently powerful inspector, you can traverse any
structure.  In principle, you can even traverse closures this way, but
no inspector with the needed power exists.  See `struct->vector'.

> I'm guessing "no" is the answer, based on the existence of separate
> "serializable" and "non-serializable" structure definitions. I guess
> that if I were to try it out I'd be defeated by opaque closures and by
> the inspector mechanism. Does that sound right?
> Regards,
>  Tony
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev

sam th
samth at ccs.neu.edu

Posted on the dev mailing list.