This is cool. Very similar to GPU programming. Write a kernel and pipe data from it.
Got inspired to explore it from recent defcon talk. Will make an effort to try out gpu programming.