Maxwell: A new kind of model that sits between code and hardware