»ö« | 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 wolfe.freenode.net on 30 October 2009. |
|||
00:10
pmurias left
00:23
charsbar joined
00:31
SmokeMachine joined
00:35
M_o_C left,
robert__ left
00:50
frew_ joined,
frew__ joined
|
|||
Wolfman2000 | frew: unsure which nick you are using right now, but...need a Google Wave invite? | 00:53 | |
01:00
astrojp left
01:01
astrojp joined
01:05
astrojp left
01:06
frew__ left
|
|||
sjohnson | Wolfman2000: someone said you can use that to do collaborative editing which is kinda cool | 01:07 | |
that technology with vim would be pretty cool | |||
Wolfman2000 | sjohnson: Yep. That's what some of us did with one of my perl files up on the Wave. | ||
01:07
frew_ left
|
|||
Wolfman2000 | ...ugh, I'm not using Google Wave with vim. Or emac.s | 01:07 | |
01:08
frew_ joined
|
|||
sjohnson | Wolfman2000: are you forced to use their web based text editor when doing that sort of thing? | 01:08 | |
frew_ | Wolfman2000: if you've still got one sure! | ||
Wolfman2000 | frew_: I do. hang on, and give me your email | ||
frew_ | Wolfman2000: [email@hidden.address] | ||
arnsholt | sjohnson: You could try using vimperator? That should give you vim and Wave =) | ||
frew_ | sjohnson: I like the "It's All Text" add on | 01:09 | |
it lets me use gvim for text fields I want to do serious editing with | |||
Wolfman2000 | arnsholt: I don't want to use vim | ||
Perhaps that wasn't made clear. | |||
arnsholt | Wolfman2000: I understood that. But I think sjohnson wanted to | 01:10 | |
Wolfman2000 | I wonder if the green dots on Google Wave mean they are online | ||
frew_ | what do people here use for persistent IRC connections? | 01:11 | |
I think a linnode would be way too expensive for that | |||
but Dreamhost doesn't seem like it would be fast enough or whatever | 01:12 | ||
Wolfman2000 | frew_: your invite will come soon...hopefully | 01:13 | |
frew_ | sweet, thanks :-) | 01:14 | |
Tene | frew_: just screen+irssi | 01:20 | |
colomon | phenny: tell masak Instead of the work-around Rank.pick(*) -> $rank, how about just @cards.map *.rank -> $rank ?/ | ||
phenny | colomon: I'll pass that on when masak is around. | ||
sjohnson | thanks arnsholt | 01:21 | |
frew_: gnu screen + weechat :) | |||
frew_: members.shaw.ca/smujohnson/img/weec...enshot.png | 01:22 | ||
Tene | frew_: I keep my irc client running on a friend's openhosting box that he already had up to host a website. Several people here run IRC on feather, iirc. | 01:23 | |
Mostly, ask around among your acquaintences to see if any of them have a server you could have a shell on. | |||
02:16
astrojp joined
02:19
TiMBuS joined
02:22
justatheory left
02:23
jaldhar joined
02:24
orafu joined,
astrojp left
|
|||
colomon | phenny: tell masak or better yet @cards>>.rank -> $rank | 02:44 | |
phenny | colomon: I'll pass that on when masak is around. | ||
Wolfman2000 | ...yeah, still bewildered at the amount of ops today. I wonder if they are all needed. | 02:53 | |
Anyway...time to enter the Perl 5 zone should I need help with more of our hopeful eventual Perl 6 Pastebin. With luck, I won't be run out. | |||
frew_ | Tene: that's what I should do... | 02:59 | |
Wolfman2000 | frew_: I believe I gave you the URL of my github pastebin project. I'm awaiting your criticism when you can give it. | 03:07 | |
03:18
JimmyZ joined
|
|||
Khisanth | frew_: not fast enough for IRC?! O_o | 03:27 | |
56k was more than enough ... | |||
frew_ | Wolfman2000: I looked through it a little, but not a lot | 03:29 | |
Wolfman2000: I'll certainly let you know though | |||
Wolfman2000 | gotcha. also, soon asking a question in the dbic room | ||
frew_ | Wolfman2000: the one thing I will say now though is that you have a really long method in one of the controllers I looked at | ||
I try to keep it under 20 lines generally | 03:30 | ||
I'll hop in there :-) | |||
Wolfman2000 | frew_: Some of the subs are hard to keep under 20. | ||
frew_ | I know, especially when you are generating html | ||
Wolfman2000 | frew_: Now, if I can understand how to have actual ResultSets and call upon them that way, that would reduce some line clutter. | 03:31 | |
03:31
jallorina joined
|
|||
Wolfman2000 | But some subs will just have to be above your recommended limit. | 03:32 | |
frew_ | heh | ||
well, I'd also say that your variable names are a little weird, being camel case and using abbreviations | |||
03:33
jallorina left
|
|||
Khisanth | add some underscores for full coverage! | 03:35 | |
$foo_Br :) | |||
frew_ | Khisanth: close, but not perfect | ||
this is what I've seen: | |||
$Foo_Br | 03:36 | ||
but of course that's never consistent :-) | |||
Khisanth find variable naming to be the hardest part of programming | |||
Khisanth wonders if writers have the same issue with character names | |||
frew_ | I bet they do | ||
but they can't reduce scope as much as we can | 03:37 | ||
mdxi | i really don't like the "less than x lines" thing. i take more of a toolkit view: a method/sub should do one thing. if i notive it doing more than one thing, or doing something repeatedly, i know it's time to split. | ||
Khisanth | they can if it's sci-fi | ||
mdxi | going by line count just seems like a bad way to make decisions. | ||
frew_ | mdxi: that's fine, but I'd say his controller method does more than it should | ||
way more | |||
Khisanth | maybe that is where all those unpronounceable names come from :) | ||
frew_ | it does model code | ||
Khisanth: heh, maybe? | 03:38 | ||
oh! | |||
I'm readin Arabian Nights and they actually do it in those! | |||
because all the stories are told in other stories which are in turn told in other stories | |||
Khisanth | abbreviated names? | ||
frew_ | so far it's only 3 deep | ||
no, scope :-) | |||
Wolfman2000 | Khisanth: I have to admit...I'm kind of surprised to see you here. Didn't know you were into Perl 6 | 03:46 | |
Khisanth | I am in #lisp, #scheme, #haskell too ;) | 03:52 | |
Wolfman2000 | Can't say I'm into those languages | 03:54 | |
quantumEd | Perl 6 = Lisp * Scheme * Haskell * <everything else too> | 03:55 | |
(+ infinitely other terms) | |||
04:04
beggars joined,
beggars is now known as help
04:05
help is now known as Guest28952,
Guest28952 left
04:16
hercynium joined
|
|||
diakopter | i see | 04:47 | |
04:50
[particle]1 joined
04:51
JeffreyKegler joined
04:52
JeffreyKegler left
04:56
bluescreen left
05:00
hercynium left
05:01
envi^home joined
|
|||
diakopter | std: say::(say 6) | 05:06 | |
p6eval | std 29203: ok 00:01 103m | ||
diakopter | rakudo: say::(say 6) | ||
p6eval | rakudo 7347ec: invoke() not implemented in class 'Undef'in Main (file <unknown>, line <unknown>) | ||
diakopter | pugs: say::(say 6) | ||
p6eval | pugs: ***  Unexpected "say" expecting program at /tmp/eQls0BPPRH line 1, column 1 | ||
Wolfman2000 | someone want to remind me how many versions of Perl 6 there are? | 05:07 | |
Tene | Wolfman2000: One. You mean implementations? | ||
Wolfman2000 | Tene: yes | ||
Tene | Ah. No idea. | ||
diakopter | Wolfman2000: perl6.org/compilers/ | 05:09 | |
Wolfman2000 | diakopter: I thought there was something else being done with javascript besides Sprixel. Or is what I was seeing one and the same? | 05:16 | |
diakopter | two others, actually | 05:20 | |
that page needs amended | |||
sprixel is mine.. | |||
pmurias is writing mildew-js | |||
(same as mildew as listed on that page, except targeting JS on V8 (and the browsers)) | |||
Tene | pugs had a js backend at one point. | 05:21 | |
diakopter | also, flavio glock has compiled his P6-ish compiler to JS.. | ||
also, what Tene said | |||
Wolfman2000: (Perlito is the name of fglock's) | 05:22 | ||
so yes, there are several | |||
05:22
gfx joined
|
|||
diakopter | Wolfman2000: fglock's Perlito grew out of KindaPerl6 & MostlyPerl6 & what was called v6-alpha (v6.pm) | 05:24 | |
afaik. | 05:25 | ||
Wolfman2000 | ...okay, slight implementation overload | ||
diakopter | heh | 05:26 | |
oh, Pugs::Compiler::Rule stopped working on perl 5.11.1,2 sez the matrix.cpantesters | 05:27 | ||
b/c of Data::Dumper output format changes...! | 05:28 | ||
interesting | |||
mberends | good morning, what does the V in VAST stand for? | 05:47 | |
(guessing viv, but that's not intuitive) | 05:48 | ||
05:52
JimmyZ left
06:18
ruz joined
|
|||
diakopter | mberends: not viv | 06:34 | |
mberends | thanks, the search for VAST on irclog turned up nothing useful, and the glossary on perlfoundation.org has an empty entry :( | 06:38 | |
diakopter | mberends: how are you | ||
it might derive from the same as the 'viv' acronym, though | |||
V for 5 | |||
mberends | diakopter: very well, going to a big (vast) computer fair today | ||
diakopter: understood, it's a bit of a lame name | 06:39 | ||
diakopter | I think it's meant to be a descriptive name | 06:43 | |
mberends | it does distinguish viv's AST from any other AST, so, yeah, ok | 06:44 | |
sjohnson | y0 | 06:45 | |
mberends | g'day | ||
sjohnson | how's it going guys? | 06:48 | |
mberends | good, debugging some C lately. (wrote == instead of =, took 3 days to find ;) | 06:49 | |
needle <<<<< haystack | 06:50 | ||
TDD rescued the work. TDD++ | 06:52 | ||
diakopter reads about parallel nfa | 06:57 | ||
07:09
snarkyboojum joined
07:21
snarkyboojum_ joined
07:23
zloyrusskiy joined
07:28
snarkyboojum left,
snarkyboojum_ is now known as snarkyboojum,
vamped joined
07:29
cotto left
|
|||
sjohnson | perl6: question. if you do a s///e command on a pop(@array), if the array has nothing to pop, will the s/// fail, in terms of s/// or die | 07:37 | |
p6eval | rakudo 7347ec: Confused at line 2, near ". if you "in Main (file <unknown>, line <unknown>) | ||
..elf 29203: Parse error in: /tmp/rW94P8SuUHpanic at line 1 column 0 (pos 0): Can't understand next input--giving upWHERE: question. if you do a s///e cWHERE:/\<-- HERE STD_red/prelude.rb:99:in `panic' STD_red/std.rb:76:in `scan_unitstopper' STD_red/std.rb:224:in `comp_unit' | |||
..STD_red/std.rb… | |||
..pugs: ***  Unexpected " if" expecting ".", "\187", ">>", "=", "^", operator name, qualified identifier, variable name, "...", "--", "++", "i", array subscript, hash subscript or code subscript at /tmp/xHRPnKepnd line 1, column 10 | |||
sjohnson | oops | 07:43 | |
i didn't mean to get the compiler involved | |||
07:45
KatrinaTheLamia joined
|
|||
diakopter | that's what he said | 07:47 | |
07:48
Su-Shee joined,
cotto joined
07:52
zloyrusskiy left
08:04
cotto_w0rk joined
08:05
pointme joined,
zaslon joined
|
|||
zaslon | lolmasakhazblogged! masak++ 'November 27 2009 -- straight towards the surface': use.perl.org/~masak/journal/39956?from=rss | 08:05 | |
08:12
kaare joined,
kaare is now known as Guest65752
|
|||
mberends | afk & # www.hccdagen.nl/ | 08:22 | |
08:22
mberends left
08:30
am0c joined
08:38
gfx left
08:39
eternaleye joined
08:43
am0c left
08:47
iblechbot joined
08:51
xinming joined
08:54
meppl joined
09:10
ejs joined
09:14
agentzh joined
|
|||
sjohnson | emergency perl 5 question: | 09:22 | |
how can you return the last/first value, without pop/shifting it | |||
well, end i suppose would be more important to know than the @a[0] part | |||
(´ー` ) | |||
Su-Shee | sjohnson: $foo = $arr[-1] and $arr[0] | ||
sjohnson | thank you | 09:23 | |
you can do that in p5? *dumbfounded stupid look on face* | |||
Su-Shee | aeh... | ||
sjohnson | thank you | ||
pnate | i had no idea about -1 | 09:35 | |
i always used [$#arr] | 09:36 | ||
guess idling in this channel paid off for my perl 5 programming too! | 09:37 | ||
vamped | but in P6 it's @arr[*-1], right? | 09:38 | |
09:38
araujo left
09:59
jan__ joined
10:03
vamped left
10:04
Su-Shee left
|
|||
sjohnson | pnate++ # agreed | 10:07 | |
10:09
pmurias joined,
Su-Shee joined
|
|||
pmurias | perl6: say 123.WHAT | 10:10 | |
p6eval | rakudo 7347ec: Int() | ||
..elf 29203, pugs: Int | |||
10:10
Su-Shee_ joined
|
|||
pmurias | perl6: say 123.7.WHAT | 10:10 | |
p6eval | pugs: Rat | ||
..rakudo 7347ec: Num() | |||
..elf 29203: Num | |||
pmurias | rakudo is incorrect here | 10:11 | |
10:12
Su-Shee_ left,
FCO joined
10:14
snarkyboojum left
10:16
iblechbot left
10:30
SmokeMachine left
10:37
am0c joined
10:51
broquaint joined
11:09
masak joined
|
|||
masak | oh hai | 11:09 | |
phenny | masak: 01:20Z <colomon> tell masak Instead of the work-around Rank.pick(*) -> $rank, how about just @cards.map *.rank -> $rank ?/ | ||
masak: 02:44Z <colomon> tell masak or better yet @cards>>.rank -> $rank | |||
masak | colomon: good idea. @cards>>.rank.uniq, perhaps. | 11:10 | |
masak directs people's attention towards perlmonks.org/?node_id=809868 | 11:11 | ||
11:15
pmurias left,
eternaleye left
11:23
_eMaX_ left
|
|||
frettled | *WOOSH* - *attention shift* | 11:33 | |
11:34
frettled sets mode: +o masak
|
|||
colomon | masak: Thought of adding the .uniq after I went to bed, not sure if it's worth the extra overhead or not. Ooooo, though I guess you definitely need it in TwoPair. | 11:36 | |
masak | yes. | 11:37 | |
I wrote my version of a reply to the PerlMonks node. perlmonks.org/?node_id=809872 | |||
others are welcome to chip in with their versions. | 11:38 | ||
I need to go offline soon. I'm sitting in a lecture hall, and my battery is running out. | |||
11:38
masak left
11:54
SmokeMachine joined
|
|||
sjohnson | colomon: uniq is a big deal | 11:58 | |
one of my favourite Perl to-be functions | |||
11:59
Jedai left,
Jedai joined
|
|||
Su-Shee | we could offer a "adopt a function" sponsoring program.. ;) | 11:59 | |
colomon | it's not even written properly yet! :) | ||
sjohnson | colomon: i thought it worked fine | 12:02 | |
rakudo: say <1 2 3 4 5 3 2 4 1 3>.uniq.sort | |||
p6eval | rakudo 7347ec: 12345 | ||
sjohnson | i suppose i didnt need that sort, but still ! | ||
colomon | sjohnson: as written currently, it uses a double loop. very inefficient. also not lazy. | 12:06 | |
boy awake, afk for a bit. | 12:07 | ||
sjohnson | thanks colomon | ||
<--- wasn't aware :[ | |||
12:10
agentzh left
12:13
FCO left
12:15
colomon left,
colomon joined
|
|||
colomon | also, uniq isn't actually spec'd yet, unless it has been since the last time I looked for it. :) | 12:16 | |
"Write new uniq" has been on my todo list for about a month. ;) | 12:17 | ||
jnthn | o/ | 12:25 | |
colomon | \o | 12:27 | |
jnthn: Do I vaguely recall some talk that Set should be taken out of p6? | 12:28 | ||
colomon reflects that his question is kind of oddly phrased.... | 12:32 | ||
jnthn | colomon: I don't remember either way... | 12:35 | |
colomon: There's still references to it in S02. | 12:36 | ||
colomon | It's still in S32-Containers, too. | 12:37 | |
Oooo, Set's not supposed to be mutable. So much for that notion. | 12:38 | ||
I must admit that looking over the Container types, I don't _get_ them yet. | 12:39 | ||
"A KeyHash automatically deletes any key whose value goes false." ?????? | 12:40 | ||
I guess that makes sense for KeySet and KeyBag, but it seems weird for a more generic hash. | 12:42 | ||
Actually, I guess what strikes me as odd here is KeySet is the mutable version of Set, but KeyHash and Hash are both mutable, and (as far as I can tell) only differ by what happens when you set a hash value to something false. | 12:47 | ||
rakudo: say Hash.new.WHAT | |||
p6eval | rakudo 7347ec: Hash() | 12:48 | |
colomon | oooooooo | ||
12:51
payload joined
|
|||
diakopter | ihih | 12:52 | |
rakudo: say 123.7.WHAT | |||
p6eval | rakudo 7347ec: Num() | ||
diakopter | rakudo: say (123.7).WHAT | ||
p6eval | rakudo 7347ec: Num() | 12:53 | |
colomon | ng: say (123.7).WHAT | ||
p6eval | ng b155b4: Rat() | ||
sjohnson | what is ng? | 12:57 | |
colomon | rakudo _n_ext _g_eneration | 12:58 | |
it's what jnthn and pmichaud have been working on for the last month. | |||
it does a lot of basic stuff more correctly than rakudo does, but much of the advanced stuff isn't there at all yet. | |||
12:59
jeremiah joined
|
|||
lisppaste3 | colomon pasted "Quick breakfast-time implementation of uniq as a sub" at paste.lisp.org/display/91196 | 13:02 | |
colomon | The unless condition should probably use :exists, but that's NYI in rakudo. And maybe the $set argument should be "is rw"? | 13:03 | |
But it's a single loop version, and as soon as gather / take is lazy, it will be too. | |||
13:13
colomon_ joined,
colomon left,
colomon_ is now known as colomon
13:14
JimmyZ joined
13:23
am0c left
13:35
colomon_ joined,
colomon left,
colomon_ is now known as colomon
13:43
zloyrusskiy joined
13:57
Su-Shee left
13:59
Su-Shee joined
|
|||
Wolfman2000 | *yawn* morning | 14:03 | |
JimmyZ | Wolfman2000: morning | 14:04 | |
14:05
araujo joined
|
|||
carlin | rakudo: sub foo(Str $s, Str %h?) {}; foo('bar', { baz => 'quux' }); | 14:10 | |
p6eval | rakudo 7347ec: ( no output ) | ||
carlin | rakudo: say 1 | ||
p6eval | rakudo 7347ec: 1 | ||
carlin | rakudo: sub foo(Str $s, Str %h?) {}; foo('bar', { baz => 'quux' }); | ||
p6eval | rakudo 7347ec: ( no output ) | 14:11 | |
carlin | rakudo: sub foo(Str $s) { }; foo('bar'); | ||
p6eval | rakudo 7347ec: ( no output ) | ||
carlin | rakudo: sub foo(Str $s, Str %h?) {}; foo('bar', { baz => 'quux' }); say 'alive'; | 14:12 | |
p6eval | rakudo 7347ec: ( no output ) | ||
carlin | rakudo: sub foo(Str $s) {}; foo('bar'); say 'alive'; | 14:15 | |
p6eval | rakudo 7347ec: alive | ||
Wolfman2000 | carlin: what's the point of testing rakudo subs if they aren't...well, being used? | ||
carlin | Wolfman2000: On my box the first one I tried to test explodes but p6eval is timing out or something I think | 14:16 | |
14:17
colomon left,
colomon joined
|
|||
lisppaste3 | carlin pasted "Asking for a hash of strings" at paste.lisp.org/display/91199 | 14:25 | |
14:26
ejs left
|
|||
jnthn | carlin: You need to declare a hash of strings explicitly. | 14:26 | |
carlin: Just having a hash whose values all happen to be strings isn't enoguh. | |||
carlin | jnthn: oh right, thanks | 14:28 | |
jnthn: but the error is a bit of a WTF though | |||
pmichaud | good morning, #perl6 | ||
14:30
payload left,
colomon left,
colomon joined
|
|||
jnthn | carlin: Yes, that look slike a bug. | 14:31 | |
pmichaud: morning | |||
Wolfman2000 | jnthn: I believe you often work with STD.pm, right? | 14:32 | |
jnthn | Wolfman2000: I often read STD. | 14:33 | |
Wolfman2000: I've only used it through the bot here on channel. | |||
14:36
ejs joined
|
|||
lisppaste3 | Wolfman2000 pasted "My compiling of STD.pm for Perl 5 use. Got some interesting warnings here..." at paste.lisp.org/display/91200 | 14:38 | |
14:40
Su-Shee left,
arthur-_ joined
14:42
Su-Shee joined
14:43
astrojp joined
14:45
colomon_ joined
14:46
colomon left,
colomon_ is now known as colomon
14:48
TiMBuS left
14:50
ejs left
|
|||
zaslon | lolmasakhazblogged! masak++ 'November 28 2009 -- do you want enfranchisement with that?': use.perl.org/~masak/journal/39958?from=rss | 14:59 | |
14:59
ejs joined
15:00
Psyche^ joined
|
|||
jnthn | Mmm...enfranchisement sounds tasty. | 15:01 | |
Wolfman2000 | Well, got more github pastebin work taken care of this morning...I can possibly do a bit more work now that the Perl 5 people are at least being sociable enough. | 15:03 | |
15:06
patspam joined,
Psyche^ is now known as Patterner
15:14
ejs left
15:19
JimmyZ left
|
|||
carlin | Hmm, masak's historical fact was interesting because that wasn't mentioned on the news here or anything | 15:19 | |
carlin would have liked a national holiday for that :-) | |||
15:25
quantumEd joined
15:27
colomon_ joined,
colomon left,
colomon_ is now known as colomon
|
|||
Wolfman2000 | ...isn't masak supposed to be asleep right now? | 15:28 | |
jnthn | Wolfman2000: I'd hope not, it's only 4:30pm ;-) | ||
Wolfman2000 | ...right. time zones. | ||
15:38
cognominal joined
15:41
vamped joined
15:42
colomon_ joined,
colomon left,
colomon_ is now known as colomon
15:44
jferrero joined
15:48
colomon left
15:49
colomon joined
15:54
patspam1 joined
15:55
patspam left
15:58
pmurias joined,
Psyche^ joined
15:59
Patterner left,
Psyche^ is now known as Patterner
16:04
colomon_ joined,
colomon left,
colomon_ is now known as colomon
16:24
cognominal left
16:26
cognominal joined
16:38
Su-Shee left,
vamped left
16:43
Su-Shee_ joined,
snarkyboojum joined,
Su-Shee_ left
16:44
patspam1 left,
patspam joined
16:45
vamped joined,
justatheory joined
16:49
colomon_ joined,
colomon left,
colomon_ is now known as colomon
16:51
vamped left
|
|||
Wolfman2000 | I'll be back later...the laptop is needed for errands. | 16:53 | |
16:56
snarkyboojum left,
colomon left,
colomon joined
16:57
justatheory left,
zloyrusskiy left,
nbrown joined
16:59
nihiliad joined
17:04
patspam left,
patspam joined,
masterovpuppetz joined
17:05
masterovpuppetz left
17:09
Exodist left
17:12
colomon_ joined
17:13
colomon left,
colomon_ is now known as colomon
17:14
colomon_ joined,
colomon left,
colomon_ is now known as colomon
17:19
colomon_ joined,
colomon left,
colomon_ is now known as colomon
17:24
envi^home left
17:30
colomon_ joined,
colomon left,
colomon_ is now known as colomon
|
|||
pmurias | diakopter: did you get V8.pm to run on windows? | 17:31 | |
17:35
IllvilJa joined
17:38
avar joined,
literal joined
17:49
nihiliad left
|
|||
colomon | rakudo: my %hash = (a => 1, b => 3); %hash>>.key>>.say | 17:49 | |
p6eval | rakudo 7347ec: ( no output ) | 17:50 | |
colomon | rakudo: my %hash = (a => 1, b => 3); %hash.keys>>.say | ||
p6eval | rakudo 7347ec: ( no output ) | ||
17:52
nihiliad joined
|
|||
colomon | rakudo: my %hash = (a => 1, b => 3); for %hash.keys { .say } | 17:52 | |
p6eval | rakudo 7347ec: ( no output ) | 17:53 | |
colomon | huh. | ||
17:57
Cyrus joined
18:08
explorer__ joined
18:10
explorer__ left
18:12
colomon_ joined,
colomon left,
colomon_ is now known as colomon
|
|||
colomon | rakudo: my $a = lazy => Sunday; say $a | 18:14 | |
p6eval | rakudo 7347ec: Could not find non-existent sub Sundayin Main (file src/gen_setting.pm, line 324) | ||
colomon | rakudo: my $a = lazy => "Sunday"; say $a | ||
p6eval | rakudo 7347ec: lazy Sunday | 18:15 | |
18:15
patspam left,
mberends joined
|
|||
Tene | rakudo: my $a = lazy => Boomtime; say $a | 18:15 | |
p6eval | rakudo 7347ec: Could not find non-existent sub Boomtimein Main (file src/gen_setting.pm, line 324) | ||
colomon | rakudo: my $a = lazy => "Sunday"; say $a; $a.value = "afternoon"; say $a; | 18:16 | |
p6eval | rakudo 7347ec: lazy Sundaylazy afternoon | ||
jnthn | wtf...isn't it Saturday? | ||
colomon | Pair is mutable, then | ||
jnthn | oh, phew... | ||
:-) | |||
jnthn thought he'd missed a day there or something... | 18:17 | ||
colomon | jnthn: Yes, but I'm listening to Queen. | ||
jnthn | colomon: It appears that Rakudo has it that way... | ||
colomon | Is it not supposed to be? | ||
18:17
patspam joined,
patspam left
|
|||
jnthn | colomon: It's mant to be mutable. PairVal is the immutable version. | 18:18 | |
*ment | |||
*meant | |||
colomon | danke | 18:21 | |
my next test: | |||
rakudo: my @a = (1,2); @a.push: 10; say @a.perl | |||
p6eval | rakudo 7347ec: [1, 2, 10] | 18:22 | |
18:26
jferrero left
18:34
pdcawley joined,
nihiliad left
18:38
SmokeMachine left,
FCO joined
18:48
hercynium joined
|
|||
colomon | rakudo: my $a = lazing => <On A Sunday>; say $a.perl; | 18:48 | |
p6eval | rakudo 7347ec: "lazing" => ["On", "A", "Sunday"] | ||
colomon | rakudo: my $a = lazing => <On A Sunday>; say $a.perl; $a.value.push("Afternoon"); say $a.perl; | ||
p6eval | rakudo 7347ec: "lazing" => ["On", "A", "Sunday"]"lazing" => ["On", "A", "Sunday", "Afternoon"] | 18:49 | |
colomon | I must be doing something exceedingly stupid on my real code, but I can't see it. | ||
19:06
snearch_ joined
19:07
SmokeMachine joined
19:21
justatheory joined
19:24
FCO left
19:25
Wolfman2000 joined
19:28
patspam1 joined
19:29
patspam joined
19:31
patspam left
19:32
patspam joined,
patspam left
19:35
frew_ left
19:36
frew_ joined
19:44
nihiliad joined
19:48
jferrero joined
19:52
patspam joined
19:55
patspam left
20:23
colomon left
20:24
colomon joined
20:30
iblechbot joined
20:32
rbaumer joined
20:34
SmokeMachine left
20:47
mj41_ joined
|
|||
pugs_svn | r29204 | lwall++ | [S12] major rethink of enums, which are no longer roles (but may still imply them) | 20:57 | |
r29204 | Enum types now supply an explicit .mapping method for masak++ | |||
r29204 | Got rid of stupid translation methods in favor of just using .mapping variants. | |||
r29204 | (kept normal coercion syntax where it makes sense, though) | |||
TimToady | jnthn: see ☝ | 20:58 | |
jnthn | TimToady: \o/ | ||
TimToady: Thanks, will take a look over it. | 20:59 | ||
TimToady: Glad I pestered you about this before we got to them in ng. :-) | |||
21:00
M_o_C joined,
M_o_C left
|
|||
TimToady | jnthn++ for pesteration | 21:01 | |
21:01
M_o_C joined
|
|||
mberends | masak++ for the use cases | 21:03 | |
TimToady++ for the rethink | |||
jnthn | TimToady: "an undefined type object" - any particular reason "undefined" features in that sentence? | ||
TimToady: As in, type objects are generally undefined anyway. | 21:04 | ||
heh | 21:06 | ||
$x does Has[Day, '$.Day', (:rw), { Tue }]; | |||
Cute! | |||
It's like lolspeak | |||
pugs_svn | r29205 | lwall++ | [S03,S04] more treatment of .true as highlevel, .Bool as lowlevel | 21:07 | |
mberends | $x can haz[ ... ]; | 21:08 | |
TimToady | "undefined" is not meant to be a restrictive adjective :) | ||
$x can Haz[Cheezburger] | |||
jnthn | multi infix:<can>(\$lhs, \$rhs) { $lhs does $rhs } | 21:09 | |
TimToady: It looks more sane than the previous spec, at first read-through. | |||
TimToady | yes, I think it was a mistake to confuse enums directly with roles | 21:10 | |
distinguishing them allows us to distinguish things that do Boolean with their own .Bool method from things that get a .Bool method via mixin of a $.Bool attribute | 21:12 | ||
so now most of the type behavior more or less falls out naturally | 21:13 | ||
making an enum function as a subset is perhaps still a bit forced | |||
jnthn | Yeah... | ||
I think "it's a package of constants" works quite nicely. | 21:14 | ||
And that role creation from that is something does/but worry about. | |||
TimToady | but I think Day.ACCEPTS just does a $arg ~~ Day.mapping.values.any | 21:15 | |
or some such | |||
jnthn | yes. | ||
TimToady | yes, I thought does/but could stant to be that one level of dwimmy | ||
as long as the arg comes in with sufficient type info | |||
jnthn | Do we have a way to identify enums generally? | ||
Then it's just a multi candidate. | 21:16 | ||
multi infix:<does>(\$thingy, EnumValue $val) { ... } | |||
TimToady | does Enumeration maybe | ||
jnthn | Yeah | ||
With something like that, I'm starting to see how we can actually implement it in Perl 6. | 21:17 | ||
TimToady | the duck typing answer is that .WHAT.mapping returns something :) | ||
yeah, tried not to put anything in that I could at least think of an implementation story | 21:18 | ||
and adding .mapping really simplifies a lot of other things | |||
jnthn | We are *not* doing the duck typing! :P | ||
:-) | |||
TimToady | unless someone says 'use DUCK_TYPING;' and then we all duck | ||
jnthn | Yes, .mapping makes...a lot...of problems jsut go away. | 21:19 | |
But not problems with typing "just" correctly... | |||
mberends | jnthn: JFTI | ||
TimToady | well, we need something to keep our collective back-patting arm from going out of joint :) | ||
jnthn | mberends: IT! | 21:20 | |
mberends | :) | ||
TimToady | You too could be an IT engineer! | ||
jnthn | TimToady: Anyways, I'll give implementing this a crack next week or so. :-) | ||
I wonder how much of it I can actually write in NQP, or Perl 6. :-) | |||
jnthn is into that these days | 21:21 | ||
TimToady | .oO(so much for working on LTM this weekend... :) |
||
jnthn | My eventual goal is to have things like ClassHOW and RoleHOW written in NQP. | ||
And really have the underlying VM just provide some very simple-ish primitives. | 21:22 | ||
TimToady | my eventual goal is to have *everything* written in Perl 6...but you knew that already... | ||
jnthn | Well, there's eventual and eventual. :-) | ||
mberends | ...all the way down? | 21:23 | |
jnthn | My eventual for this is potentially before the year ends, because it probably matters for Other Things I'd like to start hacking on after ng. | ||
TimToady | mberends: yes, verilog better watch out :) | 21:24 | |
not to mention QM... | |||
jnthn | my Str $theory | 21:25 | |
mberends | :) that's ALL the way down, yes | ||
TimToady | funny that we have a reality inversion in Perl 6. quantum operations are high-level, while low-level ones like .Bool are classical... | ||
lunch & | 21:28 | ||
colomon | jnthn: oddly enough, all this chatting went on while I was out talking a walk with my boy asleep in the stroller. While out there, I was pondering was a bad idea it was to change things in ng right now, because of the requirement of sharing spectest with master. | 21:30 | |
I was specifically thinking of moving TrigBase over to the proper enum, but I think it applies generally, too. | 21:31 | ||
jnthn | colomon: Yes, the spectests are a bit of a challenge in that aspect. | 21:33 | |
colomon | I guess we could temporarily branch them... | 21:34 | |
mberends | colomon: agreed, breaking master (even just its testing) would be bad | ||
jnthn | Thing is, in a sense we don't really *need* the tests for master that much at the moment because there's not much active development there... | 21:35 | |
...I guess it may be possible to argue that if a test file has to change in a way that would cause it to fail in master, but in the interest of correctness, we just comment it out in master's spectest.data... | |||
colomon | I'm really inclined to think branching spectest is the way to go. | 21:36 | |
At least, if you're serious about making ng behave differently than master, instead of just being a better implementation of the exact same spec. | |||
jnthn | In general in the past, we've gone with "the tests reflect current spec" | ||
21:37
Coke joined
|
|||
jnthn | That's why Rakudo regressed on the tests for "is also" when the spec changed to wanting augment. | 21:37 | |
Coke | hio. is 'delete' in P6? (and then, is it in NQP?) | ||
jnthn | IIRC, delete is adverbial in Perl 6... | 21:38 | |
$foo[42] :delete; | |||
or some such. | |||
But that's NYI. | |||
Coke | ok. will just drop down to PIR then. danke. | ||
jnthn | (In Rakudo, let alone NQP. Actually at the base of this is a lack of adverb parsing just yet.) | ||
colomon | jnthn: but that's basically abandoning master completely. I know that's the medium term goal, but I'm not convinced it's a good idea today without ng able to replace it. | 21:39 | |
jnthn | colomon: How many tests are we talking about here though? I mean, from wht you said in this case, it's just the trig tests, no? | ||
colomon | For that particular example, yes. (of course, that's like 10,000 tests!) | 21:40 | |
21:40
rbaumer left,
rbaumer joined
|
|||
jnthn | Well yes, that's mostly 'cus trig is incredibly well tested compared to many other bits of Rakudo. :-) | 21:40 | |
But I see the issue. | |||
colomon | we're already having issues in master with the Mu change. | ||
jnthn | Sure - again though, the principle has been "the spec tests reflect spec". | 21:41 | |
mberends | otoh, the urgency of testing that much trig in ng is rather low | ||
jnthn | I guess there's competing requirements here. :-) | ||
If we're going to branch the spectest suite, my suggestion is that it's Rakudo master that looks at the branch. | 21:42 | ||
Or tag. | |||
colomon | The other thing that branching spectest would do is let us start fudging tests that don't work in ng. | ||
jnthn | And trunk is tests as conforming to spec. | ||
colomon | Tag seems like a fine idea, actually! | ||
We could just rewind master's tests to a happy pre-Mu state and then go to town making the spectests reflect the latest and greatest AND what works on ng. | 21:43 | ||
jnthn | That feels More Right to me. | ||
colomon | Anyone else we need to sign on to this crazy idea before jumping out and doing it? ;) | 21:44 | |
21:45
pdcawley left
|
|||
jnthn | Forgiveness...permission... ;-) | 21:46 | |
colomon | I'm on it, then. ;) | ||
TimToady is still at lunch | |||
jnthn | TimToady can forgive us after his lunch :-) | ||
colomon | while I'm running svn log, do you have a name suggestion for the tag? | 21:48 | |
21:49
Woodi joined
|
|||
colomon | oh wait, voice of sanity... run spectest on your quadcore, not on the laptop! | 21:49 | |
jnthn | colomon: I'm awful at naming things. | 21:50 | |
colomon | okay, quadcore running spectest against -r29189 | 21:51 | |
pre-ng-master-freeze ? | |||
21:52
rbaumer left
|
|||
jnthn | It'd include rakudo in the name somewhere I guess. | 21:52 | |
colomon | pre-ng-rakudo-freeze | ||
jnthn | Something like that :-) | ||
colomon | ack, may take a while to pin down the best revision to use. | 21:54 | |
ah, but on the other hand, with this decided, there's nothing to stop us going crazy with the mainline spectests. | |||
21:54
justatheory left
22:06
Guest65752 left
22:07
snarkyboojum joined
22:14
iblechbot left
22:24
justatheory joined
22:26
justatheory left
|
|||
colomon | doh! | 22:40 | |
make spectest does svn update automatically. So svn update -rXXXX gets cancelled as soon as you run spectest. sigh. | 22:41 | ||
22:43
snearch_ left
|
|||
Wolfman2000 | *yawn* afternoon. what's going on...is Mu going away? | 22:44 | |
22:54
colomon_ joined,
colomon left,
colomon_ is now known as colomon
23:01
mberends left
23:03
colomon_ joined,
colomon left,
colomon_ is now known as colomon
23:06
colomon_ joined,
colomon left,
colomon_ is now known as colomon
23:09
M_o_C left
|
|||
diakopter | hi | 23:30 | |
23:35
justatheory joined
|
|||
diakopter | TimToady: parallel nfa question: | 23:38 | |
nm | 23:40 | ||
23:58
meppl left
|