Nim: Matlab/Simulink nim-mex

Created on 15 Jul 2018  路  10Comments  路  Source: nim-lang/Nim

Matlab/Simulink can generate code like nim. Matlab generates two type 1) Standalone C,C++/Cuda(not support lots of thinks) 2) Matlab Runtime C,C++/Cuda code generation
I am imagining code generation will become easier than anything.

Most helpful comment

This should be done as a library just like Nimpy by an interested party. It does not belong in core Nim or Nim standard library.

I vote for closing this. It could be added to the meta Are we scientist yet but if it does not exist in Python or Julia (which can wrap C/C++ easily) I think it's even less likely to find someone to maintain a Nim <-> Matlab bridge.

All 10 comments

What is exactly the issue? I honestly do not understand what you are asking for

Have you ever used matlab c shared libray and mex functions?
Making matlab extentions will become easy with nim mex tool and grnerated matlab code can ve used in nim applications.

No, I have not, but I still do not understand what feature you are asking for.

Something that will autogenerate bindings to use nim libraries from matlab - like nimpy does for Python? If so, this would be better suited to a nimble package.

Yes. Binding generation for matlab or other scientific tools. I am using matlab/simulink for a long time.
Matlab has no capability to generate io function code generation but generated mathmetical codes are lighting fast. You can make replacement with other blas and lapack libraries.
Sorry for confusion.

This should be done as a library just like Nimpy by an interested party. It does not belong in core Nim or Nim standard library.

I vote for closing this. It could be added to the meta Are we scientist yet but if it does not exist in Python or Julia (which can wrap C/C++ easily) I think it's even less likely to find someone to maintain a Nim <-> Matlab bridge.

There is one think about core library. Instead of writing all of mathmetical operations with famous libraries, make Nim code replacement for blas and lapacak like matlab.
I will make some try with them.

@develooper1994 My guess is that you are not a native english speaker, so I am not sure I interpret your last remark correctly, but for sure a tool that generates Matlab bindings for Nim can be developed purely as a library.

This is the approach followed by Nimpy, that I mention above, and can be used for Matlab as well. If you want to argue for this bridge, the best place to post is the thread Are we scientist yet linked by @mratsim

I am not native english speaker. My keyboard makes some bir silly corrections. I am struggling with it. 馃榿
Please, Close issue if you can.

@develooper1994 As you mentioned the biggest hole in the Matlab mex toolset, it doesn't support exporting simple file open/close operations, which is crazy.

It would though be nice to have Nim and Matlab talk to each other for other calculation stuff. I was instead thinking of accessing Matlab libraries exported to C from Nim.

Though, looks like this discussion doesn't need to be an Issue here, as this is probably not something that Nim core needs to support. I'd believe, the Nim Forum is a better place for this.

Closing as requested by @develooper1994 - feel free to post on http://forum.nim-lang.org/ or on the thread linked by @mratsim

Was this page helpful?
0 / 5 - 0 ratings