Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-06-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:14 travis-ci joined #perl6
00:14 travis-ci Doc build errored. Jan-Olof Hendig 'Added some missing types
00:14 travis-ci https://travis-ci.org/perl6/doc/builds/246665665 https://github.com/perl6/doc/compare/0ba54816cb10...f441ed3db751
00:14 travis-ci left #perl6
00:27 cdg joined #perl6
00:44 danlei` joined #perl6
00:45 Cabanossi joined #perl6
00:59 zacts joined #perl6
01:12 zacts joined #perl6
01:14 aborazmeh joined #perl6
01:14 aborazmeh joined #perl6
01:48 ilbot3 joined #perl6
01:48 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
02:02 bwisti joined #perl6
02:06 cpage joined #perl6
02:20 gabc joined #perl6
02:21 noganex joined #perl6
02:30 Cabanossi joined #perl6
02:32 aborazmeh joined #perl6
02:32 aborazmeh joined #perl6
02:59 Ben_Goldberg joined #perl6
03:13 Cabanossi joined #perl6
04:27 samcv turns out there's a ligature in unicode which is three whole words
04:28 Cabanossi joined #perl6
04:28 samcv it must not fold on casefolding or i would have noticed this. but it has 18 collation keys. instead of the usual of 1 per codepoint
04:29 samcv u: ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM
04:29 unicodable6 samcv, U+FDFA ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM [Lo] (ﷺ)
04:29 samcv looks like this http://i.imgur.com/rWbnskP.png
04:30 samcv unidump: ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM
04:30 unicodable6 samcv, https://gist.github.com/14c00aae9b37aa0c32a580845fbe4a91
04:30 samcv ugh. that didn't work
04:31 samcv unidump: ﷺ
04:31 unicodable6 samcv, https://gist.github.com/d9298ac65ac22d996202edc11b636bef
04:42 geekosaur joined #perl6
04:58 Cabanossi joined #perl6
05:37 skids joined #perl6
05:43 Cabanossi joined #perl6
05:52 xinming_ joined #perl6
05:57 skids joined #perl6
06:06 rindolf joined #perl6
06:13 domidumont joined #perl6
06:18 domidumont joined #perl6
06:43 Cabanossi joined #perl6
06:44 wamba joined #perl6
07:04 domidumont joined #perl6
07:20 domidumont joined #perl6
07:44 konsolebox joined #perl6
07:57 parv joined #perl6
08:47 sjoshi joined #perl6
08:49 mr-foobar joined #perl6
08:50 sjoshi joined #perl6
08:54 domidumont joined #perl6
08:57 Cabanossi joined #perl6
09:06 TEttinger the sun is not doing samcv is doing
09:06 TEttinger I wonder what that amazing ligature is used for
09:46 mr-fooba_ joined #perl6
09:56 espadrine joined #perl6
09:57 Cabanossi joined #perl6
10:09 nhywyll joined #perl6
10:22 zengargoyle https://translate.google.com/#auto/en/SALLALLAHOU%20ALAYHE%20WASALLAM
10:23 zengargoyle "Peace be upon him"  probably a set phrase.
10:24 geekosaur yes
10:28 Cabanossi joined #perl6
10:28 zengargoyle there are a few slightly similar things in the Japanese codepoints where there are 4 characters arranged in a 2x2 pattern as a single glyph.  probably a holdover from the pre-unicode days and cellphones.
10:30 zengargoyle .u ㌖
10:30 yoleaux U+3316 SQUARE KIROMEETORU [So] (㌖)
10:32 zengargoyle from U+3300 to U+3357
10:32 samcv hmm wonder if it makes sense for IO::Path.child to take multiple arguments?
10:32 samcv $*CWD.child('foo', 'bar') would be ./foo/bar
10:33 samcv something i thought of
10:39 domidumont joined #perl6
10:55 Rawriful joined #perl6
10:58 Cabanossi joined #perl6
11:35 nhywyll joined #perl6
11:42 Cabanossi joined #perl6
11:57 ChoHag joined #perl6
12:03 abraxxa joined #perl6
12:18 lollercopter joined #perl6
12:18 lollercopter .
12:18 yoleaux 12:15Z <dogbert17> lollercopter: hasn't IOninja's recent IO work made https://github.com/perl6/doc/issues/852 closable?
12:19 ufobat joined #perl6
12:19 lollercopter dogbert17: closed
12:21 lollercopter samcv: not IMO. No other IO routines take their paths in arbitrary chunks like that, so adding this would be inconsistent. You can always use '/' as the separator, so it'd be $*CWD.child('foo/bar') or $*CWD.child: @parts.join: '/' and will just work and will be faster than adding a slurpy multi candidate.
12:21 lollercopter left #perl6
12:21 nhywyll joined #perl6
12:22 samcv so there's no way to use a /
12:22 samcv *not
12:28 Cabanossi joined #perl6
12:31 kaare_ joined #perl6
12:41 AlexDaniel joined #perl6
12:53 zengargoyle hrm... i thought 'rule { <F> | <F> <B> }' would do longest match.  that didn't work but 'rule { <F> <B> | <F> }' did.
12:54 * zengargoyle should probably be re-reading some docs...
13:03 bwisti joined #perl6
13:05 timotimo only does longest match with the declarative prefix
13:05 timotimo so maybe you have something in F that stops the longest token from becoming any longer
13:17 zengargoyle hrm,  <F> maches 'now' and <B> matches '+ 1 min'.  they're pretty direct exact match of a specific string or digit.
13:17 timotimo strange, can you golf it?
13:19 domidumont joined #perl6
13:20 zengargoyle i'm not sure, it goes down a few levels from F and B.  lemme see.
13:26 zengargoyle m: my grammar T { rule t { <S> | <S> <B> }; rule S { 'now' }; rule B { <C> | <D> }; rule C { '+' \d 'min' }; rule D { '-' \d 'min' }; }; say so T.parse("now",:rule<t>); say so T.parse("now + 1 min",:rule<t>); say so T.parse("+ 1 min",:rule<C>);say so T.parse("+ 1 min",:rule<B>);
13:26 camelia rakudo-moar 19a1ca: OUTPUT: «True␤False␤True␤True␤»
13:27 zengargoyle m: my grammar T { rule t { <S> <B> | <S> }; rule S { 'now' }; rule B { <C> | <D> }; rule C { '+' \d 'min' }; rule D { '-' \d 'min' }; }; say so T.parse("now",:rule<t>); say so T.parse("now + 1 min",:rule<t>); say so T.parse("+ 1 min",:rule<C>);say so T.parse("+ 1 min",:rule<B>);
13:27 camelia rakudo-moar 19a1ca: OUTPUT: «True␤True␤True␤True␤»
13:27 zengargoyle m: my grammar T { regex t { <S> | <S> <B> }; rule S { 'now' }; rule B { <C> | <D> }; rule C { '+' \d 'min' }; rule D { '-' \d 'min' }; }; say so T.parse("now",:rule<t>); say so T.parse("now + 1 min",:rule<t>); say so T.parse("+ 1 min",:rule<C>);say so T.parse("+ 1 min",:rule<B>);
13:27 camelia rakudo-moar 19a1ca: OUTPUT: «True␤True␤True␤True␤»
13:27 zengargoyle it works if backtracking or the longest match is given first.
13:28 Cabanossi joined #perl6
13:32 zengargoyle timotimo: what's 'declarative prefix'?
13:34 zengargoyle there's a TOP { ^^ <t> $$ } around that in reality.
13:34 timotimo the initial part of a regex that can be matched with a simple DFA
13:35 timotimo so no backreferences, or lookahead/lookbehind, no code blocks
13:37 jnthn rule { <F> | <F> <B> } # <.ws> is not declarative, so these two have identical declarative prefixes
13:37 zengargoyle so that S can match some pretty complicated things (it just doesn't in this case since one of the things it can match is 'now')  does that negate longest matching?
13:39 zengargoyle ok, that makes some sense.  will arranging the branches in longest to shortest help any?
13:40 zengargoyle i basically just tried to transcribe the .l file into tokens and the .y file into rules as straightforward as possible.
13:40 zengargoyle this is the unix `at` command's time specificaton format...
13:41 brrt joined #perl6
13:43 * zengargoyle figures if lex/yacc can do it, Grammars can too one way or another. :)
13:51 nightfrog joined #perl6
13:52 timotimo jnthn: ah! i would have missed <.ws> there
13:52 timotimo zengargoyle: you can change your <ws> token to behave differently or use something other than "rule
13:59 zengargoyle cool, i have it parsing all of the strings from the minimal test program shipped with the `at` src.  i think everything is simple enough to order by longest and use regex if needed.
14:06 pilne joined #perl6
14:10 andrzejku joined #perl6
14:31 Geth ¦ doc: de113b3f16 | (Jan-Olof Hendig)++ | doc/Language/functions.pod6
14:31 Geth ¦ doc: Updated the text about multi-dispatch.
14:31 Geth ¦ doc:
14:31 Geth ¦ doc: Closes #858
14:31 Geth ¦ doc: review: https://github.com/perl6/doc/commit/de113b3f16
14:49 zakharyas joined #perl6
14:49 moritz lol I blogged: https://perlgeek.de/blog-en/perl-6/2017-017-living-on-the-bleading-edge.html
14:51 ggoebel joined #perl6
14:57 Cabanossi joined #perl6
15:21 travis-ci joined #perl6
15:21 travis-ci Doc build errored. Jan-Olof Hendig 'Updated the text about multi-dispatch.
15:21 travis-ci https://travis-ci.org/perl6/doc/builds/246795462 https://github.com/perl6/doc/compare/f441ed3db751...de113b3f16b7
15:21 travis-ci left #perl6
15:25 zengargoyle moritz: http://www.fileformat.info/info/unicode/char/ff62/fontsupport.htm
15:28 zengargoyle http://www.fileformat.info/info/unicode/char/search.htm?q=%EF%BD%A2&amp;preview=entity  -- search and follow clicky things. :)
15:31 nhywyll joined #perl6
15:34 zengargoyle https://unix.stackexchange.com/questions/162305/find-the-best-font-for-rendering-a-codepoint  -- python script :P
15:35 zengargoyle https://gist.github.com/zengargoyle/2a565e3054a4bb109e3b7049556682c9
15:36 kaare_ joined #perl6
15:36 setty1 joined #perl6
15:44 lizmat moritz: s/wich I use/which I use/
15:44 lizmat moritz: s/friends cam up/friends came up /
15:45 lizmat moritz: s/to avod collisions/to avoid collisions/
15:45 lizmat moritz++  :-)
15:57 khw joined #perl6
15:59 mr-foobar joined #perl6
16:02 nhywyll joined #perl6
16:04 nowan joined #perl6
16:05 cognominal joined #perl6
16:29 mr-fooba_ joined #perl6
16:35 andrzejku hey guys do you knwo open source project which need contrbutors
16:35 andrzejku in C++?
16:35 mr-foobar joined #perl6
16:36 tadzik maybe https://godotengine.org/?
16:40 sufrostico joined #perl6
16:40 sufrosti1o joined #perl6
16:40 sufrostico joined #perl6
16:42 Rawriful joined #perl6
16:42 dogbert17 .seen moritz
16:42 yoleaux I saw moritz 14:49Z in #perl6: <moritz> lol I blogged: https://perlgeek.de/blog-en/perl-6/2017-017-living-on-the-bleading-edge.html
17:16 skids joined #perl6
17:19 |oLa| joined #perl6
17:23 andrzejku joined #perl6
17:27 zakharyas joined #perl6
17:32 MasterDuke joined #perl6
17:46 Rawriful joined #perl6
17:48 domidumont joined #perl6
18:08 setty1 joined #perl6
18:09 BenGoldberg joined #perl6
18:10 moritz :-)
18:12 moritz lizmat: thanks, fixing the typos now
18:15 moritz zengargoyle: those links kinda support my point; for example http://www.fileformat.info/info/unicode/char/ff62/fontsupport.htm lists just one font that's obviously mono space, and that doesn't seem to be open source
18:16 dogbert17 moritz: do you have time to look at a documentation gist?
18:16 moritz dogbert17: depends on how long it is :-)
18:16 dogbert17 not so long :) https://gist.github.com/dogbert17/4bb9490a7da02f33c83257aad381925c
18:19 moritz dogbert17: looks correct
18:19 moritz on the language front, I find the hanging "or Mu if no ..." a bit weird
18:19 moritz might be better to put that earlier, and start a new sentence that explains how it looks up the method
18:20 andrzejku joined #perl6
18:20 dogbert17 moritz: thx, I'll try to implement your suggestions
18:26 sjoshi joined #perl6
18:27 Geth ¦ doc: 1b648fa0a0 | (Jan-Olof Hendig)++ | doc/Type/Metamodel/MethodContainer.pod6
18:27 Geth ¦ doc: Added documentation for lookup. Moritz++, MasterDuke17++ for proofreading.
18:27 Geth ¦ doc:
18:27 Geth ¦ doc: Closes #875
18:27 Geth ¦ doc: review: https://github.com/perl6/doc/commit/1b648fa0a0
18:27 seatek joined #perl6
19:12 zakharyas joined #perl6
19:15 BenGoldberg joined #perl6
19:17 awwaiid joined #perl6
19:17 domidumont joined #perl6
19:18 travis-ci joined #perl6
19:18 travis-ci Doc build errored. Jan-Olof Hendig 'Added documentation for lookup. Moritz++, MasterDuke17++ for proofreading.
19:18 travis-ci https://travis-ci.org/perl6/doc/builds/246843680 https://github.com/perl6/doc/compare/de113b3f16b7...1b648fa0a02c
19:18 travis-ci left #perl6
19:26 mniip joined #perl6
19:27 b2gills joined #perl6
19:44 b2gills joined #perl6
19:51 |oLa| joined #perl6
19:51 bwisti joined #perl6
20:00 kybr joined #perl6
20:09 AlexDaniel joined #perl6
20:17 paule32 left #perl6
20:18 zapwai joined #perl6
20:24 nullcone joined #perl6
20:43 BenGoldberg Could someone point me to where is the keyword "unit" documented?  I kinda know what it does by examples I've seen, but I'd like to read the doc.
20:55 Geth ¦ doc/master: 4 commits pushed by (Will "Coke" Coleda)++
20:55 Geth ¦ doc/master: 4fa84d0520 | use nbsp
20:55 Geth ¦ doc/master: 997cafbe8c | Mark snippets from other languages
20:55 Geth ¦ doc/master: 92f1602fe3 | learn new words
20:55 Geth ¦ doc/master: 01a7c34f47 | skip failing sample code
20:55 Geth ¦ doc/master: review: https://github.com/perl6/doc/compare/1b648fa0a0...01a7c34f47
20:56 geekosaur https://docs.perl6.org/language/syntax#Module,_Class,_Role,_and_Grammar_declaration
20:56 [Coke] BenGoldberg: pretty sure we don't have a solid doc page for that. https://docs.perl6.org/language/modules has some usage of it.
20:57 [Coke] geekosaur++
20:58 Cabanossi joined #perl6
21:01 * BenGoldberg wonders whether it would be worthwhile to ask for a keyword 'unbrace' which works with ANY expression which would normally be followed by something in {}
21:03 BenGoldberg To make parsing simpler, it might go at the end of the line (where the '{' would be), instead of the beginning.
21:03 BenGoldberg . o O (unlisp!)
21:09 AlexDaniel hm… you can already omit braces sometimes
21:09 AlexDaniel m: say BEGIN now
21:09 camelia rakudo-moar 9936a3: OUTPUT: «Instant:1498425014.143994␤»
21:26 timotimo whenever you have a blast, you can omit brackets
21:26 timotimo because a blast is a BLock, Alternative STatement
21:28 timotimo sometimes they're called "blorst", which is just "BLock OR STatement"
21:45 travis-ci joined #perl6
21:45 travis-ci Doc build errored. Will "Coke" Coleda 'skip failing sample code'
21:45 travis-ci https://travis-ci.org/perl6/doc/builds/246879859 https://github.com/perl6/doc/compare/1b648fa0a02c...01a7c34f473d
21:45 travis-ci left #perl6
21:58 Cabanossi joined #perl6
22:08 lizmat joined #perl6
22:22 lizmat https://www.reddit.com/r/perl6/comments/6jh2bs/creating_a_simple_dsl_do_end/
22:29 BenGoldberg m: await start { my $a = "strange"; $a does role Test { }; } xx 2
22:29 camelia rakudo-moar 9936a3: ( no output )
22:29 BenGoldberg m: await start { my $a = "strange"; $a does role Test { }; } xx 16
22:29 camelia rakudo-moar 9936a3: OUTPUT: «Tried to get the result of a broken Promise␤  in block <unit> at <tmp> line 1␤␤Original exception:␤    Incompatible MROs in P6opaque rebless for types Str+{Test} and Str+{Test}␤      in block  at <tmp> line 1␤␤»
22:36 BenGoldberg m: my $l = Lock.new; await start { my $a = "dubba"; role Test { }; $l.protect: { $a does Test }; } xx 16
22:36 camelia rakudo-moar 9936a3: ( no output )
22:41 mr-foobar joined #perl6
22:54 sufrostico joined #perl6
22:54 sufrosti1o joined #perl6
22:57 Cabanossi joined #perl6
23:08 grondilu joined #perl6
23:26 Geth ¦ doc: fcc07f1575 | (Will "Coke" Coleda)++ | util/new-type.p6
23:26 Geth ¦ doc: Don't emit {}'s around type name
23:26 Geth ¦ doc:
23:26 Geth ¦ doc: Fixes #1392
23:26 Geth ¦ doc: review: https://github.com/perl6/doc/commit/fcc07f1575
23:33 Geth ¦ doc: d2bb868efb | (Will "Coke" Coleda)++ | doc/Language/5to6-perlsyn.pod6
23:33 Geth ¦ doc: use nbsp
23:33 Geth ¦ doc: review: https://github.com/perl6/doc/commit/d2bb868efb
23:33 Geth ¦ doc: ec53fea130 | (Will "Coke" Coleda)++ | 2 files
23:33 Geth ¦ doc: test examples, part of #1387
23:33 Geth ¦ doc: review: https://github.com/perl6/doc/commit/ec53fea130
23:39 Geth ¦ doc: 29c9046565 | (Will "Coke" Coleda)++ | 2 files
23:39 Geth ¦ doc: test examples, part of #1387
23:39 Geth ¦ doc: review: https://github.com/perl6/doc/commit/29c9046565
23:54 BenGoldberg m: printf '%.4f, for a good time call', (7 ** (e - 1/e) - 9) * pi**2;
23:54 camelia rakudo-moar e4f335: OUTPUT: «867.5309, for a good time call»
23:57 Cabanossi joined #perl6

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

Perl 6 | Reference Documentation | Rakudo