in reply to Control the browser with Perl6

For controlling "the browser", that is, Firefox, you only need a TCP connection to the mozrepl plugin. If you want to write your own Javascript-capable browser, then it could be beneficial to reuse a Javascript interpreter written for Parrot, if you tie yourself to Parrot. But the main work of writing a Javascript-capable browser is implementing enough of a credible DOM so that most of the Javascript on a page works.