»ö« | perl6.org/ | nopaste: paste.lisp.org/new/perl6 | evalbot usage: 'perl6: say 3;' or rakudo: / pugs: / std: , or /msg p6eval perl6: ... | irclog: irc.pugscode.org/ | UTF-8 is our friend!
Set by moderator on 20 October 2009.
00:08 ruz joined
ruz hi, I was playing with p6 recently and realized that an infix operator can not return a list 00:09
is it a bug or spec? 00:11
p6eval: sub infix:<T> ($a, $b) { return $a, $b; }; my @r = (1 T 2); 00:12
rakudo: sub infix:<T> ($a, $b) { return $a, $b; }; my @r = (1 T 2); 00:13
p6eval rakudo 281e3b: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 295)␤»
00:14 kent\\n joined
ruz mildew: sub infix:<T> ($a, $b) { return $a, $b; }; my @r = (1 T 2); 00:15
p6eval mildew: OUTPUT«Could not find variable &infix:T in the lexical scope.␤»
00:17 hercynium joined 00:18 ihrd joined, ihrd left 00:28 KyleHa joined
KyleHa rakudo: sub infix:<T>($a, $b) { return ($a, $b) }; my @r = (1 T 2); @r.perl.say; 00:29
p6eval rakudo 281e3b: OUTPUT«[1, 2]␤»
ruz rakudo: sub infix:<T> ($a, $b) { return ($a, $b); }; my $r = (1 T 2); $r.perl.say 00:34
p6eval rakudo 281e3b: OUTPUT«[1, 2]␤»
ruz this is what worry me 00:35
rakudo: sub infix:<T> ($a, $b) { return ($a, $b); }; my $r = 1 T 2; $r.perl.say
p6eval rakudo 281e3b: OUTPUT«[1, 2]␤»
00:39 tak11 joined 00:41 tak11 joined
ruz probably I just miss something 00:42
rakudo: sub foo {return 1,2}; my @r = foo; @r.perl.say
p6eval rakudo 281e3b: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 295)␤»
[particle] rakudo: sub foo {return 1,2}; my @r = foo(); @r.perl.say 00:44
p6eval rakudo 281e3b: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 295)␤»
[particle] rakudo: sub foo {return 1,2}; my @r = foo(); @r.say
p6eval rakudo 281e3b: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 295)␤»
[particle] rakudo: sub foo {return 1, 2}; my @r; @r = foo(); say @r.perl 00:45
p6eval rakudo 281e3b: OUTPUT«too many arguments passed (2) - at most 1 param expected␤in Main (file src/gen_setting.pm, line 295)␤»
[particle] feh.
00:55 jaldhar joined, orafu joined 01:03 Exodist joined 01:06 dj_goku joined 01:09 kent\\n joined 01:13 eternaleye joined
vallor rakudo: sub foo {return (1, 2)}; my @r; @r = foo(); say @r; 01:26
p6eval rakudo 281e3b: OUTPUT«12␤»
vallor rakudo: sub foo {(1, 2)}; my @r; @r = foo(); say "@r"; 01:27
p6eval rakudo 281e3b: OUTPUT«@r␤»
vallor rakudo: sub foo {(1, 2)}; my @r; @r = foo(); say @r; 01:28
p6eval rakudo 281e3b: OUTPUT«12␤»
vallor rakudo: sub foo {(1, 2)}; my @r; @r = foo(); say join('HAMSANDWICH',@r);
p6eval rakudo 281e3b: OUTPUT«1HAMSANDWICH2␤»
vallor [particle]: It might be working 01:29
01:29 stephenlb joined
vallor [particle]: the "one argument" gripe might be referring to return() ? 01:29
TimToady rakudo's return doesn't really know about Captures and Parcels yet, so can only really return a scalar 01:39
01:49 frew joined
dalek p-rx: f8fb418 | pmichaud++ | src/NQP/ (2 files):
Handle immediate blocks (in 'if' statements, at least).
01:51
p-rx: 16b3e50 | pmichaud++ | src/ (3 files):
Fix error in protoregex token string test.
p-rx: a3d0b4e | pmichaud++ | (4 files):
[nqp]: Recognize statement end after close curly brace. Add "make nqp-test" target, and first set of tests.
p-rx: b870296 | pmichaud++ | t/nqp/02-if-else.t:
[nqp]: Add (passing) if-elsif-else tests.
p-rx: 182e820 | pmichaud++ | t/nqp/0 (2 files):
[nqp]: Somehow missed adding these tests in earlier commits.
p-rx: 4174ed2 | pmichaud++ | (3 files):
[nqp]: Add 'unless' statement.
01:57
02:10 agentzh joined 02:24 jsut joined 02:38 envi^office joined 02:45 [particle]1 joined
pugs_svn r28887 | kyle++ | [t/spec] briefer test 02:57
r28888 | kyle++ | [t/spec] decimal without "e" is Rat per Spec r28881
03:01 base_16 joined
KyleHa rakudo: class A { method uhn() { say "alive"; return self; }}; {"foo" => &A::uhn}.<foo>(A.new) 03:02
p6eval rakudo 281e3b: TIMED_OUT
03:07 am0c joined
pugs_svn r28889 | kyle++ | [t/spec/integration] Test for RT #69610 03:36
03:40 am0c joined 03:42 Schwern joined, Squern joined
dalek kudo: 49e62fa | (Kyle Hasselbacher)++ | t/spectest.data:
[spectest.data] Add integration/return-from-method-in-hash.t (RT 69610)
03:43
03:48 pnate joined 04:30 mberends joined
mberends japhb: ping 04:30
dalek p-rx: 6ebc781 | pmichaud++ | t/nqp/0 (4 files):
[nqp]: More test fixes, add 04-comments.t .
04:39
p-rx: c48a575 | pmichaud++ | t/nqp/0 (10 files):
Rename test files to avoid 00-* test (and since we won't use 05-pod.t
p-rx: c5c2958 | pmichaud++ | t/nqp/06-args-pos.t:
Add 06-args-pos.t test.
p-rx: 6be2c89 | pmichaud++ | (4 files):
[nqp]: Add prefix:<!> and prefix:<?>. Add 'plan' and 'ok' builtins.
p-rx: 86ff73b | pmichaud++ | (2 files):
[nqp]: Make immediate blocks work in statementlists. Add 08-blocks.t.
04:51
mberends the pmbot never sleeps :)
dalek p-rx: d6f5066 | pmichaud++ | src/PAST/Regex.pir:
Zero-width anchors allow prefix tokens.
05:14
05:17 eternaleye joined 05:19 kent\\n joined 05:25 Su-Shee joined 05:29 bpetering joined 05:31 c9s joined 05:33 c9s joined 05:36 canhope joined
dalek ok: c6e366b | duff++ | authors.pod:
Minor reformatting, fill out my info
05:37
ok: c40a907 | duff++ | src/preface.pod:
Add an introductory paragraph and information on Perl 6 resources
ok: 38bc43c | duff++ | src/multi-dispatch.pod:
minor edits
05:44 Raugturi joined 05:53 nbrown_ joined 06:05 quietfanatic joined
japhb mberends, pong ... but I'm going to have to head to bed pretty soon. 06:12
I'll try you again tomorrow ...
mberends ok, it's clear the proto installed-modules branch needs to be completed 06:13
I'll do some work on that today :)
japhb mberends, excellent!
More brains to eat in the morning, then. :-) 06:14
mberends heh
have a good rest
japhb OK, off to drown my flu in a bottle of Nyquil
thx
06:15 desertm4x joined 06:28 MasterShake joined
dalek p-rx: fbaf420 | pmichaud++ | src/ (4 files):
Add special handling of <sym>.
06:29
p-rx: a02da52 | pmichaud++ | src/NQP/Grammar.pm:
[nqp]: Switch grammar to use <sym> subrule.
p-rx: 5ad06df | pmichaud++ | src/ (3 files):
[p6regex]: Switch to use <sym> subrule in protoregexes.
MasterShake perl6: say "Hello, World!" 06:33
p6eval rakudo 49e62f: OUTPUT«Hello, World!␤» 06:34
..elf 28889, pugs: TIMED_OUT
06:45 eternaleye joined
moritz_ good morning 06:47
mberends good morning moritz_ 06:48
07:00 JimmyZ joined, envi^office joined 07:10 synth joined 07:15 Schwern joined 07:17 desertm4x_ joined 07:43 mikehh joined 07:48 mariuz joined 07:57 kent\\n joined
eiro coucou, les guerriers du perroquet 08:02
moritz_ guten Morgen wehrte Kamelschmetterlinge :-) 08:08
08:12 namenlos joined
Su-Shee moritz_: *rotfl* :) 08:13
08:20 eternaleye joined 08:23 NorwayGeek joined 08:31 TiMBuS joined 08:36 bpetering joined
mberends en vir suid-afrika: goeie m�re kameelskoenlappers :-) 08:51
moritz_ koenlapper = butterfly? 08:53
Su-Shee mberends: I'm totally for a "rakudo kameelskoenlappers" release :)
moritz_ Su-Shee: just starte a kameelskoenlappers perl mongers group :-)
contribute a bit to rakudo
mberends yes, skoenlapper. no idea why, it's not dutch
moritz_ there you go :-)
Su-Shee moritz_: this is such a cool word.. :) 08:54
mberends always loved afrikaans for its evocative and gritty phrases 08:55
zebra -> kameelperd
moritz_ lol
(German "Pferd" is horse) 08:56
mberends chameleon -> verkleurmannetjie 08:57
09:00 barney joined
Su-Shee mberends: verkleuren is "disguise/masquerade"? 09:00
looks like verkleiden. 09:01
dalek ok: c686798 | moritz++ | src/multi-dispatch.pod:
[MMD] two small nits in PerlJam++'s excellent edits
ok: 9a23084 | moritz++ | docs/announce/2009-10.html:
[docs] HTML version of release announce
moritz_ Su-Shee: or "verklaeren" 09:02
namenlos moritz_: not "verkleiden"? 09:09
moritz_ namenlos: Su-Shee already suggested that 09:10
namenlos fingers faster than the brain - sorry for the noise
moritz_ :-)
09:11 arnsholt joined 09:17 snearch joined 09:21 masak joined
masak ahojte, alle loyte. 09:21
mathw We have LTA behaviour with Configure.pl --gen-parrot when svn isn't installed
It notices, but then tries to carry on anyway
dalek p-rx: 7fa2ece | masak++ | src/cheats/hll-grammar.pir:
Fixed typo in documentation.
09:23
moritz_ mathw: aye, errors from build/gen_parrot.pl don't propagate to Configure.pl 09:24
mathw: feel free to patch that, or to submit a bug report
mathw I'll think about a patch 09:25
masak heh, I discovered the same things as vallor did with --target=pir yesterday. was about to report it today. :)
mathw It's something that's actually within my capabilities
woot
masak vallor: you know that precompiling to PIR still works, don't you?
i.e. creating the PIR file, and then including it with 'use MyModule'
Skoenlapper :) af.wikipedia.org/wiki/Skoenlapper 09:30
mberends ahoj masak, im hackin ur proto :)
masak mberends++
mberends Su-Shee: verkleur = to change colour
masak mberends: I presume from the backlog that you read yesterday's discussion with __ash__. 09:31
mberends masak: correct, and japhb++ is also hoping the branch will land soon
masak mberends: any way I can help? 09:32
mberends thanks, let me look for a few minutes
masak absolutely.
mberends I'm thinking of merging a soon as possible, even though there is more TODO, as long as the main functionality works. It looks like "uninstall" is part done and "update" not yet started. The rest can be done post-merge. 09:38
09:41 baest joined
masak even 'uninstall' is not overly critical, in my opinion. 'update' is, though. 09:44
mberends yep. can 'update' be implemented as 'uninstall' + 'install' ? 09:45
the problems are: dependecies block a full uninstall, but the update may need to remove some files and add others 09:46
it may work if there is a variant of uninstall that turns a blind eye to dependencies 09:47
masak haven't had my coffee yet today; need to re-read that. 09:51
mberends it seems todo #13 already knew what I was musing about ;-) 09:52
masak it seems todo #13 knows what it's talking about, too. 09:53
mberends none of that has been written, I've just done some renaming to free up the name 'update'
masak could you give me a quick run-down of the current subcommands?
mberends ok 09:54
Installer.pm:16 is the list. fetch downloads into cache, refresh re-downloads into cache, clean removes from cache 09:55
test dwym, install copies "intelligently" to .perl6/lib/, uninstall "intelligently" erases from .perl6/lib/ 09:57
showdeps lists dependencies for just one project, showstate is for debugging and lists what's in cache and installed 09:59
masak sounds good. 10:00
mberends masak: so 'uninstall' and 'update' are top of the pile, and should be done pre-merge. Do you feel like tackling any part of that?
masak I can have a look at 'uninstall'. 10:01
10:01 donaldh joined
mberends ok, just writing a commit message... 10:02
jnthn o/ 10:03
mberends \\o jnthn
jnthn gave one of his talks 10:04
one more later today
10:04 pmurias joined
jnthn Went sort of OK-ish...I think. :-/ 10:04
masak jnthn: oh hai. make sure to upload them soon, so that the rest of us can enjoy them, too. Ö=
:)
jnthn :-) 10:05
mberends urk, git push says ! [rejected] even though git pull was up to date. grrr
jnthn tssk 10:06
10:12 pjcj joined 10:14 icwiener joined
masak I'm not 100% sure I'll have the presence of mind to contribute sensibly to proto today. 10:14
I was going to take some polishing swipes at the book before its first release, 10:15
and I'm sort of half-preparing for going to Stockholm for a disputation dinner tonight.
mberends ok, and I see on github.com that the push *did* arrive :-) puzzled <frown/> 10:16
10:17 rfordinal joined
jnthn disputation dinner = dinner where you dispute stuff? 10:17
masak jnthn: I was waiting for someone to ask that. :) 10:18
jnthn "That's my beer." "It's NOT your beer."
masak jnthn: yes, it's a bit like Monty Python.
jnthn
.oO( wonder if anyone attends dressed up as a cross-dressing lumberjack )
10:19
(monty python)++
masak maybe I'm using a false friend in Swedish. is sv:disputation the same as en:'doctoral defense'? 10:20
if so, what do you call the adjoining dinner?
jnthn Ah, OK, gotcha. 10:28
Hmm, where I was, there wasn't an adjoining dinner.
We tend to call it a thesis defence where I was at, and the only other nickname I knew for it was "viva", but I'm not sure where that came from. 10:29
otoh, I went to a strange uni. ;-)
pmurias in
bpetering masak: i'm <-> this close to being "done", and able to work on porting P5 Text::CSV's tests over. I've already done several. 10:34
masak bpetering: very nice. yesterday I felt the need for a Writer again. looking forward to picking up negotiations with you. 10:35
I feel our collaboration so far has been very fruitful. 10:36
bpetering masak: I'm hoping to get a few of the dot-tees knocked off tonight.
masak: I built the "one to throw away", hopefully yours + tests will be "what ppl want"
masak nod.
bpetering Oh, and <obligatorynetmemegreeting> everyone 10:37
masak: I do too :) 10:38
What are we negotiating? 10:39
dalek ok: 4e17690 | masak++ | docs/announce/2009-10 (2 files):
[docs/announce] slight polish on announcement

  - changed description of masak from 'first user' to 'frenetic'
  - 'chromatic' with a small 'C' -- trumps beginning of sentence by me
ok: 2ad2120 | masak++ | README:
[README] minor grammar and link fixes
10:45
ok: 41cd141 | masak++ | Makefile:
[Makefile] removed incendiary comment
10:46 kent\\n joined
bpetering masak: in any case, enjoy the dinner :) 10:57
masak bpetering: thank you. :) I'm sure I will, it's an old friend who's done his defence. 10:58
11:04 namenlos joined
dalek ok: 86b2f11 | masak++ | Makefile:
[Makefile] parameterized inkscape executable

correctly -- I did. I guess a Configure.pl step could be made to probe the system automatically, but the current setup works for now.
11:08
11:13 kidd joined 11:17 envi^home joined 11:26 am0c joined 11:39 rdice joined 11:42 meppl joined
bpetering masak: (sounds like you're busy but... where you said 'false friend' above i'm thinking 'false cognate' - is that the same thing?) 11:48
moritz_ masak, mberends: for the installed-modules branch it would be convient to have a "wipeout" or "purge" command that just uninstalls all modules 11:51
ie rm -rf ~/.lib/perl6/*, and reset projects.state
11:53 fax joined 11:57 kent\\n joined 12:00 am0c joined
moritz_ rakudo: my %h = a => 3, b => [4, 5]; %h.push: a=> 7, b => 8; say %h.perl 12:06
p6eval rakudo 49e62f: TIMED_OUT 12:07
moritz_ anyway 12:09
takadonet morning all 12:11
dalek ok: 4dfe6b7 | masak++ | src/preface.pod:
[preface] added explanation about TODOs
12:12
ok: 33e9b83 | masak++ | src/preface.pod:
[preface] de-capitalized parts of headings
masak bpetering: aye, I'm afraid 'false friend' might also be a false cognate. how meta... :/
moritz_ also learned "false friend" in school 12:13
12:13 mj41 joined
bpetering masak: :) 12:16
bpetering guesses it's a European thing. 12:17
12:26 Bzek joined
mberends moritz_++: a proto 'wipeout' command is a good idea, will add one :) 12:29
bpetering mberends++, masak++ # proto 12:35
moritz++ # proto 12:36
moritz_ did nearly nothing for proto
12:36 SmokeMachine joined
bpetering (severe VBscript brain damage. Feeling slightly retarded.) 12:37
moritz++ anyway, you're working on nearly everything else :)
masak TimToady: this article, while a bit on the theoretical side, I found very approachable. it, and the paper it refers to, might give further ideas about parallelizing operations on lists: www.iis.sinica.edu.tw/~scm/2009/det...omorphism/ 12:40
bpetering and half-an-hour late: morning takadonet :)
masak morning takadonet!
takadonet bpetering: thanks
morning masak
12:48 colomon joined
colomon hai all! i iz at StackOverflow DevDays in Toronto! 12:49
12:49 SmokeMachine joined
masak colomon: woot! 12:50
colomon: may you make many people's stacks flow over with Perl 6 awesomeness. :)
colomon :) 12:51
I still wish I'd been organized enough to get a nice Rakudo t-shirt to wear today.
moritz_ given the amount of advertisment that stackoverflow.com had on its pages, one can assume that their monetary stack also overflows :-) 12:58
masak I imagine they're doing pretty well, yes. 13:01
they're also selling the software underlying StackOverflow, StackExchange. stackexchange.com/ 13:02
13:03 NorwayGeek joined
masak gotta go now. have a pleasant weekend, everyone! 13:04
moritz_ I prefer the perlmonks philosophy of encouraging discussion (rather than discourage them, as SO does)
masak: good weekend to you too
bpetering enjoy the dinner, masak :)
moritz_ (and have the appropriate amount of fun)
masak I will. :)
13:10 payload joined 13:13 donaldh joined, donaldh left
dalek ok: d9314dd | duff++ | docs/announce/2009-10 (2 files):
Minor grammatical nit
13:32
13:37 KyleHa joined 13:42 frew joined
KyleHa Is there something wrong with Parrot svn, or is it just me? 13:45
13:46 ruoso joined
PerlJam wrong how? 13:47
KyleHa Trying to checkout a Parrot revision stalls. 13:48
PerlJam tries
svn: OPTIONS of 'svn.parrot.org/parrot/trunk': could not connect to server (svn.parrot.org) 13:50
:-(
KyleHa Ok, it's not just me. Thanks!
moritz_ rakudo.org/node/58 # book announcement 13:53
perlgeek.de/blog-en/perl-6/we-write...r-you.html # same post
dalek ok: a2ebb2a | moritz++ | docs/announce/2009-10 (2 files):
[docs] download location in release announcement
13:54
KyleHa Howdy Moritz! I took an unusual turn in the test I wrote last night, putting it in spec/integration. I wondered if you had some other suggestion. 13:56
moritz_ KyleHa: t/spec/S12-methods/$somewhere maybe? 13:58
13:58 namenlos joined
moritz_ this test basically invokes a method with subroutine syntax 13:58
I'm still not quite sure if that's fine, in general
KyleHa According to the ticket, the hash lookup is part of the problem.
moritz_ did you try it without the hash lookup? 13:59
13:59 ejs joined
moritz_ if it's a hash problem, it could go into S02 or S32 somewhere 14:00
KyleHa It actually passes now.
moritz_ it does?
wow
KyleHa But no, I only confirmed that it failed as originally described in the version that was fingered.
moritz_ either S12 or S02 would be fine by me 14:01
assembling too many files in integration/ makes me feel uneasy, though
KyleHa OK. It seems today that $work will be full of emergencies, so it might take me a while to fix that.
moritz_ no hurry.
14:01 pmurias_ joined 14:02 colomon joined
KyleHa Woohoo! Parrot svn is back! 14:05
14:06 athaba joined
KyleHa Sometimes I wish for a t/spec/rt.t into which I can dump any RT ticket. Deciding where to put the test in the suite can take longer than writing the test. 14:06
moritz_ I know 14:07
KyleHa Maybe I just need more practice.
moritz_ but "this was once a rakudobug" is not a useful means to categorize spectests, which after all should be implementation independent
bpetering KyleHa: i'm planning to start contributing to the test suite more... kinda like the sound of that :) 14:08
moritz_ maybe we can find a compromise
we have such a file, and declare that tests should be migrated out of there
and I can go through it twice a week, and comment which files would be appropriate 14:09
that way you don't have the initial hassle to decide, and can learn a bit what others think about it
KyleHa That sounds pretty good. Then I can move them around in another pass later. 14:10
moritz_ there's one problem though
KyleHa It doesn't have to be just "this was once a rakudobug". It could be any implementation's bugs. 8-)
moritz_ we send the mail to RT informing about the bug 14:11
and then later on it's moved to a different location
KyleHa Oh yeah. That smells bad.
14:11 payload joined
moritz_ so either we send a second mail (which would bloat RT), or we lose the information (not good either) 14:11
KyleHa That could be worked around, but it'd be clumsy. 14:12
workaround: (1) don't mention the RT ticket in the initial commit, (2) have separate commits for 'delete' and 'add', and mention the RT ticket in the latter. 14:13
moritz_ I personally don't find it too hard to find a somewhat to find a good location
subroutine call? S06. Objects? S12. Roles? S14
KyleHa OK, then I probably just need more practice. 14:14
moritz_ control structures? S04
regexes? S05
basic data types, syntax? S02
operators? S03
often there's also more than one valid location
then just pick what feels better, there's no scientific evaluation :-)
and in my online hours I'm also glad to answer questions 14:16
about test locations
KyleHa I appreciate that.
moritz_ (oh, and I found ack -g useful. It's about a 'constant B'? ack -g constant -> spec/S04-declarations/constant.t 14:17
)
KyleHa I still use grep.
moritz_ then find | grep constant
KyleHa For extra power, I pipe to Perl.
moritz_ (ack -g searches in file names, not in the files itself) 14:18
KyleHa grep -r ^ t | perl -ne 'print if /blah/'
Yes, "find | grep" to find files.
The perl6book project seems pretty ambitious. 14:20
PerlJam KyleHa: how so?
KyleHa I just think writing books is hard.
moritz_ it is :)
PerlJam If you think it, then it will be so. 14:21
KyleHa It's a lot of prose to keep coherent.
moritz_ but with great collaborateurs it's also fun
KyleHa I think it's a great idea, especially what with Rakudo Star. 14:22
moritz_ thanks 14:25
funny thing is
chromatic and allison thought about contacting masak and me about writing a Perl 6 book
bot somehow that idea got stalled
because too many other things happened, or something 14:26
and then we came up with that idea independently
Su-Shee isn't also someone writing with a grant a wikibook about perl 6 and randall schwartz is working on leanring perl 6 and... 14:27
14:28 elmex joined
moritz_ Su-Shee: I know of no grant 14:28
Su-Shee: and the "learning perl 6" is pretty much dormant since 2007 or so
14:30 colomon joined
Su-Shee moritz_: yeah, I checked a few days ago or so. 14:30
colomon so, I'm sitting here watching an ASP.NET MVC presentation, and translating bits of code to Perl 6 in my head. 14:31
moritz_ :-)
KyleHa A book seems like it would go well on a wiki more so than git. Was wiki considered and rejected?
colomon Is there a Perl 6 idiom for getting a scalar from a list presumed to have one value? 14:32
moritz_ colomon: $list[0]
colomon moritz_: ooo, with // to provide a default if the list is empty? 14:33
moritz_ KyleHa: I prefer git for several reasons, among them that I'm not forced to work in a browser, and that offline hacking is much easier with git
colomon: sure
colomon (// does still exist, right? I've never actually used it...)
KyleHa (offline hacking)++
moritz_ KyleHa: and I do a lot of writing on the train, without wifi
KyleHa Makes sense. 14:34
moritz_ also most wikis are very slow or bad in showing diffs, and don't encourage proper commit messages
(oh, and there aren't many POD or LaTeX based wikis, and learning yet another format doesn't appeal to me)
these are mostly also the reasons why perl6.org is not a wiki 14:35
KyleHa OK, I take it back. Wiki would not have been a good choice.
moritz_ :-)
however it would be nice to have HTML versions of the pages though 14:36
hopefully somebody implements that, so that I don't ahve to do it :-)
KyleHa That reminds me.
colomon enc.com.au/docs/latexhtml.html
moritz_ well, there's also a Pod::PseudoPod::HTML on CPAN 14:37
colomon ah, that's probably better.
moritz_ which we could use - somebody just has to do it :-)
KyleHa Once in a while I actually try to put smartlinks into the tests like I ought to. How do those get migrated to the syn pages? Is it periodic regeneration, or what? When can I look to see if my link worked?
moritz_ it's a cron job (runs hourly, iirc) 14:38
KyleHa Cool, thanks.
moritz_ and you can use util/smartlinks.pl --check $filenames
from the pugs repo
KyleHa Neat-o. 14:39
First file I checked has errors. Maybe there's some low hanging fruit there for some future contributor. 14:40
jnthn just gave his other talk 14:41
Including a partial LolSql to Sql convertor. ;-)
moritz_ :-)
jnthn "an increase of 17,085 passing tests" :-D # release win! 14:44
KyleHa We don't mention how many of those weren't present in the suite before. 8-)
moritz_ release announcements aren't the place for gory details 14:45
mathw jnthn: I was thinking of writing one of those, but I haven't had tuits yet
moritz_ jnthn: did you upload the slides already? 14:46
KyleHa is bisecting the junctions/autothreading regression.
I just think 'git bisect' is so awesome. 14:47
mathw I've never used it, but everyone's always very enthusiastic about it
jnthn KyleHa: We already know when it regressed. 14:48
KyleHa: When resig2 merged.
moritz_: Not yet - also, I only hacked up the translator today, so it didn't make it onto the slides. ;-)
KyleHa jnthn: Yes, but we could probably narrow it down more than that...into the commits that were part of resig2.
jnthn KyleHa: I know that too. :-) 14:49
KyleHa: Thing is, it was failing differently before that.
Thanks for looking at it, but it's actually not useful to know. The code that segfaults actually has to be deleted and re-written in order to build on pcc_reapply.
14:49 nihiliad joined
KyleHa Oh, OK. 14:50
I'll let the CPU cool off, then. 8-)
14:52 Psyche^ joined 15:00 jsut|work joined 15:06 pnate joined 15:08 justatheory joined 15:12 colomon joined 15:17 rdice joined 15:30 payload joined 15:31 fax joined 15:37 payload joined 15:40 xabbu42 joined 15:46 iblechbot joined 16:07 alester joined 16:08 veritos joined 16:14 cdarroch joined 16:34 ejs joined
PerlJam re learning perl 6, has anyone asked merlyn or bdf about it lately? 16:36
[particle] msg anyone have you askend merlyn or brian_d_foy about learning perl 6 lately? 16:39
;)
16:40 astrojp joined 16:43 naypalm joined 16:44 payload joined, veritos left
dalek ok: ac44502 | pmichaud++ | src/ (2 files):
Fix a couple of noticed typos.
16:49
ok: fa8e079 | pmichaud++ | src/grammars.pod:
Another typo.
16:50 Su-Shee_ joined, mikehh joined 17:03 baest_ joined, zamolxes joined
zamolxes ok, so I twittered about the last rakudo release, and got a question 'why is rakudo better than activestate or strawberry or ..? oh it runs on parrot, what is that?' is there a quick link I can give that could answer 'what is perl6? what is parrot? why is perl6 not perl5? why is perl6 cool?' something a good programmer in $other_language could skim in 10 seconds and understand 17:05
KyleHa perl6.org/ is sort of central. 17:06
Here's the most recent release announcement: rakudo.org/node/57 17:10
Su-Shee zamolxes: this is helpfull I think: www.perlfoundation.org/perl6/index....ature_list
17:14 colomon joined
colomon rakudo: my $a= "hello"; say $a.substr(2,1); 17:15
p6eval rakudo 49e62f: OUTPUT«l␤»
colomon ack, that's what I get for doing this in low-light conditions. In my terminal's font I thought that was a 1. 17:16
rakudo: my $a = "hello"; $a.substr(2,1) = "g"; say $a;
p6eval rakudo 49e62f: OUTPUT«hello␤»
colomon rakudo: my $a = "hello"; substr($a, 2, 1) = "g"; say $a; 17:17
p6eval rakudo 49e62f: OUTPUT«hello␤»
colomon NYI?
17:20 stephenlb joined 17:21 colomon_ joined
zamolxes thank you 17:29
17:32 xp_prg joined 17:42 zloyrusskiy joined 17:43 desertm4x joined
colomon rakudo: <a b c d e f>.map(-> $a, $b { $a ~ $b if $b; }).perl.say; 17:49
p6eval rakudo 49e62f: OUTPUT«["ab", "cd", "ef"]␤»
17:58 frew joined 17:59 pmurias joined
colomon rakudo: Set(<a b c d e f g>).perl.say 18:07
p6eval rakudo 49e62f: OUTPUT«Could not find non-existent sub Set␤in Main (file src/gen_setting.pm, line 295)␤»
colomon rakudo: Set.new(<a b c d e f g>).perl.say
p6eval rakudo 49e62f: OUTPUT«Could not find non-existent sub Set␤in Main (file src/gen_setting.pm, line 295)␤»
PerlJam ENOSET 18:08
:)
colomon Yes, that's going to make a challenge to use in this code. :)
rakudo: any(<a b c d e f g>).perl.say 18:09
p6eval rakudo 49e62f: OUTPUT«any("a", "b", "c", "d", "e", "f", "g")␤»
colomon rakudo: any(<a a b c d d e f>).perl.say;
p6eval rakudo 49e62f: OUTPUT«any("a", "b", "c", "d", "e", "f")␤»
TimToady but that's not a set--it's a set of sets 18:10
colomon eh?
TimToady it matches a, ab, bc, feedface, etc 18:11
colomon ooooo.
TimToady a real set has one() semantics
colomon okay, that's not gonna work either. :)
rakudo: one(<a a b c d d e f>).perl.say; 18:12
p6eval rakudo 49e62f: OUTPUT«one("a", "a", "b", "c", "d", "d", "e", "f")␤»
colomon right, back to the good old hash for now
18:25 sgarthp joined 18:27 sgarthp joined 18:38 astrojp joined 18:41 ShaneC joined 18:43 Su-Shee left
PerlJam merlyn says that perl 6 llama is on hold until perl6 gets more usable. I wonder if Rakudo* counts 18:59
19:07 zloyrusskiy joined
pmichaud I think it counts, but I think the llama is on a different time scale 19:09
and has a somewhat different focus
19:09 SmokeMachine joined
[particle] she's on llama time. 19:13
19:13 breinbaas joined 19:17 payload joined 19:18 glurks joined, zloyrusskiy joined
TSa HaloO 19:23
sjohnson Q: is there a perl6 cpan repository yet? if so, is it the regular CPAN site, with Perl6:: prefixes? 19:24
19:30 NorwayGeek joined
obra__ sjohnson: Perl6:: is modules in perl 5 meant to emulate perl6 behaviour 19:32
there is ongoing work on getting perl6 code onto the CPAN. and six different efforts to reinvent CPAN for perl 6 ;)
19:34 Schwern joined
sjohnson thanks obra__ 19:36
19:49 ruoso joined 19:55 zamolxes joined 19:57 icwiener joined 20:04 colomon joined
zamolxes KyleHa: hope this is ok :) twitter.com/bogdanlucaciu/status/5105572551 20:07
KyleHa Looks good to me, zamolxes, thanks! 20:08
20:29 dr_df0 joined 20:40 coldboot left
moritz_ is <.before $thing> and <?before $thing> the same? 20:48
in a regex, that is
20:50 quietfanatic joined
sjohnson are the <> significant? 20:59
either case they are not 21:00
moritz_ what's the difference?
and yes, the <> are necessary
sjohnson the <? will accept whether or not the < is present 21:02
moritz_ I'm talking about Perl 6 regexes
sjohnson and the .b will only allow a character of anytime after the < and before the b
... oh
moritz_ this is #perl6, after all ;-)
sjohnson i didn't know they are differnent :[
21:02 NorwayGeek joined
moritz_ very much though. 21:02
s/though/so/
21:02 Exodist joined
sjohnson sowwie 21:03
21:13 naypalm joined
dalek ok: 810f25c | moritz++ | src/regexes.pod:
[RX] substitutions, lookahead
21:18
pmichaud because before is a zero-width match, <?before ...> and <.before ...> end up being equivalent. 21:19
21:19 hercynium joined
pmichaud However, I would recommend the <?before ...> form to make it clearer that it's a zero-width match. 21:19
<?before ...> also gives a hint to the regex engine that no backtracking into the regex is needed.
21:19 jferrero joined
pmichaud (in general, <.foo> might backtrack into 'foo', while <?foo> doesn't need to do so.) 21:20
moritz_ ok, thanks for the explanation
I'll probably change it in the book tomorrow 21:21
is <?before <.subrule>> the same as <?subrule>?
moritz_ -> bed (but will backlog) 21:25
21:25 frew__ joined 21:29 PZt joined
pmichaud moritz_: yes, I tend to think of <?before <subrule>> as being better specified as <?subrule> 21:35
pugs_svn r28890 | kyle++ | [t/spec] move my misplaced test 21:43
21:44 Limbic_Region joined 21:46 tak11 joined
dalek kudo: 501b4fb | (Kyle Hasselbacher)++ | t/spectest.data:
[spectest.data] moved my misplaced test
21:46
22:02 tak11 joined 22:03 fax joined 22:20 colomon joined 22:25 Raugturi joined 22:27 Whiteknight joined 22:51 kent\\n joined 22:53 xenoterracide joined 22:55 xenoterracide joined
PerlJam rakudo: my $str = "o"; say "foo" ~~ /$str/ ?? "yes" !! "no"; 23:23
p6eval rakudo 49e62f: OUTPUT«Null PMC access in get_string()␤in Main (file src/gen_setting.pm, line 295)␤»
23:34 tylerni7 joined 23:36 xenoterracide joined 23:37 NorwayGeek joined 23:39 xenoterracide joined 23:44 xenoterracide joined 23:52 xenoterracide joined 23:56 NorwayGeek joined