Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

share|improve this question
    
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. –  Ymareth Jan 28 at 14:21
1  
I found the question to be confusing, so I rephrased it. Please verify. –  Szabolcs Jan 28 at 15:44
1  
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. –  Szabolcs Jan 28 at 15:51
    
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? –  Jacob Akkerboom Jan 28 at 18:29
    
@Szabolcs The question is stated that your comment could be an answer, please consider posting it. –  Kuba Mar 19 at 17:28

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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