Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2012-12-25

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:08 cognominal joined #perl6
00:15 abcxyz left #perl6
00:32 cognominal joined #perl6
00:57 cognominal joined #perl6
00:59 am0c_ joined #perl6
01:02 Chillance joined #perl6
01:03 cognominal_ joined #perl6
01:09 hypolin joined #perl6
01:19 cognominal_ joined #perl6
01:51 cognominal joined #perl6
01:53 sweet_kid joined #perl6
01:55 anuby joined #perl6
01:57 nyuszika7h joined #perl6
02:30 humbug joined #perl6
03:00 cognominal joined #perl6
03:11 timotimo joined #perl6
03:22 hypolin joined #perl6
03:31 hlin_laptop joined #perl6
03:45 steve____ joined #perl6
03:50 noggle_ joined #perl6
04:18 Pleiades` joined #perl6
04:50 hlin__ joined #perl6
04:57 odoacre joined #perl6
05:34 telex joined #perl6
05:36 cognominal joined #perl6
05:53 hypolin joined #perl6
06:04 cognominal joined #perl6
06:15 birdwindupbird joined #perl6
06:28 daniel-s_ joined #perl6
06:46 SamuraiJack joined #perl6
06:51 skids joined #perl6
06:53 cognominal joined #perl6
07:14 xinming_ joined #perl6
07:18 rummik joined #perl6
07:20 salparadise joined #perl6
07:24 anuby joined #perl6
07:29 cognominal joined #perl6
07:49 cognominal joined #perl6
08:40 GlitchMr joined #perl6
08:43 diakopter masak: back shortlog
09:18 kaare_ joined #perl6
09:41 Psyche^ joined #perl6
10:03 Woodi Happy Christmas for everyone here :)
10:19 sorear o/ Woodi
10:22 GlitchMr This shortlog is really short
10:29 Celelibi joined #perl6
11:08 moritz \o
11:08 moritz phenny: tell masak about http://www.perlmonks.org/?node_id=1010193 (question about p6cc t3)
11:08 phenny moritz: I'll pass that on when masak is around.
11:31 PacoAir joined #perl6
11:38 rummik joined #perl6
11:42 orafu joined #perl6
12:01 PacoAir_ joined #perl6
12:16 * jokar Merry Christmas
12:33 jokar joined #perl6
12:42 rindolf joined #perl6
13:02 nebuchadnezzar joined #perl6
13:03 spider-mario joined #perl6
13:11 PacoAir joined #perl6
13:37 MayDaniel joined #perl6
13:41 Chillance joined #perl6
14:53 GlitchMr joined #perl6
15:36 MayDaniel joined #perl6
15:41 GlitchMr rn: say e ** (pi * i)
15:41 p6eval rakudo c8de2e: OUTPUT«-1+1.22460635382238e-16i␤»
15:41 p6eval ..niecza v24-12-g8e50362: OUTPUT«-1+1.2246063538223773E-16i␤»
15:41 GlitchMr Close enough
15:41 GlitchMr Except imaginary part shouldn't exist.
15:42 moritz Mathematica has a Chop function to get rid of such small numbers
15:42 moritz (and of course symbolical calculations to not get there in the first place)
15:42 GlitchMr rn: say chop e ** (pi * i)
15:43 p6eval rakudo c8de2e: OUTPUT«-1+1.22460635382238e-16␤»
15:43 p6eval ..niecza v24-12-g8e50362: OUTPUT«-1+1.2246063538223773E-16␤»
15:43 GlitchMr Well, at least I don't have imaginary part anymore
15:51 cognominal joined #perl6
15:54 moritz thanks to all the Perl 6 advent authors
15:54 moritz we've had pretty good posts this year, IMHO
15:55 moritz and a baseline of about 400 views a day, and some notable spikes with ~2k views
15:56 tadzik 18th and 19th is curious
15:56 tadzik I wonder if 19th is just people from 18th catching up with reddit :P
16:01 moritz probably the tail from 18th spike
16:04 telex joined #perl6
16:16 tadzik yeah
16:20 rummik joined #perl6
16:24 cognominal thx
16:29 dalek doc: 7f27be4 | VZ++ | lib/Date.pod:
16:29 dalek doc: Correct day-of-week return value documentation.
16:29 dalek doc:
16:29 dalek doc: At least with the latest Rakudo day-of-week returns 7 for Sunday, not 0.
16:29 dalek doc: review: https://github.com/perl6/doc/commit/7f27be499c
16:29 dalek doc: 31748bc | (Konrad Borowski)++ | lib/Date.pod:
16:29 dalek doc: Merge pull request #11 from vadz/patch-1
16:29 dalek doc:
16:29 dalek doc: Correct day-of-week return value documentation.
16:29 dalek doc: review: https://github.com/perl6/doc/commit/31748bc98f
16:35 rindolf Hi all.
16:35 rindolf And Happy Christmas.
16:38 sftp joined #perl6
16:39 cognominal rindolf:  Happy Perlmas. we probably are in 1 BPE.   1 year Before Perl 6 Era.  :)
16:41 cognominal then, I don't know if we start to count from 0 or from 1.
16:42 rindolf cognominal: OK.
16:42 rindolf It's always 1 year before Perl 6 Era.
16:48 cognominal speaking of era, the ethernet era is not over yet, I need to buy an ethernet adaptator for my macbook
16:55 xenoterracide the last advent reminds me... I noticed a distinctive lack of 'last_day_of_month' options in the temporal modules... and Date couldn't take now() to mean today  (which, incidentally, also would make a better sane default than christmas )
16:56 moritz cognominal: not over by far. Ethernet allows you to do cool stuff like VLANs :-)
17:01 xenoterracide I ultimately would need last_day_of_month for credit card objects.
17:14 moritz xenoterracide: then implement it, spec it, test it
17:14 moritz and spell it with last-day-of-month instead :-)
17:36 cognominal joined #perl6
17:41 cognominal_ joined #perl6
17:44 dalek doc: 3b5dbf4 | isBEKaml++ | lib/Str.pod:
17:44 dalek doc: [doc] Add /some/ documentation for .subst
17:44 dalek doc: review: https://github.com/perl6/doc/commit/3b5dbf4ad7
17:52 spider-mario I think I may have found a parser bug in Rakudo
17:52 spider-mario (1, 2, 3 ==> map * * 2).perl
17:52 spider-mario oops
17:52 spider-mario r: (1, 2, 3 ==> map * * 2).perl
17:52 p6eval rakudo c8de2e:  ( no output )
17:53 spider-mario r: (1, 2, 3 ==> map * * 2).perl.say
17:53 p6eval rakudo c8de2e: OUTPUT«(2, 4, 6).list␤»
17:53 spider-mario r: any(2, 4, 6).perl.say
17:53 p6eval rakudo c8de2e: OUTPUT«any(2, 4, 6)␤»
17:53 spider-mario r: any(1, 2, 3 ==> map * * 2).perl.say
17:53 p6eval rakudo c8de2e: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Unable to parse expression in argument list; couldn't find final ')'â�¤at /tmp/3KE2uTvSmA:1â�¤------> [32many(1, 2, 3 [33mâ��[31m==> map * * 2).perl.say[0mâ�¤    expecting any of:â�¤        postfixâ�¤        infix or meta-infixâ�¤        infix …
17:53 timotimo so, Adventure::Engine exists, would i call mine Cardgame::Engine?
17:53 moritz std: any(1, 2, 3 ==> map * * 2).perl.say
17:53 p6eval std a8bc48f: OUTPUT«[31m===[0mSORRY![31m===[0m�Unable to parse argument list at /tmp/AScLK2x9jy line 1:�------> [32many[33m�[31m(1, 2, 3 ==> map * * 2).perl.say[0m�Couldn't find final ')'; gave up at /tmp/AScLK2x9jy line 1:�------> [32many(1, 2, 3 [33m�[31m==> map * * 2).perl…
17:53 spider-mario oh.
17:54 spider-mario how come?
17:54 moritz std: 1, 2, 3 ==> map * * 2
17:54 timotimo oh, are feed operators supposed to work like that?
17:54 p6eval std a8bc48f: OUTPUT«ok 00:00 43m␤»
17:54 moritz maybe not inside argument lists?
17:54 timotimo r: any((1, 2, 3 ==> map * * 2)).perl.say
17:54 moritz I have no idea
17:54 p6eval rakudo c8de2e: OUTPUT«any(2, 4, 6)␤»
17:54 timotimo that works.
17:55 timotimo std: any(1, 2, 3 ==> map * * 2).perl.say
17:55 p6eval std a8bc48f: OUTPUT«[31m===[0mSORRY![31m===[0m�Unable to parse argument list at /tmp/kaFdWNHGja line 1:�------> [32many[33m�[31m(1, 2, 3 ==> map * * 2).perl.say[0m�Couldn't find final ')'; gave up at /tmp/kaFdWNHGja line 1:�------> [32many(1, 2, 3 [33m�[31m==> map * * 2).perl…
17:55 timotimo yeah, just add more parens and it'll work
18:00 dalek doc: 4f6552b | moritz++ | lib/Str.pod:
18:00 dalek doc: [Str] subst documentation to the style usually used here
18:00 dalek doc:
18:00 dalek doc: * move to section Methods. It is a method after all
18:00 dalek doc: * add a signature
18:00 dalek doc: * add a small amount of formal description
18:00 dalek doc: review: https://github.com/perl6/doc/commit/4f6552be79
18:01 marloshouse joined #perl6
18:01 cognominal joined #perl6
18:10 FROGGS_ joined #perl6
18:17 cognominal joined #perl6
18:17 pmurias joined #perl6
18:17 pmurias hi
18:18 pmurias jnthn: is there a way to attach info to objects that survives compiling to a .pbc?
18:19 LlamaRider joined #perl6
18:19 LlamaRider left #perl6
18:20 LlamaRider joined #perl6
18:30 pmurias timotimo: if you want to use nqp-js for your card game I could work on making nqp-js emit javascript suitable for client side use
18:31 timotimo pmurias: i give you about half a year to make it to the first usable prototype of that feature :)
18:32 dalek doc: 4b715a9 | moritz++ | lib/Str.pod:
18:32 dalek doc: [Str] implement adverbs for .subst
18:32 dalek doc: review: https://github.com/perl6/doc/commit/4b715a979d
18:32 AndChat|356841 joined #perl6
18:32 moritz pmurias: can you give a short overview of what nqp-js supports?
18:33 moritz control flow? objects? bigints? grammars?
18:36 GlitchMr joined #perl6
18:38 moritz huh, why do (nearly) all the links on doc.perl6.org have curly braces around them?
18:44 mst beecause they're block links
18:49 cognominal mst, what is a block link?
18:50 * mst cries
18:50 noggle joined #perl6
18:54 cognominal my compassion to mst does not help me much to understand what is a block link.
18:57 mst moritz was asking why the doc.perl6.org links all say {link}
19:03 cognominal mst: you think you are joking about Perl but there is indeed something named a block link in html5. http://simplyaccessible.com​/article/html5-block-links/    Like always dropping some context can help. You think you are smart, you act  condescendant, and you come out as plain ignorant.
19:04 mst I made a pun based on the {} - it wouldn't've been a good pun if there wasn't such a thing as a block link
19:04 lolage joined #perl6
19:05 cognominal I would be reductionnist if I said I just came with a good mst characterisation.  :)
19:06 mst I was trying to avoid murdering a bad joke by explaining it; if you can manage to make people see the pun without fully explaining it then it's bad manners not to at least try
19:08 mst "dropping some context" doesn't work for puns, it kills them stone dead
19:09 cognominal thar art is about dropping enough context but not too much.
19:11 mst which I did, the second time you asked for a hint
19:11 cognominal s/that/the/
19:11 pmurias moritz: control flow,objects,grammar no bigints yet
19:12 pmurias * grammars
19:13 pmurias moritz: the grammars support is very partial
19:13 mst then for some reason you decided to start insulting me, which I'm ignoring because #perl6 prefers to err on the side of politeness
19:13 mst and that's an important thing about the culture in here, so  you'll find people who've been around for a while try their best to follow it
19:18 pmurias moritz: the object support will be much better once I figure out a sane way of having a setting in nqp, and I can reuse the how's
19:28 FROGGS_ joined #perl6
19:30 cognominal joined #perl6
19:30 cognominal joined #perl6
19:31 moritz mst: thanks for the block links hint
19:31 mst moritz: it was a terrible pun!
19:31 mst moritz: I've no idea other than that :(
19:31 moritz dammit :(
19:32 moritz probably some toolchain fuckup
19:32 mst or "somebody thought they'd be pretty that way"
19:32 mst I just thought that clearly a link with {} round it must be a block link
19:34 moritz seems to be a Pod::To::HTML thing
19:35 moritz r: my $x = 42; say qq{<a href="example.com">{$text}</a>}
19:35 p6eval rakudo c8de2e: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Variable $text is not declaredâ�¤at /tmp/XJcwiGoQ8x:1â�¤------> [32m 42; say qq{<a href="example.com">{$text[33mâ��[31m}</a>}[0mâ�¤    expecting any of:â�¤        postfixâ�¤Â»
19:35 moritz r: my $x = 42; say qq{<a href="example.com">{$x}</a>}
19:35 p6eval rakudo c8de2e: OUTPUT«<a href="example.com">{42}</a>␤»
19:35 moritz n: my $x = 42; say qq{<a href="example.com">{$x}</a>}
19:35 p6eval niecza v24-12-g8e50362: OUTPUT«<a href="example.com">{42}</a>␤»
19:35 moritz erm, is that correct?
19:36 moritz rn: my $x = 42; say qq[<a href="example.com">{$x}</a>]
19:36 p6eval rakudo c8de2e, niecza v24-12-g8e50362: OUTPUT«<a href="example.com">42</a>␤»
19:37 moritz anyway, that's the reason for the curly braces
19:37 moritz old rakudo parsed the quotes differently
19:41 FROGGS joined #perl6
19:43 cognominal joined #perl6
19:44 Tim-Tom Is the precedence of the set operators intended to be lower than that of assignment?
19:44 Tim-Tom r: my $a = set(<a b>) (-) set(<b c>); say $a
19:44 p6eval rakudo c8de2e: OUTPUT«set(a, b)␤»
19:45 FROGGS hi there
19:45 Tim-Tom Hi :)
19:46 moritz no
19:46 Tim-Tom r: my $a = (set(<a b>) (-) set(<b c>)); say $a # in case it wasn't clear what was going on
19:46 p6eval rakudo c8de2e: OUTPUT«set(a)␤»
19:46 moritz but nobody really knows what the correct precedence is :(
19:46 moritz otherwise I would have fixed it
19:46 cognominal I forgot what is the difference between $() and ()     :(
19:46 moritz https://github.com/perl6/specs/issues/25
19:46 moritz cognominal: $() is item context
19:46 Tim-Tom Well I recommend tighter than assignment because I spent a good 15 minutes debugging it :)
19:47 FROGGS Tim-Tom: I like this one, but I dont know if it 100% accurate: http://www.ozonehouse.com/mark/periodic/
19:47 FROGGS dont know if it covers it though
19:48 Tim-Tom Set operators were created after that table was created
19:49 FROGGS ahh, k
19:50 GlitchMr joined #perl6
19:51 cognominal moritz: I understand that context can act on a value and returns another one, but I don't get the meaning of a value with context.
19:51 moritz cognominal: it just puts a value into a scalar container
19:52 moritz r: my $count = 0; $count++ for 1, 2, 3; say $count
19:52 p6eval rakudo c8de2e: OUTPUT«3␤»
19:52 moritz r: my $count = 0; $count++ for $(1, 2, 3); say $count
19:52 p6eval rakudo c8de2e: OUTPUT«1␤»
19:52 cognominal moritz++
19:53 cognominal I feel I have already tripped on that one. I am a slow learner.
20:09 diakopter cognominal: I corrected a man's two puns (which he phrased as questions), which I only later realized were puns. :<
20:09 diakopter two nights ago
20:14 LlamaRider joined #perl6
20:21 timotimo pmurias: do you have an estimation when nqp-js will be somewhat useful for front-end javascript work for browser/DOM scripting?
20:22 timotimo i suppose there could be nqp modules to make using jquery or canvas or what ever exists in that shiny, strange and foreign world of JS in the browser ...
20:23 timotimo ... easier.
20:28 pmurias timotimo: that depends on the definition of somewhat useful
20:28 timotimo because i quite don't know what i'm doing when it comes to HTML and JS. so you don't have to hurry anyway. or expect greatnes :D
20:29 pmurias timotimo: it's far away from making things easier then with plain js (which I think would require rakudo-js)
20:29 timotimo so maybe i'd use something else instead?
20:30 pmurias but I think I could get something usable for simple thing by tommorow ;)
20:30 pmurias timotimo: js+jquery seems the simplest thing
20:31 timotimo there's lots of higher level languages that 'compile' to js. maybe i'd try one of those. i thought perhaps nqp-js would be somewhat similar
20:31 timotimo but i see the design goal is something different
20:33 pmurias timotimo: why do you want to use a language that compiles to js?
20:34 pmurias timotimo: making things easier?
20:34 timotimo well, js in a browser seems to me the closest i get to a GU-like Interface without having to learn to use niecza and GTK#
20:35 pmurias and you want to use Perl 6?
20:35 timotimo oh, that is the question? yes, i'd like things to be easier, because i'ven't ever done js+html properly before
20:36 timotimo and since this is a "learn perl6! yaaaay" project, and at the same time you talked about nqp-js, so i thought maybe there's some use ni that
20:37 timotimo anyway, it's about bedtime for me, so i'll better get going. have a good *, everyone :)
20:37 colomon joined #perl6
20:37 pmurias good night
21:04 quester joined #perl6
21:19 hash_table joined #perl6
21:21 LlamaRider joined #perl6
21:26 colomon joined #perl6
21:29 rummik joined #perl6
21:29 geekosaur joined #perl6
21:34 MayDaniel joined #perl6
21:55 cognominal diakopter,  :)
22:09 Ayiko joined #perl6
22:26 rking joined #perl6
22:37 whiteknight joined #perl6
22:40 lolage joined #perl6
22:49 fgomez joined #perl6
22:51 masak good almost-midnight, #perl6 :)
22:51 phenny masak: 11:08Z <moritz> tell masak about http://www.perlmonks.org/?node_id=1010193 (question about p6cc t3)
22:51 masak I see I have some backlogging to do.
22:53 fgomez joined #perl6
22:57 masak moritz: I replied. http://www.perlmonks.org/?node_id=1010291
23:00 Khisanth joined #perl6
23:12 cognominal joined #perl6
23:23 felher good slightly-past-midnight, masak.
23:30 masak o/
23:37 tadzik hi hi
23:46 sorear o/
23:46 sorear merry 25th to y'all.
23:52 rummik joined #perl6
23:56 masak happy Newtonmas.
23:56 masak (though here it's already tomorrow)
23:59 flussence it's today here for 5 more seconds

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo