tag:blogger.com,1999:blog-8288194986820249216.post5585529867659888217..comments2024-03-22T05:09:17.789-07:00Comments on Abstract Heresies: SerializationJoe Marshallhttp://www.blogger.com/profile/03233353484280456977noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8288194986820249216.post-65031447514051863782010-04-08T12:41:54.757-07:002010-04-08T12:41:54.757-07:00READ is more general, so it costs extra time compa...READ is more general, so it costs extra time compared to a dedicated parser (but not much, and it already has lots of extensions I am going to want later). WRITE is also more general, but that just costs code space.<br /><br />Compression is still in the hands of the durability layer, which can map to binary or whatever it wants.John Cowanhttps://www.blogger.com/profile/11452247999156925669noreply@blogger.comtag:blogger.com,1999:blog-8288194986820249216.post-18790043952720107252010-04-07T22:21:45.486-07:002010-04-07T22:21:45.486-07:00Given that you haven't told us much about the ...Given that you haven't told us much about the intended use of this storage mechanism, I vote with Student A and John. Binary formats are lost much more quickly than text.<br /><br />The drawbacks are primarily performance related, and since the use of the storage isn't known yet, it's premature to optimize.kbobhttps://www.blogger.com/profile/11512820963025257647noreply@blogger.comtag:blogger.com,1999:blog-8288194986820249216.post-3061396661298089332010-04-07T15:12:49.809-07:002010-04-07T15:12:49.809-07:00That'll work. (Question 2a: What are the dra...That'll work. (Question 2a: What are the drawbacks?)Joe Marshallhttps://www.blogger.com/profile/03233353484280456977noreply@blogger.comtag:blogger.com,1999:blog-8288194986820249216.post-14741643361043262672010-04-07T13:14:08.925-07:002010-04-07T13:14:08.925-07:00Student A says: "Given that I don't have ...Student A says: "Given that I don't have to care about compression, I make the following choices: My binary format is UTF-8 plain text, my encoder is WRITE, and my decoder is READ — okay, with a filter in front to reject invalid input, if you insist. UUIDs are supported via <a href="http://srfi.schemers.org/srfi-10/srfi-10.html" rel="nofollow">SRFI 10</a>."John Cowanhttps://www.blogger.com/profile/11452247999156925669noreply@blogger.com