Dynamic compilation
Compilers are built-in components of Parrot
$S0 = "...my perl6 program..." $P0 = compreg 'Perl6' # get the Perl6 compiler $P1 = $P0.'compile'($S0) # compile code in $S0 $P1() # execute it
or
freeze "myprog.pbc", $P1 # save bytecode to disk