optimization-engine icon indicating copy to clipboard operation
optimization-engine copied to clipboard

Move MATLAB codegen to Jinja2

Open korken89 opened this issue 7 years ago • 4 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Lets move the matlab codegen to Jinja2 templates, the current template code is very hard to read and see how it comes together. This will also help with the C/C++ lib generation and overview IMO.

Describe alternatives you've considered Keep it as it is.

Additional context Link: Jinja 2 documentation

korken89 avatar May 16 '19 17:05 korken89

Jinja is not supported in MATLAB, but there's Lobster (but it looks abandoned).

alphaville avatar Sep 20 '19 13:09 alphaville

Matlab can call into python, that should be enough

korken89 avatar Sep 20 '19 14:09 korken89

@korken89 that's certainly a legit solution. I'm just concerned that users will need to install the Python package - not too difficult, but the less one does during installation, the better it is.

alphaville avatar Sep 20 '19 15:09 alphaville

Hey guys, you could write your functionality in Java and invoke it from Matlab, since Matlab is natively Java I believe. This would require your jar in Matlab's classpath though, not sure if you could do this through an add-on. Cool project btw!

hampos avatar Oct 30 '19 14:10 hampos