Sounds like you want protocol buffers, until you mention that you don't like code-generation. In that case, Avro might fit your bill [http://hadoop.apache.org/avro/], however, you pay a performance penalty when you use Avro's dynamic packing/unpacking. Avro does have code generation as an optimization feature, though.
↧