Two ideas to improve function generation:
- maybe we don't need gen_generated_kernel in compiler.jl since the
. vectorization operator does everything for us (TODO: check that it is actually true).
- maybe we can replace a lot of code in compiler.jl, using Symbolics.jl and
build_function. Maybe there is eventually a clean way to do automatic derivatives.