From: Anders Bengtsson Date: 2003-03-17T23:37:56+09:00 Subject: Re: ANN: Madeleine 0.1 --- Brian Candler skrev: > This is beautiful. Thanks! :) > Small suggestion: take class 'Marshal' as a parameter. Then you can > choose a > different Marshal-type class like 'YAML'. Although right now YAML is > slow, > this would give a language-independent database which you could even > edit > with 'vi' (great for data recovery). It might end up containing a lot > of > spaces, but it should gzip very well. Good idea. I like the YAML concept a lot. > Note to WHY: please can we have a YAML::dump(object [,IO]) method, > for > symmetry with Marshal? I could just add wrapping classes that wrap either Marshal or YAML, so a change in YAML won't be necessary. Unless it's a good idea for YAML anyway? > For testing I just replaced 'Marshal' with 'YAML', added the > following: [readable data example snipped] > Having such readable files could go a long way towards addressing the > resistance which may arise towards treating your entire database of > (say) > a million customer records as a single opaque binary blob... There has been some talk about XML serialization on the Prevayler lists, which gives the advantage of using XSL to upgrade the data format. But I hope YAML's closer integration with Ruby itself makes upgrading even simpler. > > Cheers, > > Brian. /Anders ===== __________________________________________________ Anders Bengtsson ndrsbngtssn@yahoo.se Stockholm, Sweden _____________________________________________________ G� f�re i k�n och f� din sajt v�rderad p� nolltid med Yahoo! Express Se mer p�: http://se.docs.yahoo.com/info/express/help/index.html