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/
37•lukefleed•1h 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•41m 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•10m 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!

Show HN: Creavi Macropad – Built a wireless macropad with a display

https://creavi.tech/blog/creavi-macropad-build-log/
1•cmpx•1m ago•0 comments

Jai: The AI vanitas in my home

https://z.bindle.institute/jai/
1•broabprobe•2m ago•0 comments

Boxlang – A modern, dynamically and loosely typed language for multiple runtimes

https://www.boxlang.io
1•microflash•3m ago•0 comments

Show HN: Generate Music with AI

https://loopmaster.xyz/generate
1•stagas•4m ago•0 comments

"Spaghetti-Grows-on-Trees" Hoax: One of TV's First April Fools' Pranks

https://www.openculture.com/2025/11/the-1957-spaghetti-grows-on-trees-hoax.html
1•PaulHoule•5m ago•0 comments

NextJS 16 broke our production

https://iamoeken.com/blog/chasing-ghost-bug-nextjs-16
1•oeken•5m ago•1 comments

A Domain for the Queer Community, by the Queer Community

https://www.dotmeow.org/en/what
1•todsacerdoti•6m ago•0 comments

Watch the Trump edit that BBC bosses resigned over [video]

https://www.youtube.com/watch?v=CLmSrqMKycw
1•uyzstvqs•6m ago•0 comments

Ask HN: What's your top-recommended tuts for chatbot dev with local-hosted LLMs?

1•dualogy•8m ago•0 comments

AI and Cybersecurity: Dan Boneh Interviews Sam Altman [video]

https://www.youtube.com/watch?v=940zih5bee4
1•simonpure•8m ago•0 comments

Fun Facts, Aviation Edition

https://rubenerd.com/fun-facts-aviation-edition/
1•speckx•8m ago•0 comments

Models, Agents and Prompt Injections – Some Experiments

https://veganmosfet.github.io/2025/11/11/models_agents_prompt_injection.html
1•veganmosfet•9m ago•0 comments

Diverging Diamond Interchange

https://en.wikipedia.org/wiki/Diverging_diamond_interchange
1•nivethan•9m ago•0 comments

I'm never going back to Microsoft Word after mastering this OSS self-hosted tool

https://www.xda-developers.com/never-going-back-microsoft-word-after-mastering-self-hosted-tool/
4•billybuckwheat•12m ago•0 comments

Ask HN: How do you search for DevOps talent in 2025?

1•hiAndrewQuinn•14m ago•0 comments

Show HN: Vocaware – AI Voice Agents (Shadcn, Twilio, OpenAI, Supabase, Next.js)

https://vocaware.com
1•AlexNicita•16m ago•0 comments

The AI Bubble Is Ignoring Michael Burry's Fears

https://www.bloomberg.com/opinion/articles/2025-11-11/ai-bubble-is-ignoring-big-short-michael-bur...
1•wslh•17m ago•1 comments

Talking Oglaf with Trudy Cooper and Doug Bayne: 'We'd stay up all night drawing

https://www.tcj.com/talking-oglaf-with-trudy-cooper-and-doug-bayne-wed-stay-up-all-night-drawing-...
3•fanf2•17m ago•0 comments

Yet another redundant workflow engine

https://github.com/insitro/redun
2•radus•19m ago•0 comments

Show HN: Project AELLA – Open LLMs for structuring 100M research papers

https://aella.inference.net/embeddings
2•funfunfunction•20m ago•0 comments

Ask HN: Spent 2.5 year working on a Side Project. How should I continue?

1•montague27•21m ago•0 comments

Munich Court Finds ChatGPT Infringed Song‑Lyrics Copyrights in GEMA Lawsuit

https://www.heise.de/news/GEMA-vs-OpenAI-Niederlage-fuer-ChatGPT-vor-Muenchner-Gericht-11073532.html
1•not--felix•21m ago•0 comments

Google announces more AI in Photos app, powered by Nano Banana

https://arstechnica.com/google/2025/11/googles-nano-banana-ai-image-editing-is-finally-coming-to-...
1•fleahunter•22m ago•0 comments

China's Moonshot claims to build models with fewer AI chips than US rivals

https://www.scmp.com/tech/tech-trends/article/3332364/chinas-moonshot-claims-build-models-fewer-h...
1•giuliomagnifico•23m ago•0 comments

Show HN: Unflip – a puzzle game about XOR patterns of squares

https://unflipgame.com/
2•bogdanoff_2•23m ago•0 comments

AI's $5T Cost Needs Every Debt Market, JPMorgan Says

https://www.bloomberg.com/news/articles/2025-11-10/ai-s-5-trillion-data-center-boom-will-dip-into...
1•toomuchtodo•24m ago•1 comments

Tech stocks suffer worst week since April after $800B AI sell-off

https://www.ft.com/content/8c6e3c18-c5a0-4f60-bac4-fcdab6328bf8
1•1vuio0pswjnm7•24m ago•1 comments

A squeaky nail, or the wheel that sticks out

https://prashanth.world/squeaky-nail/
1•mangoman•25m ago•1 comments

How to actually raise your round

https://climatedrift.substack.com/p/how-to-actually-raise-your-round
2•JoiDegn•25m ago•1 comments

FFmpeg to Google: Fund Us or Stop Sending Bugs

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