pugscode.org/ | nopaste: sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by diakopter on 11 July 2007.
meppuru good night 01:50
Auzon pugs: print "good" if ([+] ord() % 10 for split //, "samil") == 4; 02:09
exp_evalbot OUTPUT[*** ␤ Unexpected "for"␤ expecting operator, ":", "," or ")"␤ at /tmp/M7aNI1HXgl line 1, column 33␤]
Auzon pugs: ord("a")
exp_evalbot RESULT[97]
Auzon pugs: $_ = "a"; ord()
exp_evalbot OUTPUT[*** No compatible multi variant found: "&ord"␤ at /tmp/u943LNJLAk line 1, column 11 - line 2, column 1␤]
Auzon pugs: print "good" if ([+] (ord($_) % 10 for split //, "samil")) == 4;
exp_evalbot OUTPUT[*** ␤ Unexpected "for"␤ expecting operator or ")"␤ at /tmp/Gw7HR9tRiH line 1, column 36␤]
Auzon pugs: print "good" if ([+] map {ord($_) % 10} split //, "samil") == 4; 02:10
exp_evalbot OUTPUT[*** ␤ Unexpected "split"␤ expecting ",", ":", operator or ")"␤ at /tmp/ayNLwrOKvy line 1, column 41␤]
Auzon oh right
pugs: print "good" if ([+] map {ord($_) % 10} split /<?>/, "samil") == 4; 02:11
exp_evalbot OUTPUT[*** ␤ Unexpected "split"␤ expecting ",", ":", operator or ")"␤ at /tmp/3PWVvBBiQo line 1, column 41␤]
Auzon pugs: split /<?>/, "samil"; 02:11
exp_evalbot RESULT[("s", "a", "m", "i", "l")]
Auzon pugs: map {ord} split /<?>/, "samil";
exp_evalbot OUTPUT[*** ␤ Unexpected "}"␤ at /tmp/Vo1hlfcA7J line 1, column 9␤]
Auzon pugs: map ord, split /<?>/, "samil";
exp_evalbot OUTPUT[*** ␤ Unexpected ","␤ at /tmp/KSmJY7Gy5A line 1, column 8␤]
Auzon pugs: map {ord($_)} split /<?>/, "samil"; 02:12
exp_evalbot OUTPUT[*** ␤ Unexpected "split"␤ expecting ",", ":" or operator␤ at /tmp/NnYC9MIzvy line 1, column 15␤]
Auzon pugs: map {ord($_)} (split /<?>/, "samil")
exp_evalbot OUTPUT[*** ␤ Unexpected "("␤ expecting ",", ":" or operator␤ at /tmp/Ugp8qfsDLl line 1, column 15␤]
Auzon Oh well. Maybe some other time.
spinclad pugs: "samil".split(/<?>/) 03:50
exp_evalbot RESULT[("s", "a", "m", "i", "l")]
spinclad pugs: "samil".split(/<?>/).map({.ord}) 03:51
exp_evalbot RESULT[(115, 97, 109, 105, 108)]
spinclad pugs: "samil".split(/<?>/).map({.ord % 10})
exp_evalbot RESULT[(5, 7, 9, 5, 8)]
spinclad pugs: say 'good' if [+] "samil".split(/<?>/).map({.ord % 10}) == 4 03:52
exp_evalbot RESULT[undef]
spinclad pugs: say 'bad' unless [+] "samil".split(/<?>/).map({.ord % 10}) == 4
exp_evalbot OUTPUT[bad␤]
spinclad pugs: "samil".split(/./) 03:53
exp_evalbot RESULT[("s", "a", "m", "i", "l")]
spinclad pugs: say 'good' if [+] "samil".split(/<?>/).map({.ord}) % 10 == 4 03:54
exp_evalbot RESULT[undef]
spinclad pugs: [+] "samil".split(/<?>/).map({.ord}) % 10 03:55
exp_evalbot RESULT[5.0]
spinclad pugs: [+] "samil".split(/<?>/).map({.ord}) 03:56
exp_evalbot RESULT[534]
spinclad pugs: "samil".split(/<?>/).map({.ord}) % 10
exp_evalbot RESULT[5.0]
spinclad pugs: say 'good' if ([+] "samil".split(/<?>/).map({.ord})) % 10 == 4 03:57
exp_evalbot OUTPUT[good␤]
TimToady Auzon: you have to have a comma after map's block, unlike in p5 06:02
Auzon Thanks, TimToady++ 07:18
pugs: ([+] "samil".split(/<?>/).map({.ord})) 07:21
exp_evalbot RESULT[534]
Auzon awesome :)
spinclad++ ;) 07:22
rindolf Hi all. 13:04
masak hello 13:06
rindolf How do I make a flat copy of a ResizablePMCArray in Parrot? 13:58
wolverian try #parrot 14:06
rindolf wolverian: OK. 14:09
wolverian (magnet)
pasteling "rindolf" at 79.182.99.195 pasted ""clone " to make a flat copy of an array." (25 lines, 429B) at sial.org/pbot/29801 14:10
pugs_svn r19437 | cosimo++ | Changed skip block with the new compiler directive 14:42
cosimo2 Hi all 14:57
rindolf Hi cosimo2 14:58
cosimo2 what's the best way to change the ":todo<feature>" in this test?
pasteling "cosimo" at 84.215.162.181 pasted "Tests :todo refactoring" (6 lines, 235B) at sial.org/pbot/29804
cosimo2 It's possible to say '#?pugs: todo("xxx", 1)' before a single test? 14:59
cosimo2 has been reading particle's use.perl.org journal 15:05
probably it is
PerlJam cosimo2: it is. I think the ,1 is even optional. 15:15
pugs_svn r19438 | cosimo++ | chomp tests refactoring. 15:17
r19438 | cosimo++ | Copied tests from /t/arrays/chomp.t and /t/strings/chomp.t.
r19438 | cosimo++ | Changed todo tests with new compiler directive (#?pugs: todo(...))
r19439 | cosimo++ | added Id keywords
r19440 | cosimo++ | set svnprops 'Author', 'Date', 'Revision', 'Id' 15:19
clkao /win 46 15:28
kane__ cl! 15:31
skids Are Proxy (tied) attributes supposed to be working yet? I get a ref-to-<obj:Proxy> when trying code like what's in the tests/libwww-perl/docs 17:10
(rather than it calling FETCH/STORE)
pmurias mncharity: how is the backend progressing? :) 17:14
pugs_svn r19441 | cosimo++ | Test suite refactoring. 19:07
r19441 | cosimo++ | Copied t/builtins/strings/p5chop.t to t/spec/S29-functions/str/p5chop.t
pugs_svn r19442 | pmurias++ | [kp6] support for ::Foo, updated tests 19:15
pugs_svn r19443 | cosimo++ | Test suite refactoring (spec/S29). Merged: 19:25
r19443 | cosimo++ | /t/builtins/strings/chop.t
r19443 | cosimo++ | /t/unspecced/chop.t
r19444 | cosimo++ | [t]: Fixed path for S29/str/chop.t 19:27
wtgee Hi, I just checked out parrot and got it working fine and then went to parrot/languages/perl6 and am currently getting some failures in 'make spectest' and am not really sure what I should do next. 19:30
cosimo wtgee: I'm currently working on the spec tests 19:31
I think it's a *long* way to go to make these tests succeed...
wtgee Okay, that is what I was wondering. So if my regular 'make test' worked I should be fine?
alester So I can no longer do random q{} quoting? 19:32
pugs_svn r19445 | cosimo++ | Test suite refactoring (spec/S29).
r19445 | cosimo++ | Copied /t/builtins/strings/p5chomp.t
r19445 | cosimo++ | to /t/spec/S29-functions/str/p5chomp.t
wolverian hm?
alester Why can I not say 19:33
perl6 -e"say q{hello, world}" ?
wtgee cosimo: I am just following along the perl6/README for running the test suite...maybe we should make a note that it will fail.
wolverian alester, that should wori. 19:34
s/wori/work/
cosimo wtgee: don't know
alester you'd think. 19:35
wolverian well, note that the implementations do not usually implement all of the spec (yet) :) 19:36
alester oh it's a quoting issue 19:38
Tene alester: q{} is NYI in parrot's perl6. 19:44
[particle] try q<> 19:51
iirc
&
Tene that doesn't work either.
pugs_svn r19446 | cosimo++ | Test suite refactoring (spec/S29). 19:57
r19446 | cosimo++ | Copied [ul]c[first] test scripts.
pugs_svn r19447 | rhr++ | [Unicode.pm] begin to do Str as suggested in recent spec updates. TimToady++ 20:12
pugs_svn r19448 | rhr++ | [Unicode.pm] handle grapheme numbers correctly 20:23
pugs_svn r19449 | cosimo++ | Moved test script to /t/spec/S29-functions/str/capitalize.t 20:40
r19449 | cosimo++ | Fixed little typos.
r19450 | cosimo++ | Test suite refactoring (spec/S29). 20:46
r19450 | cosimo++ | Copied /t/builtins/strings/length.t
r19450 | cosimo++ | Added smartlinks for bytes and chars.
r19451 | cosimo++ | Test suite refactoring (spec/S29). 20:58
r19451 | cosimo++ | Copied rindex.t from /t/builtins/strings/rindex.t
r19451 | cosimo++ | Added one more test with 3-level call chains.
r19452 | cosimo++ | Adjusted plan for S29/str/rindex test script 20:59
pugs_svn r19453 | cosimo++ | Test suite refactoring (spec/S29) 21:11
r19453 | cosimo++ | Copied split.t from /t/builtins/strings.
wolverian I love the smell of burning tuits in the morning 21:12
(cosimo++) 21:13
pugs_svn r19454 | cosimo++ | Test suite refactoring (spec/S29). 21:20
r19454 | cosimo++ | Refactored comb/split tests.
cosimo wolverian: It's almost night here... :-) 21:22
wolverian here, too :) 21:23
pugs_svn r19455 | cosimo++ | Test suite refactoring (spec/S29) 21:41
r19455 | cosimo++ | sprintf.t from /t/builtins/strings/sprintf.t
r19456 | rhr++ | [Unicode.pm] move normalization into Grapheme 21:44
cosimo Anyone knows why here: perlcabal.org/syn/S29.html#Str the inlined test scripts in t/spec look like one row only? 21:45
lambdabot Title: S29
cosimo while tests in t/builtins are ok?
pugs_svn r19457 | rhr++ | [Unicode.pm] a few fixes 21:56
pugs_svn r19458 | rhr++ | [Unicode.pm] clean up normalization dispatch 22:05
cosimo anyone knows an example of Str.samecase() ? 22:19
cosimo no luck today... :-) 22:24
rhr cosimo: samecase 'foo', 'BaR' eq 'FoO' 22:27
cosimo thx 22:32
and Str.basecase() ?
samebase, sorry
rhr samebase 'foo', "ba\x[0303]r" eq "fo\x[0303]o" 22:35
cosimo oh, interesting... where did you read that? 22:41
mailing lists?
rhr it was a spec update from yesterday 22:43
or the day before...
cosimo I read the spec document but has no examples... 22:48
toyam hello 23:25
ping particle 23:26
briansk1 will Inline/XS code from perl5 work with perl6 or will it need to be rewritten? 23:54
masak briansk1: you might find the discussion at www.perlmonks.org/?node_id=279901 interesting 23:59