Support compiling effects at compile time

Signed-off-by: MHesham <mhesham.fcis@gmail.com>