From attila.lendvai at gmail.com Wed Nov 24 13:48:40 2010 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Wed, 24 Nov 2010 14:48:40 +0100 Subject: [cl-serializer-devel] (no subject) In-Reply-To: References: <866382.67920.qm@web65415.mail.ac4.yahoo.com> Message-ID: > my take is basically (2): define separate (de)serializers for > structure-object's and standard-object's instead of a shared (def > serializer-deserializer slot-object ...) and use them appropriately > from (def serializer-deserializer structure-object ... ) and (def > serializer-deserializer standard-object +standard-object-code+ ...). > maybe dealing with funcallable-standard-class, too if necessary. for the record, as far as i remember, i've implemented this meanwhile... see the generics: - write-object-slots - read-object-slots -- ?attila ps: removing star from this mail now... :) From attila.lendvai at gmail.com Wed Nov 24 15:07:11 2010 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Wed, 24 Nov 2010 16:07:11 +0100 Subject: [cl-serializer-devel] Two issues, one resolved, for CL-SERIALIZER in Allegro 8.1 In-Reply-To: <379975.18355.qm@web65413.mail.ac4.yahoo.com> References: <379975.18355.qm@web65413.mail.ac4.yahoo.com> Message-ID: hi! sorry for the delay, cleaning up my starred mails... :) > #1. (SETF LOGBITP) is not defined in ACL 8.1 (nor in CLISP), and as far as I can tell isn't part of the standard nor can be portably defined. > > I'm changing (SETF (LOGBITP x y) z) > to (SETF y (DPB z (BYTE 1 x) y) ? ? ?(2 places). > Maybe (SETF LDB) is better? > > #2. It seems that cl-serializer assumes that objects of type BASE-CHAR must be 8-bit characters, and thus can be encoded in a single byte. ?But this isn't the case in Allegro, where (TYPEP (CODE-CHAR 257) 'BASE-CHAR) is true. ?I didn't find a good way to get into the type detection logic to cause multi-byte characters to do the right thing. ?Suggestions? for the record, both of these issues should be dealt with in hu.dwim.serializer. http://dwim.hu/darcsweb/darcsweb.cgi?r=HEAD%20hu.dwim.serializer;a=summary -- ?attila