Are there already any plans for the frozen image data format?
Currently I'm writing plain ASCII strings, which is quite handy for testing.

The Plan(tm) is to use PBC constant format (or extensions to this) later, so that PMC constants nicely integrate into byte-code and that freezing closures can use the existing infra structure.

The interface now looks like this:

typedef void  (*push_item_f)(Parrot_Interp, struct _visit_info *,
        PARROT_DATA_TYPES, void*);
typedef void* (*shift_item_f)(Parrot_Interp, struct _visit_info *,
        PARROT_DATA_TYPES);

typedef struct _visit_info {
...
    push_item_f         push_item;      /* write item to image */
    shift_item_f        shift_item;     /* get item from image */
} visit_info;

... so switching to different formats is rather simple.

leo



Reply via email to