It might be possible to create a Julia version of the task struct, based on the memory layout information in #89, then we can further simplify the getfield/setfield functions for manipulating the task fields. It might require creating some new bit types (or primitive types) to represent arbitrarily sized memory blocks without clear Julia equivalent type.