2
$\begingroup$

Do you know of any work being done on the idea of bringing in code from other languages like Perl, PHP, Python, etc.? That is, import the code in some way and then convert it to Mathematica code?

$\endgroup$
  • 1
    $\begingroup$ You can load java classes and execute those "within" mathematica using JLink, they actually run in a linked JVM. The same would apply for python code via JYthon. Similarly .Net classes may be run using NetLink and IronPython would also work. $\endgroup$ – Ymareth Jan 28 '14 at 14:21
  • 1
    $\begingroup$ I found the question to be confusing, so I rephrased it. Please verify. $\endgroup$ – Szabolcs Jan 28 '14 at 15:44
  • 2
    $\begingroup$ No, Mathematica has no built-in ability to do this. I am not aware of any packages either, though there might be some limited ones. What you can do is call code written in other languages from Mathematica. I am aware of interfaces to C/C++, Java (and other JVM-based languages), .NET, R, MATLAB, Clojure, NetLogo, Python (limited). There are probably others. $\endgroup$ – Szabolcs Jan 28 '14 at 15:51
  • $\begingroup$ With some probability, I see myself making some code designed to convert a subset of SymbolicC to MMA code, but never finishing it. But who (else) cares about SymbolicC :P? $\endgroup$ – Jacob Akkerboom Jan 28 '14 at 18:29
  • $\begingroup$ @Szabolcs The question is stated that your comment could be an answer, please consider posting it. $\endgroup$ – Kuba Mar 19 '14 at 17:28
2
$\begingroup$

No, Mathematica has no built-in ability to do this. I am not aware of any packages either, though there might be some limited ones.

What you can do is call code written in other languages from Mathematica. I am aware of interfaces to C/C++, Java (and other JVM-based languages), .NET (see all three here), R, MATLAB, Clojure, NetLogo, Python (limited). There are probably several others.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.