I don't think there is any reason to do it like this for perl6, or if its even possible (for instance, what if the script uses a virtual __DATA__ file?). The run-time engine (code-named parrot) is separate from the compiler/bootstrapper, and already has the ability to emit bytecode (in fact, it is central to the design). Compiling your application into bytecode or an executable will be as simple as hitting a switch on the command line.