Repository

runmat-org/runmat

RunMat

Open github.com

runmat-org/runmat

RunMat

Open-source MATLAB runtime and compiler that accelerates math via GPU offload and compiles MATLAB code to standalone native executables.

Visit project

Show me a random project

First shared
Sep 10, 2026
HN activity
31

Show HN@finbarr1987Sep 10, 2026

Show HN: Compiling Matlab Code to Native Executables with RunMat

I'm on the RunMat team. Prior releases of RunMat focused on accelerating large math w/ auto offload to GPUs via transpiling to WGPU shaders, and correct interpretation of the MATLAB language semantics (we're 99%+ on grammar / semantics now). We left a placeholder for a Cranelift based JIT, and when we went back to fill it in, we though -- why not take it a bit further. Since we were putting in the logic for branches of the CFG to be compiled to native code, we figured why not fundamentally build it such that you could run "runmat compile simulation.m -o simulation" and get a standalone binary target. I.e. compile a MATLAB input project into to a standalone native binary target. We've detailed more in the blog. There's a bit of work we're finishing still, but a build with the core native compile pieces is now out (we still have to propagate some metadata through the runtime library such that the compiler can effectively tree shake, and some portions of the system still need Cranelift translation logic, but the remaining work is relatively mechanical [and already in progress]). The RunMat compiler and runtime are open source: https://github.com/runmat-org/runmat

Community

Hacker News discussion

Loading the thread…