symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics
https://symforce.org
Apache License 2.0
1.41k stars 145 forks source link

cpp version issue #210

Closed dong-won-shin closed 2 years ago

dong-won-shin commented 2 years ago

Thanks for your great nonlinear optimization library. I'm testing some features (codegen, sym_opt etc...) and impressed by the improvement in regard to the time complexity. However, in my application, I need to develop under c++11 so I'm trying to find the way to handle this issue.. I wish to get some advice from your perspective, whether it would be easy or hard. Again, thanks for your contribution!

aaron-skydio commented 2 years ago

We definitely aim to be compatible with C++14 and later with no guarantees to be C++11 compatible. The generated functions themselves probably are C++11 compatible or close to it, but the optimizer would likely require a good amount of modification to compile on C++11 and that's not something we're planning to support. The generated sym types are probably somewhere in between. Curious if there's a particular platform or compiler you're targeting?

dong-won-shin commented 2 years ago

I appreciate your valuable comment :-) In my case, I'm trying to check the feasibility of applying this on the automotive spec. on this stage, we usually have very limited computational power and memory capacity and low c++ standard. anyway I found out that the conversion to c++11 would be hard and tedious, that's also a good clue for considering further step. thank you very much.