Engineers use wave interference like this to design noise-canceling headphones, radar systems, and 5G antennas.
The key ingredient? #Pi. It controls the frequency, the phase, and the cancellation.
This video shows two pi-frequency waves colliding in real time. GPU-accelerated, running in a browser, 12 lines of code.
Stay tuned for more on Saturday, #PiDay.
#RunMat
Every #MATLAB#engineer has done this: write 50 lines, hit run, wait, get "Matrix dimensions must agree" on line 6. Go back. Stare. Fix it. Run again. #RunMat catches it before you run.
Hover over any variable and you see its shape. Write a dimension mismatch, and you get the error inline, in real time, with the exact sizes: "left is 1x201, right is 1x201, inner dims 201 and 1." No run. No wait. No guesswork.
Software engineers have had this for decades -- TypeScript, Rust, and Go all catch type errors before execution. #Numerical engineers deserve the same. That's what we're building.
MATLAB: eig(A) → eigenvalues. How? Trust us.
RunMat: eig(A) → eigenvalues. How? Here's every step. On GitHub. In Rust.
Eigenvalues tell you the fundamental modes of a system: vibration frequencies, principal components, and stability characteristics. Simple question. Hard computation.
What RunMat does under the hood:
1. Schur decomposition: Reduce to upper-triangular form.
2. Back-substitution: Solve for each eigenvector column by column.
3. Normalization: Handle repeated eigenvalues and near-singular edge cases.
4. GPU awareness: Keep results on-device when a provider is available.
That's 900 lines of Rust. Every edge case (repeated eigenvalues, near-singular matrices, complex spectra) handled explicitly in code you can read.
Engineers should have full traceability: from the function call, through the algorithm, down to the machine epsilon constant. If you can't trace it, you can't trust it. 300+ functions. Zero black boxes.
Try it for yourself at https://t.co/iM3FzUmnus
% Generate a high-density parametric mesh (250k points)
[u,v] = meshgrid(linspace(0,2*pi,500), linspace(0,pi,500));
% Define the 3D heart surface equations
x0 = 16*sin(u).^3 .* sin(v).^2;
y0 = (13*cos(u)-5*cos(2*u)-2*cos(3*u)-cos(4*u)) .* sin(v).^2;
z0 = 6 * cos(v);
% Animate the heartbeat
for t = 0:0.1:100
% Calculate scale factor for contraction/expansion
s = 1 + 0.05*sin(t*3);
% Render the scaled point cloud in red
scatter3(x0(:)*s, y0(:)*s, z0(:)*s, 2, 'r');
pause(0.01);
end
Happy #Valentine's Day from the team that loves math. ��️
This isn't a pre-rendered animation. It's live numerical computation.
We generated a parametric heart with 250,000 points and made it beat.
Notice the fluidity? That's what we think modern computation should feel like. Not just solving equations, but exploring them in real-time.
You can rotate, zoom, and dive deep into the structure without it ever skipping a beat.
We put our heart into this runtime so you can put yours into the #math.
(Code in next comment)
Engineers don't need "better" syntax than MATLAB.
`A * B` is already the perfect way to write matrix multiplication.
The problem isn't the language. It's the runtime.
We built RunMat to fix that: Same whiteboard syntax. Modern, GPU-accelerated engine.
We may have just built the fastest runtime to run math in the world. The initial benchmarks (on my local MacBook pro) are looking stellar 🔥
Here’s how it works, and how we built it 🧵
@kevinweil We built the entire Matlab runtime (it’s over 3M chatarcters of code) in 6 weeks using it.
https://t.co/V30PWHer2J
It’s open source. Matlab programming is now free — like Python.
We’re making it the fastest math runtime in the world — JIT for CPU logic and auto-GPU shaders.
@DaveShapi Think we may already be at senior. Did a side project to test the bounds — been programming for a very long time, and am a founder.
There’s little to no room for junior / mid. Even senior I think is hairy. I’d only want architects / great supervisors.
https://t.co/GY310H9FZO
MATLAB makes $500M annually selling what I just re-engineered in 3 weeks.
Here’s how I demonstrated that enterprise software moats today can evaporate in the same time it typically takes to plan a sprint. 👇🧵