Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - regarding the expectation of mcc ctf compile #2275

Open
supertick opened this issue Aug 21, 2024 · 3 comments
Open

Question - regarding the expectation of mcc ctf compile #2275

supertick opened this issue Aug 21, 2024 · 3 comments

Comments

@supertick
Copy link

supertick commented Aug 21, 2024

Hello,
This is only an observation and question regarding the expectation of master/head to successfully compile with mcc.

I've started trying to compile cobratoolbox with with a matlab app. The app code compiles fine, but the cobratoolbox has a variety of errors.
Some are invalid default values in functions:
function allPaths = DFS(graph, s, e, allPaths = {}, path = [], upperBound = 5)
But there are a variety of others, I am still working through them.
I'm guessing mcc is not used to validate as part of the release process of cobratoolbox ?
Forgive my ignorance, I'm a complete noobie regarding MatLab, however, I do have some software engineering experience.
Thanks !
Cheers.

@rmtfleming
Copy link
Member

rmtfleming commented Aug 22, 2024 via email

@rmtfleming
Copy link
Member

rmtfleming commented Aug 22, 2024 via email

@supertick
Copy link
Author

Hi,
Thanks for your prompt reply.

My motive started from a project using a product called "MatLab AWS production service" maintained by MatLab. It's intent is to run MatLab as a potential web service. It requires deployments to be compiled into a ctf. It has the MatLab runtime installed only. I'm relatively new to the project I am working on, and a complete noobie to MatLab as I mentioned.

In order to satisfy some of my project requirements quickly, I chose a brute force method of compiling with mcc -a "cobratoolbox" .... At some point, I will go through and find what exactly is being used by our project. There are not many syntax errors considering the amount of code. I'm guessing the command I used goes through recursively linting and compiling all the files. Or, code is pulled in from imports or recursive dependencies? ... again I'm new to mysteries of how MatLab works.

I understand the challenge of maintaining quality of an open source project, I run a couple myself ;)
In the end, the first iteration for my project will probably not use ctf, based on the complexity and time constraints.
Since a long time, I've wanted to enable those without a matlab licence to use the COBRA toolbox!
This seems like a worthy goal.

From my software engineering perspective,
I saw the init has a parameter to not update itself which is good, although I'd question it being defaulted to true.
Additionally, I didn't see a parameter or method to "not" use a git call if git is installed. In my environment, the expectation is code should not self modify nor reach out over the network by default, but the objectives here could be very different.

Cheers,
Greg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants