Virtual metaprogramming