Closed korken89 closed 5 years ago
Hey @alphaville I think you can start having a look at this now, I just have documentation left (I think).
It now generates a complete library based on icasadi
, so no Rust code generation is needed at all.
Do you have any comments on the generated interface?
Hi Pantelis,
I have a working example of generating a static C/C++ library based on PANOC now. But I found an issue we have to tackle. Currently the generation of bounds allocate as we need to pass
Vec<_>
s into the constraints. I think we should change that to&[_]
, or have an API to move the vectors out again when we need to destroy theProblem
struct.I was hoping to be able to have the
Problem
struct as a part of thePanocInstance
, but the use of generics inProblem
made this impossible. This is why I'm thinking about the above so creating aProblem
becomes cheap.BR Emil
Closes #8
NOTE: This branch is based on the
emil_fix
branch