Skip to content

added MATLAB implementation, updated run.sh #59

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Imaniac230
Copy link

Not sure if useful but adding a version in the MATLAB language. There might be a cleaner way to display the matlab output in the terminal. Most of the delay is by starting up the matlab environment.

@geohot
Copy link
Owner

geohot commented Jul 20, 2020

Can you make it run in CI?

@Imaniac230
Copy link
Author

It should work, but I'm not sure how it handles the licenses. I'll see what I can do with it.

@geohot
Copy link
Owner

geohot commented Jul 20, 2020

Octave?

@Imaniac230
Copy link
Author

Yes, that will probably be the easiest and safest solution. Code runs with both.

@geohot
Copy link
Owner

geohot commented Jul 21, 2020

Hmm, m is used by objc.

@Imaniac230
Copy link
Author

Wow, I did not expect that to happen. I'm not sure what to do at this point then. Matlab does not work with any other extension, I don't know how it is with objc.

@gshanbhag525
Copy link
Contributor

@Imaniac230 @geohot .mm can be used for objc file but technically it ll be objc++.

@Imaniac230
Copy link
Author

Tried running objc with *.mm, problem is it currently doesn't compile in CI either way.

@gshanbhag525
Copy link
Contributor

@Imaniac230 Maybe rename your file as mergesortMatlab.m and it ll go through CI

@Imaniac230
Copy link
Author

@gshanbhag525 the matlab version works fine in CI but the objc one spits out an error. I don't know objc so I couldn't make that one compile.

@Imaniac230
Copy link
Author

So since there's no way to have both versions at the same time other than changing one of the files anyway I have renamed mine. Please check the compilation of objc in CI though, it doesn't compile. May open up an issue?

@gshanbhag525
Copy link
Contributor

@Imaniac230 If you have a mac, there should not be an issue while compiling.

@Imaniac230
Copy link
Author

@gshanbhag525 hmm that might be it. I'm talking about the integrated github CI check. The workflow is set to ubuntu-20.04. Or maybe I am missing something?

@Imaniac230
Copy link
Author

@geohot why no merge on this one?

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

Successfully merging this pull request may close these issues.

3 participants