Created
September 15, 2010 17:52
-
-
Save anonymous/581137 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmichaud@orange:~/rakudo$ cat x3.pir | |
.loadlib 'math_ops' | |
.sub 'main' :main | |
.local string s | |
.local pmc sb | |
.local int n | |
$I0 = rand 10000 | |
s = $I0 | |
sb = new ['StringBuilder'] | |
n = 1 | |
loop: | |
unless n < 25000 goto done | |
$I0 = rand 10000 | |
$S0 = $I0 | |
sb = concat sb, ', ' | |
sb = concat sb, $S0 | |
inc n | |
goto loop | |
done: | |
$S0 = sb | |
$I0 = length $S0 | |
say $I0 | |
.end | |
pmichaud@orange:~/rakudo$ parrot_install/bin/parrot x3.pir | |
Multiple Dispatch: No suitable candidate found for 'concatenate_str', with signature 'PSP->P' | |
current instr.: 'main' pc 22 (x3.pir:16) | |
pmichaud@orange:~/rakudo$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment