Recent submissions

Comment · 2 years ago
I thought Rust was thread-safe and I don't see any "unsafe" blocks. What am I missing?
Comment · 2 years ago
Comment · 2 years ago
Comment · 2 years ago
Thanks! In case it helps: * Multiplying two polynomials as taught in school is in reality a convolution. * "performing the convolution of two signals in the time domain is equivalent to multiplying them in the frequency domain" * FFT allows us to convert from time domain to frequency domain * We use FFT to convert our polynomial to frequency domain. * If we are now in the frequency domain, we just need to multiply. Faster than a convolution.

Does it clarify the missing step? Happy to update the post with what's missing.

Comment · 2 years ago
Thanks for the comment. That makes sense, since as you are saying, a base10 number can be expressed as a polynomial where x=10. Eg: 983 = 9x^2 + 8x + 3 aka [9, 8, 3]. Wondering how big the number has to be to make sense, and where this is used in practice.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton