Memory layout should be library/protocol. Look at the gigawatt hours that have been spent on serialization, and the resulting work one has to put into having a serialization-free format like Capnproto. The heap should be like a well formed database and those accessors should be portable across languages and systems.
One should be able to specify a compile time macro that controls memory layout.
One should be able to specify a compile time macro that controls memory layout.