Igor Baklan (2016-06-23T20:00:27.000Z)
io.baklan at gmail.com (2016-06-25T11:18:22.178Z)
By the way it looks very similar to [js-ctypes/StructType]( https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/js-ctypes_reference/StructType#Describing_fields) Although it designed for interoperability with native code (not for code performance improvement, or better code readability), it still might be interesting for you (more links can be found at [wiki/Libffi/JavaScript]( https://en.wikipedia.org/wiki/Libffi#JavaScript) )