Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-07-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:03 cyphase joined #perl6
00:08 itaipu joined #perl6
00:11 perlawhirl joined #perl6
00:25 colomon_ joined #perl6
00:25 AndyBotwin joined #perl6
00:26 dalek bisectbot: 4e7fb7d | (Daniel Green)++ | benchable.pl:
00:26 dalek bisectbot: Correctly convert between short and long commits when "zooming"
00:26 dalek bisectbot: review: https://github.com/perl6/b​isectbot/commit/4e7fb7d18a
00:33 perlawhirl exit
00:38 MasterDuke commit: 2016.01.1 say 'broken?'
00:38 committable MasterDuke: ¦«2016.01»: No build for this commit
00:38 AlexDaniel it's not really broken, there's just no build :D
00:41 BillSussman joined #perl6
00:46 awwaiid Aug 5-7 is the 2016 ICFP Contest, a marathon programming challenge that was initially designed to show off new programming languages. This will be my 11th year participating, and possibly my first in which I use some Perl 6 (my teams tend to be very polyglot). http://icfpc2016.blogspot.jp/
00:48 awwaiid I'm taking Aug 5 off of work, and at least one local friend is joining me. You can do this contest from anywhere, with any sized team. The prize for the winning team is typically "programming language X is the programming tool of choice for discriminating hackers"
00:50 finanalyst joined #perl6
01:02 Herby_ joined #perl6
01:02 Herby_ Evening, everyone!
01:02 Herby_ \o
01:03 TimToady o/
01:03 timotimo o/ herby
01:03 timotimo and now i'm going to bed
01:04 Herby_ Good night!
01:04 AlexDaniel 〰o〰
01:11 dalek bisectbot: e165681 | (Daniel Green)++ | / (2 files):
01:11 dalek bisectbot: Remove 2016.01 from the list of releases because there's no build for it and add 'releases' as an option for committable
01:11 dalek bisectbot: review: https://github.com/perl6/b​isectbot/commit/e16568128d
01:12 AlexDaniel :O
01:12 AlexDaniel m: say 0, 1, &[+] ... 987
01:12 camelia rakudo-moar 957dc0: OUTPUT«(0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987)␤»
01:13 AlexDaniel TimToady: actually, one can argue that this one ↑ is the most readable out of all
01:13 AlexDaniel m: say 0, 1, [+] ... 987
01:13 camelia rakudo-moar 957dc0: OUTPUT«987␤  in any  at /home/camelia/rakudo-m-inst-1/share​/perl6/runtime/CORE.setting.moarvm line 1␤  in block <unit> at <tmp> line 1␤␤»
01:13 AlexDaniel /o\
01:14 TimToady that's a reduce
01:15 AlexDaniel sure, I just don't like when something is screaming about CORE.setting :) But it did print the actual line number so it's ok
01:16 TimToady ... is a fail
01:16 TimToady m: say 0, 1, [+] fail 987
01:16 camelia rakudo-moar 957dc0: OUTPUT«987␤  in any  at /home/camelia/rakudo-m-inst-1/share​/perl6/runtime/CORE.setting.moarvm line 1␤  in block <unit> at <tmp> line 1␤␤»
01:18 * geekosaur sees what happened there... but boy is that LTA
01:19 TimToady I don't see any way to fix it
01:20 TimToady you use ... where a term is expected, that's what you get
01:21 TimToady m: say 0, 1, ... 987
01:21 camelia rakudo-moar 957dc0: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Comma found before apparent series operator; please remove comma (or put parens␤    around the ... listop, or use 'fail' instead of ...)␤at <tmp>:1␤------> 3say 0, 1,7⏏5 ... 987␤»
01:21 TimToady we do catch this one, but that's much more common
01:38 mohae joined #perl6
01:38 jcallen joined #perl6
01:39 dalek ecosystem: bf5d2dc | ugexe++ | META.list:
01:39 dalek ecosystem: Add Distribution::Common::Remote
01:39 dalek ecosystem:
01:39 dalek ecosystem: https://github.com/ugexe/Perl6​-Distribution--Common--Remote
01:39 dalek ecosystem:
01:39 dalek ecosystem: Extends Distribution::Common's installable distributions to common *remote* data sources using rakudos new `Distribution` interface. Includes a `Distribution::Common::Remote::Github`
01:39 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/bf5d2dc685
01:45 kalkin- joined #perl6
01:46 AndyBotwin joined #perl6
01:49 Eddward joined #perl6
01:50 Eddward rakudo: [1,2,4 ... *].perl.say
01:50 camelia rakudo-moar 957dc0: OUTPUT«Cannot .elems a lazy list␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
01:51 Eddward rakudo: [1,2,4 ... *][1..5].perl.say
01:51 camelia rakudo-moar 957dc0: OUTPUT«(2, 4, 8, 16, 32)␤»
01:51 gfldex m: my $longlist := 1,2,4 ... *; say $longlist.WHAT;
01:51 camelia rakudo-moar 957dc0: OUTPUT«(Seq)␤»
01:51 gfldex m: my $longlist := 1,2,4 ... *; say $longlist.perl;
01:51 camelia rakudo-moar 957dc0: OUTPUT«Cannot .elems a lazy list␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
01:52 Eddward rakudo: [1,2,4 ... *][1..(8**2)].perl.say
01:52 camelia rakudo-moar 957dc0: OUTPUT«(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 171…»
01:52 Eddward rakudo: ([+] ([1,2,4 ... *][1..(8**2)]) ).perl.say
01:52 camelia rakudo-moar 957dc0: OUTPUT«36893488147419103230␤»
01:52 gfldex m: my \longlist = 1,2,4 ... *; say &longlist.perl;
01:52 camelia rakudo-moar 957dc0: OUTPUT«Nil␤»
01:54 Eddward rakudo: ( ([+] ([1,2,4 ... *][1..(8**2)]) )/ 100).perl.say
01:54 camelia rakudo-moar 957dc0: OUTPUT«368934881474191032.3␤»
01:54 ugexe m: /msg camelia m: .say for 1..*
01:54 camelia rakudo-moar 957dc0: OUTPUT«5===SORRY!5===␤Regex not terminated.␤at <tmp>:1␤------> 3/msg camelia m: .say for 1..*7⏏5<EOL>␤Unable to parse regex; couldn't find final '/'␤at <tmp>:1␤------> 3/msg camelia m: .say for 1..*7⏏5<EOL>␤    expecting any of:␤  …»
02:02 Eddward Nice that the language easily handles absurdly large numbers.
02:05 AlexDaniel m: say 36893488147419103230
02:05 camelia rakudo-moar 957dc0: OUTPUT«36893488147419103230␤»
02:05 colomon joined #perl6
02:05 AlexDaniel m: say 2⁶⁴
02:05 camelia rakudo-moar 957dc0: OUTPUT«18446744073709551616␤»
02:05 AlexDaniel well, it is just a little bit large
02:07 AlexDaniel m: say 2⁴⁰⁹⁶ # now we are talking
02:07 camelia rakudo-moar 957dc0: OUTPUT«10443888814131525066917527107166243825​799642490473837803842334832839539079715574568​488268119349975583408901067144392628379875734​381857936072632360878513652779459569765437099​983403615901343837183144280700118559462263763​18839397712745672334684344586617496807…»
02:07 AlexDaniel commit HEAD say 2⁴⁰⁹⁶ # now we are talking
02:07 committable AlexDaniel: https://gist.github.com/a57e​82657cef83ab15eacd1d41b4664b
02:07 gfldex m: say (2⁴⁰⁹⁶).chars
02:07 camelia rakudo-moar 957dc0: OUTPUT«1234␤»
02:07 gfldex :)
02:18 Herby_ question: if I was curious to see what the perl 6 'permutations' algorithm looks like, how would I see it?
02:19 Herby_ I was trying to write my own but I know it won't be anywhere near as quick
02:19 ugexe cd rakudo && git grep "method permutation"
02:19 Herby_ hmm. I'm on a windows box and don't have git installed
02:20 ugexe probably just use `method permutations` on the web search
02:20 gfldex Herby_: you can search a repo on github
02:20 Herby_ ok thanks, I'll take a look
02:21 Herby_ https://github.com/perl6/roast/issues/79
02:21 Herby_ ?
02:22 gfldex Herby_: it's at the bottom of src/core/operators.pm
02:23 Herby_ thanks
02:25 dalek doc: 6218b1b | (Tom Browder)++ | doc/Language/variables.pod6:
02:25 dalek doc: desperation try
02:25 dalek doc: review: https://github.com/perl6/doc/commit/6218b1b1d3
02:27 tbrowder joined #perl6
02:30 cdg joined #perl6
02:42 noganex joined #perl6
02:50 dmitri joined #perl6
02:52 colomon joined #perl6
02:56 kaare__ joined #perl6
03:04 Xliff .tell FROGGS Finished with 07dtd in XML::LibXML, but this one was ugly. I will be going over some of the issues this week, and hope to get a PR to you around the start of Aug.
03:04 yoleaux Xliff: I'll pass your message to FROGGS.
03:09 cyphase joined #perl6
03:10 GNUYawk joined #perl6
03:11 skids joined #perl6
03:13 skids joined #perl6
03:14 skids joined #perl6
03:23 Tonik joined #perl6
03:23 scotl joined #perl6
03:23 canopus joined #perl6
03:24 skids joined #perl6
03:26 scotl Hi. I have a script (p6) that loads %a = "file".IO.lines.map: { m/..../; $0 => True }. sub MAIN(Str $b) { say $a<$b>:exists; } says False for a key that according to %a.perl exists... Is there a 'gotcha' I've missed?
03:27 scotl This is under windows, rakudo star 2016.07
03:28 gfldex scotl: did you mean say $a<<$b>>:exists; ?
03:28 gfldex or say $a{$b}:exists; for that matter
03:28 skids joined #perl6
03:28 scotl Sorry, I meant to type "%a<$b>:exists"
03:28 geekosaur <> acts like single quotes in that there is no interpolation
03:29 geekosaur you wanted << >> or { }
03:29 geekosaur probably the latter because the angle brackets do word splitting
03:29 scotl Thankyou geekosaur
03:30 jack_rabbit joined #perl6
03:30 scotl I wanted { }
03:30 skids joined #perl6
03:31 molaf joined #perl6
03:32 skids joined #perl6
03:34 dalek doc: dcea15d | (Tom Browder)++ | doc/Language/variables.pod6:
03:34 dalek doc: remove confiusing row separator lines
03:34 dalek doc: review: https://github.com/perl6/doc/commit/dcea15d195
03:34 skids joined #perl6
03:37 djbkd_ joined #perl6
03:49 AlexDaniel tbrowder: confusing for the parser, right? :)
03:55 TEttinger joined #perl6
03:57 konobi .tell pmurias are the json files that nqp-loader reads newline delimited?
03:57 yoleaux konobi: I'll pass your message to pmurias.
04:01 labster joined #perl6
04:12 kurahaupo joined #perl6
04:22 Zoffix joined #perl6
04:24 dalek doc: 78eed14 | 0racle++ | doc/Type/List.pod6:
04:24 dalek doc: Correct output of permutations sub
04:24 dalek doc: review: https://github.com/perl6/doc/commit/78eed14e5b
04:24 dalek doc: d9d512a | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/List.pod6:
04:24 dalek doc: Merge pull request #757 from 0racle/0racle-permutations
04:24 dalek doc:
04:24 dalek doc: Correct output of permutations sub
04:24 dalek doc: review: https://github.com/perl6/doc/commit/d9d512a77d
04:28 Zoffix If I have a list of Callables each of which mutates a variable and may or may not return a Promise, is there a way to iterate over them without blocking and `await`ing anything (calling a Callable that doesn't return a Promise isn't considered blocking)?
04:28 Zoffix m: my $text = 'foobar'; $text = $_($text) for *.subst(/o/, 'A'), *.subst(/a/,'Z'), *.subst(/r/, 'M'); say $text
04:28 camelia rakudo-moar 550040: OUTPUT«fAobZM␤»
04:28 Zoffix ^ basically that, except some of the callables return a Promise.
04:28 lizmat grep(Promise) ?
04:29 Zoffix They have to be done in order.
04:29 lizmat await @callables.grep(Promise)
04:30 lizmat await @callables.>>().grep(Promise)
04:31 lizmat await @callables>>.().grep(Promise)
04:31 Zoffix Hm
04:31 lizmat m: { say "foo" }.()  # use of .()
04:31 camelia rakudo-moar 550040: OUTPUT«foo␤»
04:32 Zoffix That won't guarantee order. When a Promise is returned, the thing needs to queue any further Callables until the Promise is kept.
04:32 lizmat m: ({ say "foo" },{say "bar"})>>.()
04:32 camelia rakudo-moar 550040: OUTPUT«foo␤bar␤»
04:32 lizmat ah, yes, ok
04:32 Zoffix I was gonna write a module doing it the long way. Just wanted to check I'm not missing any obvious short way.
04:33 lizmat await @callables>>.().grep({ $_ ~~ Promise && Promise.result })
04:33 lizmat but that won't fix the inherit non-lineairness of >>
04:33 lizmat await @callables>>.().grep({ $_ ~~ Promise && .result })
04:34 * Zoffix tries to wrap head around that
04:35 lizmat perhaps a grep :x adverb, which would first do $_ = $_() and then use that value to check ?
04:36 Zoffix TIL grep has adverbs :o
04:43 Zoffix m: my @callables = *.subst(/o/, 'A'), -> $v { start { sleep 2; $v.subst(/A/,'Z') }; }, *.subst(/r/, 'M'); my $text = 'foobar'; for @callables {  my $r = $_($text); unless $r ~~ Promise { $text = $r; next };  $text = await $r  }; say $text
04:43 camelia rakudo-moar 550040: OUTPUT«fZobaM␤»
04:45 Zoffix The second half of it is tossing `await` and instead shooting off a new Promise inside of which the callable calls will continue. Basically the equivalent of wrapping the whole thing in `start {}` but doing so only if at least one Callable returns a Promise.
04:48 Zoffix use Callable::Chained;  my $text = 'foobar'; do-chained @callables, \($text), { say $text }; # plan so far
04:50 Zoffix Shit, it's 1AM :o
04:51 Cabanossi joined #perl6
04:51 finanalyst joined #perl6
05:21 cibs joined #perl6
05:29 s34n joined #perl6
05:30 CIAvash joined #perl6
05:30 s34n where is the regex ~ documented? as in '(' ~ ')'
05:31 cibs joined #perl6
05:38 ufobat joined #perl6
05:38 ufobat good morning
05:39 holyghost gm
05:40 holyghost .tell holyghost "Lt Commander Paris speaking"
05:40 yoleaux holyghost: Talking to yourself is the first sign of madness.
05:41 Zoffix s34n, probably somewhere on this page: https://docs.perl6.org/language/regexes     /'(' ~ ')' \d+/ is the same as /'(' \d+ ')'/
05:42 Zoffix It's supposed to give better something (error messages? failed matches? grammar tracing? something or other)
05:42 holyghost .tell holyghost "I can't do that"
05:42 yoleaux holyghost: Talking to yourself is the first sign of madness.
05:42 holyghost ok, mad bitch beer then :-)
05:42 Zoffix FFS... Rewrote my module to avoid broken LWP::Simple to use HTTP::UserAgent.... Just to find out HTTP::UserAgent is broken when cookies are involved ~_~
05:43 Zoffix (Perl 6 Ecosystem)--
05:44 Zoffix Seems the only other alternative is HTTP::Tinyish... but it's just shelling out to curl :/
05:44 Zoffix (╯°□°)╯︵ ┻━┻
05:45 s34n m: token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> <-[<.quote>]>* }; say ('"hello"' ~~ quoted);
05:45 camelia rakudo-moar c2ae91: OUTPUT«5===SORRY!5===␤Undeclared routine:␤    quoted used at line 1␤␤Other potential difficulties:␤    Useless declaration of a has-scoped method in mainline (did you mean 'my token quote'?)␤    at <tmp>:1␤    ------> 3token 7⏏5quote { <!af…»
05:46 s34n m: token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> <-[<.quote>]>* }; say ('"hello"' ~~ /<quoted>/);
05:46 camelia rakudo-moar c2ae91: OUTPUT«Potential difficulties:␤    Useless declaration of a has-scoped method in mainline (did you mean 'my token quote'?)␤    at <tmp>:1␤    ------> 3token 7⏏5quote { <!after \\> '"' }; token quoted ␤    Useless declaration of a has-scoped method i…»
05:46 s34n m: my token quote { <!after \\> '"' }; my token quoted { <.quote> ~ <.quote> <-[<.quote>]>* }; say ('"hello"' ~~ /<quoted>/);
05:46 camelia rakudo-moar c2ae91: OUTPUT«Method 'quote' not found for invocant of class 'Cursor'␤  in regex quoted at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
05:48 Zoffix m: my token quote { <!after \\> '"' }; my token quoted { <quote> ~ <quote> <-<quote>>* }; say ('"hello"' ~~ /<quoted>/);
05:48 camelia rakudo-moar c2ae91: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ~ (must be quoted to match literally)␤at <tmp>:1␤------> 3; my token quoted { <quote> ~ <quote> <-7⏏5<quote>>* }; say ('"hello"' ~~ /<quoted>␤Malformed regex␤at <tmp>:1␤------> 3; my to…»
05:48 Zoffix :/
05:50 Zoffix m: my token quote { <!after \\> '"' }; my token quoted { <quote> ~ <quote> <-quote>* }; say ('"hello"' ~~ /<quoted>/);
05:50 camelia rakudo-moar c2ae91: OUTPUT«Method 'quote' not found for invocant of class 'Cursor'␤  in regex quoted at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
05:50 Zoffix m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <quote> ~ <quote> <-quote>* }; }.parse('"hello"').say
05:50 camelia rakudo-moar c2ae91: OUTPUT«「"hello"」␤ quoted => 「"hello"」␤  quote => 「"」␤  quote => 「"」␤»
05:51 zacts joined #perl6
05:51 Zoffix m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <quote> ~ <quote> <-quote>* }; }.parse('"he\\"llo"').say
05:51 camelia rakudo-moar a0161a: OUTPUT«「"he\"llo"」␤ quoted => 「"he\"llo"」␤  quote => 「"」␤  quote => 「"」␤»
05:53 Zoffix Oh, nm,  I forgot to instantiate HTTP::UserAgent
05:54 * Zoffix de-rages
05:54 s34n m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> <-quote>* }; }.parse('"hello"').say
05:54 camelia rakudo-moar a0161a: OUTPUT«「"hello"」␤ quoted => 「"hello"」␤»
05:54 s34n m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> <-.quote>* }; }.parse('"hello"').say
05:54 camelia rakudo-moar a0161a: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ~ (must be quoted to match literally)␤at <tmp>:1␤------> 3}; token quoted { <.quote> ~ <.quote> <-7⏏5.quote>* }; }.parse('"hello"').say␤Malformed regex␤at <tmp>:1␤------> 3}; token quot…»
05:54 s34n m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> -<.quote>* }; }.parse('"hello"').say
05:54 camelia rakudo-moar a0161a: OUTPUT«5===SORRY!5===␤Unrecognized regex metacharacter ~ (must be quoted to match literally)␤at <tmp>:1␤------> 3"' }; token quoted { <.quote> ~ <.quote>7⏏5 -<.quote>* }; }.parse('"hello"').say␤Malformed regex␤at <tmp>:1␤------> 3' }; token…»
05:55 Zoffix s34n, the dot goes after the <
05:55 s34n m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> <-[<.quote>]>* }; }.parse('"hello"').say
05:55 camelia rakudo-moar a0161a: OUTPUT«Nil␤»
05:55 Zoffix m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <.quote> ~ <.quote> <.-quote>* }; }.parse('"hello"').say
05:55 camelia rakudo-moar a0161a: OUTPUT«「"hello"」␤ quoted => 「"hello"」␤»
05:55 dingusman joined #perl6
05:55 Zoffix m: grammar { token TOP { <quoted> }; token quote { <!after \\> '"' }; token quoted { <quote> ~ <quote> <-quote>* }; }.parse('"hello"').Str.say
05:55 camelia rakudo-moar a0161a: OUTPUT«"hello"␤»
05:55 s34n hm. I tried that locally
05:58 s34n Zoffix: https://gist.github.com/anonymous​/5f6d2a61fbd8cceba65a02f74d77b342 hangs for me
05:59 Zoffix s34n, add use Grammar::Tracer and see what it's doing
05:59 Zoffix My wild guess would be it's chilling out here: https://gist.github.com/anonymous/5f6d2a61fbd​8cceba65a02f74d77b342#file-gistfile1-txt-L13
05:59 Zoffix The `.*`
06:00 Zoffix Maybe, dunno./
06:01 s34n Zoffix: good guess
06:02 s34n I just read that perl6 has predefined <lt> and <gt>
06:03 wamba joined #perl6
06:03 Zoffix :o
06:09 Zoffix m: my @c = -> $ { say 42 }; dd @c.grep: { .signature ~~ \(42) }
06:09 camelia rakudo-moar a0161a: OUTPUT«().Seq␤»
06:10 Zoffix m: my @c = -> $ { say 42 }; dd @c.grep: { \(42) ~~ .signature }
06:10 camelia rakudo-moar a0161a: OUTPUT«Method 'signature' not found for invocant of class 'Capture'␤  in block <unit> at <tmp> line 1␤␤»
06:10 Zoffix This is kinda LTA
06:10 Zoffix m: my @c = -> $ { say 42 }; dd @c.grep: { my $v = $_; \(42) ~~ $v.signature }
06:10 camelia rakudo-moar a0161a: OUTPUT«(-> $ { #`(Block|67212688) ... },).Seq␤»
06:10 Zoffix m: my @c = -> $ { say 42 }; dd @c.grep: { .signature.ACCEPTS: \(42) }
06:10 camelia rakudo-moar a0161a: OUTPUT«(-> $ { #`(Block|84889984) ... },).Seq␤»
06:10 Zoffix ¯\_(ツ)_/¯
06:11 ontheroadagain joined #perl6
06:11 ontheroadagain hey people!
06:11 Zoffix \o
06:11 ontheroadagain o/
06:12 ontheroadagain spent all day making a logo today wanna see
06:13 Zoffix Um.. sure
06:13 ontheroadagain tell me what you think
06:13 ontheroadagain (removed)
06:13 ontheroadagain its perl related
06:13 Zoffix Fuck's sake
06:13 Zoffix Child porn. Don't click.
06:14 Zoffix mst, are you around?
06:14 Zoffix eww
06:14 GNUYawk -_-
06:14 cibs joined #perl6
06:15 GNUYawk lesson learned: dont click links from people who just joined the channel
06:16 lizmat .tell moritz you may want to redact a line in the backlog by ontheroadagain a few minutes ago
06:16 yoleaux lizmat: I'll pass your message to moritz.
06:17 moritz removed
06:17 yoleaux 06:16Z <lizmat> moritz: you may want to redact a line in the backlog by ontheroadagain a few minutes ago
06:18 moritz has anybody contacted imgur?
06:18 lizmat not that I know
06:18 GNUYawk you guys really think that looks like cp? doesnt look like it to me
06:19 Zoffix The kid looks around 12 to me...
06:19 GNUYawk weird. not to me
06:20 lizmat in any case, ontheroadagain was not telling the truth about the content of the link
06:20 lizmat and it was not a rickroll
06:20 GNUYawk searched google for the image and it comes up a bunch too
06:20 GNUYawk wouldnt google take it down if its cp
06:20 Zoffix I doubt they go around asking for IDs
06:20 * Zoffix doesn't even want to know what sort of body fluids are involved in that picture.
06:20 moritz unless nobody notified them yet
06:21 moritz anyway, I've submitted a removal request to imgur
06:21 Zoffix moritz++
06:22 GNUYawk ill post an eye bleach
06:22 GNUYawk http://i.imgur.com/CBmYUU8.jpg
06:22 Zoffix Thanks.
06:22 Zoffix That's a very nice looking bed.
06:22 s34n m: say('""' ~~ /'"' ~ '"' <-['"']>*/)
06:22 camelia rakudo-moar a0161a: OUTPUT«Potential difficulties:␤    Quotes are not metacharacters in character classes␤    at <tmp>:1␤    ------> 3say('""' ~~ /'"' ~ '"' <-7⏏5['"']>*/)␤    Repeated character (') unexpectedly found in character class␤    at <tmp>:1␤    ------> …»
06:23 s34n m: say('""' ~~ /'"' ~ '"' <-["]>*/)
06:23 camelia rakudo-moar a0161a: OUTPUT«「""」␤»
06:23 GNUYawk http://i.imgur.com/e8ZK8z5.jpg
06:23 GNUYawk more in case you need it
06:23 GNUYawk i know i do
06:24 Zoffix Nah, I like the bed better than some weird letter 'B' or is that an 'R'?
06:24 GNUYawk and one more for good measure: http://i.imgur.com/gJfCLMh.jpg
06:25 moritz http://imgur.com/gallery/f3MqX38
06:25 Zoffix \o/
06:26 firstdayonthejob joined #perl6
06:26 rurban joined #perl6
06:27 GNUYawk left #perl6
06:27 ShimmerFairy m: role A[::T = Numeric] { method B() { my ::T @foo } }; A.B
06:27 camelia rakudo-moar a0161a: OUTPUT«Method 'instantiate_generic' not found for invocant of class 'Array[T]'␤  in method B at <tmp> line 1␤  in any  at gen/moar/m-Metamodel.nqp line 1736␤  in block <unit> at <tmp> line 1␤␤»
06:30 ShimmerFairy ^^^ is there any way I could hope to make that work? (Do I need to write a class with a custom ^parameterize instead?)
06:31 moritz m: role A[\T = Numeric] { method B() { my ::T @foo } }; A.B
06:31 camelia rakudo-moar a0161a: OUTPUT«Method 'instantiate_generic' not found for invocant of class 'Array[T]'␤  in method B at <tmp> line 1␤  in any  at gen/moar/m-Metamodel.nqp line 1736␤  in block <unit> at <tmp> line 1␤␤»
06:31 moritz m: role A[\T = Numeric] { method B() { my T @foo } }; A.B
06:31 camelia rakudo-moar a0161a: OUTPUT«===SORRY!===␤No compile-time value for T␤»
06:31 moritz :(
06:32 domidumont joined #perl6
06:32 ShimmerFairy m: role A[::T = Numeric] { method B() { my T $foo; say $foo.WHAT } }; A.B
06:32 camelia rakudo-moar a0161a: OUTPUT«(Numeric)␤»
06:32 lizmat ShimmerFairy: think you need to write your own ^parameterize indeed  :-(
06:32 ShimmerFairy m: role A[::T = Numeric] { method B() { my @foo := Array[T]; say @foo.WHAT } }; A.B    # even weirder
06:32 camelia rakudo-moar a0161a: OUTPUT«(Array[T])␤»
06:32 lizmat or perhaps not
06:32 lizmat please rakudobug
06:33 ShimmerFairy lizmat: I wouldn't be surprised if this is because Array itself uses ^parameterize, actually (see how the scalar gets a resolved T, but Array[T] doesn't?)
06:33 * ShimmerFairy rakudobugs
06:39 ShimmerFairy Here it be, if anyone wants to keep an eye on it: https://rt.perl.org/Ticket/Display.html?id=128726
06:41 lizmat ShimmerFairy++
06:47 s34n Zoffix: in https://gist.github.com/anonymous​/4d0c6c1d9f16b4d34307c6dccae3800a , why does etag fail? and why does the lt right above it match? (or rather why is it testing lt instead of -lt?)
06:53 domidumont joined #perl6
06:58 domidumont joined #perl6
07:06 cdg joined #perl6
07:07 cibs joined #perl6
07:10 zakharyas joined #perl6
07:16 darutoko joined #perl6
07:33 abraxxa joined #perl6
07:34 pdcawley joined #perl6
07:39 abraxxa joined #perl6
07:39 BillSussman joined #perl6
07:41 pmqs joined #perl6
07:48 cooper joined #perl6
07:48 cooper joined #perl6
07:51 Roamer` hmmm...
07:51 Roamer` m: sub foo() { for <a b> X <c d> -> ($a, $b) { say "$a $b" } }; foo; foo;
07:51 camelia rakudo-moar 455180: OUTPUT«a c␤a d␤b c␤b d␤a c␤a d␤b c␤b d␤»
07:52 Roamer` hah, has this been fixed since 2016.07.1? wow
07:53 Flying_Squirrel joined #perl6
07:54 Roamer` commit 2016.07.1 sub foo() { for <a b> X <c d> -> ($a, $b) { say "$a $b" } }; foo; foo;
07:54 committable Roamer`: ¦«2016.07»: No build for this commit
07:54 Roamer` commit 664af92 sub foo() { for <a b> X <c d> -> ($a, $b) { say "$a $b" } }; foo; foo;
07:54 committable Roamer`: ¦«664af92»: No build for this commit
08:00 jonas2 joined #perl6
08:06 domidumont joined #perl6
08:10 masak antenoon, #perl6
08:11 dakkar joined #perl6
08:12 moritz \o masak
08:13 masak today's question: what makes Lisp's homoiconicity so wonderful (up to and including allegedly having the Quality Without A Name), while XSLT's homoiconicity is a trainwreck of sadness and dejection?
08:20 ShimmerFairy masak: my money's on the w3c (or, for a touch of homogeneous irony, the www) :P
08:20 jast I'm fairly sure the answer, as always, is "XML"
08:22 sno joined #perl6
08:27 moritz I don't know enough about XSLT to really comment, but I'd be interested in a profound answer
08:27 ShimmerFairy masak: Also, why is LaTeX math mode a pretty good way of notating math, while MathML is a cliff-diving trainwreck of wasted space and broken dreams?
08:29 masak moritz: I want to blog about this (and I have my own thoughts on it), but I thought I would sound out #perl6 first for answers :)
08:30 masak ShimmerFairy: one almost has the feeling that there's something wrong with... XML itself.
08:30 masak no, surely not.
08:30 masak that can't be.
08:31 DrForr Blame it on SGML :)
08:31 moritz ShimmerFairy: afaict MathML is mainly a compilation target for tex2html converters :-)
08:31 DrForr Alternatively finish up Damian's LaTeX parser :)
08:43 ShimmerFairy moritz: .png would be a better target :P
08:43 moritz ShimmerFairy: doesn't scale... SVG?
08:43 ShimmerFairy moritz: yeah, that'd be better, but I decided even .png would be better than MathML :P
08:44 masak moritz: but XML itself is "a format that is both human-readable and machine-readable" (according to Wikipedia) and "human-legible and reasonably clear" (https://www.w3.org/TR/REC-xml/#sec-origin-goals)
08:45 masak moritz: does that mean that MathML does not adhere to XML's goals of legibility?
08:45 ShimmerFairy masak: sure, and PHP is a consistent, well-thought-out programming language :V .
08:45 masak ShimmerFairy: I don't know anyone seriously claiming that, though.
08:46 moritz masak: my experience with MathML is quite old, so take my opinion with a grain of salt, but when last I tried it, it hadn't met these goals
08:46 ShimmerFairy masak: I think in general, XML's fundamental problem is that it tries and fails at being a kind of Lisp. (That is, Lisp is what XML wishes it could be.)
08:47 ShimmerFairy Take one look at the novel you have to write for a simple quadratic formula in MathML, and you won't want to get involved with it. I'll keep my LaTeX notation thanks.
08:47 moritz masak: and XML itself is human-readable, as long as it's short enough. Unfortunately many XML use cases produce *very* verbose XML, which IMHO is problematic
08:47 masak ShimmerFairy: this puts me in mind of http://www.schnada.de/grap​t/eriknaggum-xmlrant.html
08:48 DrForr If XML markup wasn't so verbose it probably would have been DSSL :)
08:48 masak ShimmerFairy: also, I think so too (that XML and XSLT in particular tries and fails to be a kind of Lisp)
08:48 masak ShimmerFairy: it's as if they were cargo-culting the cool things about homoiconicity, but all they got was an air strip made of palm trees and coconuts
08:49 moritz the developers of GoCD have tried very hard to keep their configuration XML terse, and the result is legible, but IMHO still close to my pain threshold
08:49 ShimmerFairy masak: thinking about it, I'd freaking love to write web stuff in a Lisp syntax over SGML: (html (head (title "Foo")) rest...)
08:49 moritz see https://perlgeek.de/blog-en/automating-deploy​ments/2016-015-building-in-the-pipeline.html (first code block) for an example
08:49 masak ShimmerFairy: I know a project like that. I can dig up the link if you're interested
08:50 moritz well, you could use p5's CGI.pm calls :-)
08:50 moritz regarding the GoCD XML config, about half of those elements are fluff
08:51 masak moritz: reading that, I'm struck for the first time of the similarity between <jobs>...</jobs> and (BASIC's) WHILE...WEND
08:51 ShimmerFairy masak: ooh, that'd be nice. Also, looking at moritz's page makes me realize that XML doesn't actually have list support (e.g. the individual <arg> tags)
08:51 moritz closing tags that YAML, for example, avoids
08:51 ShimmerFairy which may be another contrast to Lisp :)
08:51 moritz masak: if..fi in bash :-)
08:51 masak YAML (though a separate discussion) seems a weird kind of half-success, too
08:52 masak I sincerely believe YAML succeeds exactly in the regards it makes the pain of XML stop
08:52 moritz YAML without the weird parts would be nice :-)
08:52 ShimmerFairy A YAML born from Perl 6 would be nice :)
08:52 masak YAML seems not-quite-fully-beaten by JSON in the configuration-files niche
08:52 ribasushi joined #perl6
08:53 ShimmerFairy JSON doesn't allow for comments, for one (excepting very recent versions of JSON)
08:53 moritz if you write 10:20 as a literal in YAML, a parser can either produce the string '10:20', or the integer 620
08:53 moritz ShimmerFairy: and no trailing commas. God how I hate that
08:53 ShimmerFairy I... can't see how 10:20 becomes 620.
08:54 moritz ShimmerFairy: minutes:seconds
08:54 moritz or hours:minutes, same thing basically
08:54 moritz yes, fairly "interesting"
08:54 ShimmerFairy moritz: oh, I was getting confused because it looked like the 10: was being interpreted as a 6 ~somehow~ and then prepended to the 20.
08:55 ShimmerFairy I didn't quite realize 10 * 60 -> 600 + 20 -> 620 :P
08:55 moritz maybe 5:20 would have been a better example
08:55 moritz though when the parser surprises you, you don't have the luxury of always having a good example at hand
08:56 DrForr . o ( 4:20? :) )
08:56 tadzik (☞゚ヮ゚)☞
08:57 ShimmerFairy How 'bout making NAML, or Not Another Markup Language? :P
09:00 timotimo MOM; Mom Omits Markup
09:02 moritz I don't want a markup language. I want a data/serialization format
09:02 moritz YASF
09:02 moritz DFH -- data for humans
09:02 DrForr Google Protobuf? :)
09:02 ShimmerFairy .oO(Killer Serial Format?)
09:04 lizmat Sereal ?
09:04 lizmat afk&
09:05 moritz DrForr: protobuf is explicitly for computers, not for humans, is it?
09:06 abraxxa joined #perl6
09:07 DrForr True, I was ... not quite following, currently distracted listening to a symposium on gravitational waves.
09:07 lizmat .oO( I can feel the Earth move under my feet )
09:14 moritz DrForr: sounds nice
09:15 moritz those black hole mergers are really impressive
09:15 moritz I mean, radiating out 3 sun masses worth of energy in such a short time frame? mind blow, several times over
09:15 abraxxa joined #perl6
09:16 DrForr They're talking about the measurements required right now, on the order of 10e-16 meters.
09:16 moritz makes me wonder how much total energy there's out there simply in form of gravitational waves, and if the total energy of that is larger than that of all the light in the universe
09:17 moritz DrForr: that's also seriously impressive
09:17 DrForr Roughly 10e-6 of a *nucleus*.
09:17 moritz I think in the long run we need LIGO in space :-)
09:18 moritz just too many pesky trucks rolling by on earth
09:19 DrForr Naah, too much background radiation. Stick it on the moon, bury it a hundred meters deep.
09:19 moritz how seismic active is the moon?
09:19 cpage_ joined #perl6
09:20 DrForr Much less active than the Earth.
09:20 _ramix_ joined #perl6
09:25 DrForr They're talking now about validating string theory.
09:26 moritz ... and invalidating too, I hope :-)
09:27 DrForr Well granted.
09:28 timotimo https://www.reddit.com/r/shittyprogramming/commen​ts/4ufgb3/how_do_i_capture_pokemon_using_a_regex/
09:32 DrForr And they now throw out the term 'kilonova' which of course will eat up the *rest* of the day's background noise.
09:32 Ven_ joined #perl6
09:32 DrForr Either 'kilo' or 'killer', the accent is ambiguous.
09:32 timotimo is that more or less than a supernova?
09:32 DrForr No idea yet, I'm letting this finish first.
09:34 DrForr I'm guessing it's beyond supernova. Where the *heavy* elements are made, I'm wondering if it's like Przebylski's star (probably mangling the name - It's a weird anomaly - Its spectral lines show technetium.
09:40 ShimmerFairy .oO(but everyone knows the next modifier key suggests hypernova!)
09:42 timotimo heh
09:42 RabidGravy joined #perl6
09:43 nebg left #perl6
09:44 DrForr Oof, they're a candidate for GRBs.
09:44 timotimo i don't know what that is :|
09:45 DrForr Gamma ray bursts.
09:45 timotimo ah
09:48 DrForr Between nova and supernova, which makes perfect sense. (see: the kilominx)
09:49 moritz kinda-awesome-nova :-)
09:49 ShimmerFairy goodnova
09:50 hwcomcn joined #perl6
09:51 DrForr Apparently they're responsible for most of the *other* stable elements beyond lead.
09:52 hwcomcn joined #perl6
09:53 araujo joined #perl6
09:53 araujo joined #perl6
09:54 araujo joined #perl6
09:54 timotimo neat
09:56 rindolf joined #perl6
09:56 masak ShimmerFairy: when I heard the stated reason JSON doesn't allow comments, I nodded and thought about it. still not sure I agree, but it's a reason worth considering.
09:57 araujo joined #perl6
09:57 ShimmerFairy masak: well, I contend that if your data serialization format isn't sufficient and forces people to do things like parse comments, chances are you're doing something wrong :P
09:58 masak (the reason being that comments would likely end up being mis-used as meta-data and/or side-channel to the parser)
09:58 hwcomcn joined #perl6
09:59 masak ShimmerFairy: right -- it's also very classic Crockford to say "X could potentially be used in bad ways, so we're going to exclude X"
09:59 masak that's basically the entire premise of "JS The Good Parts", except it's stated in terms of the subset kept
10:00 ShimmerFairy "side-channel to the parser"... is the complaint really that comments side step the parser? As in, the entire goddamn reason comments exist? o_e
10:00 masak no
10:01 masak that would be fine -- that's the normal/expected use of comments
10:01 masak basically targeting the human reader
10:01 masak the case that would not be OK is where the comment somehow figured in later processing of the JSON data
10:02 moritz configuration files *really* should allow comments
10:02 masak nowadays, I agree fully
10:02 moritz that means using json for config files is a bad idea, but people still do it, because it's so easy to use
10:02 ShimmerFairy *cough*META6.json*cough*
10:02 masak I also nowadays pay much less heed to arguments of the form "X is dangerous if misused, so we should exclude X"
10:03 timotimo turing complete things are too dangerous
10:03 timotimo throw out all "programming languages"!
10:03 masak moritz: I guess a workaround within the bounds of old-JSON is to define a property `comment` or `_` in the appropriate place
10:03 timotimo only allow electronic circuits without logic looping back on itself!
10:03 masak moritz: works unless you're constrained by a draconian schema
10:03 ShimmerFairy masak: that's what I did in one module, except the key name was suitably pissed-off at the workaround :P
10:04 hwcomcn joined #perl6
10:04 masak timotimo: the flip/serious side of that line of reasoning is that, the weaker you make your DSL, the cooler you can make the transformations/analysis of it
10:04 moritz masak: but then you might need application logic for the workaround in the configuration file... AAARGH
10:04 masak moritz: yes
10:05 ShimmerFairy gee its almost like they should have a construct that compilers ignore so you dont have to oh well
10:05 timotimo sounds true, yeah
10:05 moritz at which point you created a dent in your waterbed, with the appropriate hill in another part of the application
10:05 timotimo ShimmerFairy: but you do want the parser to recognize it, so that when your program changes the data, the comment doesn't just disappear
10:05 moritz I'd rather have the complexity for handling configuration in, you know, the part that handles the configuration :-)
10:06 hwcomcn joined #perl6
10:07 masak moritz: would it be fair to say that Crockford's model of developers/API users is the same as the one "bad managers" have of employees: that they need to be managed, supervised, and definitely not trusted with responsibility, choices, or force multipliers?
10:08 moritz masak: right, it's the "I give you a process, you follow it" model, rather than letting the developers help shape the process
10:10 masak I've been doing more group/team stuff at $work in 2016 than ever before
10:11 masak I'm currently very interested in how the tension between roles like "leader", "manager", "enabler" and "visionary" interact and rub up against each other
10:11 domidumont joined #perl6
10:12 moritz at $work, my boss / team lead is also the product manager for the software we develop. That works great
10:12 moritz because there is no resource conflicts between those roles
10:13 moritz (but it requires somebody to be good at both)
10:13 moritz we have a visionary who we interact with, and it's an interesting tension
10:13 moritz lots of good ideas, but also somemtimes too much distance from the real world
10:38 kurahaupo joined #perl6
10:48 sdoda joined #perl6
11:08 bob777 joined #perl6
11:21 Woodi ehmm, so, functional programming wants to forbid assignments becouse it introduces "time" into sources and destroys referential integrity... but assignments are SO natural for humans... (and current CPUs). so maybe we should finally confirm we live in 4th dimensional space and start to timestamp every single varible ? like: my $x = (42,10:14) ?
11:22 yqt joined #perl6
11:22 Woodi of course I have not idea what are consequences of what I just said... :)
11:26 Woodi masak++ / ShimmerFairy++ # inventing Web 3.0 (Lisp)
11:26 moritz Woodi: functional programming mostly forbids updating; one-time assignment is fine
11:26 masak er, no
11:26 Woodi moritz: right, state changing is problematic
11:27 masak Woodi: functional programming *acknowledges* that values mutating over time is a problem (and tries various ways to mitigate it). ordinary imperative programming just runs headlong into the quagmire, with corresponding consequences.
11:29 brrt joined #perl6
11:29 brrt good *
11:29 brrt part of these consequences is that you have to think before you implement?
11:30 brrt also, i think what Woodi describes is a 'world monad' or something like that
11:30 Woodi brrt: why monads? it was different topic for me...
11:31 moritz monads are a way to manage mutation
11:31 brrt it's basically means that a variable becomes a list-of-variables
11:31 pdcawley moritz: amongst other things :)
11:31 brrt in this case, at least
11:31 Woodi so they are workarounds...
11:32 brrt hmm, yes and no
11:32 brrt they are a different conceptualizaiton of mutable state
11:32 brrt i dislike the world 'conceptualization'
11:33 brrt it seems 'concept' should be enough, but we're really talking about the applied concept instead
11:33 Woodi brrt: but it saved us from net databases ;)
11:33 brrt i'm not sure i follow
11:34 Woodi relations are "conceptual" view of storage reprezentation :)
11:34 brrt still not sure
11:35 Woodi Codd, 1972 ?
11:37 Woodi that timestamping varibles is a bit like SSA...
11:37 cdg joined #perl6
11:38 * moritz wouldn't eat 44 year old cod
11:38 brrt well, i had no idea about that :-)
11:38 brrt but i think relational databases explicitly allow updates
11:38 brrt most are implemented with a log
11:38 brrt but that is separate from the issue of vraiables-on-a-timestamp
11:39 brrt eh timeline
11:39 Woodi brrt: yes, off topic
11:39 brrt no problem :-)
11:39 brrt masak started with xlst :-P
11:39 moritz as long as it touches programming languages, you can't be much off topic here when you discuss concepts
11:41 brrt it's how we steal ideas anyway :-)
11:41 Woodi (a "https://..." "Link") is nicer then <a ...> ... </a> :)
11:46 brrt well, i know of some guy who has once said that it had the visual appeal of oatmeal with fingernails clipped in
11:46 brrt so not everybody is inclined to agree
11:51 Woodi but... but Perl is secret Lisp reimplementation !1
11:54 moritz yes, but remember it's *secret*
11:54 moritz you're not supposed to talk about it in a public place like this
11:54 * moritz goes to scrub the IRC logs
11:55 brrt lisp is also reimplemented as R and a bunch of other languages
11:56 brrt first order of business after all the other first orders of business
11:56 brrt implement R-like data facilities for perl6
12:00 kid51 joined #perl6
12:04 cpage_ joined #perl6
12:23 rindolf joined #perl6
12:25 tbrowder AlexDaniel: confusing the pod handler is correct--I haven't see evidence of a grammar problem yet, but time will tell; at any rate, i think the table looks better than it did
12:27 cyphase joined #perl6
12:35 ribasushi joined #perl6
12:35 ptolemarch joined #perl6
12:37 El_Che for the perl5 coders here, what's nowadays the builder module to use? E:MM? M::B? M::I? other?
12:38 El_Che (chose to use p5 because of Net::LDAP for this mini project)
12:38 DrForr M::I, just don't use the ::Build option.
12:38 El_Che that's (M::I) is what I used last time. I am still hip! :)
12:39 stevieb I use Module::Starter's module-starter cli app with the --eumm flag
12:39 El_Che stevieb: that's Module::Starter's default I think
12:39 DrForr Oh, yes, ::Starter, sorry. I haven't done p5 greenfield in a while either :)
12:40 DrForr Oh, right, I'm still thinking the right way... foo TDM TLAs.
12:41 El_Che Let's see how IntelliJ's perl support is (plugin)
12:42 DrForr o/' It's the end of the 'verse as we know it o/'
12:42 El_Che (I know already my source will be full of :i en :q! :) )
12:42 stevieb El_Che: it works spectactularly, even has debug support. I've used it for over a year (I was using PyCharm for $work, and decided to try it out). I also use the Vim plugin
12:43 stevieb El_Che: perl5 that is
12:43 El_Che stevieb: I used Netbeans for Java in the past. I installed IntelliJ because we had some Java projects, but in the end I used to for the Go plugin (to assist the typing while learning go)
12:45 El_Che I want/need something that monitors the Openldap master auditdb file and trigger actions when needed
12:46 stevieb El_Che: I've never done Java dev before, but we use Python at work, so I tested it there, then on my Perl dev machines, I have IDEA installed with Camelcase (perl5 plugin).
12:46 El_Che yes, camelcase is what I am trying now
12:47 stevieb I absolutely love it. Install Devel::Camelcadedb if you need perl debugging support
12:47 El_Che ah great tip, thx
12:47 El_Che hopefully the author will find the time to support perl6 (he planned on it, I read somewhere)
12:48 rindolf joined #perl6
12:49 stevieb what I love most is it is cross-platform. I do 90% of my dev on *nix. Even though nearly all of my modules are cross-platform, there are a couple that I prefer to maintain on Windows directly. Even the IntelliJ config files can be copied back and forth
12:50 El_Che yeah, my work laptop is a windows machine (boo!), but Intellij runs in a Ubuntu VM :)
12:52 El_Che need to find a way to get AD certs automatically on a linux machine in order to get 802.1x working. In my todo if I ever find the time
13:14 mohae_ joined #perl6
13:27 abraxxa1 joined #perl6
13:43 pochi joined #perl6
13:47 pmurias joined #perl6
13:51 prammer joined #perl6
13:54 skids joined #perl6
13:56 CIAvash joined #perl6
13:58 aindilis joined #perl6
14:00 prammer joined #perl6
14:12 molaf joined #perl6
14:32 * [Coke] wonders why his mind thinks it's going to be easier to fork ack or just run at ack 1.0 instead of trying to unlearn some muscle memory.
14:38 holyghost joined #perl6
14:39 holyghost hello, I am fucking tired but nm
14:40 unmatched} :/
14:41 unmatched} Sounds like ENOTENOUGHCOFFEE
14:46 DrForr Afternoon.
14:49 hursh joined #perl6
14:49 Xliff \o
14:53 amitava joined #perl6
14:54 amitava I am learning about perl6 operators (https://docs.perl6.org/language​/operators#Operator_Precedence) - can someone please explain this construct?
14:55 amitava C<%foo «+» %bar;>
14:55 amitava > my %foo = :hello("world"), :foo("bar"); {foo => bar, hello => world} > my %bar = :hello("globe"), :bar("foo"); {bar => foo, hello => globe} > > > C<%foo <<+>> %bar;> ===SORRY!=== Error while compiling <unknown file> Undeclared name:     C used at line 1
14:55 awwaiid the "C<...>" is part of documentation markup
14:55 amitava thx
14:56 awwaiid those examples aren't being processed as expected -- I'd fix them right now but am busy at work :)
14:57 dalek doc: 5124de1 | moritz++ | doc/Language/operators.pod6:
14:57 dalek doc: Fix markup, amitava++
14:57 dalek doc: review: https://github.com/perl6/doc/commit/5124de16d8
14:57 amitava also, how to do you apply a plain old function as an hyper operator?
14:57 awwaiid amitava: prefix it with & to refer to it without invoking it
14:57 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say %a «+» %b
14:57 camelia rakudo-moar 852d81: OUTPUT«{y => 5}␤»
14:57 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say %a «&[+]» %b
14:57 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing « or »␤at <tmp>:1␤------> 3 = :1x, :2y; my %b = :3y, :3z; say %a «&7⏏5[+]» %b␤    expecting any of:␤        infix␤        infix stopper␤»
14:57 unmatched} :(
14:57 TimToady you'd need «[&foo]»
14:58 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say %a «[&[+]]» %b
14:58 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in bracketed infix; couldn't find final ']' ␤at <tmp>:1␤------> 3= :1x, :2y; my %b = :3y, :3z; say %a «[&7⏏5[+]]» %b␤»
14:58 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say %a «[&infix:<+>]» %b
14:58 camelia rakudo-moar 852d81: OUTPUT«{y => 5}␤»
14:58 awwaiid m: my @things = <2 3 5 8 2>; sub addem($a, $b) { $a + $b }; say [&addem] @things
14:58 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3 addem($a, $b) { $a + $b }; say [&addem]7⏏5 @things␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤        statement end…»
14:59 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say %a «[[&[+]]]» %b
14:59 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in bracketed infix; couldn't find final ']' ␤at <tmp>:1␤------> 3 :1x, :2y; my %b = :3y, :3z; say %a «[[&7⏏5[+]]]» %b␤»
14:59 TimToady I guess that form doesn't work there
14:59 TimToady could be a bug
14:59 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say %a »+« %b
14:59 camelia rakudo-moar 852d81: OUTPUT«Use of uninitialized value of type Any in numeric context  in block <unit> at <tmp> line 1␤Use of uninitialized value of type Any in numeric context  in block <unit> at <tmp> line 1␤{x => 1, y => 5, z => 3}␤»
15:00 awwaiid m: my @things = <2 3 5 8 2>; sub addem($a, $b) { $a + $b }; say ([&addem] @things)
15:00 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3addem($a, $b) { $a + $b }; say ([&addem]7⏏5 @things)␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        stateme…»
15:00 awwaiid oh, needs to be infix
15:00 TimToady mabye »+« should call unary forms when one or the other key is missing
15:00 amitava so, how do I apply hyper operator to an inline lambda?
15:01 unmatched} amitava: «[&(code)]» probably
15:01 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say %a «[&(-> $a, $b { say "$a op $b" })]» %b
15:01 camelia rakudo-moar 852d81: OUTPUT«2 op 3␤{y => True}␤»
15:01 unmatched} m: my @things = <2 3 5 8 2>; sub addem($a, $b) { $a + $b }; say ([[&adde]m] @things)
15:01 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3addem($a, $b) { $a + $b }; say ([[&adde]7⏏5m] @things)␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        state…»
15:01 unmatched} m: my @things = <2 3 5 8 2>; sub addem($a, $b) { $a + $b }; say ([[&addem]] @things)
15:01 camelia rakudo-moar 852d81: OUTPUT«20␤»
15:01 unmatched} awwaiid: ^ you just need an extra set of []
15:01 amitava %foo <<&(*.uc)>> %bar ;
15:01 amitava ===SORRY!=== Error while compiling <unknown file> Missing << or >> at <unknown file>:1 ------> %foo <<&⏏(*.uc)>> %bar ;     expecting any of:         infix         infix stopper
15:02 moritz that's not an operator
15:02 unmatched} amitava: MISSING P[
15:02 unmatched} damn
15:02 unmatched} amitava: missing []
15:02 moritz m: say <a b c d>».uc.perl
15:02 camelia rakudo-moar 852d81: OUTPUT«("A", "B", "C", "D")␤»
15:02 moritz that's the way to combine hypers and methods
15:03 TimToady amitava: note that *.uc is a unary function, not a binary
15:03 TimToady infix hyper wants binary functions
15:03 TimToady so does reduce
15:03 amitava ok, can you please show me an example - sorry for being a bit slow :-)
15:04 TimToady everything we've done above that worked uses a binary function inside
15:04 TimToady notice the lambda I used has two arguments
15:04 amitava say, i want to concat the keys from %foo and %bar and corresponding values as well with an hyphen in the middle for only values
15:04 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say %a Zuc %b; # LTA error
15:04 camelia rakudo-moar 852d81: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤A list operator such as "say" must have whitespace before its arguments (or use parens)␤at <tmp>:1␤------> 3a = :1x, :2y; my %b = :3y, :3z; say %a Z7⏏5uc %b; # LTA error␤    expecting any of:␤ …»
15:05 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say %a Z[&(* ~ '-' ~ *)] %b
15:05 camelia rakudo-moar 852d81: OUTPUT«(x   1-z     3 y     2-y     3)␤»
15:05 TimToady amitava: at that point, I'd suggest writing a separate function and/or operator, and don't try to inline it
15:06 TimToady you can inline an operator you defined easily enough, and it will be less confusing to the reader
15:06 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say %a.kv Z[&(* ~ '-' ~ *)] %b.kv
15:06 camelia rakudo-moar 852d81: OUTPUT«(x-z 1-3 y-y 2-3)␤»
15:06 unmatched} weee... But yeah, that's iffy, 'cause hashes are unordered
15:07 TimToady you can still use the hyper to get matching keys, just don't inline the whole function
15:07 rindolf joined #perl6
15:07 TimToady if you make the function a multi you could even do something sane with unmatched keys
15:08 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say %(%a.kv Z[&(*~'-'~*)] %b.kv)
15:08 camelia rakudo-moar 852d81: OUTPUT«{x-z => 1-3, y-y => 2-3}␤»
15:08 unmatched} *are* hashes unordered in Perl 6? Whenever I dump them, they always appear ordered to my eye
15:08 TimToady the dumper/perl functions sort them for you
15:08 unmatched} Ah
15:08 TimToady but they're unordered internally
15:08 amitava unmatched: but i do not want the keys to have hyphen, just the corresponding values :-)
15:09 TimToady this sounds more like you want to classify the pairs and then postprocess the values
15:09 khw joined #perl6
15:09 amitava also, the example is using the Z (zip) operator - i am learning the <<op>> syntax
15:09 unmatched} amitava: so two hashes have the same keys and you want to produce one hash where values for matching keys are hyphenated?
15:09 amitava TimToady: yes
15:09 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; say classify *.key, flat %a, %b;
15:09 camelia rakudo-moar 852d81: OUTPUT«{x => [x => 1], y => [y => 2 y => 3], z => [z => 3]}␤»
15:10 rindolf TimToady: hi! Welcome back!
15:10 rindolf TimToady: how have you been?
15:10 TimToady well, given I was in Rome, it's actually further away from you :P
15:11 * TimToady is recovering from jetlag
15:11 amitava unmatched: yes
15:12 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; %a.keys.map({ $_ => join '-',(%a{$_},%b{$_}).grep: *.defined }).Hash.say
15:12 camelia rakudo-moar 852d81: OUTPUT«{x => 1, y => 2-3}␤»
15:13 amitava umatched: i guess i meant within the context of hyper operator
15:13 girafe joined #perl6
15:15 unmatched} amitava: it's the wrong tool for the job. Hashes are unordered.
15:16 unmatched} And even if you sort them, you won't get the keys matched up
15:16 amitava ok - thanks. It helped in understanding hyper operators although I have still some more to grok
15:16 unmatched} m: m: my %a = :1x, :2y; my %b = :3y, :3z; dd [%a.keys.sort, %b.keys.sort]
15:16 camelia rakudo-moar 852d81: OUTPUT«[("x", "y"), ("y", "z")]␤»
15:17 unmatched} So you'll get values for "x" hypened with "y"'s values and y's with z's
15:19 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; multi foo($a,Any:U) { $a }; multi foo(Any:U,$b) { $b }; multi foo($a,$b) { $a.key ~ ' => "' ~ $a.value ~ '-' ~ $b.value ~ '"' }; say %a »[&foo]« %b
15:19 camelia rakudo-moar 852d81: OUTPUT«Ambiguous call to 'foo'; these signatures all match:␤:($a, Any:U $)␤:($a, $b)␤  in block <unit> at <tmp> line 1␤␤»
15:20 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; multi foo($a,Any:U) { $a }; multi foo(Any:U,$b) { $b }; multi foo(Any:D $a,Any:D $b) { $a.key ~ ' => "' ~ $a.value ~ '-' ~ $b.value ~ '"' }; say %a »[&foo]« %b
15:20 camelia rakudo-moar 852d81: OUTPUT«Method 'key' not found for invocant of class 'Int'␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
15:20 unmatched} 0.o
15:20 TimToady or some such
15:20 unmatched} TimToady: so hypers word different on hashes than on arrays?
15:21 TimToady how the heck could they possibly work the same?
15:22 ugexe theres also the elusive categorize
15:22 unmatched} Well, it's not like I read the docs :) I always went with "Hyper operators apply a given operator enclosed by « and » to one or two lists, returning the resulting list." description
15:22 ugexe m: my %a = :1x, :2y; my %b = :3y, :3z; my %c = categorize *.key, flat %a, %b; say %c.perl
15:22 camelia rakudo-moar 852d81: OUTPUT«{:x($[:x(1)]), :y($[:y(2), :y(3)]), :z($[:z(3)])}␤»
15:22 amitava TimToady: Ambiguous call to 'foo'; these signatures all match: :($a, Any:U $) :($a, $b)   in block <unit> at irc.p6 line 8
15:22 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; multi foo($a,Any:U) { $a }; multi foo(Any:U,$b) { $b }; multi foo(Any:D $a,Any:D $b) { $a.key => '"' ~ $a.value ~ '-' ~ $b.value ~ '"' }; say %a »[&foo]« %b
15:22 camelia rakudo-moar 852d81: OUTPUT«Method 'key' not found for invocant of class 'Int'␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
15:23 unmatched} I didn't know they did anything special on hashes
15:23 TimToady m: my %a = :1x, :2y; my %b = :3y, :3z; multi foo($a,Any:U) { $a }; multi foo(Any:U,$b) { $b }; multi foo(Any:D $a,Any:D $b) { $a ~ '-' ~ $b }; say %a »[&foo]« %b
15:23 camelia rakudo-moar 852d81: OUTPUT«{x => 1, y => 2-3, z => 3}␤»
15:24 TimToady was making it too hard
15:24 TimToady is that kinda what you want?
15:25 TimToady anyway, tmtowtdi
15:26 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say hash %a »[&({join "-",($^a, $^b).grep: *.defined})]« %b;
15:26 camelia rakudo-moar 852d81: OUTPUT«{x => 1, y => 2-3, z => 3}␤»
15:26 amitava TimToady: that worked - thanks.
15:26 amitava What does Any:U mean?
15:27 amitava Any:D is a value right?
15:27 TimToady anything undefined, more or less, like if that key is missing
15:27 TimToady it's a type
15:27 unmatched} amitava: type Any that's undefined. They're called type smileys
15:27 canopus joined #perl6
15:28 TimToady it's a type for any value that makes you :D
15:28 unmatched} m: my %a = :1x, :2y; my %b = :3y, :3z; say hash %a »[&({@_.grep(*.defined).join: '-'})]« %b;
15:28 camelia rakudo-moar 852d81: OUTPUT«{x => 1, y => 2-3, z => 3}␤»
15:28 amitava i am loving perl6 - started on it this weekend
15:28 unmatched} \o/
15:29 ugexe m: my %a = :1x, :2y; my %b = :3y, :3z; my %c = categorize {.keys}, flat %a, %b; say %c.map: { .key => (.value>>.value).join("-") }
15:29 camelia rakudo-moar 852d81: OUTPUT«(x => 1 z => 3 y => 2-3)␤»
15:29 TimToady unmatched}++
15:29 TimToady ugexe++ too
15:30 TimToady amitava++ while we're at it :)
15:30 unmatched} TimToady++ \o/ ++ all around
15:32 amitava thx all
15:35 KevinFrench joined #perl6
15:39 unmatched} m: say :64("1ffc42404852223a86483d63b76e52b53da0f2e4")
15:39 camelia rakudo-moar 852d81: OUTPUT«Cannot convert string to number: Cannot convert radix of 64 (max 36) in '3:64<⏏1ffc42404852223a86483d63b76e52b53da0f2e4>' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
15:39 unmatched} I'm kinda bummed we don't support base64 encode/decode in core.
15:40 unmatched} Oh, actually never mind. :64() has nothing to do with it....
15:40 unmatched} I guess sleeping 3 hours a day is bad for brain ^_^
15:41 ugexe there are also different variants of base64 like uri
15:44 amitava joined #perl6
15:46 Khisanth joined #perl6
15:55 Tonik joined #perl6
15:57 unmatched} .ask gfldex can this issue be closed or do you have any feedback for alternatives offered and issues raised in my comment? https://github.com/perl6/m​odules.perl6.org/issues/53
15:57 yoleaux unmatched}: I'll pass your message to gfldex.
16:02 dvinciguerra_ joined #perl6
16:07 stmuk unmatched}: oh I added some words to the second box on the perl6.org homepage but maybe not the best design
16:08 stmuk I was trying to stress the "production" or "release" nature of R* following the guy on reddit saying it was still in beta
16:08 stmuk the wording isn't ideal either
16:09 unmatched} I think we can remove the "Larry Wall's poetic summary of the past 15 years"
16:10 unmatched} And the header reads: "Perl 6 Language Version 6.c [...] Released!"; maybe we can remove that too now. It's been awhile since the release of the 6.c
16:11 stmuk yeah that makes sense
16:12 TimToady m: say [+] ... 987
16:12 camelia rakudo-moar 906a46: OUTPUT«Potential difficulties:␤    Apparent sequence operator parsed as stubbed function argument; please parenthesize the ... call (or use 'fail' instead of ...)␤    at <tmp>:1␤    ------> 3say [+] 7⏏5... 987␤987␤  in any  at /home/camelia/rakudo…»
16:12 kurahaupo joined #perl6
16:15 TimToady .tell AlexDaniel I figgered out a way to fix [+] ... 987 for you
16:15 yoleaux TimToady: I'll pass your message to AlexDaniel.
16:17 TimToady m: say ... 987
16:17 camelia rakudo-moar 906a46: OUTPUT«Potential difficulties:␤    Apparent sequence operator parsed as stubbed function argument; please parenthesize the ... call (or use 'fail' instead of ...)␤    at <tmp>:1␤    ------> 3say 7⏏5... 987␤987␤  in any  at /home/camelia/rakudo-m-i…»
16:17 TimToady I guess that message assumes it was intended as a fail
16:20 avenj joined #perl6
16:27 FROGGS joined #perl6
16:32 cdg joined #perl6
16:33 cdg joined #perl6
16:34 cdg joined #perl6
16:35 cdg joined #perl6
16:35 TimToady m: say ... 987
16:35 camelia rakudo-moar 041919: OUTPUT«Potential difficulties:␤    Apparent sequence operator parsed as stubbed function argument; please supply any missing argument to the function or the sequence (or parenthesize the ... call, or use 'fail' instead of ...)␤    at <tmp>:1␤    ------> 3s…»
16:39 dalek modules.perl6.org/bit-rot: 3b57edf | (Zoffix Znet)++ | Build.PL:
16:39 dalek modules.perl6.org/bit-rot: Update prereqs
16:39 dalek modules.perl6.org/bit-rot:
16:39 dalek modules.perl6.org/bit-rot: - Bump for major releases of Mojolicious and ::AssetPack
16:39 dalek modules.perl6.org/bit-rot: - Remove now-deprecated Mojolicious::Plugin::Bootstrap3
16:39 dalek modules.perl6.org/bit-rot:
16:39 dalek modules.perl6.org/bit-rot: Part of #60
16:39 dalek modules.perl6.org/bit-rot: review: https://github.com/perl6/modul​es.perl6.org/commit/3b57edf176
16:39 dalek modules.perl6.org/bit-rot: c9b12eb | (Zoffix Znet)++ | / (7 files):
16:39 dalek modules.perl6.org/bit-rot: Remove now-deprecated Mojolicious::Plugin::Bootstrap3
16:39 dalek modules.perl6.org/bit-rot:
16:39 dalek modules.perl6.org/bit-rot: - Load Bootstrap via ::AssetPack from CDN on *app start* and merge into other CSS
16:39 dalek modules.perl6.org/bit-rot: - Add Bootstrap font files into the repo
16:39 dalek modules.perl6.org/bit-rot: - Remove cerulean theme files and replicate the tiny change it introduces manually,
16:39 dalek modules.perl6.org/bit-rot:     in main.scss
16:39 dalek modules.perl6.org/bit-rot:
16:39 dalek modules.perl6.org/bit-rot: Part of #60
16:39 dalek modules.perl6.org/bit-rot: review: https://github.com/perl6/modul​es.perl6.org/commit/c9b12eb449
16:39 atweiden joined #perl6
16:51 gfldex m: say now.week;
16:51 camelia rakudo-moar 041919: OUTPUT«Method 'week' not found for invocant of class 'Instant'␤  in block <unit> at <tmp> line 1␤␤»
16:51 yoleaux 15:57Z <unmatched}> gfldex: can this issue be closed or do you have any feedback for alternatives offered and issues raised in my comment? https://github.com/perl6/m​odules.perl6.org/issues/53
16:51 gfldex m: say now.^methods;
16:51 camelia rakudo-moar 041919: OUTPUT«(SET-SELF new from-posix to-posix Bridge Num Int narrow Date DateTime sign sqrt sin tan cotan acosech abs conj atan2 cosec base pred asec acotan cosh acos acosec sech ceiling unpolar log10 atanh log exp Rat acosh truncate sinh tanh acotanh round Real sec f…»
16:51 TimToady now is an Instant, not a DateTime
16:51 unmatched} m: say DateTime.now.week;
16:51 camelia rakudo-moar 041919: OUTPUT«(2016 30)␤»
16:51 gfldex m: say now.DateTime.^methods;
16:51 camelia rakudo-moar 041919: OUTPUT«(new now clone Instant posix offset offset-in-minutes offset-in-hours later truncated-to whole-second in-timezone utc local Date daycount day-of-month IO day-of-week days-in-month earlier week week-number is-leap-year week-year weekday-of-month yyyy-mm-dd …»
16:52 dalek doc/molecules-patch-2: f35f8e7 | (Christopher Bottoms)++ | doc/Language/variables.pod6:
16:52 dalek doc/molecules-patch-2: Is this better? (note on $*SCHEDULER and threads)
16:52 dalek doc/molecules-patch-2: review: https://github.com/perl6/doc/commit/f35f8e78c8
16:52 harmil m: Buf.new(0x41, 0x42, 0x43, 0x03c0).say
16:52 camelia rakudo-moar 041919: OUTPUT«Buf:0x<41 42 43 c0>␤»
16:52 harmil Shouldn't that at least give a warning...?
16:52 unmatched} About what?
16:52 unmatched} Ah
16:52 harmil About the truncation of 0x03c0?
16:52 unmatched} Yeah, it should.
16:53 harmil K, rakudobugging...
16:53 unmatched} Thanks.
16:53 jnthn Should it? :)
16:53 jnthn Where does it say it should? :)
16:54 jnthn m: my uint8 $x = 422; say $x # note this doesn't
16:54 camelia rakudo-moar 041919: OUTPUT«166␤»
16:54 maybekoo2 joined #perl6
16:54 jnthn Of course, arguably that's more of a consistency argument for native arrays than Bufs :)
16:54 unmatched} ¯\_(ツ)_/¯
16:54 TimToady enforcing that would tend to punish the innocent along with the guilty
16:55 unmatched} OOC who would be the innocent? Is overflowing an element of a Buf some sort of a useful feature?
16:55 * gfldex .oO( If you fiddle with bits expect to get bitten. )
16:56 TimToady that really bytes
16:57 harmil Well, expecting to get bitten is one thing. Getting back data you didn't hand in silently doesn't seem like a win, though. The question is one of what sort of biting is appropriate?
16:58 TimToady I guess the other question is whether the "feature" can be used to sneak nulls into a C routine not expecting it
16:59 TimToady if something earlier thought it grepped out 0's...
17:00 unmatched} m: say "It's pretty $_ that 3$_ is {"3$_".Int.is-prime and "prime"}" given Buf.new(0x231, 0x233, 0x433, 0x637).decode
17:00 camelia rakudo-moar 041919: OUTPUT«It's pretty 1337 that 31337 is prime␤»
17:00 TimToady errands &
17:01 dalek doc/molecules-patch-2: d0d1cf0 | (Christopher Bottoms)++ | doc/Language/variables.pod6:
17:01 dalek doc/molecules-patch-2: reference note in table
17:01 dalek doc/molecules-patch-2: review: https://github.com/perl6/doc/commit/d0d1cf09f0
17:12 andrewb joined #perl6
17:27 harmil TimToady: Must be nice to just put your errands in the background :)
17:29 domm Alpine Perl Workshop in Innsbruck (2.&3.Sep) is still looking for a nice Perl6 Intro talk
17:29 domm (and advanced stuff, too)
17:29 domm http://act.yapc.eu/alpinepe​rl2016/call_for_papers.html
17:30 domm we might be able to pay for travel/hotel costs!
17:30 harmil So, back to my error: I was trying to define a Buf that contained only valid Latin1 (1-byte) characters. This seems to work: Buf.new($source.Str.comb>>.ord.map: -> $i where {0x00 < $i < 0xff} { $i }) but damn, that's sum ugly!
17:30 harmil It throws a very nice error on larger codepoints, though
17:31 gfldex harmil: you may want to define a subset
17:32 rindolf joined #perl6
17:33 harmil gfldex: that's nice. I'll have to play with type-based restrictions, there...
17:34 unmatched} m: "foo♥".encode: "latin1"
17:34 camelia rakudo-moar 041919: OUTPUT«Error encoding Latin-1 string: could not encode codepoint 9829␤  in block <unit> at <tmp> line 1␤␤»
17:34 unmatched} harmil: that seems much simpler and readable :)
17:35 unmatched} m: say "foo".encode: "latin1"
17:35 camelia rakudo-moar 041919: OUTPUT«Blob[uint8]:0x<66 6f 6f>␤»
17:35 unmatched} m: say "foo".encode("latin1").Buf
17:35 camelia rakudo-moar 041919: OUTPUT«Method 'Buf' not found for invocant of class 'Blob[uint8]'␤  in block <unit> at <tmp> line 1␤␤»
17:35 unmatched} orly
17:35 FreezerburnV joined #perl6
17:36 unmatched} m: say Buf.new: "foo".encode: "latin1"
17:36 camelia rakudo-moar 041919: OUTPUT«Buf:0x<66 6f 6f>␤»
17:38 harmil +camelia: I think that does more or less what I wanted. I was hoping not to have to make explicit mention of the encoding (so much as assert that this is a character-per-byte buf) but yeah, that might be the way to go
17:40 unmatched} m: say Buf.new: "foo".ords.map: -> $c where * < 0xFF {$c}
17:40 camelia rakudo-moar 041919: OUTPUT«Buf:0x<66 6f 6f>␤»
17:41 unmatched} Still, pretty unreadable. A month from now you'll go "wtf is that map doing"
17:42 harmil Did I misunderstand subset?
17:42 harmil m: subset loud-uint8 of uint8 where 0x00 < * < 0xff; say Buf.new(my @bytes[loud-uint8] = "foo\x[03c0]".Str.comb>>.ord).perl
17:42 camelia rakudo-moar 041919: OUTPUT«Buf.new(102,111,111,192)␤»
17:43 masak unmatched}: more importantly, it's probably not going to fail so well when it gets illegal input.
17:44 masak unmatched}: as it, it's not going to provide diagnostics you would then likely want, such as the value that was too big, or the index it was at.
17:44 masak as in*
17:44 unmatched} Yeah
17:44 harmil unmatched}:  I called you +camelia BTW, sorry. I didn't mean to imply that you aren't human :)
17:45 unmatched} harmil: how do you know that I am a human?
17:45 harmil unmatched}: I said that I didn't mean to imply...
17:46 harmil The real question is: do we know that +camelia isn't TimToady frantically typing in results by hand?
17:46 masak come to think of it, do we have hard evidence that `perl6` exists in runnable binary form at all?
17:47 masak as opposed to just thousands of small gnomes coming up with reasonable outputs?
17:47 harmil Oh, I see what I did. I put the [loud-uint8] in the wrong place!
17:48 FreezerburnV I'm getting a "Missing infix inside []" error with some code that I'm not sure how to solve. Happens at a specific line in a long chain of method calls: https://gist.github.com/Freezerbur​n/e383f4c1b797b720653c472044c59620
17:48 geekosaur yeh, by the time it does that chec the truncation has already happened
17:49 harmil Hmm... even stranger:
17:49 harmil m: subset loud-uint8 of Int where 0x00 < * < 0xff; say Buf.new(my Array[loud-uint8] @bytes = "foo".Str.comb>>.ord).perl
17:49 camelia rakudo-moar 041919: OUTPUT«Type check failed in assignment to @bytes; expected Array[loud-uint8] but got Int (102)␤  in block <unit> at <tmp> line 1␤␤»
17:49 harmil There's no attempt to coerce I guess.
17:49 unmatched} m: my $in = "foo♥meow"; $_ == $in.chars or fail "Invalid character {$in.substr($_,1)} in input at position {+$_}" given $in.comb.grep: {.ord < 0xFF or last}; say Buf.new: $in.ords
17:49 camelia rakudo-moar 041919: OUTPUT«Invalid character ♥ in input at position 3␤  in any  at /home/camelia/rakudo-m-inst-1/share​/perl6/runtime/CORE.setting.moarvm line 1␤  in block <unit> at <tmp> line 1␤␤»
17:49 masak FreezerburnV: confirmed -- but I have no idea why
17:50 FreezerburnV masak, Interesting
17:50 FreezerburnV Guess I'll just change how that chain is done to get around it for now
17:53 masak m: 'foo'.map({ $^a })[1]
17:53 camelia rakudo-moar 041919: ( no output )
17:53 masak m: 'foo' .map({ $^a })[1]
17:53 camelia rakudo-moar 041919: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing infix inside []␤at <tmp>:1␤------> 3'foo' .map({ $^a })[7⏏1]␤    expecting any of:␤        bracketed infix␤        infix␤        infix stopper␤»
17:54 masak minimized it a bit
17:54 unmatched} FreezerburnV: FWIW, .join('') can be written as .join and .split('') as .comb
17:54 masak seems you're running into trouble because of the whitespace before the `.map`
17:54 mst masak: you know anybody who's played with preserving whitespace during grammar parsinG?
17:54 masak but whether that's expected behavior or a bug, I don't really know, because I don't tend to put whitespace there myself, and I haven't kept up with the discussions/usage around that
17:54 FreezerburnV unmatched}, Ah, thanks!
17:55 dvinciguerra_ joined #perl6
17:55 masak mst: you mean apart from the MAD stuff that used to be in (or somehow connected to) the Perl 5 parser?
17:55 masak mst: no.
17:56 masak well, I've read some zany stuff about lenses, but I don't think that's what you're asking about ;)
17:57 mst excellent. I am, once again, going to be trying something I don't understand, that none of the people who do understand it have tried before, on a deadline, for no particularly sane reason
17:57 mst this is going to be one of those "wanted pony ... received equoid" moments
17:58 mst that, or "It could be worse. See Devel::Declare."
17:58 masak :)
18:00 unmatched} m: my $f = "foo.test.ftl"; say $f.comb(/^.+ )>\.<-[.]>+$/).comb.join(".*") ~ ".*.$f.IO.extension()"'
18:00 camelia rakudo-moar 041919: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Two terms in a row␤at <tmp>:1␤------> 3comb.join(".*") ~ ".*.$f.IO.extension()"7⏏5'␤    expecting any of:␤        infix␤        infix stopper␤        postfix␤        statement end␤     …»
18:00 unmatched} m: my $f = "foo.test.ftl"; say $f.comb(/^.+ )>\.<-[.]>+$/).comb.join(".*") ~ ".*.$f.IO.extension()"
18:00 camelia rakudo-moar 041919: OUTPUT«f.*o.*o.*..*t.*e.*s.*t.*.ftl␤»
18:03 unmatched} m: my $f = "foo.test.ftl"; say join ".*", $f.comb(/.<before .*\.<-[.]>+$>/), ".$f.IO.extension()"
18:03 camelia rakudo-moar 041919: OUTPUT«f.*o.*o.*..*t.*e.*s.*t.*.ftl␤»
18:04 unmatched} FreezerburnV: ^ not sure if it's any way simpler or clearer, but seems to do the same thing as yours
18:04 pmurias joined #perl6
18:04 travis-ci joined #perl6
18:04 travis-ci Doc build passed. Christopher Bottoms 'Is this better? (note on $*SCHEDULER and threads)'
18:04 travis-ci https://travis-ci.org/perl6/doc/builds/147244951 https://github.com/perl6/doc/commit/f35f8e78c8f9
18:04 travis-ci left #perl6
18:05 * unmatched} really misses Perl 5's  [^.] negated regex classes
18:06 pmurias mst: re parsing with whitespace preserving, if you want to do the config manipulation stuff we talked about during yapc::eu you should check lenses/the boomerang programming language
18:06 yoleaux 03:57Z <konobi> pmurias: are the json files that nqp-loader reads newline delimited?
18:06 FreezerburnV unmatched}, Almost. It should have a .* at the beginning as well. And I have no idea what the complex regex is doing in the second one... or the first one, actually
18:06 FreezerburnV I like the $f.IO.extension() though, might use that. Hadn't though of doing that
18:06 unmatched} m: my $f = "foo.test.ftl"; say join ".*", '', $f.comb(/.<before .*\.<-[.]>+$>/), ".$f.IO.extension()"
18:06 camelia rakudo-moar 041919: OUTPUT«.*f.*o.*o.*..*t.*e.*s.*t.*.ftl␤»
18:08 unmatched} The regex just says "any character (.) before (<before ...>) any number of any characters (.*) followed by a dot (\.) and some non-dot characters (<-[.]>+) followed by end of string"
18:08 unmatched} And thus that comb gives you all individual characters that precede the extension
18:08 pmurias konobi: no, I can change that to whatever you want
18:09 sjoshi joined #perl6
18:09 noffle joined #perl6
18:09 pmurias konobi: the with_source_map_info method in src/vm/js/Chunk.nqp generates that json
18:10 mst pmurias: this is where I'm going to be going, yes. I figured perl6 grammars were a good way to try and implement it?
18:10 noffle left #perl6
18:11 konobi pmurias: ah, thanks
18:11 mst pmurias: if I start from http://www.seas.upenn.edu/~harmony/ is that going to be sane, or would a primer on lenses be helpful too?
18:11 konobi streaming parser ftw
18:11 mst sorry. basically diving in the deep end for the hell of it here :D
18:11 unmatched} And in the first one the ')>' in the middle marks end of capture, so the extension isn't matched by the comb, so it returns just the entire filename without the extension, which then empty .comb breaks up into individual characters
18:11 unmatched} m: say "meowfoobar" ~~ /'meow' <( 'foo' )> 'bar'/
18:11 camelia rakudo-moar 041919: OUTPUT«「foo」␤»
18:13 FreezerburnV unmatched}, Huh, interesting. Is that special syntax that Perl6 supports or is that standard regex that I never learned? (and to be fair, my regex knowledge is probably not the greatest)
18:13 unmatched} .oO( you'd think IO::Path would have some method to give the filename sans extension)
18:13 unmatched} FreezerburnV: it's Perl 6's special New and Improved regex syntax.
18:13 FreezerburnV Gotcha
18:13 FreezerburnV Haven't spent much time learning the New and Improved regex
18:15 unmatched} FreezerburnV: in traditional regex that stuff would be /.(?=.*\.[^.]+$)/ for the last example, as for ')>'... Um, Perl 5 has \K that is like '<(', but I don't think there's a ')>' version
18:16 unmatched} ("last example" being the /.<before .*\.<-[.]>+$>/)
18:17 unmatched} m: say "meowfoobar" ~~ m:P5/meow\Kfoo/
18:17 camelia rakudo-moar 041919: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unrecognized Perl 5 regex backslash sequence␤at <tmp>:1␤------> 3say "meowfoobar" ~~ m:P5/meow\7⏏5Kfoo/␤»
18:18 unmatched} I guess we just don't support it. Works with 5.22 P5
18:18 ribasushi joined #perl6
18:24 setty2 joined #perl6
18:24 unmatched} Thinking more of it, we can make IO.basename more useful by basically doing the same thing as `basename` command and stipping the suffix. Maybe a :!ext flag to strip whatever .extension would return
18:25 gfldex unmatched}: what should it do for foo.txt.bak ?
18:26 unmatched} gfldex: my description still stands. The user can either provide ".txt.bak" to strip everything or :!ext flag to use .extension as suffix to strip, which in this case is `.bak`
18:27 unmatched} m: "foo.txt.bak".IO.extension.say
18:27 camelia rakudo-moar 041919: OUTPUT«bak␤»
18:27 unmatched} m: "foo.txt.bak".IO.basename.say
18:27 camelia rakudo-moar 041919: OUTPUT«foo.txt.bak␤»
18:27 unmatched} m: use NativeCall; sub system (Str) is native {}; system "basename /foo/meow.bar .bar"
18:27 camelia rakudo-moar 041919: OUTPUT«meow␤»
18:31 dalek doc: f35f8e7 | (Christopher Bottoms)++ | doc/Language/variables.pod6:
18:31 dalek doc: Is this better? (note on $*SCHEDULER and threads)
18:31 dalek doc: review: https://github.com/perl6/doc/commit/f35f8e78c8
18:31 dalek doc: d0d1cf0 | (Christopher Bottoms)++ | doc/Language/variables.pod6:
18:31 dalek doc: reference note in table
18:31 dalek doc: review: https://github.com/perl6/doc/commit/d0d1cf09f0
18:31 dalek doc: 0d63da3 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/variables.pod6:
18:31 dalek doc: Merge pull request #758 from perl6/molecules-patch-2
18:31 dalek doc:
18:31 dalek doc: This is better (note on $*SCHEDULER and threads)
18:31 dalek doc: review: https://github.com/perl6/doc/commit/0d63da395f
18:32 unmatched} m: use MONKEY-TYPING; augment class IO::Path { multi method basename (:ext!) { $.basename.substr: 0, *-$.extension } }; "foo.txt.bak".IO.basename(:!ext).say
18:32 camelia rakudo-moar 041919: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> 3lass IO::Path { multi method basename (:7⏏5ext!) { $.basename.substr: 0, *-$.extens␤»
18:32 unmatched} Block? What missing block? :S
18:33 unmatched} Oh, damn, the sigil not block
18:35 unmatched} bisect: m: use MONKEY-TYPING; augment class IO::Path { multi method basename (:$ext!) { $.basename.substr: 0, *-$.extension } }; "foo.txt.bak".IO.basename(:!ext).say
18:35 FreezerburnV unmatched}, Wait, you can crack open classes with augment and add stuff? That should get documented
18:35 bisectable unmatched}: Exit code is 1 on both starting points, bisecting by using the output
18:35 bisectable unmatched}: bisect log: https://gist.github.com/2e25​9685cabdaebf275da8e9864ac9b2
18:35 bisectable unmatched}: (2015-12-25) https://github.com/rakudo/rakudo/commit/07fecb5
18:36 unmatched} FreezerburnV: it is: https://docs.perl6.org/syntax/augment
18:36 unmatched} FreezerburnV: also this http://perl6.party/post/Pe​rl-6-Extra-Typical-Perl-6  and kinda-sorta-this http://perl6.party/post/Exploiting-Perl​-6-Code-From-Down-The-Dependency-Chain
18:37 tbrowder ref doc: in Perl 6 Weekly liznat
18:37 FreezerburnV unmatched}, Guess I meant under "Classes and Objects", I"m not sure where that page you linked is linked from in the docs
18:37 AlexDaniel joined #perl6
18:38 unmatched} FreezerburnV: you can open an Issue against the doc repo or submit a PR. https://github.com/perl6/doc/issues/new
18:38 gfldex FreezerburnV: augment is in the wrong section. It should be under type system.
18:38 FreezerburnV I'll see if I can get to that later today. Looks like augment is under variables, which is why I don't think I saw it (haven't read that section fully)
18:38 FreezerburnV gfldex, Yeah
18:39 tbrowder ref docs: in perl 6 weekly lizmat said there is a debug button on doc page but i don't see it. i do see a note about debug off at the bottom.  what's the status?
18:39 gfldex FreezerburnV: also, please note that you make your code fragile if you use augment. If the core is extended, your code might break.
18:39 unmatched} FWIW, I wouldn't put it under "Classes and Objects". That section is relatively intro-level so stuffing a dangerous "don't-use-this" footgun in there is a bit LTA
18:40 rindolf unmatched}: what is "LTA"?
18:40 gfldex tbrowder: click on the thing that says [debug: off] and it will change to [debug: on]. You still have to hit the reload button.
18:40 FreezerburnV gfldex, Yeah that's fair enough. I mostly wanted to use it like extension method in Kotlin: add some totally new method to make the syntax 'nicer' (e.g.: someFun(someObj) -> someObj.someFun)
18:40 rindolf less than advised?
18:40 moritz awesome
18:40 unmatched} rindolf: Less Than Awesome
18:41 rindolf unmatched}: ah.
18:41 unmatched} m: use MONKEY-TYPING; augment class IO::Path { multi method basename (:ext!) { $.basename.substr: 0, *-$.extension } }; "foo.txt.bak".IO.basename(:!ext).say
18:41 camelia rakudo-moar 041919: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing block␤at <tmp>:1␤------> 3lass IO::Path { multi method basename (:7⏏5ext!) { $.basename.substr: 0, *-$.extens␤»
18:41 FreezerburnV Unless there's a way to do that without using augment and possibly causing 1+1 to equal 3
18:42 unmatched} m: sub infix:<+> { 3 }; say 1+1
18:42 camelia rakudo-moar 041919: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling infix:<+>(Int, Int) will never work with declared signature ()␤at <tmp>:1␤------> 3sub infix:<+> { 3 }; say 17⏏5+1␤»
18:42 unmatched} m: sub infix:<+> ($,$) { 3 }; say 1+1
18:42 camelia rakudo-moar 041919: OUTPUT«3␤»
18:42 unmatched} (that's lexical tho)
18:42 FreezerburnV unmatched}, lol
18:43 unmatched} m: use MONKEY-TYPING; augment class IO::Path { multi method basename (:$ext!) { $.basename.substr: 0, *-$.extension } }; "foo.txt.bak".IO.basename(:!ext).say
18:43 camelia rakudo-moar 041919: OUTPUT«foo.txt.bak␤»
18:43 unmatched} Hm. Why doesn't camelia print the error/warning?
18:43 unmatched} I get a compile error for that when I run locally "Cannot have a multi candidate for 'basename' when an only method is also in the package 'IO::Path'"
18:44 unmatched} Ah! Damned RESTRICTED setting rips that method out don't it?
18:44 moritz right
18:44 unmatched} m: "foo".IO.WHAT
18:44 camelia rakudo-moar 041919: ( no output )
18:44 moritz it replaces all of IO
18:44 unmatched} m: "foo".IO.WHAT.say
18:44 camelia rakudo-moar 041919: OUTPUT«(Path)␤»
18:45 tbrowder gfldex: doesn't work for me in Chrome on an ipad
18:46 tbrowder and it doesn't show as a link
18:46 unmatched} m: &infix:<+>.wrap: -> (Int, Int) {3}; say 1 + 1
18:46 camelia rakudo-moar 041919: OUTPUT«2␤»
18:46 unmatched} No idea why that doesn't work. But IIRC, using a wrap you can make the effect non-lexical.
18:47 gfldex tbrowder: it doesn't work in Chrome in general. It's missing some .text() JS method.
18:48 tbrowder ok, i'll try ff
18:49 gfldex i was under the impression that .text() is supplied by jquery. Isn't javascript great?
18:50 gfldex it's actually .contains
18:50 unmatched} It is. Are you sure you aren't just calling it on a non-jQuery-ified element?
18:50 unmatched} http://api.jquery.com/text/
18:50 gfldex looks like it
18:51 tbrowder hm, no joy on ff, either (again, on ipad)
18:51 nemo contentText ?
18:51 nemo not sure what you're doing
18:53 tbrowder nothing on safari, either
18:53 unmatched} yeah, I get "Uncaught TypeError: $(...).text(...).contains is not a function" on Chrome
18:55 nemo er. wait.  .innerText is one I'm thinking of
18:55 nemo aaaand, I have no idea if it was ever standardised anyway
18:56 nemo https://developer.mozilla.org/en​-US/docs/Web/API/Node/innerText
18:56 domidumont joined #perl6
18:56 nemo oh. .textContent
18:56 unmatched} nemo: we can use .text(). The problematic call is the .contains method: https://github.com/perl6/doc/b​lob/master/html/js/main.js#L76
18:56 nemo huh
18:56 * nemo twitches @ that username
18:57 nemo 'k. no idea about the jquery equiv
18:57 nemo don't use much jquery personally
18:57 nemo https://developer.mozilla.org/en-​US/docs/Web/API/Node/textContent  the standard one for completeness sake
18:59 tbrowder left #perl6
18:59 dalek Inline-Perl5: a4322ba | niner++ | p5helper.c:
18:59 dalek Inline-Perl5: Fix compiler warnings in p5_get_global
18:59 dalek Inline-Perl5: review: https://github.com/niner/Inl​ine-Perl5/commit/a4322ba135
18:59 dalek doc: 7fd6934 | (Wenzel P. P. Peppmeyer)++ | html/js/main.js:
18:59 dalek doc: make JS Chrome friendly
18:59 dalek doc: review: https://github.com/perl6/doc/commit/7fd6934658
19:01 sena_kun joined #perl6
19:01 unmatched} Ah, seems .contains was renamed to .includes: https://developer.mozilla.org/en-US​/docs/Web/JavaScript/Reference/Glob​al_Objects/String/includes#String.prototype.contains
19:07 yqt joined #perl6
19:09 sena_kun Are anyone here unable to build docs after latest changes? I'm building it for a half of hour already and I get tons of "duplicated path /tmp/name-number-pod_to_pyg.pod". Is it time for new issue? cast gfldex.
19:11 labster joined #perl6
19:12 unmatched} Check the last commit in the footer of the docs website and see whether it's last (or penultimate) commit in the repo
19:14 sena_kun unmatched}, just pulled latest version. I'll try again now...
19:15 unmatched} Yeah, the site is built from latest commit, so it should build fine.
19:18 sena_kun unmatched}, if only rule "Works for one - works for everyone" were true in programming world. Anyway, thanks for answer. Maybe try with latest rakudo.
19:18 cpage_ joined #perl6
19:19 sena_kun *magically fix articles and grammar
19:19 unmatched} hence the "should" :)
19:20 unmatched} sena_kun: try updating your Pod::To::HTML first.
19:20 unmatched} And Pod::To::BigPage is a new addition too
19:22 sena_kun unmatched}, I'll rebuild rakudo and modules now, I think.
19:28 gfldex sena_kun: can't reproduce
19:29 sena_kun gfldex, sure thing.
19:29 maybekoo2 joined #perl6
19:33 unmatched} Ehe. Just got bit by my taste for colons instead of parens:
19:33 unmatched} m: say "foo" eq "foobar".substr: 0, 3 ?? "foo" !! "bar"
19:33 camelia rakudo-moar 041919: OUTPUT«Earlier failure:␤ Cannot convert string to number: base-10 number must begin with valid digits or '.' in '3⏏5foo' (indicated by ⏏)␤  in block <unit> at <tmp> line 1␤␤Final error:␤ Type check failed in assignment to $chars; expected Int but…»
19:33 unmatched} m: say "foo" eq "foobar".substr(0, 3) ?? "foo" !! "bar"
19:33 camelia rakudo-moar 041919: OUTPUT«foo␤»
19:33 unmatched} The ternary being spread on three lines didn't make catching this easy :P
19:34 unmatched} (and using more substr in it)
19:34 unmatched} .oO( 'my taste for colons'... err... )
19:37 jnthn .oO( I was going to make a colon pun, butt screw it... )
19:38 unmatched} heh
19:47 sno joined #perl6
19:51 girafe joined #perl6
20:08 ptolemarch joined #perl6
20:09 dha joined #perl6
20:14 labster joined #perl6
20:17 BillSussman joined #perl6
20:18 * lizmat is working on the P6W
20:19 lizmat is there a blog post I may have missed?
20:19 lizmat Please let me know
20:19 lizmat is there something else important I may have missed?
20:19 lizmat Please let me know!
20:20 TEttinger joined #perl6
20:22 BrassLantern joined #perl6
20:22 BrassLantern joined #perl6
20:22 gfldex it may just be to warm for blog posts
20:24 lizmat hehe...  only 3 from you in the past week, eh ?
20:26 * jnthn eventually wrote one, but suspect you already found it :)
20:37 lizmat jnthn: yeah, I did  :-)
20:43 cyphase joined #perl6
20:50 pmurias joined #perl6
20:53 pmurias mst: yes, looking at the manual at that sites and at the lenses paper over there seems sane
20:53 mst pmurias: lenses paper over where, sorry?
20:56 pmurias mst: on that boomerang website if you click on [Documentation] you have links to a manual and a bunch of papers
20:56 sena_kun joined #perl6
20:56 mst oh, right, ok, I'd found the manual but not the papers
20:56 mst ta
20:56 pmurias bunch meaning 4 here ;)
21:00 sena_kun gfldex, just in case of your interest: I was able to build docs just fine without syntax highlighing. Sorry for the false report.
21:12 trnh joined #perl6
21:12 trnh joined #perl6
21:19 lizmat and another Perl 6 Weekly hits the Net: https://p6weekly.wordpress.com/201​6/07/25/2016-30-fresh-rakudo-star/
21:20 dalek Inline-Perl5: bc82e27 | niner++ | / (2 files):
21:20 dalek Inline-Perl5: Fix missing symbols when a P5 module is used in multiple places
21:20 dalek Inline-Perl5:
21:20 dalek Inline-Perl5: use Foo:from<Perl5>;
21:20 dalek Inline-Perl5: use Bar; # which uses Foo:from<Perl5>
21:20 dalek Inline-Perl5: resulted in Bar not finding Foo as we did not add Foo to Bar's GLOBALish
21:20 dalek Inline-Perl5: during compilation.
21:20 dalek Inline-Perl5:
21:20 dalek Inline-Perl5: Fixes GH #70
21:20 dalek Inline-Perl5: review: https://github.com/niner/Inl​ine-Perl5/commit/bc82e2741c
21:35 gfldex lizmat++https://p6weekly.wordpress.com/201​6/07/25/2016-30-fresh-rakudo-star/
21:36 gfldex i need to stop using my computer one handely. Gonna drive into a tree or something.
21:37 ribasushi joined #perl6
21:43 pierrot joined #perl6
21:44 rurban joined #perl6
21:44 rurban left #perl6
21:46 labster joined #perl6
21:46 Zoffix left #perl6
21:48 pmqs joined #perl6
21:52 BrassLantern joined #perl6
21:52 BrassLantern joined #perl6
21:52 ribasushi joined #perl6
21:53 wamba joined #perl6
22:03 Sgeo joined #perl6
22:09 rurban1 joined #perl6
22:23 ribasushi joined #perl6
22:29 xescugc joined #perl6
22:35 pmqs joined #perl6
22:38 maybekoo2 joined #perl6
22:43 idiosyncrat_ joined #perl6
22:46 idiosyncrat_ left #perl6
22:54 ribasushi joined #perl6
22:55 skids joined #perl6
23:05 labster joined #perl6
23:10 dvinciguerra_ joined #perl6
23:24 captain-adequate joined #perl6
23:26 gfldex m: say HyperWhatever.WHAT;
23:26 camelia rakudo-moar 041919: OUTPUT«(HyperWhatever)␤»
23:27 gfldex ENODOC
23:28 [Coke] gfldex: https://design.perl6.org/S02​.html#The_HyperWhatever_Type has some notes.
23:35 cyphase joined #perl6
23:36 captain-adequate joined #perl6
23:39 lambd0x joined #perl6
23:42 lambd0x Hi guys. If I encode something reasonably from UTF-8 to ASC-II and save it to a file, would it conplain upon opening the handler that it cannot undestand what it reads? let's say by reporting malformed UTF-8?
23:42 lambd0x *understand
23:44 TimToady ASCII is a proper subset of both UTF-8 and Latin-1, so I don't see a problem
23:45 TimToady if you encode to Latin-1 then you'd have problems reading it as UTF-8
23:46 TimToady (not accusing you of confising ASCII with Latin-1, but occasionally people do)
23:49 lambd0x TimToady: I'm taking a message in UTF-8 and applying an encryption algorthm over the message after having it reencoded to ASC-II then I get a non meaninful message code that I ask to get saved. My code is here: http://paste.ubuntu.com/20938202/
23:50 lambd0x *algorithm (RC4) it works fine by the way.
23:50 BenGoldberg joined #perl6
23:54 lambd0x The code should save to a file every item from the array after it is encrypted. and in a latter runtime it was to be read and reencoded to a meaninful message in UTF-8 after decryption, which still to be done :)
23:58 Herby_ joined #perl6
23:58 Herby_ Evening, everyone!
23:58 Herby_ o/
23:58 lambd0x \o Herby
23:59 kurahaupo joined #perl6

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

Perl 6 | Reference Documentation | Rakudo