00:04 replore joined 00:05 mj41 left 00:08 replore left 00:12 wolfman2000 left 00:13 molaf_ joined 00:16 molaf left 00:17 kaare__ left
gfldex ohh, nice shiny colours 00:17
00:17 lichtkind joined
gfldex that must be a perl fireworks! 00:18
lichtkind perl 6 tablets index A approaching 670 entries 00:20
00:36 thou_ left 00:38 PacoAir joined
kshannon Does anyone know the callchain from a sixmodelobject VTABLE_can to find_method? 01:12
dalek ecza: b5d9d05 | sorear++ | / (2 files):
Allow defining multi-subs with inlining annotations

The inline primitive form will be used for calls to the base function. If it is augmented, multi-dispatch will be used.
01:14
ecza: 5dd6ed3 | sorear++ | lib/Kernel.cs:
Avoid creating a dispatcher for single-candidate multis that are marked as primitives
TimToady perl6: constant @primes = 2, 3, -> $n is copy { repeat { $n += 2 } until $n %% none @primes ... * > sqrt $n; $n; } ... *; say @primes[^109]; 01:15
p6eval pugs b927740: OUTPUT«*** ␤ Unexpected "@primes"␤ expecting "=", "::", context, ":" or "("␤ at /tmp/n393IaNIAb line 1, column 10␤»
..niecza v13-36-g6406010: OUTPUT«2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 3…
..rakudo 2b6f86: OUTPUT«===SORRY!===␤Variable @primes is not predeclared at line 1, near " ... * > s"␤»
01:17 MayDaniel left
kshannon How on earth does the parrot VTABLE 'can' entry get set for sixmodel objects?!?! grep doesn't seem to be my friend today :( 01:19
sorear kshannon: nqp::src/pmc/sixmodelobject.pmc line 96 01:20
kshannon: also, parrot::src/pmc/object.pmc line 668 01:23
any questions? 01:24
kshannon just found the object.pmc one.
OK. Because sixmodel throws an exception if find_method fails, it needs a custom can which can trap them. 01:26
That's the main reason for the --target=past dumping dying now. 01:27
01:27 x3nU left, x3nU joined 01:28 x3nU is now known as Guest2099 01:29 replore joined 01:33 replore left
[Coke] kshannon++ 01:52
TimToady niecza: constant @primes = 2, 3, { ($_ + 2, $_ + 4 ... *).first: -> $n { $n %% none @primes ... * > sqrt($n); } } ... *; say @primes[^109]; 01:55
p6eval niecza v13-36-g6406010: OUTPUT«2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 3… 01:56
02:08 tokuhirom joined 02:26 zhangkaizhao joined
kshannon leto++ for not just taking my pull request to parrot and making me find the real problem 02:27
github.com/perl6/nqp/pull/25 02:28
sorear where's leto's comment? 02:31
leto-- dukeleto++ # correct name
kshannon On the parrot pull reuest.
02:32 replore joined, replore left
sorear kshannon: find_method should return null on error, I am pretty sure 02:33
your 'can' change is a bad fix because it won't make find_method_null_ok work 02:34
kshannon so you think the catch should be in the find_method VTABLE ?
That's pretty simple to change...
sorear actually I think you should find whatever code is throwing the exception and fix it to return null instead 02:35
[Coke] gist.github.com/1476841 - niecza at 86% (still getting a percentage point a day, even on winter break. ;) 02:36
kshannon But that's part of the sixmodel API as I understand it. the 6model find_method can be called in other ways than through the VTABLE 02:38
02:46 Trashlord left 02:47 Trashlord joined 02:54 replore joined
kshannon Well, I've pushed a new version doing the catching in VTABLE find_method. I think that's the right place as the comment in the top of the file says "it maps the Parrot world view to the Perl 6 object model one" 02:54
02:54 replore left 03:02 drbean left 03:05 PacoAir left 03:08 drbean joined 03:15 replore joined, replore left 03:24 tokuhirom left 03:25 tokuhirom joined 03:27 awoodland left 03:29 tokuhirom left 03:33 cognominal left, cognominal joined 03:41 Patterner left 03:42 Psyche^ joined, Psyche^ is now known as Patterner 03:55 cognominal_ joined 03:58 cognominal left 04:07 tokuhirom joined 04:08 cognominal_ left 04:10 cognominal_ joined 04:32 Guest1122 left 04:40 replore joined 04:45 replore left, sivoais left 04:46 sivoais joined
slavik1 Happy New Year! 05:00
Timbus TimToady, odd, i was in a channel yesterday where we sparked a discussion about making a lazy prime sieve in perl6 (vs haskell)
and all my self referential solutions were not so good 05:01
also, happy new year slavik1
:>
more oddly my solution is almost word for word the same as yours, except i used while $n %% all @primes 05:02
heh
niecza: constant @primes = 2, 3, -> $n is copy { my $ff=1; repeat { $n += 2 + ($ff=!$ff)*2 } until $n %% none @primes ... * > sqrt $n; $n; } ... *; say @primes[^10]; 05:14
p6eval niecza v13-38-g5dd6ed3: OUTPUT«2 3 5 7 13 19 31 37 43 61␤»
Timbus bah
niecza: my $ff=1; constant @primes = 2, 3, -> $n is copy { repeat { $n += 2 + ($ff=!$ff)*2 } until $n %% none @primes ... * > sqrt $n; $n; } ... *; say @primes[^10]; 05:17
p6eval niecza v13-38-g5dd6ed3: OUTPUT«2 3 5 11 17 23 29 41 47 53␤»
Timbus feels bad, man
05:23 replore joined
Timbus oh. pffpfpt. you start the pattern from 5, not 3. im dumb. my brain works so much better after a grilled cheese sandwich 05:27
05:27 replore left
Timbus niecza: my $ff=1; constant @primes = 2, 3, 5 -> $n is copy { repeat { $n += 2 + ($ff=!$ff)*2 } until $n %% none @primes ... * > sqrt $n; $n; } ... *; say @primes[^10]; 05:28
p6eval niecza v13-38-g5dd6ed3: OUTPUT«===SORRY!===␤␤Unexpected block in infix position (two terms in a row, or previous statement missing semicolon?) at /tmp/iUrLUslcWM line 1:␤------> my $ff=1; constant @primes = 2, 3, 5 ⏏-> $n is copy { repeat { $n += 2 + ($f…
Timbus niecza: my $ff=1; constant @primes = 2, 3, 5, -> $n is copy { repeat { $n += 2 + ($ff=!$ff)*2 } until $n %% none @primes ... * > sqrt $n; $n; } ... *; say @primes[^10];
p6eval niecza v13-38-g5dd6ed3: OUTPUT«2 3 5 7 11 13 17 19 23 29␤»
Timbus if perls so smart whycome it cant insert my commas for me
05:46 lichtkind left 05:59 drbean left 06:03 drbean joined
geekosaur sometimes it could. mostly that error message is "psst, this isn't perl5" 06:05
06:24 Radvendii joined, Radvendii left 06:41 REPLeffect joined 06:48 replore joined, replore left
moritz \o 07:05
kshannon o/ 07:07
moritz kshannon: I've given you commit access to roast and other repositories under the perl6 organization 07:08
07:08 Radvendii joined 07:09 Radvendii left, replore joined, replore left 07:30 replore joined 07:31 replore left
moritz fwiw my blog post from yesterday got about 4.5k visitors. Thanks to everybody who proof-read or promoted it! 07:36
07:49 kaleem joined
kshannon thanks moritz. 07:50
07:52 replore joined, replore left
dalek ast: abcbbb9 | (Kris Shannon)++ | integration/99problems-01-to-10.t:
Fix typo
07:55
ast: 1449cac | (Kris Shannon)++ | integration/99problems-01-to-10.t:
Missed one when doing compare sensitive to array nesting level
ast: 041da7e | (Kris Shannon)++ | integration/99problems-01-to-10.t:
Merge pull request #13 from KrisShannon/integration-01-fixes

Some small cleanups and logic fixes in integration/99problems-01-to-10.t
07:58 cognominal_ left 07:59 cognominal joined 08:02 Chillance left 08:07 Chillance joined
moritz kshannon: fwiw Array vs. List has nothing to do with lazyness 08:09
perl6: my $a = [ 1 ... * ]; say "alive"; 08:10
p6eval rakudo 2b6f86: OUTPUT«alive␤»
..niecza v13-38-g5dd6ed3: OUTPUT«(timeout)Potential difficulties:␤ $a is declared but not used at /tmp/XRyGuMtpg_ line 1:␤------> my ⏏$a = [ 1 ... * ]; say "alive";␤␤»
..pugs b927740: OUTPUT«*** ␤ Unexpected "$a"␤ expecting "=", context, ":" or "("␤ at /tmp/N2C54iRIYK line 1, column 4␤»
moritz niecza: my $a = (1 ... *); say "alive"; 08:11
p6eval niecza v13-38-g5dd6ed3: OUTPUT«Potential difficulties:␤ $a is declared but not used at /tmp/r6BvZFbL0z line 1:␤------> my ⏏$a = (1 ... *); say "alive";␤␤alive␤»
moritz so niecza agrees that circumfix:<[ ]> is eager. Interesting.
sorear "agrees"?
dalek ecza: 2580531 | sorear++ | lib/ (9 files):
Rearrange binding process to bind signatures after lexpad setup; (fixes #19)
sorear mm, 11 issues. 08:14
if diakopter returns I'll ask him to check if his .net issues still exist... I think I fixed the causes of most of them
could get to single-digit open issues easily enough I think :) 08:15
sorear wonders who ebassi is and if ey will attempt to send any of eir bootstrap changes upstream
moritz sorear: agrees with a rakudo patch by kshannon++ 08:24
sorear: was it a conscious decision to make circumfix:<[ ]> eager? or did it Just Happen? 08:31
niecza: my Int:D $x = 3; $x = Int; say 'alive' 08:33
p6eval niecza v13-38-g5dd6ed3: OUTPUT«alive␤»
08:35 replore joined
sorear moritz: concious, but it was a path of least resistance 08:36
[ ] needs to recontainerize all the list elements, and it was simpler to do that as a loop than a lazy map
sorear -> sleep 08:38
08:39 replore left 08:41 Chillance left
kshannon There's also the fact that lots of gather/take example code I've found only works if [ ] is eager (including the current tests) 08:47
That could be just becuase rakudo-ng worked that way...
Point number 3 it bypasses the current issues rakudo has with source lists that are re-assigned after partial iteration 08:50
Still trying to wrap my head around that quagmire... 08:51
08:52 cooper left 08:53 cooper joined 08:58 kaleem left
kshannon perl6: my $a = [ gather { for ^5 { .say; take $_; } } ]; say " MIDDLE "; say +@($a); 09:03
p6eval rakudo 2b6f86: OUTPUT« MIDDLE ␤0␤1␤2␤3␤4␤5␤»
..pugs b927740, niecza v13-38-g5dd6ed3: OUTPUT«0␤1␤2␤3␤4␤ MIDDLE ␤5␤»
kshannon b: my $a = [ gather { for ^5 { .say; take $_; } } ]; say " MIDDLE "; say +@($a); 09:04
p6eval b 1b7dd1: OUTPUT«0␤1␤2␤3␤4␤ MIDDLE ␤5␤»
09:06 Kyril joined
moritz ah well, I guess I'm fine with eager [ ] for now 09:14
09:19 bkolera left 09:48 sayu joined 09:50 kaare__ joined 09:55 grondilu joined
grondilu perl6: constant X = <foo bar>; 09:56
p6eval niecza v13-39-g2580531: ( no output )
..rakudo 2b6f86: OUTPUT«===SORRY!===␤Cannot handle constant X with non-literal value yet at line 1, near "= <foo bar"␤»
..pugs b927740: OUTPUT«*** ␤ Unexpected "="␤ expecting ":" or "("␤ at /tmp/so0MueVvhF line 1, column 12␤»
grondilu I thought <foo bar> was a literal value :(
10:02 kaare__ left 10:03 kaare__ joined 10:09 grondilu left 10:12 am0c joined 10:13 bkolera joined 10:24 Kyril left 10:41 bkolera left 10:46 cognominal_ joined 10:48 cognominal left 11:03 cognominal___ joined 11:05 Mowah joined 11:06 cognominal_ left 11:28 Moukeddar joined
masak good morning, #perl6 11:40
...fsvo morning...
11:41 mj41 joined 11:59 fridim_ joined, cedric joined
cedric Bonjour #perl6! 11:59
o/ masak 12:00
masak \o
cedric Context: libparrot.so.3.11.0:utf8_iter_skip() is the function that consumes the most CPU time when running "perl6 S03-operators/basic-types.t" (an arbitrary example). It appears that this function is called many times against the same C strings (c.f. experiment irclog.perlgeek.de/perl6/2011-12-31#i_4904989). 12:01
I had a look at utf8_iter_skip()'s backtraces and found out a repetitive pattern (more than 75000 times with the given example): "... -> runops_fast_core -> Parrot_substr_s_… -> encoding_substr -> utf8_iter_skip". I'm a bit surprise to see that the "substr_s_…" opcodes are called so often, more specifically on the same C strings.
masak cedric: sounds like you're onto something there. 12:03
cedric: I really hopes this leads to a significant speedup in the end. 12:04
24 people have now signed up for p6cc! \o/
24. that's 4! == [*] 1..4 == 1 * 2 * 3 * 4. 12:05
cedric masak: I hope too. I would like to report this strange behaviour to the right guys, I don't have time to investigate more. 12:06
masak: who are the "right guys"? 12:08
masak cedric: well, let mention it to the #parrot people on irc.perl.org.
see what they have to say. 12:09
most of them are in the US, so it may be a few hours before they wake up and respond.
cedric OK, thanks. I will report that in a coulple of hours :) 12:10
masak I just mentioned it on the #parrot channel. 12:11
cedric Thanks!
12:13 fridim_ left 12:14 orafu joined
masak by the way, I've now perused www.keithschwarz.com/darts-dice-coins/ 12:20
it is indeed inspiring.
colomon ;)
masak however, I don't see how it's applicable to what I believe is the main issue for .pick -- namely how to avoid duplicates in a performant way. 12:21
.pick and .roll for Bags will probably benefit from an Alias method implementation, though. 12:24
12:41 Guest2099 is now known as x3nU
colomon dang it, niecza's spectest is completely hosed at the moment 12:44
12:47 MayDaniel joined
masak :/ 12:50
12:55 sayu left 13:37 mj41 left 13:39 JY10 joined, JY10 left, JY10 joined, JY10 left 13:49 proller joined 14:01 kaare__ left 14:03 kaare__ joined, kaare__ left, kaare_ joined
dalek kudo/nom: b70b105 | (Kris Shannon)++ | src/core/ (2 files):
Fix take over-flattening

circumfix:<[ ]> needs to be made eager as well. This seems to match the wording of the spec (it's an Array, not a List) and doesn't introduce any regressions in roast.
Fixes RT#101316 and RT#106986
14:13
moritz forgot to add the Signed-Off-By line, again :/ 14:14
moritz--
kshannon++
kshannon: in your next rakudo patch, please add yourself to CREDITS
masak hola, moritz 14:17
moritz \o masak
14:19 tokuhirom left 14:22 Kyril joined 14:24 Trashlord left
dalek ast: d888c1c | moritz++ | / (4 files):
rakudo unfudges
14:26
albot: a875194 | (Kris Shannon)++ | lib/EvalbotExecuter.pm:
Also allow executing from files in projects on github
14:29
albot: 7d4b9b0 | moritz++ | lib/EvalbotExecuter.pm:
Merge pull request #1 from KrisShannon/patch-1

Also allow executing from files in projects on github
14:38 orafu left, orafu joined
dalek ast: 2e37eb9 | moritz++ | / (4 files):
more rakudo unfudges
14:44
14:57 hundskatt left 15:09 nebuchadnezzar joined 15:13 cedric left, tomaw joined 15:25 PacoAir joined
x3nU okay, so now i'm trying to build latest rakudo under windows using msvc 2010 15:36
hope it will compile fine
masak we hope so too :)
15:40 Trashlord joined
masak Trashlord! \o/ 15:41
Trashlord hey masak :) 15:42
masak Trashlord: how's 2012 treating you? :)
Trashlord so far so good, and yourself? 15:43
masak very excited about the new year. :)
2010 was very nice, 2011 was even better, so 2012 will probably be wonderful. 15:44
Trashlord I sure hope so 15:47
x3nU 2012 will be last year of our world :( 15:48
Trashlord heh 15:51
I don't believe the world will be physically destroyed
I believe, and hope, that this "civilization" will collapse
and all humans will achieve greater conciousness
and march onwards into the new world, the new society, with no governments, no religion, no countries, and no money 15:52
only love and respect towards everyone
x3nU or maybe perl 6 will take over the universe
Trashlord perhaps
we'll have to wait and see
masak I don't hope that western civilization will collapse. but that seems to be where we're heading. 15:53
x3nU damn
masak I do hope, to the extent that it is inevitable, that it takes 90 years and not 5.
x3nU compilation of rakudo just crashed ;_;
masak x3nU: could you nopaste the error mesasges? 15:54
were there any error messages?
x3nU: I *think* jnthn is useing some msvc or other to compile Rakudo.
15:54 Moukeddar left
x3nU pastebin.com/vnJy7JjP 15:55
it seems
that nqp crashed
there was no error message or something
just "application nqp.exe stopped working" or something like that
masak :( 15:57
x3nU so it seems that i need to try building using mingw 15:58
masak x3nU: you should definitely bring this up with jnthn++ when he gets back. he will know more. 16:00
x3nU okay 16:02
[Coke] uhoh, moritz is unfudging for rakudo. 16:11
dalek kudo/nom: a7fd89e | masak++ | / (8 files):
[TypePretence -> TypePretense]

  "Pretence" is common in British spelling, whereas the rest of the
code base is written in squeaky-clean International (that is, US) English. Clearly the original spelling was a case of larger guerrilla spelling campaign by our resident .uk core programmer. ;-)
16:13
masak for more information about guerrilla spelling campaigns, see meta.wikimedia.org/wiki/Guerilla_sp..._campaigns 16:14
tadzik happy new year #perl6!
masak Year.new(:happy) 16:15
x3nU i'm not sure if american english is international english 16:16
tadzik Year.new.happify
x3nU in european countries people are taught british english, not american
16:17 hundskatt joined
tadzik woot, 19/20 from OS exam 16:17
masak tadzik++ 16:18
tadzik that's a good start for 2012
masak indeed. 16:20
[Coke] good job!
tadzik wow, mailbox' full of good news. Have you seen the recent booking.com donation?
colomon tadzik: what's the story? 16:21
tadzik colomon: what story?
colomon booking.com donation
tadzik news.perlfoundation.org/2012/01/boo...00-to.html
masak \o/ 16:22
tadzik those guys know how to party
x3nU wow
tadzik booking++
colomon booking++ 16:24
masak if I hadn't been hastily and summarily employed (and subsequently very happy where I am), Id probably have applied for a job at booking.com by now. 16:26
I'd*
tadzik I'm tempted every semester :) 16:27
masak grabs one of tadzik's legs and drags him towards Sweden :) 16:28
tadzik yeah, I remember about you too :)
masak which would you rather have, ~30 skilled Perl developers, or jnthn and me? :P
tadzik I'm thinking about taking a year off after this semester (ends in february), as that's when the first stage of my studies ends
but I'm afraid that once I take a break I'll never want to go back :P 16:29
masak I'll get right on deflating my head now.
tadzik huh, what? :)
masak tadzik: yeah, taking a break to go find a job is a recipe for never finishing your studies.
tadzik yeah, I suppose so
16:30 fsergot joined
tadzik and I'll find myself sitting in a chair with a pipe and a dog besides me legs and wondering why did I never achieve the dream from my childhood :) 16:30
fsergot o/
tadzik o/
x3nU \o
tadzik happy new years' fsergot!
16:30 cspencer joined
masak tadzik: yeah, wouldn't want to take your childhood dream from you :) 16:30
fsergot thanks, You too :) 16:31
masak fsergot! \o/
tadzik fsergot: about Bailador: I got templates to work, but I keep that in a branch as it still ignites segfaults from time to time
I'll merge all those new features as soon as we get that fixed
cspencer hello everyone!
tadzik hey cspencer! Happy new year!
cspencer question about the zip operators - are they currently able to produce lazy lists? my code would seem to indicate they are not, unless i'm doing something incorrectly :) 16:32
tadzik: happy new year to you as well!
colomon cspencer: they are!
masak cspencer! \o/
fsergot masak: tonight i thought of how to make task 1 in p6 contest! :) 16:33
colomon nom: my @a := 'a'..'z' Z~ 1..*; say @a[^10]
p6eval nom a7fd89: OUTPUT«a1 b2 c3 d4 e5 f6 g7 h8 i9 j10␤»
masak fsergot: and you still haven't signed up? crazy!
nom: role R { method foo { say "OH HAI" } }; enum A does R <a b c>; a.foo
p6eval nom a7fd89: OUTPUT«OH HAI␤»
masak enums do roles. wow.
cspencer colomon: ah, perhaps on on the wrong branch then
is that only in the nom branch?
fsergot masak: where can i do sign up? :) 16:34
s/do//
masak fsergot: email [email@hidden.address] saying "Sign me up!"
colomon cspencer: that should work in any current p6
cspencer: well, I can't speak for perlito
perl6: my @a := 'a'..'z' Z~ 1..*; say @a[^10]
fsergot masak: ok! :) thanks
p6eval rakudo a7fd89, niecza v13-39-g2580531: OUTPUT«a1 b2 c3 d4 e5 f6 g7 h8 i9 j10␤»
..pugs b927740: OUTPUT«abcdefghij␤»
masak pugs--
colomon masak: go easy on it, last time it was developed the Z metaop wasn't around yet 16:35
16:35 kaare_ left, kaare__ joined
masak colomon: oh! right! 16:35
colomon: so easy to forget these things ;) 16:36
nom: enum E <a b c>; class C does E {}; say "alive"
p6eval nom a7fd89: OUTPUT«===SORRY!===␤Cannot yet turn an enum into a role␤»
masak cannot... yet... :)
colomon is not likely to forget the day Zop was invented... :)
cspencer here's the code i'd being trying to use: for zip(1..*;1..*) -> $a, $b { say "a = $a, b = $b" } 16:37
masak colomon: how so?
colomon cspencer: your problem there is the "for"
cspencer i figured as much
it doesn't flatten the list, does it?
x3nU last pugs version is from 2011-10-08 if i understand correctly, not that bad
masak x3nU: yes, but those are releases on essentially the same source code, from mid-2007. 16:38
x3nU masak: so what's the point of these releases?
masak x3nU: upgrading to latest GHC.
colomon masak: I watched (on #perl6) TimToady come up with the idea, and then a) told him it was a keeper and b) implemented the first version in Rakudo myself right then. :)
masak \o/
colomon++
colomon: yeah, it's strange that we had Xop for so long without realizing that Zop was right next door. :) 16:39
colomon masak: if you're not thinking of lazy lists, Zop is just >>op<< 16:41
masak: but if you are thinking of lazy lists, Zop is awesome
masak aye.
cspencer is there a way to get the for loop to evaluate the list lazily?
masak colomon: they optimize for two things we care about: parallelism and laziness, respectively. 16:42
colomon cspencer: I don't understand exactly what's going on, but my impression is nom's "for" is only lazy if it knows for sure that the list is infinite. so for 1..* -> $a { } works, but more complicated things don't
cspencer ah, ok.
masak colomon: pmichaud has a term for that.
colomon: something like "obviously finite" or "proven finite" or something. 16:43
it's that kind of gray-area solution that often gets us out of Halting Problem jail for free.
cspencer so would this be categorized as a "yet to be implemented feature"? :) 16:44
colomon cspencer: charitably speaking, yes. :) 16:46
niecza: for 1..* Z 1..* -> $a, $b { say "a = $a, b = $b" } 16:48
p6eval niecza v13-39-g2580531: OUTPUT«(timeout)a = 1, b = 1␤a = 2, b = 2␤a = 3, b = 3␤a = 4, b = 4␤a = 5, b = 5␤a = 6, b = 6␤a = 7, b = 7␤a = 8, b = 8␤a = 9, b = 9␤a = 10, b = 10␤a = 11, b = 11␤a = 12, b = 12␤a = 13, b = 13␤a = 14, b = 14␤a = 15, b = 15␤a = 16, b = 16␤a = 17, b = 17␤a = 18, b …
colomon cspencer: it does work in niecza
b: for 1..* Z 1..* -> $a, $b { say "a = $a, b = $b" }
p6eval b 1b7dd1: OUTPUT«(timeout)a = 1, b = 1␤a = 2, b = 2␤a = 3, b = 3␤a = 4, b = 4␤a = 5, b = 5␤a = 6, b = 6␤a = 7, b = 7␤a = 8, b = 8␤a = 9, b = 9␤a = 10, b = 10␤a = 11, b = 11␤a = 12, b = 12␤a = 13, b = 13␤a = 14, b = 14␤a = 15, b = 15␤a = 16, b = 16␤a = 17, b = 17␤a = 18, b = 18␤a = 19, b…
colomon and b
and map probably works as a workaround in nom 16:49
cspencer colomon: what's b? i'm not familiar with that one..
masak old branch.
benabik cspencer: Rakudo before the most recent re-write.
masak sometimes we take Rakudo and throw it away because we thought of a better way to implement it :P
cspencer hmmm...i thought i'd been running on the old branch, but hadn't been getting any output 16:50
i'll check again or find a work around
thanks for the help!
masak ooh, SymbolTable is called World now! \o/ 16:57
you're welcome :D
I'm currently investigating OMeta's concept of World... 16:58
17:01 zhangkaizhao left 17:02 yass5 joined
masak yass5: \o 17:08
yass5 masak: o/ 17:09
17:12 bluescreen10 joined 17:15 LlamaRider joined
masak nom: sub initial($_) { .substr(0, 1) }; say "yet another static scalar".words.map({ initial($_) }), 5 17:16
p6eval nom a7fd89: OUTPUT«y a s s5␤»
masak pfft :)
nom: sub initial($_) { .substr(0, 1) }; say "yet another static scalar".words.map({ initial($_) }).join, 5
p6eval nom a7fd89: OUTPUT«yass5␤»
17:16 drbean left
masak \o/ 17:16
moritz nom: sub initial($_) { .substr(0, 1) }; say "yet another static scalar".words>>.&initial.join, 5 17:19
p6eval nom a7fd89: OUTPUT«yass5␤»
moritz nom: sub initial($_) { .substr(0, 1) }; say "yet another static scalar".words.mpa(&initial).join, 5 17:20
p6eval nom a7fd89: OUTPUT«Method 'mpa' not found for invocant of class 'List'␤ in block <anon> at /tmp/_ioG2OznRn:1␤ in <anon> at /tmp/_ioG2OznRn:1␤»
moritz nom: sub initial($_) { .substr(0, 1) }; say "yet another static scalar".words.map(&initial).join, 5
p6eval nom a7fd89: OUTPUT«yass5␤»
moritz masak: map { foo($_) } is nearly always an anti-pattern
and map &foo can usually be used instead 17:21
masak ooh, indeed.
nom: sub initial($_) { .substr(0, 1) }; say "yet another static scalar".words.map(&initial).join, 5
p6eval nom a7fd89: OUTPUT«yass5␤»
17:22 drbean joined 17:24 itz joined, cognominal___ left 17:25 bluescreen10 left 17:26 cognominal joined
masak could someone help me understand the role perl6_capture_lex plays in Actions.pm ? 17:29
it's used in exactly two places, the sub block_closure, and the method quote_escape:sym<{ }> 17:30
it's defined last in src/ops/perl6.ops, and doesn't look like it's doing very much. 17:31
sorear++ # irclog.perlgeek.de/perl6/2011-12-10#i_4814872 -- that's the attitude to regressions that Rakudo needs as well, even across big rewrites 17:36
masak smiles at "Plain, Old Documentation" in the backlog 17:40
17:40 LlamaRider left
moritz Call for Papers for the German perl Workshop 2012 in Erlange (March 5-7) ends today 17:44
I hope to extend the deadline for a week, but not sure it'll work
benabik Took a couple times to not read that as "Perl in Erlang Workshop" 17:46
17:49 kaare__ left, kaare__ joined
moritz erm, sorry, the town is called "Erlangen" 17:51
17:54 fridim_ joined
masak phenny: de en "Erlange"? 17:56
phenny masak: "Achieve" (de to en, translate.google.com)
masak phenny: de en "Erlangen"?
phenny masak: "gain" (de to en, translate.google.com)
cognominal happy new year to the perl sixers.
masak nom: class Year { has @.d; method description { @.d.sort.ucfirst ~ " " ~ self.^name ~ "!" } }; say Year.new(:d(<new happy>)).description 17:59
p6eval nom a7fd89: OUTPUT«Happy new Year!␤»
masak \o/ 18:00
18:09 toto joined, toto is now known as Guest27660 18:10 raiph joined, Guest27660 left 18:11 kaare__ left, kaare__ joined
colomon benabik: are you volunteering to implement p6 in Erlang? ;) 18:11
moritz phenny: de en "Erlen am Hang"
phenny: de en "Erlen am Hang"?
phenny moritz: "Alder on slopes" (de to en, translate.google.com)
moritz that's the origin of the name "Erlangen" 18:12
x3nU mine snails looks so cute <3 18:13
benabik colomon: In my copious spare time? :-D
colomon benabik: exactly!
x3nU creating perl6 implementation in HQ9+ would be a big step forward 18:15
tadzik hah
colomon HQ9+?
x3nU simple.wikipedia.org/wiki/HQ9%2B 18:16
there's no entry in english wiki
colomon okay, that's awesome 18:20
Though the + seems somewhat unneeded. 18:21
tadzik it's an evolution of the HQ9 language 18:22
masak I'm waiting till HQ9++ is released. 18:23
benabik masak: www.dangermouse.net/esoteric/hq9plusplus.html 18:24
masak well, there you go then. 18:27
now, I have two choices.
either I could reject reality and redefined "released" in such a way that I still have a reason not to try the new language. this is clearly less work for me.
or I could admit that HQ9++ actually exists, go ahead and try it, and then give my honest appraisal of it. that sounds really hard. 18:28
so... by "released", I obviously meant "when enough people in my immediate vicinity talk about it". 18:29
...obviously. 18:33
18:37 Kyril left 18:38 packetknife left
x3nU nqp configure.pl 18:38
is
horribly broken
raiph hi all 18:39
phenny raiph: 29 Dec 18:09Z <TimToady> tell raiph re: irclog.perlgeek.de/perl6/2011-12-18#i_4848275 I'd say 6model is not so much related to moose as it is to the Responder Interface stuff that nothingmuch++ was working on in the same timeframe, but representation polymorphism has been the p6 plan for ages
raiph s05: "A character class is now specified using <[...]>. See also "Extensible metasyntax". " 18:40
the target of "Extens..." link doesn't exist
18:42 drbean left
masak raiph: seems the heading has changed to '=head1 Extensible metasyntax (C<< <...> >>)' 18:43
hm. or not. that line is unchanged since the last repository move.
maybe the link never worked, then. 18:44
colomon "When the sequence ++ is encountered, it (naturally) increments the accumulator twice, and also instantiates an object of a new subclass of the generic superclass. In line with the best data-hiding principles, there is no way to access this object." Wow. It really IS a big improvement over HQ9+! 18:45
still, it could really use meta operators....
benabik colomon: You should try to find HQP9+-
colomon: What - does depends on what operators are before it. :-D 18:46
colomon benabik++
masak ;) 18:48
colomon sorear: ping. (or just try S32-trig/sin.t -- one of many failures in the spectest.)
18:48 drbean joined 18:51 yass5 left, hundskatt left, nebuchadnezzar left, kst left, cspencer left 18:52 yass5 joined, hundskatt joined, nebuchadnezzar joined, kst joined 18:57 drbean left 19:02 drbean joined
masak I'm doing a gist about macros and closures to try to make them clear to me. 19:04
I think I finally grok a thing that sorear++ told me: all ASTs are inserted into mainline code as *blocks*, and these blocks still retain their original OUTER. 19:06
this simplifies a lot, if true.