Co

Compiling Matlab Code to Native Executables with RunMat

Hacker News

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

Share card

Actual performance

3points
1comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: code, open · Missing: mac, agents, macos
80%80% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: open source, io · Missing: https docs, excited, just released
63%63% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRFits verified-revenue profile · Missing: mobile apps, ios, personal
55%55% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
54%54% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
26%26% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
21%21% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Re
RefRem, JVM Painless Compilation to Native Code54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

RefRem, JVM Painless Compilation to Native Code

Hacker News5
Pi
Pion-WebRTC, a Go Native WebRTC Implementation66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pion-WebRTC, a Go Native WebRTC Implementation

Hacker News4
Na
Native Carousel46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Native Carousel

Hacker News2
Co
Compile for Arm at native speeds in an emulated system59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Compile for Arm at native speeds in an emulated system

Hacker News63
Yg
Yggdrasil 1.0 – Native executables for Shen56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Yggdrasil 1.0 – Native executables for Shen

Hacker News15
Na
Native Bin2bin Obfuscator46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Native Bin2bin Obfuscator

Hacker News2
Lu
LuaJIT with Native SIMD46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LuaJIT with Native SIMD

Hacker News3
Op
OpenAPI Fuzzer written in Java, compiled to native code52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

OpenAPI Fuzzer written in Java, compiled to native code

Hacker News1
St
Streamlit with native multipage app functionality37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Streamlit with native multipage app functionality

Hacker News4
Codeless
Codeless36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

No-code native apps and sites

Indie Hackers2b2b