From hraban at 0brg.net Fri Sep 30 21:32:48 2011 From: hraban at 0brg.net (Hraban Luyat) Date: Fri, 30 Sep 2011 23:32:48 +0200 Subject: [cl-store-devel] numeric code Message-ID: Hi, Is there a reason for the necessity of codes being numeric? I thought it would be nice to use symbols. Specifically, the class name of an object. That way each class has an obvious unique code and I do not need to manually keep track of which ones are in use and which ones are not. Then I can forget about register-code entirely. I would like to comment further on cl-store in this otherwise quite abrupt e-mail, but I have not really used it yet. So far the API looks cool, though. Thanks for maintaining and writing cl-store. Greetings, Hraban Luyat From demmeln at in.tum.de Fri Sep 30 22:06:16 2011 From: demmeln at in.tum.de (Nikolaus Demmel) Date: Sat, 1 Oct 2011 00:06:16 +0200 Subject: [cl-store-devel] numeric code In-Reply-To: References: Message-ID: Am 30.09.2011 um 23:32 schrieb Hraban Luyat: > Is there a reason for the necessity of codes being numeric? I thought > it would be nice to use symbols. Specifically, the class name of an > object. That way each class has an obvious unique code and I do not > need to manually keep track of which ones are in use and which ones > are not. Then I can forget about register-code entirely. Without knowing too much detail about the implementation, I guess it is mainly an implementation reason. The code is directly used for serializing. IIRC you can only use 256 different values anyway, at least with the default backend. I like your idea though. I guess one would have to maintain a table of codes and corresponding symbols and use codes still for actual serialization, otherwise there could be a very significant (space) overhead if you dump big data. > I would like to comment further on cl-store in this otherwise quite > abrupt e-mail, but I have not really used it yet. So far the API looks > cool, though. Thanks for maintaining and writing cl-store. As Sean is looking for a new owner for cl-store I guess you will probably have to implement this yourself. Best, Nikolaus