Hand written compilers are more evil
January 30, 2011
Posted by on
It’s even more complicated. Hand written compilers are probably worse than hand written parsers. The data structures and algorithm problems are very difficult to get right. It must be more evil than a hand crafted parser state machine.
I’m on the edge of getting nested reductions to work. In other words, multiple levels of nested for-loops in the JIT with OpenCL. This comes up with matrix multiply as calculated by the matmul() function (which has four distinct polymorphic variants: outer product; vector-matrix; matrix-vector; matrix-matrix). Unfortunately, I am too tired and unable to keep it all straight. I have to sleep first.