Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Monday July 20, 2009
09:16 AM

What I Want In Firefox (Parrot)

[ #39323 ]

I think something like this would be very interesting. (Perl 6 pseudo-code, obviously)


  use Mozilla::Document;
  subset SafePassword of String where {
       $_ ~~ m/<:digit:>/
    && $_ ~~ m/<:punct:>/
    && $_.length >= 8

  sub safe_login (Mozilla::Document::Form $form) {
      my Mozilla::Document $document .= new();

      # $_ defaults to last element
      $form.password ~~ SafePassword or $_.error("Password Insecure!");

In other words, if the sandbox is secure enough, one could use the Parrot Compiler Toolkit to write a set of bindings to allow you to write your client-side in any language you like, include bespoke languages, if desired. I think this could be a very compelling feature. Don't like languages available for client side browsing? Fine, write your own with the Parrot Compiler Toolkit and if the browser sees an unknown grammar from a safe authority, it downloads it. Otherwise, it can prompt you with the authority information, depending on your security setup.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • There was a plugin for IE a long time ago allowing people to turn on PerlScript in the browser.

    The DOM was the same so it didn't feel different than JavaScript, however doing it limited you to a very small number of browsers.

    It never caught on.

    More promising would be something allowing you to compile some subset of Perl 6 to JavaScript. The issue is how big a subset that would be. (Eval is likely to be tricky...)