frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How HN: Ironkernel – Python expressions, Rust parallel

https://github.com/YuminosukeSato/ironkernel
23•acc_10000•2d ago

Comments

acc_10000•2d ago
I built this after watching 7/8 CPU cores idle during a Monte Carlo sim. multiprocessing added 189ms serialization overhead to a 9ms computation.

ironkernel lets you write element-wise expressions with a Python decorator, compiles them to a Rust expression tree at definition time, and executes via rayon on all cores. ~2k lines of Rust, ~500 lines of Python.

The win is expression fusion: NumPy evaluates `where(x > 0, sqrt(abs(x)) + sin(x), 0)` as 5 passes with 4 temporaries. ironkernel fuses into 1 pass, zero temporaries, and skips dead branches (no NaN from sqrt of negatives). 2.25x NumPy on compound expressions at 10M elements. For BLAS ops like SAXPY, NumPy is faster — ironkernel doesn't call BLAS.

Early stage: f64 only, 1-D only, expression subset only (intentional — parallel safety guarantee). Numba warm is 3.2x faster (LLVM JIT vs interpreter).

KeplerBoy•1h ago
For the love of god, don't use these ai generated infographics/diagrams.

If that's your bar for quality, I'll think less of your code. I can't help it.

Also your saxpy example seems to be daxpy. s and d are short for single or double precision.

dgacmu•48m ago
As a specific example: The generated diagram showing the expression tree under "build in python" is simply wrong. It doesn't correspond to the expression x * 2 + 1, which should have only 1 child node on the right. The "GIL Released - Released" is just confusing. The dataflow omits the fact that the results end up back in python - there should be a return arrow. etc., etc.

If you use diagrams like this, at least ensure they are accurately conveying the right understanding.

And in general, listen to the person I'm responding to -- be really deliberate with your graphics or omit. Most AI-generated diagrams are crap.

ata-sesli•1h ago
The expression fusion win is huge for cache locality. Since you're using Rayon for the multicore side, I'm curious if the generated Rust expression tree is 'flat' enough for LLVM to trigger auto-vectorization (SIMD) on the individual cores or if the tree traversal adds enough branching to break that?
stephantul•16m ago
Do you have benchmarks? Naively I would compare this to Numba? But maybe I am way off the mark here

404 Deno CEO not found

https://dbushell.com/2026/03/20/denos-decline-and-layoffs/
57•WhyNotHugo•1h ago•14 comments

Some Things Just Take Time

https://lucumr.pocoo.org/2026/3/20/some-things-just-take-time/
26•vaylian•1h ago•6 comments

Grafeo – A fast, lean, embeddable graph database built in Rust

https://grafeo.dev/
27•0x1997•1h ago•3 comments

OpenCode – Open source AI coding agent

https://opencode.ai/
1056•rbanffy•19h ago•520 comments

Meta's Omnilingual MT for 1,600 Languages

https://ai.meta.com/research/publications/omnilingual-mt-machine-translation-for-1600-languages/?...
68•j0e1•3d ago•16 comments

Mamba-3

https://www.together.ai/blog/mamba-3
218•matt_d•3d ago•43 comments

A Japanese glossary of chopsticks faux pas (2022)

https://www.nippon.com/en/japan-data/h01362/
376•cainxinth•19h ago•290 comments

How HN: Ironkernel – Python expressions, Rust parallel

https://github.com/YuminosukeSato/ironkernel
23•acc_10000•2d ago•6 comments

FFmpeg 101 (2024)

https://blogs.igalia.com/llepage/ffmpeg-101/
164•vinhnx•13h ago•5 comments

Blocking Internet Archive Won't Stop AI, but Will Erase Web's Historical Record

https://www.eff.org/deeplinks/2026/03/blocking-internet-archive-wont-stop-ai-it-will-erase-webs-h...
291•pabs3•8h ago•83 comments

Apple Announces New Mac Sales Record Following MacBook Neo Launch

https://www.macrumors.com/2026/03/20/apple-shares-mac-sales-achievement/
5•akyuu•14m ago•0 comments

Books of the Century by Le Monde

https://standardebooks.org/collections/le-mondes-100-books-of-the-century
14•zlu•2d ago•6 comments

Molly Guard

https://bookofjoe2.blogspot.com/2026/02/molly-guard.html
167•surprisetalk•1d ago•72 comments

Fujifilm X RAW STUDIO webapp clone

https://github.com/eggricesoy/filmkit
116•notcodingtoday•2d ago•42 comments

Major leap towards reanimation after death as mammal's brain preserved

https://www.newscientist.com/article/2520204-major-leap-towards-reanimation-after-death-as-mammal...
46•Brajeshwar•1h ago•46 comments

The Story of Marina Abramovic and Ulay (2020)

https://www.sydney-yaeko.com/artsandculture/marina-and-ulay
31•NaOH•2d ago•18 comments

Ghostling

https://github.com/ghostty-org/ghostling
268•bjornroberg•18h ago•51 comments

Linux Applications Programming by Example: The Fundamental APIs (2nd Edition)

https://github.com/arnoldrobbins/LinuxByExample-2e
137•teleforce•16h ago•17 comments

AI Team OS – Turn Claude Code into a Self-Managing AI Team

https://github.com/CronusL-1141/AI-company
17•cronus1141•6h ago•4 comments

The Los Angeles Aqueduct Is Wild

https://practical.engineering/blog/2026/3/17/the-los-angeles-aqueduct-is-wild
395•michaefe•3d ago•197 comments

Padel Chess – tactical simulator for padel

https://www.padelchess.me/
63•AlexGerasim•3d ago•34 comments

Attention Residuals

https://github.com/MoonshotAI/Attention-Residuals
210•GaggiX•21h ago•29 comments

The worst volume control UI in the world (2017)

https://uxdesign.cc/the-worst-volume-control-ui-in-the-world-60713dc86950
185•andsoitis•3d ago•88 comments

We rewrote our Rust WASM parser in TypeScript and it got faster

https://www.openui.com/blog/rust-wasm-parser
259•zahlekhan•18h ago•169 comments

Cryptography in Home Entertainment (2004)

https://mathweb.ucsd.edu/~crypto/Projects/MarkBarry/
68•rvnx•2d ago•37 comments

Just make it hard to fail

https://nekolucifer.substack.com/p/just-make-it-really-hard-to-fail
24•andai•2h ago•11 comments

An industrial piping contractor on Claude Code [video]

https://twitter.com/toddsaunders/status/2034243420147859716
90•mighty-fine•2d ago•48 comments

Show HN: We built a terminal-only Bluesky / AT Proto client written in Fortran

https://github.com/FormerLab/fortransky
117•FormerLabFred•18h ago•64 comments

Turing Award Honors Bennett and Brassard for Quantum Information Science

https://amturing.acm.org
57•throw0101d•3d ago•0 comments

France's aircraft carrier located in real time by Le Monde through fitness app

https://www.lemonde.fr/en/international/article/2026/03/20/stravaleaks-france-s-aircraft-carrier-...
604•MrDresden•1d ago•483 comments