I found the following paradigm quite useful and I would love to be able to reproduce it somehow in Julia to take advantage of Julia\'s speed and C wrapping capabilities.