»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:02 molaf_ joined, daniel-s joined, mberends joined, gbacon_ joined, y3llow joined, ascent_ joined, avar joined, Holy_Cow joined, Tene joined, stepnem joined, whiteknight joined, Tedd1 joined, dju joined, Patterner joined, cooper joined, uniejo joined, buubot_backup joined, rafl joined, cognominal_ joined, spq1 joined, jdv79 joined, aloha joined, mtk joined, Trashlord joined, estrabd joined, araujo joined, Woodi joined, silug joined, sftp joined, pothos joined, PZt joined, lichtkind joined, icwiener joined, TiMBuS joined, jedai joined, ingy joined, scottp joined, cotto joined, Su-Shee joined, Eevee joined, [particle] joined, takadonet joined, clkao joined, s1n joined, noganex joined, betterworld joined, jlaire joined, _sri joined, pnu joined, mikemol joined, _ilbot joined, ruoso joined, amkrankruleuen joined, skangas joined, colomon joined, gabiruh joined, Guest87668 joined, tomize joined, breinbaas joined, meteorjay joined, kfo joined, xinming joined, PacoLinux joined, HarryS joined, jerome joined, benabik joined, f00li5h joined, pmichaud joined, c1sung joined, starcoder joined, kcwu joined, kst joined, krunen joined, spinclad joined, bs338 joined, revdiablo joined, rhr joined, mattp_ joined, gfldex joined, ggoebel joined, diakopter joined, kolibrie_ joined, felipe joined, awwaiid joined, tomaw joined, sjohnson joined, moritz joined, yath joined, Katibe joined, drbean joined, apejens joined, PerlJam joined, szabgab joined, zamolxes joined, cotto_work joined, barika joined, starcoder2 joined, Util joined, BinGOs joined, sorear joined, pyrimidine joined, miso2217 joined, cxreg joined, hatseflats joined, shachaf joined, risou joined, tty234 joined, zb joined, frodwith joined, broquaint joined, renormalist joined, sjn joined, estrai_ joined, baest joined, nebuchadnezzar joined, Woody2143 joined, cookys joined, slavik joined, Krunch joined, Pathin joined, hillu joined, Bucciarati joined, felher joined, prammer joined, mdxi joined, wolverian joined, krakan joined, llabthgie joined, athomason joined, JodaZ joined, mux joined, nsh| joined, Raynes joined, jdhore1 joined, snarkyboojum joined, eternaleye joined, ashleydev joined, LoRe joined, beppu joined, jesk joined, cschimm1_ joined, robinsmidsrod joined, Yappoko__ joined, foomator joined, Grrrr joined, nrr joined, Helios joined, ribasushi joined, jql joined, bbkr_ joined, jasonmay joined, geekosaur joined, pochi joined, yves joined, jnthn joined, simcop2387 joined, jtpalmer joined, domidumont joined, sivoais joined, REPLeffect joined, frettled joined, lue joined, ChrisDennis joined, alyx joined, _patch joined, Vlavv joined, TimToady joined, Maddingue joined, lestrrat joined, tylercur1is joined, larks joined, szbalint joined, sunnavy joined, tadzik joined, takesako joined, mathw joined, jjore joined, flussence joined, Lorn joined, wooden joined, arnsholt joined, sbp joined, huf joined, slavik1 joined, yahooooo joined, Gothmog_ joined, literal joined, perplexa joined, chitragupt left, ChanServ sets mode: +v p6eval, dalek left 00:03 mtk left, dalek joined 00:04 hugme left, ChanServ sets mode: +v dalek, daemon left, chitragupt joined 00:05 p6eval left 00:08 daemon joined 00:11 buubot_backup left 00:12 buubot_backup joined 00:15 p6eval joined, ChanServ sets mode: +v p6eval
lichtkind soroar allright :) 00:22
daniel-s perl6: my $a = "hello"; $a.length.say; 00:25
p6eval pugs: OUTPUT«*** No such method in class Str: "&length"␤ at /tmp/ZOMkiW9LNz line 1, column 18-31␤»
..niecza v6-157-ga94e021: OUTPUT«Unhandled exception: Unable to resolve method length in class Str␤ at /tmp/TIQrTIxksV line 1 (MAIN mainline @ 1) ␤ at /home/p6eval/niecza/lib/CORE.setting line 1769 (CORE C837_ANON @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 1770 (CORE module-CORE @ 57) ␤
.. at /home/p6eva…
sorear lichtkind: #2?
p6eval ..rakudo 248244: OUTPUT«Method 'length' not found for invocant of class 'Str'␤ in main program body at line 22:/tmp/xNznjFx8ng␤»
daniel-s perl6: my $a = "hello"; $a.bytes.say;
p6eval pugs, rakudo 248244: OUTPUT«5␤»
..niecza v6-157-ga94e021: OUTPUT«10␤»
daniel-s perl6: my $a = "Селекторот"; $a.bytes.say; 00:26
p6eval rakudo 248244, niecza v6-157-ga94e021: OUTPUT«20␤»
..pugs: OUTPUT«decodeUTF8': bad data: '\1057'␤decodeUTF8': bad data: '\1077'␤decodeUTF8': bad data: '\1083'␤decodeUTF8': bad data: '\1077'␤decodeUTF8': bad data: '\1082'␤decodeUTF8': bad data: '\1090'␤decodeUTF8': bad data: '\1086'␤decodeUTF8': bad data: '\1088'␤decodeUTF8': bad data: '\1086'␤dec…
daniel-s what's the proper way to get the length of a string
sorear .chars
daniel-s because .bytes is not it
perl6: my $a = "Селекторот"; $a.chars.say;
p6eval rakudo 248244, niecza v6-157-ga94e021: OUTPUT«10␤»
..pugs: OUTPUT«decodeUTF8': bad data: '\1057'␤decodeUTF8': bad data: '\1077'␤decodeUTF8': bad data: '\1083'␤decodeUTF8': bad data: '\1077'␤decodeUTF8': bad data: '\1082'␤decodeUTF8': bad data: '\1090'␤decodeUTF8': bad data: '\1086'␤decodeUTF8': bad data: '\1088'␤decodeUTF8': bad data: '\1086'␤dec…
daniel-s pugs doesn't like UTF 00:27
sorear probably something is getting double decoded 00:32
00:32 tokuhirom joined 00:34 icwiener left
sorear wonders what selektorot is 00:35
00:37 daniel-s left
sorear lichtkind: you said you had more questions 00:39
00:46 renormalist left, renormalist joined, frodwith left 00:47 PZt left, baest_ joined, cooper left, slavik left 00:48 frodwith joined, sjn left, sjn joined, skangas left, zb left
lichtkind sorear: yes but time is approaching and had to fix here a small script, i would like to ask tommorow if you dont bother 00:48
00:48 zb joined, slavik joined, baest left 00:49 PZt joined 00:51 envi_laptop joined, skangas joined
sorear lichtkind: no, it's fine by me. 00:53
lichtkind :), good night
to all here
sorear good night.
00:55 lichtkind left 01:01 noganex_ joined 01:05 noganex left 01:06 hudnix joined 01:07 Holy_Cow left 01:13 mberends left 01:19 _jaldhar left, _jaldhar joined 01:28 saaki joined 01:31 whiteknight left
dalek ecza: 042c7c2 | sorear++ | src/ (3 files):
Improve detection of when names are actually used
01:46
sorear \o/ make test passes without warnings now
colomon \o/ 01:48
02:06 cooper joined 02:15 dju_ joined, dju_ left, dju_ joined 02:19 dju left 02:21 cooper left 02:25 cooper joined, cooper left, cooper joined
sorear std: "{ my $x }" 02:36
p6eval std 37a0cdd: OUTPUT«ok 00:01 119m␤»
dalek ecza: c0de568 | sorear++ | / (3 files):
Refactor to enable more detection of unused variables
02:37
02:44 araujo left 02:46 Holy_Cow joined
dalek ecza: f958d2d | sorear++ | src/niecza:
Allow catching unused variables in the mainline block
02:49
02:55 pjcj joined 03:11 Holy_Cow left
dalek ecza: e8230ae | sorear++ | src/ (3 files):
Fix declared but not used checking for subs
03:18
03:22 kai__ joined, kai__ left 03:23 am0c^ joined, kai__ joined 03:24 Su-Shee_ joined, Su-Shee left 03:27 kai__ left, kai__ joined
kai__ whois clkao 03:28
03:28 kai__ left
sorear Su-Shee_: ping 03:29
03:29 kai__ joined 03:30 kai__ left 03:33 KKK joined
KKK Is there any detailed documentation for perl6 module? 03:34
03:37 kevin_ joined, kevin_ left 03:40 KKK left 03:43 zhang joined, mberends joined 03:48 am0c^ left
zhang How could I get the length of a array? 03:49
sorear use the array as a number
@array > 3
if you don't need to use the value right away, use unary + 03:50
my $len = +@array
zhang sorear Thank you.
tylercur1is Or @array.elems 03:52
03:53 tylercur1is is now known as tylercurtis
zhang This one looks more natural. 03:53
03:54 zhang left 03:55 am0c^ joined 04:17 araujo joined, araujo left, araujo joined
sorear o/ araujo 04:20
araujo hi sorear
sorear oh wow, I didn't break any spectests
tadzik good morning #perl6 04:21
sorear hello tadzik
tadzik sorear: what's so bad about IRC?
sorear where do I begin? 04:22
tadzik I wonder
sorear enforced tree topology makes redundant connections impossible
no way for clients to transparently resume after a connection drop
510-character limit by truncation brain damage
lack of character encoding awareness 04:23
inadequate handling of presense data
no remote echo
"standard" that NO server follows anymore 04:24
ad-hoc extensions with no discovery protocol
basically, the protocol is set up at every level to make it impossible to write a better client than irssi 04:25
tadzik I see your point
sorear I learned most of this when I got fed up with irssi and tried to do exactly that
Eevee time for a new protocol
tadzik or for wider adoption 04:26
04:26 am0c^ left 04:28 wamba joined, satyavvd joined 04:32 thou joined 04:36 kai__ joined 04:38 am0c joined 04:40 thou left 04:41 skangas_ joined 04:42 thou joined 04:43 skangas left, skangas_ is now known as skangas 04:44 diakopter left, rhr left, mattp_ left 04:45 diakopter joined, kai__ left, rhr joined 04:46 mattp_ joined 04:57 thou left
dalek ecza: fa38b18 | sorear++ | / (4 files):
Fix explain_mystery/inlining misinteraction
04:58
ecza: 174da63 | sorear++ | src/Metamodel.pm6:
Re-add use before declaration suppressing nonusage warning
05:13 Bzek joined 05:24 wamba left 05:26 mberends left
TimToady phenny: tell masak oh, and in the same paragraph, "short-curcuiting" 05:33
ENOPHENNY 05:34
tadzik /o\
that explains the lack of breakfast
sorear o/ TimToady 05:35
TimToady yo
looks like yer making good progress on the symtab stuff 05:36
dalek ecza: 3332d84 | sorear++ | src/niecza:
&foo adds to %*MYSTERY
sorear yeah, it's basically done except for the "defined but not used" warnings, which keep bouncing between oversensitive and undersensitive 05:37
TimToady I gave niecza more visibility on the rosettacode.org/wiki/Category:Perl_6 page today
tadzik examtime & 05:39
TimToady have the appropriate amount of fun 05:40
sorear it' 05:42
it's not regressed on spectests at this point (though I haven't reviewed warnings yet), also can compile itself again
05:46 wamba joined
sorear I'm thinking of changing source position in backtraces to a range of positions 05:48
if we have A(B), then there are 3 possible points for an exception - in eval(A), in eval(B), or in apply() 05:50
05:50 jdv79 left
sorear the other trick is that sometimes niecza doesn't exactly know when an exception came in, due to a bit of CLR brain damage 05:50
so sometimes niecza might know "either in eval(A) or eval(B), but definitely not in apply" 05:51
I wonder how best to present that to the user
05:51 jdv79 joined
TimToady better to be too general than to be wrong 05:52
05:59 frodwith left 06:00 wtw joined
moritz good mroning 06:04
sorear hi moritz 06:05
moritz too early to write properly, it seems
TimToady you should blame the german keyboard :)
06:05 Bzek left
moritz only a poor blameman works his tools 06:05
erm...
06:05 Bzek joined
TimToady that almost blames...er...works 06:06
06:07 frodwith joined
sorear hmm... no spectests for tighter/looser it seems 06:08
sorear writes up a battery of tests
TimToady be sure to keep + and - terminals straight...oh wait, you said a battery of tests, not a test of batteries... 06:09
permutational humor is humorously permutational, except when permutationally humurous or prohibited by law...
sorear for many years while growing up I thought "voidware" was a noun-type legal concept 06:11
Su-Shee_ sorear: yes pong?
sorear then I decided to ask what it was one day...
06:11 Su-Shee_ is now known as Su-Shee, koban joined
sorear Su-Shee: you said you wanted an article. What information? 06:11
TimToady I kinda like "the", it's very definitive. 06:12
Su-Shee sorear: what I asked yesterday. why did you choose c#, how does .net come into play (does it even?) what were your experiences etc
sorear ah... 06:21
niecza: sub infix:<@a> { "a({@_})" }; say 1 @a 2 06:23
p6eval niecza v6-163-g174da63: OUTPUT«===SORRY!===␤␤Placeholder variable @_ may not be used here because the surrounding block takes no signature at /tmp/NnXRyPsTvd line 1:␤------> sub infix:<@a> { "a({⏏@_})" }; say 1 @a 2␤␤Unhandled exception: Check failed␤␤ at
../home/p6eval/niecza…
sorear ...eheheh
niecza: sub infix:<@a> { "a(@_.item())" }; say 1 @a 2 06:24
p6eval niecza v6-163-g174da63: OUTPUT«a(1 2)␤»
moritz niecza: sub infix:<@a> { "a(@_.item())" }; my @a = 3; say @a @a @a 06:25
p6eval niecza v6-163-g174da63: OUTPUT«a(3 3)␤»
sorear clearly, starry 2.0 is warranted 06:26
moritz niecza: sub infix:<@a> { "a(@_.item())" }; my @a = 3; say (* @a *).(@a, @a) 06:27
p6eval niecza v6-163-g174da63: OUTPUT«a(3 3)␤»
06:29 fhelmberger joined
sorear TimToady: given infix:<@a> is tighter<|>; infix:<@b> is looser<&> what is the precedence relationship between @a and @b? 06:29
06:30 woosley joined
sorear TimToady: I'm planning to make tigher subst('=','>=') and looser subst('=','<=') so the original op will always trump refinement. But you might've had a different plan 06:30
06:33 s1n left, Woodi left
sorear std: sub foo is export('PIE') { } 06:34
p6eval std 37a0cdd: OUTPUT«ok 00:01 119m␤»
sorear std: sub foo is export ('PIE') { }
p6eval std 37a0cdd: OUTPUT«ok 00:01 121m␤»
06:34 s1n joined
sorear std: sub foo is export ($fie) { } 06:35
p6eval std 37a0cdd: OUTPUT«Potential difficulties:␤ $fie is declared but not used at /tmp/Pu9tXl0oUP line 1:␤------> sub foo is export (⏏$fie) { }␤ok 00:01 120m␤»
sorear std: sub foo is export($fie) { }
p6eval std 37a0cdd: OUTPUT«===SORRY!===␤Variable $fie is not predeclared at /tmp/U7ZjedO07M line 1:␤------> sub foo is export($fie⏏) { }␤Check failed␤FAILED 00:01 119m␤»
sorear ok then
06:41 Woodi joined 06:42 birdwindupbird joined
TimToady a tighter based on a looser op is always looser than the looser based on the tigher op; such precedence levels never overlap, so tighter/looser are only tiebreakers if the original precedence would be ambig 06:43
06:43 Aridai joined
TimToady if if there is a between of the original precedence levels, it's between all the looser-tighters and all the tighter-loosers, as it were 06:44
sorear between exists?
or do you just mean like + relative to tighter(=) and looser(*) ? 06:45
TimToady it was speculated at least
tighters and loosers are only infinitesimally far away from their base prec
though you can always fit more in 06:46
if we have between, it has to interpolate though
interpolating between loosers and tighters looks to be fraught with peril, though :) 06:47
sorear pugs: sub infix:<@>($x,$y) { $x * $y }; say 2 + 4 @ 4; # 24
p6eval pugs: OUTPUT«24␤»
TimToady so feel free to ignore between for now
sorear pugs: sub infix:<@>($x,$y) is tighter<+> { $x * $y }; say 2 + 4 @ 4; # does pugs support this? (18) 06:48
p6eval pugs: OUTPUT«*** ␤ Unexpected "<+>"␤ expecting trait or block␤ at /tmp/StONe8U86z line 1, column 32␤»
sorear pugs: sub infix:<@>($x,$y) is tighter(&infix:<+>) { $x * $y }; say 2 + 4 @ 4; # does pugs support this? (18)
p6eval pugs: OUTPUT«24␤»
sorear pugs: sub infix:<@>($x,$y) is equiv(&infix:<*>) { $x * $y }; say 2 + 4 @ 4; # does pugs support this? (18)
p6eval pugs: OUTPUT«24␤»
TimToady I don't think pugs does anything with tighter/looser
sorear doesn't look like it
so probably niecza will be the first implementation to do infinite precedence \o/
TimToady well, till you run out of memory :) 06:49
06:50 cooper left, cooper joined
TimToady similarly a tighter(looser(+)) is still looser than + 06:50
06:50 sanc joined
sorear I could make between work, using infinitesimal calculus, but it would be a pain to test and it would probably slow down EXPR 06:51
since it wouldn't be able to use lt/gt anymore
plus I'm not really sure "0.5 of the way between the arguments precedence" is really _useful_ 06:52
TimToady you'd just have to figure out some way to generate an intermediate string
06:52 cooper left
TimToady me either 06:52
06:52 cooper joined
TimToady so consider it conjectural 06:52
sorear if we wanted to go that far I'd rather see topological sorting stuff
where you give X > Y constraints, and then the system decides if operators are <, >, =, incomparable by the transitive closure 06:53
TimToady oh, I think we decided to replace 'is between' with 'is tighter is looser'
and let the two traits fight it out :)
sorear I think I proposed that system for Haskell' back when I was 10 or so...
hmm 06:54
TimToady in any case, don't need new syntax for it
sorear ah, Haskell' was 2010, not 2000
that's more consistent with my timeline... I didn't think I was playing with Haskell until after I was on Linux, which required post-13 06:55
06:55 natureboy joined 06:56 cooper left
TimToady useful topological prec likely requires you to name both upper and lower bounds, which is problematic from an extensibility point of view 06:58
06:58 kai__ joined
TimToady the between stuff more more useful for bootstrapping your initial levels, I suspect 06:59
sorear I was supposing just is Niecza::absprec<k= right> for that
TimToady so you can get the moral equivalen of the a..z levels without going all Church numerally 07:00
sorear between needs at least 2 prec levels to bootstrap
TimToady yes, but you can see how you could bootstrap between a..z with a split-the-difference thing
sorear and I'd rather have a system that allows users to see at a glance that is absprec<i= right> is related to constant $item_assignment_prec = 'i='; 07:01
TimToady yes, I prefer to hardwire the initial levels 07:02
it's an example of "Give them all the rope they want to be flexible, but then give them enough options that the don't want to extend it." :)
*they
that's easier with precedence levels than with operators, of course 07:03
but we'll probabl never add factorial as a built-in op simply because it's such an amusing operator to add :)
sorear "show me the use case" 07:04
factorial... well it's a great builtin operator in Maxima
but Perl 6 has no delusions of being a CAS
TimToady we've got plenty of delusions already, thank you... 07:05
07:05 frettled left 07:06 frettled joined 07:07 sanc_ joined 07:08 natureboy left 07:09 am0c left 07:10 sanc left 07:11 sanc_ is now known as sanc, baest_ is now known as baest 07:12 donri joined
dalek ecza: dff3b35 | sorear++ | / (2 files):
36 new tests for tighter/looser/equiv. tighter+looser is not tested, as semantics uncertain
07:17
sorear (warning: not my most readable code) 07:18
07:20 mj41 joined 07:24 kai__ left
TimToady wanders off to see how interesting the inside of his eyelids will be tonight... 07:28
frettled I'm sure they will be most fascinating. 07:29
07:38 Aridai left
TiMBuS twitter.com/#!/MICROSOFTWORD97 07:52
ahahah
frettled heh 07:57
08:00 Holy_Cow joined
dalek ecza: f6d94cc | sorear++ | / (2 files):
Fix stubbing qualified packages
08:07
mathw snorts milk out of his nose 08:08
08:09 agentzh joined
sorear -> sleep 08:22
dalek ecza: 6cff873 | sorear++ | src/niecza:
'subset' and 'enum' default to our scope
08:30 Woodi left 08:31 Woodi joined 08:53 nymacro joined 08:58 tzhs joined, daxim joined 09:03 noganex_ is now known as noganex 09:10 Mowah joined 09:14 sanc_ joined 09:17 sanc left
tadzik o/ 09:22
09:27 MayDaniel joined 09:32 daniel-s joined
jnthn o/ 09:32
09:34 woosley left
moritz o| 09:34
09:45 _twitch joined 09:47 alyx left 09:48 alyx joined, alyx is now known as Guest65000 09:50 molaf_ left 09:59 tzhs left 10:05 wamba left 10:08 Holy_Cow left 10:11 wamba joined 10:14 birdwindupbird left 10:22 DBot1 joined
daniel-s !wave 10:22
DBot1 o/
o|
o/
10:22 DBot1 left 10:25 phenny joined
moritz daniel-s: could you please compress that to one line? verbose bots are a bit annoying 10:25
10:26 hugme joined, ChanServ sets mode: +v hugme 10:34 MayDaniel left 10:38 wamba left 10:44 kanishka joined 10:55 Tedd1 left 11:01 _twitch left 11:02 kanishka left 11:13 koban left 11:14 koban joined 11:15 _twitch joined 11:25 DansBot joined
daniel-s !wave at moritz 11:26
DansBot Hai moritz o/ o| o/
moritz \o |o /o
daniel-s++
11:33 icwiener joined 11:48 satyavvd left 11:55 tzhs joined 11:57 koban left
colomon niecza: say [*] 1..20; 12:07
p6eval niecza v6-167-g6cff873: OUTPUT«2432902008176640000␤»
12:07 scottp left 12:10 leprevost joined
takadonet morning all 12:10
colomon niecza: say [*] 2, 3, 5, 7, 11, 13, 17, 19
p6eval niecza v6-167-g6cff873: OUTPUT«9699690␤»
moritz sorear: 'make test' fails in current niecza: Undeclared routine: 'testx:sym<<foo bar>>' used at line 815 12:16
12:21 xinming_ joined
daniel-s perl6: say [*] 1..20; 12:21
p6eval rakudo 248244: OUTPUT«2.43290200817664e+18␤»
..pugs, niecza v6-167-g6cff873: OUTPUT«2432902008176640000␤»
12:21 scottp joined
daniel-s perl6: say [*] 1..5; say 1*2*3*4*5; 12:22
p6eval pugs, rakudo 248244, niecza v6-167-g6cff873: OUTPUT«120␤120␤»
12:24 xinming left 12:32 nymacro left
daniel-s rakudo: [-] 6 5; 12:33
p6eval rakudo 248244: OUTPUT«===SORRY!===␤Confused at line 22, near "[-] 6 5;"␤»
daniel-s rakudo: [-] 6, 5;
p6eval rakudo 248244: ( no output )
daniel-s rakudo: [+] 6, 5;
p6eval rakudo 248244: ( no output )
daniel-s rakudo: [*] 6, 5;
p6eval rakudo 248244: ( no output )
daniel-s rakudo: say [*] 6, 5;
p6eval rakudo 248244: OUTPUT«30␤»
daniel-s rakudo: say [-] 6, 5;
12:33 bluescreen10 joined
p6eval rakudo 248244: OUTPUT«1␤» 12:33
daniel-s rakudo: say [%] 6, 5; 12:34
p6eval rakudo 248244: OUTPUT«1␤»
12:36 jt_ joined
moritz rakudo: say [**] 1..10 12:37
p6eval rakudo 248244: OUTPUT«1␤»
12:37 cosimo joined
daniel-s that seems not right 12:39
say [%] 6,4; 12:40
rakudo: say [%] 6,4;
p6eval rakudo 248244: OUTPUT«2␤»
daniel-s rakudo: say [**] 1..3;
p6eval rakudo 248244: OUTPUT«1␤»
daniel-s rakudo: say [**] 2..3;
p6eval rakudo 248244: OUTPUT«8␤»
daniel-s oh yea, it starts at 1 12:41
12:44 kai__ joined 12:47 satyavvd joined 12:49 cosimo left 12:56 benabik left 13:00 mtk joined 13:04 Holy_Cow joined 13:06 kai__ left 13:07 agentzh left, Holy_Cow left 13:08 Holy_Cow joined 13:11 DansBot left
colomon niecza: say 10 !%% 3 13:18
p6eval niecza v6-167-g6cff873: OUTPUT«Bool::True␤»
colomon niecza: say 10 !%% 2
p6eval niecza v6-167-g6cff873: OUTPUT«Bool::False␤»
daniel-s rakudo: say 10%3; 13:24
p6eval rakudo 248244: OUTPUT«1␤»
daniel-s rakudo: say 10%%3;
p6eval rakudo 248244: OUTPUT«Bool::False␤»
daniel-s what is %%?
13:24 orafu joined
daniel-s and why does the first one get ignored in IRC 13:25
moritz the "divisible by" operator
which one is ignored?
daniel-s oh, so if 10%2 is zero, 10%2 == true
oh, so if 10%2 is zero, 10%%2 == true
moritz right
daniel-s % 13:26
%%
if I type %% only one % comes up
moritz daniel-s: that's a feature of your IRC client. Works fine in mine
daniel-s rakudo: say !10%%3.5; 13:30
p6eval rakudo 248244: OUTPUT«Bool::True␤»
daniel-s rakudo: say 10%%3.5;
p6eval rakudo 248244: OUTPUT«Bool::False␤»
13:30 mtk left
daniel-s rakudo: say !10; 13:30
p6eval rakudo 248244: OUTPUT«Bool::False␤»
daniel-s rakudo: say !"hello";
p6eval rakudo 248244: OUTPUT«Bool::False␤»
daniel-s rakudo: say !"0"; 13:31
p6eval rakudo 248244: OUTPUT«Bool::True␤»
13:34 woosley joined 13:37 mtk joined
colomon hmmm.... we have grep and first. do we have an exists? (ie, like first but returns True if the condition matches something in the list, False otherwise.) 13:38
I guess ?@a.grep should do that, in theory....
moritz and with lazy lists it does that well
13:39 Holy_Cow left
tadzik blogs.perl.org/users/andrew_shitov/...urope.html 13:40
colomon Obviously !@a.grep could be that efficient as well. Wonder if it is.
rakudo: my @a := 1, -> $n { say ++$n } ... 20; @a.grep(* %% 13) 13:41
p6eval rakudo 248244: ( no output )
colomon rakudo: my @a := 1, -> $n { say ++$n } ... 20; say ?@a.grep(* %% 13)
p6eval rakudo 248244: OUTPUT«Cannot modify readonly value␤ in '&infix:<=>' at line 1␤ in <anon> at line 22:/tmp/alerlUeyQd␤ in <anon> at line 872:CORE.setting␤ in 'List::Bool' at line 1␤ in <anon> at line 888:CORE.setting␤ in <anon> at line 1␤ in 'List::Bool' at line 1␤ in 'prefix:<?>' at line
..497:CORE…
colomon rakudo: my @a := 1, -> $n is copy { say ++$n } ... 20; say ?@a.grep(* %% 13)
p6eval rakudo 248244:
..OUTPUT«(timeout)rue␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool::True␤Bool:…
colomon doh! 13:42
rakudo: my @a := 1, -> $n is copy { say ++$n; $n; } ... 20; say ?@a.grep(* %% 13)
p6eval rakudo 248244: OUTPUT«2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤Bool::True␤»
colomon rakudo: my @a := 1, -> $n is copy { say ++$n; $n; } ... 20; say !@a.grep(* %% 13)
p6eval rakudo 248244: OUTPUT«2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤Bool::False␤»
colomon so, not smart now, but an easy fix 13:43
moritz you have to check how often the grep block is executed
not how often the generating code block is executed
you see that it only goes up to 13 in the generating block
so you know that it stopped after it found the first match
colomon right, that's because !@a.grep translators to !?@a.grep 13:44
errr, hmmm.
that's right, actually, isn't it?
moritz well, both end up calling List.Bool 13:45
moritz doesn't see anything wrong
PerlJam greetings fellow perl6ers
colomon rakudo: my @a := 1, -> $n is copy { say ++$n; $n; } ... 20; say !@a.grep(* !%% 13) 13:46
p6eval rakudo 248244: OUTPUT«Bool::False␤»
13:46 Woodi left, geekosaur left
colomon needs to stop fiddling around with p6 and get back to work 13:47
niecza: my @a := 1, -> $n is copy { say ++$n; $n; } ... 20; say ?@a.grep(* %% 13)
p6eval niecza v6-167-g6cff873: OUTPUT«Unhandled exception: Nominal type check failed in binding $v is rw in CORE prefix:<++>; got Mu, needed Any␤ at /home/p6eval/niecza/lib/CORE.setting line 0 (CORE prefix:<++> @ 0) ␤ at /tmp/LsEbplSSHe line 1 (MAIN C1_ANON @ 1) ␤ at
../home/p6eval/niecza/lib/CORE.setting line 1537 (C…
colomon niecza: my @a := 1, -> $n { say $n + 1; $n + 1; } ... 20; say ?@a.grep(* %% 13) 13:48
p6eval niecza v6-167-g6cff873: OUTPUT«2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤Bool::True␤»
13:49 geekosaur joined 13:53 Woodi joined, koban joined
PerlJam I just compiled nom again and I'm really having a hard time getting used to it being so fast :-) 14:01
14:01 benabik joined
PerlJam It surprises me every time. 14:01
14:02 llabthgie left
tadzik :) 14:02
14:03 llabthgie joined
moritz PerlJam: I can volunteer to implement a --with-breaks option that eases the transition for you :-) 14:03
PerlJam heh
14:04 Tedd1 joined
jnthn lol :) 14:08
Happy it's a better experience. :)
14:16 kaare_ joined, sivoais left 14:19 scottp left
PerlJam I'm looking forward to the day when I'm *not* surprised by how fast rakudo compiles :) 14:21
moritz oh well, it will slow down again when we add more stuff to the setting :-) 14:22
arnsholt I tried compiling Perl 5 the other day. Definitely took longer =) 14:25
tadzik ha! :P
moritz arnsholt: I'm a bit surprised... if you include the time for parrot and nqp in the rakudo build 14:26
(and don't count the tests in both cases)
14:26 lichtkind joined
moritz might also depends on the number of parallel compilation processes 14:26
PerlJam I don't know ... perl 5 does a lot of things to make sure execution is faster
lichtkind TimToady: you got mail :)
arnsholt moritz: Yeah, I didn't include parrot, that's true 14:27
moritz though parallelized parrot rebuild with ccache isn't slow either 14:28
but then you have to consider ccache for perl 5 too
jnthn wonders how well the Rakudo build parallelizes.
moritz not well at all 14:29
the dynpmcs do
but the rest mostly not
maybe building the blib/Perl6/*.pbc things
setting compilation: not at all
14:32 betterworld left
jnthn Setting compilation kinda can't. 14:33
PerlJam I just helped our very staid accountant do something on a system I don't use in a language I don't know and it worked :-) and the accountant actually shouted "yay!". It's the largest expression of emotion I've ever seen from her.
moritz configuring and building perl 5 (blead) from scratch: 6 minutes 14:34
now trying rakudo + nqp + parrot 14:35
14:36 hercynium joined 14:37 daniel-s left
moritz parrot build finished, now on to nqp... 14:38
PerlJam idly wonders where "blead" actually originated.
moritz "bleading edge" - like leading edge, but sometimes a bit painful
PerlJam Aye, I know what it means, but where was it first used? 14:39
who first came up with it?
moritz probably any < damian TimToady tchrist > on p5p :-) (just guessing)
14:40 thou joined
PerlJam as much as its usage pervades hackerdom, it could be one of those things perl culture borrowed for all I know 14:40
14:41 koban left 14:44 mkramer1 joined 14:46 colomon_ joined, colomon left, colomon_ is now known as colomon 14:47 llabthgi1 joined 14:48 llabthgi1 left
PerlJam moritz: doesn't building perl also compile a bunch of modules? For it to be a fair timing comparision, you'd have to discount those too 14:48
14:48 llabthgie left
moritz nom + nqp + parrot: 7m41 14:48
14:48 llabthgie joined
moritz PerlJam: well, I don't want to spend much more time on that 14:48
14:50 betterworld joined 14:56 wtw left 14:58 betterworld left 15:02 Kaedenn joined
Kaedenn So, um, I see the following line in Perl6: my $*endsym = "null"; 15:03
What does the * do in that context, if anything?
PerlJam deja vu
(I just saw that on #perl :)
moritz Kaedenn: dynamic variable
Kaedenn Um.
PerlJam Kaedenn: See S02
Kaedenn smiles and nods
Okay.
Which section? 15:04
15:04 wamba joined
PerlJam Kaedenn: um ... search for "twigil" 15:04
15:05 silug left
Kaedenn Aha! 15:05
Okay, that's what I was looking for. Thanks.
15:06 betterworld joined 15:07 JimmyZ joined
Kaedenn God this is making my head hurt. 15:07
15:07 Kaedenn left
moritz just one new dimension 15:07
JimmyZ good evening, #perl6 15:09
slavik JimmyZ: wrong timezone :P 15:10
15:11 tzhs left
JimmyZ slavik: then s/evening/*/ ;) 15:11
slavik ^^
damn straight
15:11 betterworld left, am0c joined
slavik JimmyZ: you be from nearby mother country :D 15:12
benabik I say "Good morning" to people in my own timezone well into the PM, so I don't really care what greeting people use on IRC. :-D
15:13 betterworld joined
JimmyZ well, maybe I'm from the future 15:13
huf the perl6 greeting is * *, * anyway 15:14
i learned that from TimToady
moritz though 'good *, *' is also acceptable
slavik well, he is a linguist, which would make him more qualified than any/most of us in that regard 15:15
huf slavik: * * * * * * :)
slavik exactly!
bash.org/?244321
reminds me of that
PerlJam All of the *s remind me of crontabs 15:17
benabik A crontab entry of * * * * * means someone needs to have login privs revoked. 15:18
moritz benabik: depends on what the job does 15:19
huf removes login privileges :D
JimmyZ I didn't recall crontabs, most Perl 6
moritz benabik: once per minute isn't too bad if what it does is reliably < 1s
benabik moritz: Still, uhg. I'd rather something like that just be a daemon than forcing crond to wake every minute and spawn a process. 15:20
moritz: But I guess I see your point.
15:21 mkramer1 left, mkramer joined 15:23 icwiener left 15:25 mkramer left, gottreu joined 15:30 mkramer joined 15:32 mkramer left
TimToady it's hard to know how best to do it in Japanese--since the word boundaries are not very distinct from morpheme boundaries, you could justify anything from ** to ***** 15:36
15:36 birdwindupbird joined
TimToady o hayou go zai masu 15:36
oh, and that's without the minna san on the end :) 15:37
so make it *******
but * *, * works too :) 15:38
I guess that'd really have to be **,* 15:39
15:39 cooper joined
TimToady .u * 15:39
phenny U+FF0A FULLWIDTH ASTERISK (*)
TimToady or more likely **、*
.u , 15:41
phenny U+FF0C FULLWIDTH COMMA (,)
TimToady .u 、
phenny U+3001 IDEOGRAPHIC COMMA (、)
TimToady so how come there's an IDEOGRAPHIC SPACE but no FULLWIDTH SPACE? :) 15:44
15:47 mj41 left 15:49 woosley left
pmichaud maybe it's ideotic. 15:51
15:51 satyavvd left 15:57 _twitch left 16:00 kai__ joined 16:02 kai__ left
Eevee 「なにか」 16:03
16:03 icwiener joined
TimToady or 何か, since Japanese is rather TMTOWTDI :) 16:06
16:07 wamba left
Eevee yes, I've seen many a comparison drawn to Perl 16:09
I wouldn't be surprised to find $_ aliased to $は someday :P
16:11 _twitch joined 16:20 wamba joined
icwiener Hi, small question: What kind of regexpes does the smart match operator expect? 16:22
PerlJam what kind? 16:24
icwiener: what do you mean? 16:25
icwiener PerlJam: Well, I use a regular expression that works fine with plain grep but Perl6 gives me a syntax error there. if $line ~~ /^\#.*20[01][0-9]\.$/ { 16:26
So I thought Perl6 might use a different style of regular expressions.
PerlJam oh!
perl 6 expects Perl 6 regex :)
16:27 dju_ left, mj41 joined
PerlJam icwiener: Perl 6 has refactored regex syntax somewhat so, for instance, character classes are now <[0..9]> instead of [0-9] 16:27
icwiener Hmm,, the ones I saw pretty much looked the same as the usual extended regexp I used to use in Perl 5.
Oh! 16:28
PerlJam but maybe you want to use \d instead ?
icwiener That explains a bit. :)
Is there something to read about the new syntax? 16:29
PerlJam icwiener: well, there's github.com/perlpilot/perl6-docs/bl...-intro.pod
16:30 MayDaniel joined
PerlJam icwiener: and there's github.com/perl6/specs/blob/master...-regex.pod 16:30
icwiener: and there's szabgab.com/blog/2009/07/perl-6-regexes.html
icwiener Thanks a lot. I just read strangelyconsistent.org/blog/june-13-regexes and felt confident enought to try it. :D 16:33
PerlJam masak++
icwiener Yep, great series of articles. 16:34
16:39 birdwindupbird left
TimToady niecza: /^\#.*20[01][0-9]\.$/ 16:43
p6eval niecza v6-167-g6cff873: OUTPUT«===SORRY!===␤␤Any()No unspace allowed in regex; if you meant to match the literal character, please enclose in single quotes ('#') or use a backslashed form like \xXX at /tmp/t1jJyKgLUM line 1:␤------> /^\⏏#.*20[01][0-9]\.$/␤␤Parse 16:44
..failed␤␤»
TimToady std: /^\#.*20[01][0-9]\.$/
p6eval std 37a0cdd: OUTPUT«Invalid conversion in sprintf: "%M" at /usr/local/share/perl/5.10.1/STD.pm line 57286.␤===SORRY!===␤No unspace allowed in regex; if you meant to match the literal character, please enclose in single quotes ('#') or use a backslashed form like \x%M->{02}x at
../tmp/7…
TimToady interesting
PerlJam and LTA :)
TimToady std: /^'#'.*20[01][0-9]\.$/
p6eval std 37a0cdd: OUTPUT«===SORRY!===␤Invalid regex metacharacter (must be quoted to match literally) at /tmp/unXX94pgrf line 1:␤------> /^'#'.*20[01][0-⏏9]\.$/␤Potential difficulties:␤ [01] appears to be an old-school character class; please use <[01]> if you␤
..mean…
TimToady std: /^'#'.*20<[01]>[0-9]\.$/ 16:45
p6eval std 37a0cdd: OUTPUT«===SORRY!===␤Invalid regex metacharacter (must be quoted to match literally) at /tmp/h3xU4Nl4Fz line 1:␤------> /^'#'.*20<[01]>[0-⏏9]\.$/␤Potential difficulties:␤ [0-9] appears to be an old-school character class; digits should be matched
..with …
TimToady std: /^'#'.*20<[01]>\d\.$/
p6eval std 37a0cdd: OUTPUT«ok 00:01 121m␤»
TimToady std: / ^ '#' .* 20 <[01]> \d \. $ /
p6eval std 37a0cdd: OUTPUT«ok 00:01 121m␤»
TimToady happyspace! 16:46
16:46 TBA2 joined, kaare_ left 16:49 MayDaniel left 16:53 thou left, Tanktalus joined 17:02 silug joined 17:09 thou joined
thou thanks, i'm getting back online now 17:10
for some reason my wireless stopped transmitting
erm, sorry, wrong channel
TimToady it's pretty hard to be offtopic here :) 17:11
benabik thou: welcome back anyway. :-D
thou lol 17:12
thanks
TimToady since Perl 6 will solve all the problems of the world including wireless dropouts
so I guess only death and taxes are offtopic here... 17:13
thou maybe perl6 could help with the *fear* of death 17:14
which is, i imagine, worse than the real thing
slavik perl6 will also solve the world hunger problem?
TimToady of course
slavik and global warming and energy crisis? 17:15
TimToady it will make everyone into sedentary programmers
so they'll need less energy
slavik nice
I am already fat :(
17:15 cdarroch joined, cdarroch left, cdarroch joined
TimToady yes, but then everyone else will be fat too, and we will redefine the norm 17:16
17:17 thou left
flussence somewhat on-topic: I've read a story about one compiler from the 80s/90s, where a single bugfix saved all the devs a few thousand kWh in electricity bills in the long run... 17:17
17:17 thou joined
flussence (it was pretty similar to the ld -> gold thing going on today, actually) 17:17
17:29 thou left 17:30 JimmyZ left 17:31 masak joined, thou joined
masak bom tarde, #perl6 17:31
phenny masak: 15 Jun 23:04Z <TimToady> tell masak methinks you said "right side" when you meant "left side"
masak probably. I do that a lot...
jnthn boms the tarde 17:32
TimToady colomon: you should add your solution to rosettacode.org/wiki/Pi someday
17:32 benabik left
TimToady and there's a misspelling in the same paragraph, but phenny was down when I noticed it 17:32
masak TimToady: thanks, twice. fixing.
colomon TimToady: Probably. :) 17:33
masak it's slightly doubtful I'll have time to blog today. but I'll try my best.
tadzik hello masak 17:34
masak czesc tadzik 17:35
tadzik hej
masak ;)
17:35 Chillance joined
masak the difference between left and right bothers me. there's nothing *a priori* to tell them apart. 17:42
pmichaud jnthn: ping
jnthn pmichaud: pong 17:44
masak just as we might have picked -i as the imaginary base, and no-one would be able to tell the difference. (may that's what happened!) :P
pmichaud jnthn: never mind, I figured out what was going on. I couldn't see why I was getting an error on binding to an attribute (it was an operator precedence problem) 17:46
jnthn pmichaud: ah, k :)
pmichaud oh, imcc, how do I hate thee? Let me count the ways...... 17:47
17:47 koushi joined, koushi left, koushi joined, koushi left
moritz guesses that pmichaud is aware of the utter lack of methods in Parcel, and works on related stuff anyway 17:48
pmichaud yes, I'm aware.
I'm redoing Parcel/List/Array at the moment anyway.
vi l5
ww
TimToady masak: your premise is arguably incorrect, since there's en.wikipedia.org/wiki/CP_violation you'd have to argue that you can't tell forward from backward in time 17:51
colomon pmichaud: redoing them in nom? Is that in the sense of fixing up nom's versions, or actual improvements over master? 17:52
pmichaud actual improvements over master 17:53
I'm even working on equivalent new versions in master
don't know if they'll result in any significant performance improvements (they should), but they'll certainly be cleaner than what master has now
colomon \o/ 17:55
masak TimToady: while I appreciate the logic of that, my heart tells me otherwise... :)
colomon is switching from one frustrating task for $work (still completely non-functioning) to a different frustrating task for $work
moritz guesses that pmichaud will stumble over some list/iterator issus in the meta ops while doing things more correctly
17:56 koushi joined, koushi left
colomon is listening to a Fleet Foxes concert, on the bright side 17:56
17:56 thou left
TimToady masak: your heart is also not completely left-right symmetrical 17:58
masak :P 18:00
augh, there's no axiomatic basis anywhere! 18:01
PerlJam masak: There's a mathematician who has some interesting things to say about axiomatic systems; you should read him some time ;-) 18:02
TimToady "no axiomantic basis" is a rather axiomatic assertion... 18:03
masak TimToady: well, it depends... I've been going back and forth on that one.
TimToady perhaps we can build up Church axioms from that :P
though we'd have to prove that the next axiom is both derived from and could not possibly be derived from the previous axiom... 18:04
that's where I go back and forth :) 18:05
pmichaud moritz: stumble in master, you mean?
moritz pmichaud: yes 18:06
pmichaud perhaps. it was actually in the role stuff that I got blocked yesterday.
but that's actually fortunate, as it forced me to go back and rethink things yet again :)
masak "there are no universal truths" is a pretty self-defeating statement. the problem with slaying logic in the first blow is a bit similar to destroying the boat after just setting out from the shore.
18:07 mj41 left
masak it doesn't get you very far. :) 18:07
TimToady well, but if it's all relative than you can't quantify "very far" very well :)
*then
masak :P 18:08
pmichaud never argue with a linguist. :)
masak so the consolation is that I won't know how much I've failed? :P
I think I'll head back to utter certainty now... :)
on the other hand, a postmodernist theorem prover should be a breeze to implement. 18:15
PerlJam Does "utter certainty" even exist? 18:16
masak oh, I'm sure it does.
PerlJam yeah, but I think many cultures call that "God" or something 18:17
18:17 Guest65000 is now known as alyx, alyx left, alyx joined
PerlJam chromatic is funny 18:20
masak he is. 18:24
anything in particular? www.modernperlbooks.com/mt/2011/06/...ranny.html , perhaps? 18:26
PerlJam yes, the parenthetical bit near the beginning gives some insight into his how his brain works ;) 18:29
moritz somehow I don't understand the point 18:30
having the option to write custom arrays that use the built-in syntax seem to solve the big problem he mentions
so to me it looks like a problem specific to perl 5, not dynamic languages and their types in general 18:31
there could be a deeper point I'm missing, though
masak I always get the feeling chromatic has something important and noteworthy to express. I'm not always convinced biting sarcasm helps get the point across in the best way possible. but it's usually enjoyable to read.
18:34 Tedd1^ joined, Tedd1 left
masak first link in paragraph "Then I read..." looks broken. 18:35
I meant to tell chromatic, but I can't find him on IRC.
maybe Twitter will serve.
18:35 Woodi left 18:37 Woodi joined 18:40 benabik joined 18:41 Tedd1 joined 18:42 Tedd1^ left
sorear good * #perl6 18:42
masak sorear! \o/ 18:43
sorear masak: down to 18 lines of changes in yapsi/niecza, some of which I think are worth merging to master 18:48
like yapsi/master uses $obj1 eq $obj2 in a few places
I think this is a bug waiting to happen... what if $obj1 === $obj2, but the first call triggers a garbage collection which changes the object's address? 18:49
18:57 _jaldhar left 19:02 fhelmberger left 19:03 wamba left
masak sorear: agreed. 19:03
sorear: I've been meaning to look at the diff and perhaps blog about it.
it will be a few days before I have that kind of time; probably sometime early next week. 19:04
19:08 hercynium left, Moukeddar joined, hercynium joined 19:11 bluescreen10 left 19:12 Moukeddar_ joined 19:13 am0c left 19:16 Moukeddar left
colomon is having one of those "nothing is working" days 19:17
19:18 alester joined
colomon ack. 19:19
PerlJam colomon: that's okay, I'm having one of those "can't get motivated to do anything productive" days
19:19 hudnix left
colomon PerlJam: not really sure which is worse 19:19
19:19 birdwindupbird joined 19:20 cooper left
colomon so, MAIN(Int $n) doesn't work? 19:20
PerlJam I think it's mainly because I have these ideas of things I want to work on for $work, but I have to put together a narrative for a proposal by tomorrow and that's more important but less fun.
masak moritz: today, researching Perl 5's pseudo-package SUPER, I realized that it actually does handle MRO and MI. I'm not advocating putting it back into Perl 6 (because nextsame et al are just fine), but I no longer see a conceptual problem with having it there. 19:21
moritz masak: but it is otherwise completely insane 19:24
masak right, exactly.
PerlJam heh
moritz ie it's not tied to an invocant, but to the current package
masak it just struck me that the "won't work with MI" objection wasn't very strong, since it does work with MI in Perl 5. 19:25
moritz but does it work *well* with MI in Perl 5?
masak I didn't say that. :)
19:25 bluescreen10 joined
colomon what I'm seeing (this is in master): MAIN(Int $n) doesn't work. MAIN($n) works, but then hides MAIN("test") (ie if the command-line argument is "test", MAIN($n) is called. Help? 19:25
masak I don't plan to use MI much in Perl 5. Perl 5 has Moose, and Moose has roles. 19:26
colomon: the former is well-known. the latter sounds weird and new.
colomon: are those really multis?
rakudo: sub MAIN("test") {}; sub MAIN($n) {} 19:27
p6eval rakudo 248244: OUTPUT«===SORRY!===␤Cannot re-declare sub &MAIN without declaring it multi at line 22, near ""␤»
masak guess so :)
19:27 cotto left
colomon masak: gist.github.com/1030030 19:28
moritz colomon: re-order the mutlis
masak huh, what?
moritz colomon: thing is, the main helper doesn't do a proper multi dispatch (yet)
masak ah.
masak didn't know that 19:29
is that filed?
colomon moritz++
moritz but it just iterates over the candidates, and invokes the first one it finds
erm, the first one it can bind to
masak submits rakudobug
19:30 Bzek left
Moukeddar_ Hi guys , hope you're all fine 19:31
masak Moukeddar_: hi Moukeddar_ of the abundant whitespace ;) 19:32
tadzik hello Moukeddar_
Moukeddar_ you noticed that ?
what's cooking in the labs? 19:33
masak well, jnthn++ is working on nom, sorear++ is hacking away on Niecza, and the rest of as are (to a first approximation) awestruck by their productivity. :) 19:34
moritz masak: btw I'm working on github.com/moritz/WebService-Libris right now
masak us*
moritz: ooh
moritz it has neither tests nor documentation right now :/ 19:36
19:38 leprevost left
Moukeddar_ so you think you can code ? 19:39
that's a show :)
masak Moukeddar_: sorry, what do you mean? 19:40
Moukeddar_ you know the TV shows , Dance with the stars , America got talent , so you think you can dance etc...
masak ah. 19:41
Moukeddar_ please please , overlook the spaces:)
masak in this case, quotes would've helped more :P
19:41 Aridai joined
Moukeddar_ yes, certainly 19:41
masak it's the ol' use-mention distinction. some of us are very into that one.
19:41 daxim left
Moukeddar_ i can tell 19:42
masak Moukeddar is 185 cm tall, but "Moukeddar" is 8 characters wide :) 19:43
Moukeddar_ lol
middle value is always the best
masak well, those two units aren't fungible.
flussence rakudo: say "Moukeddar".split.uniq.join.chars 19:44
p6eval rakudo 248244: OUTPUT«No applicable candidates found to dispatch to for 'split'. Available candidates are:␤:(Mu : Regex $matcher, Any $limit = { ... }, Any :all($all);; *%_)␤:(Mu : Any $delimiter, Any $limit = { ... }, Any :all($all);; *%_)␤␤ in main program body at line 22:/tmp/w3g5q22gG0␤»
moritz flussence: try .comb
flussence I seem to have misplaced my clue today :)
masak btw, uniq isn't spec'd. maybe someone should spec it.
flussence rakudo: say "Moukeddar".comb.uniq.join.chars
p6eval rakudo 248244: OUTPUT«8␤»
masak I'm curious how the spec for uniq would read.
Moukeddar_ the one and the five?N
do you guys use mocking? 19:45
tadzik yes
masak oops, sorry. 9 characters wide. :)
Moukeddar_: I used it today at work.
Moukeddar_ pretty useful, but all the web is teaching you how to use existing libs , what if you wanted to make your own ? 19:46
masak Moukeddar_: I didn't use a lib. I just wrote the code I needed.
moritz Moukeddar_: www.youtube.com/watch?v=aAb7hSCtvGw
Moukeddar_ i as a try, i created a FakeRepository which implemented the IRepository , i guess that's the principle , right? 19:47
masak aye, sounds like a good start. 19:48
Moukeddar_ moritz, kisses and hugs to you
lue hello zebras o/
Moukeddar_ and the FakeRepository would return specific items/values i hard-coded
moritz Moukeddar_: that's a bit... over-enthusiastic
Moukeddar_ it's completely normal 19:49
moritz depends on the culture
Moukeddar_ i guess
masak lue: hello little panda 19:50
tadzik lue: o/ 19:51
masak yes, we don't have a kissbot ;)
Moukeddar_ you should have one
masak I'm not so sure...
we're pretty radical with the hugs already, compared to other channels. 19:52
tadzik i prefer hugs, especially when it comes to the male population
moritz same here
Moukeddar_ homophobic?
moritz a bit, yes
masak well, it's mostly a cultural thing.
Moukeddar_ lol 19:53
tadzik no, but heterosexual. I don't mind anyone doing anything, I'm speaking for myself
Moukeddar_ there's nothing wrong with hugs and kisses
tadzik I didn't say there is
moritz I don't mind either as long as no man tries to kiss me
masak "to kiss someone" is quite a wide phenomenon in English. could be anything from a peck to making out. 19:54
Moukeddar_ i kiss you = i love/like/respect you
masak or I'm the godfather.
lue masak: for some reason I thought your June 15 post would be about &chomp :) 19:55
Moukeddar_ hehe , you might
if you were they'd kiss your forehead
masak lue: oh! I didn't make the connection, even :P
wolverian I've been totally out of the loop when it comes to (#)perl6 for six months or so. anyone want to summarize what's happened? :>
tadzik ho ho ho : 19:56
:)
the new object model is almost there
the new module manager came around
masak wolverian! \o/
19:58 envi_laptop left
wolverian nom nom 19:58
sorear as opposed to the Spanish-speaking world, where "to kiss" doesn't necessarily have any romantic overtones 20:00
wolverian: the toy Perl 6 compiler I've been working on is starting to make waves 20:01
moritz niecza: say '~' x 10
p6eval niecza v6-167-g6cff873: OUTPUT«~~~~~~~~~~␤»
moritz ~\o/~
20:01 Moukeddar_ left
masak niecza++ 20:02
20:02 Moukeddar joined
wolverian I haven't thought of niecza as a toy :) 20:02
colomon rakudo: say prime ... 10
p6eval rakudo 248244: ( no output )
colomon yeah, that. where's the error? 20:03
niecza: say prime ... 10
p6eval niecza v6-167-g6cff873: OUTPUT«===SORRY!===␤␤Undeclared routine:␤ 'prime' used at line 1␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 469 (CORE die @ 2) ␤ at /home/p6eval/niecza/src/niecza line 185 (MAIN P6.comp_unit @ 30) ␤ at
../home/p6eval/niecza/sr…
sorear ( no output ) usually means segfault
colomon sorear: it's not segfaulting locally, rakudo just silently dies 20:04
20:04 Moukeddar left, birdwindupbird left
colomon and of course, that's totally not something that should make it segfault 20:04
20:06 Vlavv left, Vlavv joined
sorear Why does p6eval use a temporary file for output, moritz? 20:07
moritz sorear: because that seemed like the easiest way back then when I implemented it 20:09
sorear: no SIGPIPE, no deadlocks
moritz is pretty clueless about IPC
20:13 cooper joined 20:15 Vlavv_ joined, Vlavv left
wolverian huh. nom passes tests. 20:20
moritz yes, a few of them 20:21
20:26 benabik left
wolverian right, I was running just "make test" 20:27
lichtkind wolverian: cool to see you again
wolverian thanks!
masak wolverian: yeah, nice to have you back. hope things are good with you, too. 20:28
tadzik what, make test passes something on nom? 20:29
wolverian my local nom branch was accidentally tracking master. :) 20:30
20:31 M_o_C joined
masak that's cheating :) 20:31
20:31 thou joined
tadzik :) 20:31
wolverian masak: nice to be back. I have a full-time perl job now.
masak wolverian: congratulations! hope it's satisfying, too. 20:32
20:32 bluescreen10 left 20:33 thou left
wolverian it has been. 20:33
real nom passes some tests, yes. not all. :) 20:40
20:44 Aridai left 20:46 thou joined 21:00 ab5tract joined 21:01 jevin joined 21:11 ab5tract left 21:35 hercynium left 21:41 scottp joined 21:42 Psyche^ joined 21:45 Patterner left, Psyche^ is now known as Patterner 21:46 jjore left 21:51 molaf joined, donri left, donri joined 21:53 molaf left, Mowah left 21:59 Mowah joined 22:00 M_o_C left 22:03 spq1 left 22:16 Mowah left
sorear wanders back 22:36
wolverian: not a toy eh? :D
22:41 whiteknight joined 22:44 alester left
masak blog post! strangelyconsistent.org/blog/june-1...ubroutines 23:00
masak sleeps
'night, #perl6
23:01 whiteknight left, daniel-s joined 23:03 masak left 23:07 jt_ left, cdarroch left 23:09 jjore joined 23:11 whiteknight joined
Krunch perl6: say (2, 3, 1)>>.&sleep 23:16
p6eval pugs: OUTPUT«<Error><Error><Error>␤»
..niecza v6-167-g6cff873: OUTPUT«===SORRY!===␤␤Undeclared routine:␤ 'sleep' used at line 1␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 469 (CORE die @ 2) ␤ at /home/p6eval/niecza/src/niecza line 185 (MAIN P6.comp_unit @ 30) ␤ at
../home/p6eval/niecza/sr…
..rakudo 248244: OUTPUT«231␤»
TimToady given that no guarantees are made about threading hyperops, the best you can say is that it'll sleep from 3 to 6 seconds 23:24
and given that hyper specifically declares you don't care about side effect interactions, you won't get a better promise than that from Perl 6 23:26
hyper *does* guarantee to return the results in the original order though 23:27
Krunch i wasn't really hoping for more :)
TimToady so rakudo is correct there
the other failures were amusing :)
Krunch in p5 i ended up with perl -ne'fork&&sleep$_,print,last' 23:28
this is from dis.4chan.org/read/prog/1295544154 for people who didn't follow
sorear the niecza error is because somebody put token prefix:sleep { <sym> <O(%named_unary) } in the parser :) 23:29
23:29 am0c joined
sorear so... you want .&prefix:<sleep> 23:29
Krunch ah, thanks 23:30
TimToady perl6: say sleep«(2,3,1)
p6eval rakudo 248244: OUTPUT«===SORRY!===␤Confused at line 22, near "say sleep\x{ab}"␤»
..niecza v6-167-g6cff873: OUTPUT«Unhandled exception: Asynchronous programming NYI␤ at /home/p6eval/niecza/lib/CORE.setting line 570 (CORE die @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 1631 (CORE prefix:<sleep> @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 1407 (CORE hyperunary @
..56) ␤ at /home…
..pugs: OUTPUT«decodeUTF8': bad data: '\171'␤*** No such subroutine: "&sleep\194\171"␤ at /tmp/rDvwrLkrAz line 1, column 5 - line 2, column 1␤»
TimToady also amusing :) 23:31
perl6: say sleep<<(2,3,1)
p6eval rakudo 248244: OUTPUT«===SORRY!===␤Confused at line 22, near "say sleep<"␤»
..niecza v6-167-g6cff873: OUTPUT«Unhandled exception: Asynchronous programming NYI␤ at /home/p6eval/niecza/lib/CORE.setting line 570 (CORE die @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 1631 (CORE prefix:<sleep> @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 1407 (CORE hyperunary @
..56) ␤ at /home…
..pugs: OUTPUT«*** No such subroutine: "&sleep<<"␤ at /tmp/Yor66GwhT2 line 1, column 5 - line 2, column 1␤»
sorear oops 23:32
TimToady pretty nice traceback though 23:33
would be interesting to see a Haskell backend for niecza someday... 23:35
23:35 rafiot joined
sorear why? 23:35
TimToady we could have an up-to-date(r) pugs 23:36
and Haskell will be glad to tell us exactly why it's impossible :) 23:37
lichtkind TimToady: thanks for reacting and dont worry johan cleans up the latex mess after you :) 23:42
sorear is rewriting add_categorical to allow for is tigther 23:43
lichtkind cheers sorear 23:44
23:51 donri left
daniel-s about modules and packages 23:53
what I get now is that there is a definite hierarchy
it goes packages -> modules -> class
where the lower down you go, the more functionality you have, but it covers a narrower part of the code 23:54
...well, nobody has corrected me, so I must be correct, :) 23:55
23:56 rafiot left 23:57 Pathin left