Larry Wall <[EMAIL PROTECTED]> wrote: > So Evil Larry? suggests that you embed a Python interpreter and hand off > the unsuccessful tests back to Python. :-)
Good idea. Here is bx.pir from Evil Leo: $ cat bx.pir .sub main @MAIN .param pmc argv .const string PY = '/usr/local/bin/python -O ' .local pmc pipe .local string cmd .local string file file = argv[1] cmd = PY . file open pipe, cmd, "-|" .local string res lp: read res, pipe, 4096 print res $I0 = length res if $I0 goto lp close pipe .end $ time parrot bx.pir b0.py 3141592653 3141592653 real 0m4.677s user 0m0.040s sys 0m0.010s Surprise, its equally fast:) > Larry leo