Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Rebol pickling recipes ?

From: jason:cunliffe:verizon at: 3-Oct-2002 20:50

I am playing around with little Rebol database objects on my server. Want to use them for simple login/password use. But also some metadata to be included with file upload over http. After a few days with Python I am wondering how to 'pickle' Rebol objects? http://www.python.org/doc/current/lib/module-pickle.html <quote> 3.14 pickle -- Python object serialization The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. ``Pickling'' is the process whereby a Python object hierarchy is converted into a byte stream, and ``unpickling'' is the inverse operation, whereby a byte stream is converted back into an object hierarchy. Pickling (and unpickling) is alternatively known as ``serialization'', ``marshalling,''3.2 or ``flattening'', however the preferred term used here is ``pickling'' and ``unpickling'' to avoid confusing. </quote> A related question is how to compress and decompress these for obvious security reasons. I know Vanilla uses objects a lot for its dynasnips. I am interested to send Rebol pickles over http via forms as part a very simple, granular, low-tech distributed persistence experiment. I might be barking up the wrong paradigm tree. Or you lot may already be light years ahead me.. Anyway, like most things in Rebol its fun to try, and something good may come of it :-) thanks ./Jason