WIP port to Julia of a sim