3 ms·
I used STOKE to generate some SIMD code for PNG decoding once. Fun stuff! I generally found it most useful to have STOKE generate the code, then reverse engine
by pcwalton 7y ago
I used STOKE to generate some SIMD code for PNG decoding once. Fun stuff!
I generally found it most useful to have STOKE generate the code, then reverse engineer what it did and rewrite equivalent code by hand in a higher-level language like C or Rust. The nondeterminism of the process and unmaintainability of the resulting code makes it hard to justify shipping STOKE as-is. But I did find it useful as a tool to give me general optimization ideas. Sometimes it finds clever things you would never have thought of on your own.