pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/ Set by Tene on 29 July 2008. |
|||
00:01
hercynium joined
00:03
smg joined,
pbuetow left
00:19
kisu left,
kisu joined
00:44
s1n left
00:46
DemoPhreak left
00:55
[particle] left
01:20
ting joined
01:27
azawawi joined
|
|||
azawawi | good morning | 01:27 | |
ZuLuuuuuu | good morning | 01:32 | |
azawawi where are you from? | |||
azawawi | jordan | ||
u? | |||
ZuLuuuuuu | here it is 3:30 am | ||
turkey | |||
azawawi | 3:33am | 01:33 | |
ZuLuuuuuu | jordan? it is in usa? | ||
azawawi | south of you ;-) | ||
ZuLuuuuuu | cant be? | ||
is it a country :D | |||
oh | 01:34 | ||
ok | |||
it is "xFCrdxFCn" in turkish very different | |||
thats why I couldn't recognise | |||
azawawi | maps.google.com/maps?f=q&hl=en&...81&z=5 | 01:35 | |
lambdabot | Title: Google Maps, tinyurl.com/55725j | ||
azawawi | i know ;-) | ||
ZuLuuuuuu | i am gonna sleep good night :) | 01:39 | |
azawawi | i just woke up... ;-) | 01:40 | |
ZuLuuuuuu | :D | ||
azawawi | good night | ||
01:40
ZuLuuuuuu left
01:42
kisu left
|
|||
wayland76 | (Australia here :) ) | 01:43 | |
azawawi | hi wayland76 | ||
wayland76 | hi | ||
azawawi | im trying to figure out why this feather.perl6.nl/~azawawi/STD.html is not working properly | 01:44 | |
lambdabot | Title: STD.pm | ||
wayland76 | I would imagine the answer is beyond me, but I'm having a look at it :) | 01:46 | |
My browser seems to be choking on it, though :) | |||
azawawi | firefox 3? | ||
wayland76 | Seamonkey, whichever one came with Fedora 6 | 01:47 | |
azawawi | it should be... 20 MB worth of info in that html | ||
and i havent compressed the tree info yet | |||
wayland76 | The new Fedora comes out later this month, and I'll get that | ||
Ok :) | |||
azawawi | chrome does not have a problem with it btw... | ||
wayland76 | Anyway, if my browser ever recovers, I'll have a look at it :) | 01:48 | |
Well, my machine only has 1G memory, too | |||
:) | |||
And a Celeron 266 | 01:49 | ||
azawawi | btw, it is the browser that cant handle it not the machine ;-) | ||
wayland76 | Seamonkey is currently using about 85% cpu :) | 01:50 | |
Yeah, doesn't surprise me :) | |||
Guess I can't help if I can't look at it. Maybe after Fedora 10 comes out, and I've had time to download and upgrade... :) | 01:51 | ||
Ooh, Parrot release tomorrow | 01:53 | ||
azawawi | what's the link? | ||
wayland76 | (although it may be the day after in my time) | ||
between what we just said, or a link that talks about the Parrot release? | 01:54 | ||
:) | |||
azawawi | parrot release link | ||
wayland76 | Dunno, but I put it on my calendar, so I must've seen it somewhere :) | ||
01:55
slavik joined
|
|||
wayland76 | (btw, I should've said "18 November"; it's currently the 17th here) | 01:56 | |
01:56
s1n joined
|
|||
azawawi | 17th here | 01:56 | |
slavik | is subst (regex, string) complete? | ||
it doesn't seem to work in rakudo | 01:57 | ||
rakudo: $x = yay; $x .= subst (/a/, ""); say $x; | |||
p6eval | rakudo 32742: OUTPUT[Scope not found for PAST::Var '$x'current instr.: 'parrot;PCT;HLLCompiler;panic' pc 152 (src/PCT/HLLCompiler.pir:104)] | ||
slavik | rakudo: my $x = yay; $x .= subst (/a/, ""); say $x; | ||
p6eval | rakudo 32742: OUTPUT[Could not find non-existent sub yaycurrent instr.: '_block11' pc 26 (EVAL_11:16)] | ||
slavik | rakudo: my $x = "yay"; $x .= subst (/a/, ""); say $x; | 01:58 | |
p6eval | rakudo 32742: OUTPUT[No applicable methods.current instr.: '_block11' pc 78 (EVAL_11:27)] | ||
wayland76 | azawawi: Yeah, I figured, that's why I specified. You'll probably get the release on the 18th, but I'll have to wait until the 19th :) | ||
slavik | rakudo: my $x = "yay"; $x = $x.subst(/a/, ""); say $x; | ||
p6eval | rakudo 32742: OUTPUT[yy] | ||
slavik | hmm | ||
azawawi | slavik: AnyStr.subst | 01:59 | |
slavik | yeah, I got it, ty | ||
wayland76 | rakudo: my $x = "yay"; $x.subst(/a/, ""); say $x; | ||
p6eval | rakudo 32742: OUTPUT[yay] | ||
slavik | azawawi: I am working on a URL grammar thing | ||
azawawi | wayland76: cool thx | ||
slavik | so trying to put in as much stuff as I can for demo purposes | 02:00 | |
the operators to force context are really nice | |||
02:00
hercynium left
02:02
hercynium joined
|
|||
azawawi | slavik: demo? | 02:02 | |
slavik | demonstration | 02:03 | |
having trouble with split though | |||
rakudo: say split /-/, "hello-bah"; | |||
p6eval | rakudo 32742: OUTPUT[Statement not terminated properly at line 1, near "/-/, \"hell"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
azawawi | rakudo: my $a="a b c"; $a.split(/ /); say $a; | 02:04 | |
p6eval | rakudo 32742: OUTPUT[perl6regex parse error: Null pattern illegal at offset 25, found ' 'current instr.: 'parrot;PGE;Perl6Regex;parse_error' pc 9717 (compilers/pge/PGE/Perl6Regex.pir:1142)] | ||
slavik | rakudo: my $a, my $b = split /-/, "hello-bah"; say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[Statement not terminated properly at line 1, near "/-/, \"hell"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
slavik | rakudo: my $a, my $b = split /\-/, "hello-bah"; say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[] | ||
slavik | rakudo: my $a, my $b = split /\-/ "hello-bah"; say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[Statement not terminated properly at line 1, near "\"hello-bah"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
wayland76 | azawawi: to rephrase what I think he means by "demo", is that he wants to make as many examples as possible | ||
slavik | yes | ||
rakudo: my $a, my $b = split /w/ "hellowbah"; say $a, $b; | |||
p6eval | rakudo 32742: OUTPUT[Statement not terminated properly at line 1, near "\"hellowbah"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
slavik | hmm, what am I doing wrong there? | ||
rakudo: my $a, my $b = split /w/, "hellowbah"; say $a, $b; | 02:05 | ||
p6eval | rakudo 32742: OUTPUT[] | ||
slavik | why isn't that working? | ||
wayland76 | rakudo: my $a, my $b = split(/w/, "hellowbah"); say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[] | ||
slavik | rakudo: (my $a, my $b) = split /w/, "hellowbah"; say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[Method 'lvalue' not found for invocant of class 'PAST;Stmts'current instr.: 'parrot;PAST;Compiler;as_post' pc 2924 (src/PAST/Compiler.pir:742)] | ||
azawawi | slavik: lvalues do not work yet in rakudo | ||
wayland76 | rakudo: my $a; my $b; ($a, $b) = split(/w/, "hellowbah"); say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[Method 'lvalue' not found for invocant of class 'PAST;Stmts'current instr.: 'parrot;PAST;Compiler;as_post' pc 2924 (src/PAST/Compiler.pir:742)] | ||
azawawi | rakudo: my ($a, $b); | ||
p6eval | rakudo 32742: RESULT[Method 'perl' not found for invocant of class 'Signature'current instr.: '_block11' pc 37 (EVAL_15:15)] | 02:06 | |
slavik | rakudo: my ($a, $b) = split /w/, "hellowbah"; say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[Method 'lvalue' not found for invocant of class 'PAST;Stmts'current instr.: 'parrot;PAST;Compiler;as_post' pc 2924 (src/PAST/Compiler.pir:742)] | ||
azawawi | rakudo: my $a, $b; # this should work | ||
slavik | hmm, is there a not using strict? | ||
p6eval | rakudo 32742: OUTPUT[Scope not found for PAST::Var '$b'current instr.: 'parrot;PCT;HLLCompiler;panic' pc 152 (src/PCT/HLLCompiler.pir:104)] | ||
azawawi | rakudo: my $a; my $b; # this should work | ||
p6eval | rakudo 32742: RESULT[undef] | ||
azawawi | slavik: my ($a, $b) -> my $a; my $b; # to make it work | 02:07 | |
slavik | rakudo: my $a; my $b; ($a, $b) = split /w/, "hellowbah"; say $a, $b; | ||
p6eval | rakudo 32742: OUTPUT[Method 'lvalue' not found for invocant of class 'PAST;Stmts'current instr.: 'parrot;PAST;Compiler;as_post' pc 2924 (src/PAST/Compiler.pir:742)] | ||
slavik | I basically want that ... looks like @list = split works though | 02:08 | |
will use that for now ... | |||
02:09
wknight8111 left
|
|||
azawawi | slavik: btw, you can '/msg p6eval' privately to test things | 02:10 | |
slavik | azawawi: well I want you to see what I was doing :) | ||
besides, I have rakudo installed | |||
and pugs | 02:11 | ||
pugs from cabal and rakudo from svn | |||
although I am 100+ revs behind | |||
azawawi | evalbot control version | ||
p6eval | This is evalbot revision 23014 | ||
slavik | rakudo: | ||
rakudo: ; | |||
p6eval | rakudo 32742: RESULT[Null PMC access in find_method()current instr.: '_block11' pc 37 (EVAL_12:15)] | ||
slavik | there | ||
mine is 326xx | 02:12 | ||
will update it shortly | |||
rakudo: say "blah" * 2; | 02:16 | ||
p6eval | rakudo 32742: OUTPUT[0] | ||
slavik | aww | ||
would be neat that if a string was an operand of an arithmetic operator, it would return the identity for that operation | 02:17 | ||
02:22
kanru joined
|
|||
meppl | good night | 02:29 | |
slavik | night | 02:30 | |
02:34
meppl left,
kanru left
|
|||
azawawi | @tell TimToady should i be removing nodes like routine_declarator__S_114method from redspans trees? | 02:34 | |
lambdabot | Consider it noted. | ||
slavik | ok ... I need some help with a point block | 02:36 | |
to make it more terse and unreadable | |||
I have @pairs where each element is in the form of \w+=\w+ | |||
I would like to do something like the following: for map {split /\=/, $_ } @pairs -> $key, $value { say $key, $value; } | 02:37 | ||
azawawi | slavik: im not really familiar with that... maybe with moritz_ comes... | 02:39 | |
slavik | k | ||
basically I want to do a for BLOCK -> var, var | |||
or some sort | |||
azawawi | hmmm have tried looking at 99problems (feather.perl6.nl/~azawawi/html/exam...problems/) | 02:40 | |
lambdabot | Title: Index of /~azawawi/html/examples/99problems | ||
azawawi | s/have/have you/ | 02:41 | |
slavik | hmm, no | ||
what is that? | |||
azawawi | www.ic.unicamp.br/~meidanis/courses...blems.html | ||
lambdabot | Title: L-99: Ninety-Nine Lisp Problems, tinyurl.com/tt9e7 | ||
slavik | err, they aren't perl6 ... :P | 02:42 | |
azawawi | the first link are re-written in perl6 | ||
slavik | oh | ||
azawawi | s/are/is | ||
slavik | meh | ||
azawawi | im still sleepy ;-) | ||
02:44
kanru joined
|
|||
azawawi | @tell TimToady i stopped using is_routine, is_type, how about using @baseroutinenames and @basetypenames directly? | 02:45 | |
lambdabot | Consider it noted. | ||
02:46
bacek joined
|
|||
pugs_svn | r23029 | azawawi++ | [STD_syntax_highlight] quote -> dark magenta | 02:47 | |
r23029 | azawawi++ | [STD_syntax_highlight] package_declarator -> dark red | |||
r23030 | azawawi++ | [STD_syntax_highlight] stop using is_routine and is_type | 02:48 | ||
02:50
kisu joined
|
|||
pugs_svn | r23031 | azawawi++ | [STD_syntax_highlight] package_declaractor->bold red (for --ansi-text) | 02:52 | |
azawawi | @tell TimToady after looking at param_var, i noticed that we have 2 trees for buffer '$STOP' in 'method TOP ($STOP = undef) {' | 02:53 | |
lambdabot | Consider it noted. | ||
02:57
[particle] joined
03:01
sri_kraih left
|
|||
s1n | pmichaud: ping | 03:05 | |
03:08
armagad left
03:20
azawawi left
03:22
justatheory left
03:27
Patterner1 joined,
[particle] left
03:35
kisu_ joined
03:37
nacho joined
03:40
kisu left
03:44
Patterner left,
Patterner1 is now known as Patterner
03:58
nacho left
04:02
kisu_ left
04:03
kisu_ joined
04:04
kisu_ is now known as kisu
04:19
kane__ left
04:20
kanru left
04:26
kanru joined
04:28
bacek_ joined
04:31
bacek left
04:32
azawawi joined
04:39
kisu left
04:54
kane_ joined
04:55
ab5tract joined,
stephenos joined
05:02
ab5tract left
|
|||
azawawi | @tell moritz_ what's the best way in your opinion to compress <span id="tree_\d+"> in --full-html=- STD_syntax_highlight output? | 05:07 | |
lambdabot | Consider it noted. | ||
azawawi work & | |||
05:07
azawawi left
05:22
alc joined
|
|||
xinming | 34 | 05:33 | |
wrong window, sorry. | |||
05:44
bacek joined
05:47
penk joined
06:23
mberends left,
DemoFreak joined
06:31
bsdperl joined
06:36
slavik left
06:42
ashizawa joined
06:48
iktome joined
|
|||
iktome | join #ruby | 06:48 | |
06:50
araujo left
07:10
adc_penner joined
07:16
cotto left
07:23
stephenos left
07:56
pbuetow joined
08:00
elmex joined
08:15
bacek_ left
08:17
bacek_ joined
08:21
iblechbot joined
08:29
schmalbe joined
08:34
pbuetow left
08:35
SamB left
08:43
apeiron left
08:45
Ehtyar joined
08:52
apeiron joined
08:55
bacek left
09:07
apeiron left
09:14
DemoFreak left
09:17
adc_penner left
09:21
zamolxes left
09:23
c9s_ left
09:29
ejs joined
09:37
alc left
09:45
Ehtyar left
10:00
tomyan joined
10:09
kisu joined
10:11
araujo joined
10:12
apeiron joined,
smg left
10:28
kisu_ joined
10:34
kisu left
10:40
ruoso left
10:43
Ehtyar joined
10:49
Bzek joined
10:55
cognominal left
10:56
Bzek left
11:00
Bzek joined
11:12
kisu__ joined
11:17
kisu_ left
11:36
alc joined
11:42
smg joined
11:56
lichtkind joined
|
|||
lichtkind | is there anywhere material about elf? | 11:56 | |
12:03
kisu__ left
12:06
rindolf joined
12:12
kisu joined
12:17
kanru left
12:24
mj41 left
12:25
yves left
12:26
kanru joined
12:31
SamB joined,
lisppaste3 left,
lisppaste3 joined
12:37
iblechbot left
12:40
sri_kraih joined
12:44
cognominal joined
12:56
Lorn joined
13:01
penk left
13:03
lichtkind left
13:12
ejs left
13:14
ejs joined
13:20
yves joined
13:23
pmurias joined
13:24
iblechbot joined
13:45
ashizawa left
13:48
pmurias left
14:12
bacek__ joined
14:14
bacek_ left
14:26
rindolf left
14:36
|Jedai| joined
|
|||
moritz_ | re | 14:38 | |
lambdabot | moritz_: You have 5 new messages. '/msg lambdabot @messages' to read them. | ||
14:54
Jedai left
14:56
ejs_ joined,
ejs left
15:00
kanru left
15:01
iktome left
15:03
kanru joined,
kisu left,
kisu_ joined
15:10
Exodist joined
15:11
kisu_ is now known as kisu
15:18
rdice joined
15:36
ruoso joined
15:50
[particle] joined,
[particle]1 joined
|
|||
ruoso | Hello! | 15:51 | |
[particle]1 | hola | ||
15:52
[particle] left
15:53
[particle]1 is now known as [particle]
16:17
zamolxes joined
|
|||
TimToady | @tell azawawi no, @baseroutinenames and @basetypenames are going away as soon as we implement a prelude to define them instead. if the info you need isn't in the tree, it should be put there. | 16:18 | |
lambdabot | Consider it noted. | ||
16:18
rindolf joined
|
|||
rakudo_svn | r32768 | infinoid++ | [rakudo] gen_junction_pir.pl can use strict and warnings. | 16:20 | |
16:29
meppl joined
16:30
schmalbe left
16:32
justatheory joined
16:48
stephenos joined
16:50
kisu left
|
|||
rakudo_svn | r32770 | japhb++ | [Rakudo] Add languages/perl6/tools/rebase-rakudo.pl | 16:50 | |
r32770 | japhb++ | | |||
r32770 | japhb++ | * Add rebase-rakudo.pl, a tool to make rebase/rebuild/test | |||
r32770 | japhb++ | of Parrot/Rakudo more "fire and forget". | |||
r32772 | japhb++ | [Rakudo] Set svn props on rebase-rakudo.pl | |||
16:50
kisu joined
16:51
masak joined
|
|||
masak | ok, given that we don't have list slices in Perl 6 yet, what's the easies way to take a list slice? | 16:52 | |
rakudo: my @a = 0, 10, 20, 30, 40, 50; say @a[1,3,5] | |||
p6eval | rakudo 32769: OUTPUT[30] | ||
masak | (Rakudo currently treats the index as a scalar) | ||
16:52
spx2 left
16:53
spx2 joined
16:54
ejs_ left
|
|||
masak | rakudo: sub slice(@a, @i) { my @res; for @i.values -> $ix { @res.push(@a[$ix]) }; return @res }; my @a = 0, 10, 20, 30, 40, 50; say slice(@a, [1, 3, 5]) | 16:55 | |
p6eval | rakudo 32769: OUTPUT[103050] | ||
16:55
hercynium left
|
|||
masak | workarounds++ | 16:58 | |
TimToady | we've got list slices in Perl 6, but not in perl6 | 16:59 | |
rakudo_svn | r32774 | infinoid++ | [rakudo] Add copyright line and $Id$ to rebase-rakudo.pl. | 17:00 | |
TimToady | pugs: my @a = 0, 10, 20, 30, 40, 50; say @a[1,3,5] | ||
p6eval | pugs: No output (you need to produce output to STDOUT) | ||
TimToady | hmm | ||
masak | Pugs has been doing that for a few days, | ||
at least here on #perl6 | |||
TimToady | well, works here orz | ||
masak | we've got list slices in Perl 6, but not on #perl6 :P | ||
TimToady | perl6: my @a = 0, 10, 20, 30, 40, 50; say @a[1,3,5] | 17:01 | |
p6eval | pugs: No output (you need to produce output to STDOUT) | ||
..elf 23014: OUTPUT[Useless use of a constant in void context at (eval 117) line 4.50] | |||
..rakudo 32769: OUTPUT[30] | |||
TimToady | std: my @a = 0, 10, 20, 30, 40, 50; say @a[1,3,5] | ||
p6eval | std 23014: OUTPUT[Use of uninitialized value $file in open at Cursor.pm line 151.Use of uninitialized value $file in concatenation (.) or string at Cursor.pm line 151.parse failure] | ||
TimToady | heh | ||
masak | STD has been doing that for a few days, too. | 17:02 | |
TimToady | bot rot | ||
masak | rakudo: say "bit rot".subst(/i/, <o>) | 17:05 | |
p6eval | rakudo 32769: OUTPUT[bot rot] | ||
masak | <o> | 17:06 | |
17:14
zamolxes left
17:16
ejs joined
|
|||
masak | rakudo: my $l; for 1..2 -> $t { $l = $l // $t; say $l; $l = $t } # found a bug | 17:24 | |
p6eval | rakudo 32775: OUTPUT[11] | ||
masak | wait, nvm. | ||
that's correct :/ | |||
17:30
hercynium joined,
kisu left
17:31
macae joined
17:32
kisu joined
|
|||
masak | @tell pmichaud The strange thing about nopaste.snit.ch/14615 is that $last_linetype doesn't keep its value between the two iterations in the for loop. | 17:35 | |
lambdabot | Consider it noted. | ||
17:36
masak left
17:47
pbuetow joined
18:00
japhb__ left
18:17
kisu left
18:22
japhb joined
18:25
ejs left
18:34
zamolxes joined
18:41
rindolf left
18:42
alc left
18:52
rindolf joined
18:56
macae left
19:05
tomyan left,
smtms left
19:08
exodist_ joined,
Exodist left
19:13
smtms joined
19:16
mberends joined
19:23
smg left,
DemoFreak joined
19:43
spx2 left
19:44
spx2 joined
20:00
rindolf left,
adc_penner joined,
Lorn left
20:01
aindilis joined
20:06
jferrero joined
20:28
adc_penner2 joined
20:32
adc_penner left
20:36
Bzek left
20:45
masak joined
|
|||
masak | . | 20:46 | |
20:53
smg joined
21:08
rdice left
|
|||
pugs_svn | r23032 | moritz++ | [t/spec] test for RT #60528 | 21:11 | |
21:13
c1rcuit joined
|
|||
rakudo_svn | r32781 | moritz++ | [rakudo] '!FAIL'() when Str.substr index is out of bound, instead of throwing | 21:20 | |
r32781 | moritz++ | an exception. Patch courtesy by Vasily Chekalkin, bacek++ | |||
21:36
perl7 joined
21:43
ruoso left
|
|||
spx2 | could this be true ? | 21:47 | |
www.catonmat.net/blog/wp-content/up...-dirty.jpg | |||
masak | spx2: it's at least not as punny as TimToady usually is | 21:52 | |
22:03
wknight8111 joined
|
|||
spx2 | will perl6 have threads or will it be the same scary improvisation that perl5 is ? | 22:08 | |
pmichaud | spx2: I think the current design is that there's an explicit 'hyper' keyword that says you want the following operation(s) to be performed in parallel. | 22:11 | |
lambdabot | pmichaud: You have 3 new messages. '/msg lambdabot @messages' to read them. | ||
22:16
ZuLuuuuuu joined,
adc_penner2 left
22:17
jferrero left
22:21
perl7 left
|
|||
spx2 | I gotta tell ya , some crazy shit going on in those synopsis ... | 22:21 | |
spx2 covers eyes | |||
masak | spx2: anything special you want to ask about them? | 22:22 | |
spx2 | masak: yes,if the language will be learnable by human beeings | 22:25 | |
masak | spx2: I'm programming in it right now. | ||
it's not a problem. | |||
(as far as I know, I'm a human being.) | 22:26 | ||
wknight8111 | ...or a very clever bot | 22:29 | |
masak | what's the difference? | 22:33 | |
22:38
c1rcuit left
|
|||
literal | spx2: the format of the synopses aren't ideal for learning, but they are ideal for language implementors... | 22:40 | |
spx2 | literal: oh yes, that escaped me | 22:41 | |
masak | it's like very concentrated juice. | 22:42 | |
literal | the apocalypses and exegeses are more fun to read | ||
they cover they "why is it like this?" and the "how can I make use of it?" parts | 22:43 | ||
PerlJam | Although both are a bit dated | ||
literal | yeah | ||
PerlJam | The Exegesis on Rules in particular could use an update. | 22:44 | |
ZuLuuuuuu | I don't know the discussion but you can also get the "Perl 6 and Parrot Essentials" book which is a more polished look into the language | 22:46 | |
PerlJam | Yeah, that book is a good parrot reference and a broad intro to perl 6. | 22:48 | |
(also a bit dated :) | |||
literal | it's available free online somewhere | 22:50 | |
parrot/pugs svn or somewhere, don't remember | |||
22:54
iblechbot left
22:56
pbuetow left
23:10
ruoso joined
|
|||
ruoso | Hello! | 23:12 | |
masak | y0 | 23:13 | |
23:14
rdice joined
23:17
bacek_ joined
23:18
bacek__ left
23:22
Limbic_Region joined
23:24
hercynium left
|
|||
wayland76 | rakudo: say "yo-yo".subst(/o/, 0) | 23:34 | |
p6eval | rakudo 32783: OUTPUT[y0-yo] | ||
wayland76 | So how do we do a global subst? | ||
masak | wayland76: know about .trans ? | 23:35 | |
rakudo: say "yo-yo".trans( [ "o" => "0" ] ) | 23:36 | ||
p6eval | rakudo 32783: OUTPUT[y0-y0] | ||
masak | moritz_++ taught me that. | 23:37 | |
23:40
masak left
|
|||
literal | rakudo: say "bla.trans(a => 'o') | 23:41 | |
p6eval | rakudo 32783: OUTPUT[Statement not terminated properly at line 1, near "\"bla.trans"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
literal | rakudo: say "bla.trans([a => 'o']) | ||
p6eval | rakudo 32783: OUTPUT[Statement not terminated properly at line 1, near "\"bla.trans"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
literal | rakudo: say "bla.trans('a' => 'o') | ||
p6eval | rakudo 32783: OUTPUT[Statement not terminated properly at line 1, near "\"bla.trans"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
literal | rakudo: say "bla.trans(['a' => 'o']) | 23:42 | |
p6eval | rakudo 32783: OUTPUT[Statement not terminated properly at line 1, near "\"bla.trans"current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)] | ||
literal | I fail | ||
rakudo: say "bla".trans(a => 'o') | |||
p6eval | rakudo 32783: OUTPUT[bla] | ||
literal | rakudo: say "bla".trans('a' => 'o') | ||
p6eval | rakudo 32783: OUTPUT[blo] | ||
literal | no autoquoting? | ||
TimToady | rakudo: say "yo-yo".subst(/o/, 0, :global) | 23:45 | |
p6eval | rakudo 32783: OUTPUT[y0-yo] | ||
TimToady | rakudo: say "yo-yo".subst(/o/, 0, :g) | ||
p6eval | rakudo 32783: OUTPUT[y0-yo] | ||
TimToady | oh well | ||
pmichaud | we don't do :g yet :-( | 23:46 | |
although I think there's a patch in the queue for it. | |||
If so I'll see about applying it. If not I have plenty of people who could write it. | |||
23:57
DemoFreak left
|