r/ProgrammerHumor • • Aug 08 '16

JQuery Does All Things!

https://i.reddituploads.com/b79bb2d6e2f14e65b769686647cc4782?fit=max&h=1536&w=1536&s=ed6be616a7a0467c49330eda9253811e
3.0k Upvotes

207 comments sorted by

View all comments

Show parent comments

10

u/anomalous_cowherd Aug 08 '16

You joke, but... imagine taking every possible input up to say 16x16 and putting their FFT outputs into a LUT. Then compress that multi-GB LUT hard... want to bet it would come down to a bit under 75MB?

Uncompress it at boot into your CUDA video RAM and watch those non-FFTs fly!

7

u/Jacques_R_Estard Aug 08 '16

Well, going with my use case of typically 128 bit complex FFTs, that would be a lookup table of 2128*256 (that's a 1 with roughly 10k zeros) entries (discounting symmetries because I'm lazy etc.). That feels like it should be sort of hard to compress into 75MB.

Also, I'm willing to bet the memory lookups would be more expensive than just doing the FFT.

But I admire your dedication to the concept.

2

u/fb39ca4 Aug 09 '16

You could compress that lookup table significantly by replacing it with code to procedurally generate it. It's the same thing demoscene coders do!

5

u/Jacques_R_Estard Aug 09 '16

I wonder if there's some algorithm to efficiently calculate Fourier transforms. It'd have to be fast, though...