frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Cache-friendly, low-memory Lanczos algorithm in Rust

https://lukefleed.xyz/posts/cache-friendly-low-memory-lanczos/
41•lukefleed•2h ago

Comments

sfpotter•1h ago
Nice result! Arnoldi is a beautiful algorithm, and this is a good application of it.

What are you using this for and why are you working on it?

I admit I'm not personally convinced of the value of Rust in numerics, but that's just me, I guess...

lukefleed•1h ago
Hi there, thanks! I started doing this for a university exam and got carried away a bit.

Regarding Rust for numerical linear algebra, I kinda agree with you. I think that theoretically, its a great language for writing low-level "high-performance mathematics." That's why I chose it in the first place.

The real wall is that the past four decades of research in this area have primarily been conducted in C and Fortran, making it challenging for other languages to catch up without relying heavily on BLAS/LAPACK and similar libraries.

I'm starting to notice that more people are trying to move to Rust for this stuff, so it's worth keeping an eye open on libraries like the one that I used, faer.

sfpotter•53m ago
Nice. I'd be curious to see if this has already been done in the literature. It is a very nice and useful result, but it also kind of an obvious one---so I have to assume people who do work on computing matrix functions are aware of it... (This is not to take anything away from the hard work you've done! You may just appreciate having a reference to any existing work that is already out there.)

Of course, what you're doing depends on the matrix being Hermitian reducing the upper Hessenberg matrix in the Arnoldi iteration to tridiagonal form. Trying to do a similar streaming computation on a general matrix is going to run into problems.

That said... one area of numerical linear algebra research which is very active is randomized numerical linear algebra. There is a paper by Nakatsukasa and Tropp ("Fast and accurate randomized algorithms for linear systems and eigenvalue problems") which presents some randomized algorithms, including a "randomized GMRES" which IIRC is compatible with streaming. You might find it interesting trying to adapt the machinery this algorithm is built on to the problem you're working on.

As for Rust, having done a lot of this research myself... there is no problem relying on BLAS or LAPACK, and I'm not sure this could be called a "wall". There are also many alternative libraries actively being worked on. BLIS, FLAME, and MAGMA are examples that come to mind... but there are so many more. Obviously Eigen is also available in C++. So, I'm not sure this alone justifies using Rust... Of course, use it if you like it. :)

manbash•22m ago
Nice work. I have gone through the fairly straightforward paper.

May I ask what you've used to confirm the cache hit/miss rate? Thanks!

Terminal Latency on Windows

https://chadaustin.me/2024/02/windows-terminal-latency/
29•bariumbitmap•1h ago•5 comments

Scaling HNSWs

https://antirez.com/news/156
29•cyndunlop•4h ago•1 comments

Cache-friendly, low-memory Lanczos algorithm in Rust

https://lukefleed.xyz/posts/cache-friendly-low-memory-lanczos/
42•lukefleed•2h ago•4 comments

The 'Toy Story' You Remember

https://animationobsessive.substack.com/p/the-toy-story-you-remember
1040•ani_obsessive•15h ago•282 comments

The R47: A new physical RPN calculator

https://www.swissmicros.com/product/model-r47
108•dm319•4d ago•51 comments

The history of Casio watches

https://www.casio.com/us/watches/50th/Heritage/1970s/
22•qainsights•2d ago•11 comments

iPhone Pocket

https://www.apple.com/newsroom/2025/11/introducing-iphone-pocket-a-beautiful-way-to-wear-and-carr...
307•soheilpro•8h ago•772 comments

Show HN: Cactoide – Federated RSVP Platform

https://cactoide.org/
25•orbanlevi•2h ago•9 comments

We ran over 600 image generations to compare AI image models

https://latenitesoft.com/blog/evaluating-frontier-ai-image-generation-models/
20•kalleboo•1h ago•8 comments

Weave (YC W25) is hiring a founding ML engineer

https://www.ycombinator.com/companies/weave-3/jobs/ZPyeXzM-founding-ml-engineer
1•adchurch•2h ago

Pikaday: A friendly guide to front-end date pickers

https://pikaday.dbushell.com
18•mnemonet•4h ago•12 comments

How I fell in love with Erlang

https://boragonul.com/post/falling-in-love-with-erlang
313•asabil•1w ago•182 comments

Widespread distribution of bacteria containing PETases across global oceans

https://academic.oup.com/ismej/article/19/1/wraf121/8159680?login=false
92•PaulHoule•6h ago•51 comments

Firefox expands fingerprint protections

https://blog.mozilla.org/en/firefox/fingerprinting-protections/
131•ptrhvns•3h ago•60 comments

Array Programming the Mandelbrot Set

https://jcmorrow.com/mandelbrot/
24•jcmorrow•4d ago•3 comments

Drawing Text Isn't Simple: Benchmarking Console vs. Graphical Rendering

https://cv.co.hu/csabi/drawing-text-performance-graphical-vs-console.html
34•PaulHoule•4h ago•23 comments

Grebedoc – static site hosting for Git forges

https://grebedoc.dev
24•todsacerdoti•3h ago•2 comments

Show HN: Data Formulator 0.5 – interactive AI agents for data visualization

https://data-formulator.ai/
5•chenglong-hn•1h ago•1 comments

Advent of Code on the Z-Machine

https://entropicthoughts.com/advent-of-code-on-z-machine
77•todsacerdoti•7h ago•17 comments

Welcome, the entire land - "Hello, world!" in hieroglyphics (2009)

https://optional.is/required/2009/12/03/welcome-the-entire-land/
75•andrelaszlo•8h ago•26 comments

Show HN: Gametje – A casual online gaming platform

https://gametje.com
75•jmpavlec•4h ago•27 comments

Why effort scales superlinearly with the perceived quality of creative work

https://markusstrasser.org/creative-work-landscapes.html
109•eatitraw•10h ago•88 comments

High speed X-ray video: jumping beans, wind-up toys and more

https://www.youtube.com/watch?v=xdpDd7dyU00
46•surprisetalk•4d ago•15 comments

FFmpeg to Google: Fund Us or Stop Sending Bugs

https://thenewstack.io/ffmpeg-to-google-fund-us-or-stop-sending-bugs/
16•CrankyBear•38m ago•0 comments

DARPA and Texas Bet $1.4B on Unique Foundry -3D heterogeneous integration

https://spectrum.ieee.org/3d-heterogeneous-integration
52•pseudolus•7h ago•8 comments

The Perplexing Appeal of the Telepathy Tapes

https://asteriskmag.com/issues/12-books/paradigm-shifted-the-perplexing-appeal-of-the-telepathy-t...
38•surprisetalk•5h ago•33 comments

Show HN: Tusk Drift – Open-source tool for automating API tests

https://github.com/Use-Tusk/drift-node-sdk
35•Marceltan•4h ago•15 comments

Making a C64/C65 compatible computer: MEGAphone contact list and Dialer

https://c65gs.blogspot.com/2025/11/megaphone-contact-list-and-dialer.html
7•speckx•1w ago•0 comments

SoftBank sells its entire stake in Nvidia

https://www.cnbc.com/2025/11/11/softbank-sells-its-entire-stake-in-nvidia-for-5point83-billion.html
239•mfiguiere•11h ago•138 comments

Contributing to Open-Source Should Be Required, Like Jury Duty

https://www.joshbeckman.org/blog/practicing/contributing-to-opensource-should-be-required-like-ju...
41•bckmn•1h ago•43 comments