Thread: Read + Write = ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #23
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    When speaking of the serialization process in general it never occurred to me (and I can't recall anyone else doing it either) to specify both the tasks of serializing and deserializing, unless there is a real necessity to do so. The latter is just implicit in the more general term we known as Serialization and that we use in common language.

    So, were I to have a need to merge both read and write operations for the purposes of serialization and deserialization, I wouldn't think twice calling it Serialize or some form of it. Searching for some other word seems to me confusing, not to the point and a unnecessary exercise. IO and or ReadWrite seems convenient too, especially if the merged functions referred to the strict actions of reading and writting data to a medium. But Transduce? Literate?... Exchange? Really, enough joking.

    As for mapping, MK27 is correct in my option. There's not requirement for serialization to perform any sort of data transformations. For all purposes, one can serialize an object by simply writing its current memory representation byte by byte. If there's any data mapping occurring, it will be a decision of the programmer usually to store it in a more convenient format for quick retrieval later or to be accessible by other programs. But definitely not anything deemed necessary to perform the task of serializing an object.
    Last edited by Mario F.; 01-22-2010 at 11:24 AM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read write problem
    By zephon in forum C Programming
    Replies: 3
    Last Post: 01-13-2009, 04:04 AM
  2. Read and write binary file?
    By Loic in forum C++ Programming
    Replies: 2
    Last Post: 10-29-2008, 05:31 PM
  3. using threads to write & read from files
    By kishorepalle in forum C Programming
    Replies: 4
    Last Post: 10-19-2004, 05:19 PM
  4. write(), read()
    By RedRum in forum C++ Programming
    Replies: 5
    Last Post: 06-09-2002, 11:45 AM
  5. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 06:05 PM