I'm pleased to announce jlcall <https://github.com/twadleigh/jlcall>, a 
project that exposes Julia to MATLAB through the MEX interface. (And only a 
brief ten months after posting my gist 
<https://gist.github.com/twadleigh/387f7aeb9707226d7d18> with my 
proof-of-concept, too. ;-))

*Highlights*

   - Call any Julia function whose arguments can be marshaled to Julia via 
   MATLAB.jl's jvariable function and whose return value can be marshaled 
   to MATLAB via mxarray.
   - Evaluate arbitrary Julia expressions captured in MATLAB strings.

*Advantages*

   - MATLAB users: extend your MATLAB workflow with Julia as a new MEX 
   extension language.
   - Julia users: use MATLAB's polished front end for your own work, or at 
   least use jlcall to facilitate better collaboration with your MATLAB-bound 
   colleagues.
   - Can avoid memory copies in some cases when crossing the language 
   boundary, as the two runtimes cohabit a common process and see the same 
   address space.

A caveat: as of this writing, jlcall has been shown to work on exactly one 
(Win64) machine: my workstation at work. It is the only machine with a 
MATLAB license to which I have access. If you try it on another platform 
any time soon, expect breakage. Please report it, though, as I would like 
to see this project functional across all three platforms on which both 
Julia and MATLAB are supported.

Reply via email to