Re: SWIG + Mathematica?
BabyW <[email protected]>
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
I'm no expert in either SWIG or Mathematica, but as far as I know, SWIG does not have a backend for Mathematica, and even if it did, it wouldn't do what I think you want. If you wrote a bunch of C or C++ code, for example, that you wanted to call from a Mathematica notebook, SWIG could help (if it supported Mathematica). Along those lines, there is https://github.com/szhorvat/LTemplate. It sounds like you want a transpiler that converts Mathematica source code into some other language. Such a project would need to first understand and parse Mathematica's language (the same way Mathematica does). Then it could convert what it parsed into equivalent-looking constructs in a target language (like Python or C). Then any of the Mathematica functions that don't already exist in the target language would need to be reimplemented. Something like https://github.com/rljacobson/FoxySheep, perhaps. Whether that solves or even has any impact on your intellectual property claims problem is a question that needs a lawyer to answer. I'm not just dodging the issue by saying that; I've seen several lawsuits over this very scenario in other languages, and there seems to be no clear pattern to which side wins or comes out on top in a settlement. Carl MacGentey <[email protected]> said (on 2020/07/15): > Dear SWIG- > > Suppose I compose a notebook in Mathematica. Can I load the notebook up into SWIG and convert the Mathematica code to some version of C Code? I am looking for some way to free myself up from software patent / copyright claims from the people at Mathematica. I am wanting to produce software packages that belong to me free of any ambiguities about ownership of intellectual property. > > Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10