»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
Zoffix You have $/ in { } too 00:17
Altreus: / { ... } / just executes some code inside the regex (and updates $/ and ends Longest Term Matching); / <{ ... }> / executes the code and uses the return value as a regex / <?{ ... }> / executes the code and uses the return value in boolean context to determine whether this zero-width match should succeed or not 00:19
m: say "Zoffix is great" ~~ / Zoffix (.+) <?{ $/[0].contains: any <great awesome nice> }> / 00:20
camelia 「Zoffix is great」
0 => 「 is great」
Zoffix m: say "Zoffix is meh" ~~ / Zoffix (.+) <?{ $/[0].contains: any <great awesome nice> }> /
camelia Nil
Zoffix Altreus: also TAP::Parser is another example of grammary things
jnthn $/[0] is probably more commonly written as $0, fwiw :)
Zoffix Oh man. Right. I always wrote it as $/[0] outside of regex lol :) 00:21
jnthn (They later is sugar for the former)
Zoffix eco: TAP::Parser
buggable Zoffix, Nothing found
Zoffix eco: TAP::Harness
buggable Zoffix, TAP::Harness 'TAP harness for perl6': github.com/perl6/tap-harness6
Zoffix Altreus: ^ that, I meant.
leont Yeah, it's grammary, with a hack to preprocess the input so we get it in the right size chunks (otherwise grammars would trip over incomplete input) 00:23
leont YAML is my going overboard with grammars project, parsing much more of YAML seems to require doing things that aren't clean parsing anymore 00:24
Altreus wasn't me that asked that but thanks for the other bit :) 00:29
timotimo $0, $1, ... as well as $<foo>, $<bar>, ... are the reason i sometimes bind things that don't have anything to do with string matching to the $/ variable 00:37
jnthn Can't tell if clever or way too clever :P 00:38
timotimo tbf, .<abc> is the same length as $<abc>, so maybe i should go with that more often. on the other hand, you can just write $<foo> inside a double-quoted string, whereas you'd have to spell out $_.<foo> for the other thing 00:39
well, $_<foo> also works 00:41
jnthn Very true :)
benjisomething Hey, does anyone here know who runs `perlmaven` 01:48
or `perl6maven`, sorry
raschipi benjisomething: github.com/szabgab 01:56
yoleaux 19 Jan 2018 20:47Z <Xliff_> raschipi: Oh. LOL. Missed the '_'
benjisomething Ah, thanks 01:57
I was guessing he might be in this IRC, but now I suppose he isn't
raschipi Not right now
benjisomething Does anyone here still use that old editor "Padre" 01:58
made by him
Seems like the website is fairly dead, with the last update coming in 2013 01:59
raschipi szabgab was last active 2 days ago according to the logs: irclog.perlgeek.de/perl6/search/?n...gab&q= 02:00
benjisomething I see 02:01
raschipi benjisomething: People have been talking about it in use last year, so I suppose it works: irclog.perlgeek.de/perl6/search/?n...mp;q=padre 02:04
benjisomething I see, thanks 02:08
raschipi np 02:19
seeg hello, i just learned about perl6 grammars, they remind me of logstash' grok function: www.elastic.co/guide/en/logstash/c...-grok.html 06:18
seeg is it possible in perl6 to combine smaller grammars into a bigger one? i can't find it in the docs 06:19
also this tool for the 'grok' plugin grokdebug.herokuapp.com/ is quite nice as it allows for auto-discovery of the grammar components from raw text, is there something similar in perl6? :)
Zoffix seeg: yeah, grammars are just classes. You can subclass them or make roles and mix them in 06:28
seeg: bottom of this section has a small example of subclassing original "Calculator" grammar and its actions class to add more features to it: docs.perl6.org/language/grammars#Proto_regexes 06:29
seeg ah ok great thanks
Xliff_ seeg: I think that "auto-discovery" is the site running through all of its predefined patterns until it finds the first thing that matches. 06:38
It would be interesting if it applies some heuristic to determine which match is "best"
seeg there are many possibilities here i guess, starting from "get first that matches" to something like "get the most optimal one that tries to match the whole string with minimal number of patterns" 06:40
buggable New CPAN upload: Terminal-Getpass-0.0.1.tar.gz by TITSUKI cpan.metacpan.org/authors/id/T/TI/...0.1.tar.gz 07:32
New CPAN upload: Terminal-Getpass-0.0.2.tar.gz by TITSUKI cpan.metacpan.org/authors/id/T/TI/...0.2.tar.gz 07:42
titsuki I made Terminal::Getpass, but it seems that it doesn't hide its input on OSX environment. Does anyone know how to fix it? 07:49
The code is here: github.com/titsuki/p6-Terminal-Getpass 07:50
player Hi. Where modules installed by Zef are located? Thanks. 08:27
titsuki OK. I found the difference between OSX and UNIX in termios. They use different bit position for ECHO flag. 08:52
Zoffix player, use zef's `locate` command (e.g `zef locate TAP::Harness`). Note that that gives you location of the source code, but the actual module is installed precompiled bytecode; i.e. modifying that source code won't modify the module 09:07
Geth doc: 6229a9ee64 | (JJ Merelo)++ | doc/Type/Signature.pod6
Changed the example of the :U smiley

The previous one actually did not use the declared parameter. This one is an actual use case for it, even if it does not follow the
  `limit-lines` example so far. Hope it's better now.
09:45
synopsebot Link: doc.perl6.org/type/Signature
Zoffix \o Any idea what's the reasoning for `readline` to keep attempting to read from STDIN once EOF is reached? Is it just because C's read() would block (I'm guessing) on TTYs and wait for stuff but not do so for non-TTYs? 11:01
Trying to figure out if there's a deeper reason for allow this behaviour; e.g. that in this script you have to press CTRL+D on each loop iteraton: rt.perl.org/Ticket/Attachment/1435...lti-eof.pl
Oops. wc 11:02
teatime wut. where did Zoffix go 11:12
titsuki Does anyone know the way to get macro constant (e.g. #define PI 3.14) in C header with basic feature of NativeCall? 11:22
moritz titsuki: you don't; they are a purely syntactic feature of the header files, and are not reflected in the object files 11:26
titsuki moriz: Thanks! I'll seek another way. 11:27
*moritz
Nanjizal Is Str the basic String class in Perl6 ?
or basic Type? 11:28
moritz Nanjizal: what do you mean by "basic"? 11:30
Nanjizal Well it says it's immutable but I wanted a mutable structure. I was experimenting with Haxe Compiler and wondering about implementation of a String for Perl. 11:43
It seems many base structures of Perl are immutable by design and then they have mutable ones above? 11:45
moritz the interesting thing about Str is that they are based on grapheme clusters, not on codepoints
there is no real mutable string type
psch there's something about "we'd have to know that appeneded mutStr are already NFG" and "we'd have to know that parts removed form a full grapheme" that isn't really solvalbe, isn't there? 11:54
my NFG knowledge is still very limited 11:55
m: say "f̉̌͊͂͊̎͒҉͚̯̲̝o􏿽xCC􏿽x8D􏿽xCC􏿽x93􏿽xCD􏿽xAB􏿽xCC􏿽x92􏿽xCC􏿽x91􏿽xCD􏿽xA4􏿽xCC􏿽x8E􏿽xCC􏿽x88􏿽xCD􏿽xA3􏿽xCC􏿽x82􏿽xCC􏿽x8E􏿽xCC􏿽xBF􏿽xCC􏿽x89􏿽xCD􏿽x82􏿽xCD􏿽xA3􏿽xCD􏿽xA8􏿽xCC􏿽x86􏿽xCD􏿽x9F􏿽xCC􏿽x95􏿽xCC􏿽xB5􏿽xCD􏿽xA0􏿽xCC􏿽xBA􏿽xCD􏿽x87􏿽xCC􏿽xA0􏿽xCC􏿽xA4􏿽xCC􏿽xAD􏿽xCC􏿽x99􏿽xCC􏿽x96􏿽xCC􏿽xA4􏿽xCD􏿽x96􏿽xCD􏿽x85o􏿽xCD􏿽x86􏿽xCD􏿽xA9􏿽xCC􏿽x8C􏿽xCD􏿽x8A􏿽xCC􏿽x8E􏿽xCD􏿽xAE􏿽xCC􏿽xBF􏿽xCC􏿽x8A􏿽xCC􏿽x8F􏿽xCC􏿽xBE􏿽xCC􏿽x9B􏿽xCD􏿽x9F􏿽xCC􏿽xB4􏿽xCD􏿽xA1􏿽xCD􏿽x85􏿽xCC􏿽x98􏿽xCC􏿽xA0􏿽xCC􏿽xB2􏿽xCD􏿽x8E􏿽xCD􏿽x8E􏿽xCC􏿽x9C􏿽xCC􏿽xB9􏿽xCC􏿽x98􏿽xCC􏿽xBA􏿽xCC􏿽xB2􏿽xCC􏿽x9C􏿽xCC􏿽xAA􏿽xCC􏿽xAF􏿽xCD􏿽x87􏿽xCC􏿽x9D".chars 11:56
camelia 3
psch m: say +"f̉̌͊͂͊̎͒҉͚̯̲̝o􏿽xCC􏿽x8D􏿽xCC􏿽x93􏿽xCD􏿽xAB􏿽xCC􏿽x92􏿽xCC􏿽x91􏿽xCD􏿽xA4􏿽xCC􏿽x8E􏿽xCC􏿽x88􏿽xCD􏿽xA3􏿽xCC􏿽x82􏿽xCC􏿽x8E􏿽xCC􏿽xBF􏿽xCC􏿽x89􏿽xCD􏿽x82􏿽xCD􏿽xA3􏿽xCD􏿽xA8􏿽xCC􏿽x86􏿽xCD􏿽x9F􏿽xCC􏿽x95􏿽xCC􏿽xB5􏿽xCD􏿽xA0􏿽xCC􏿽xBA􏿽xCD􏿽x87􏿽xCC􏿽xA0􏿽xCC􏿽xA4􏿽xCC􏿽xAD􏿽xCC􏿽x99􏿽xCC􏿽x96􏿽xCC􏿽xA4􏿽xCD􏿽x96􏿽xCD􏿽x85o􏿽xCD􏿽x86􏿽xCD􏿽xA9􏿽xCC􏿽x8C􏿽xCD􏿽x8A􏿽xCC􏿽x8E􏿽xCD􏿽xAE􏿽xCC􏿽xBF􏿽xCC􏿽x8A􏿽xCC􏿽x8F􏿽xCC􏿽xBE􏿽xCC􏿽x9B􏿽xCD􏿽x9F􏿽xCC􏿽xB4􏿽xCD􏿽xA1􏿽xCD􏿽x85􏿽xCC􏿽x98􏿽xCC􏿽xA0􏿽xCC􏿽xB2􏿽xCD􏿽x8E􏿽xCD􏿽x8E􏿽xCC􏿽x9C􏿽xCC􏿽xB9􏿽xCC􏿽x98􏿽xCC􏿽xBA􏿽xCC􏿽xB2􏿽xCC􏿽x9C􏿽xCC􏿽xAA􏿽xCC􏿽xAF􏿽xCD􏿽x87􏿽xCC􏿽x9D".ords 11:58
camelia 75
Geth doc/MARTIMM-patch-1: a5d932d64c | (Marcel Timmerman)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6
first call to show_captures has wrong number of arguments in section Backtracking

In the first example where show_captures is defined, the call to it has also $string as its second argument(line 1937). this is not used in the sub signature.
Furthermore a small typo on line 1917 (matched instead of match).
12:14
Geth doc: MARTIMM++ created pull request #1735:
first call to show_captures has wrong number of arguments in section Backtracking
12:16
travis-ci Doc build passed. Marcel Timmerman 'first call to show_captures has wrong number of arguments in section Backtracking 12:39
travis-ci.org/perl6/doc/builds/331173194 github.com/perl6/doc/commit/a5d932d64cce
lizmat is tired after responding to many comments on reddit 13:34
psch lizmat++ 13:36
reddit is harsh
moritz people are harsh :( 13:42
teatime I could not advocate perl on reddit. reddit is way too harsh. I'd burn out instantly. 13:47
and/or I'm already burned out on arguing about whether perl sucks. (it doesn't.) 13:48
AlexDaniel I'm surprised that people like “rakudo” as a name
teatime took me a while to finally internalize that it's not raduko. otherwise, seems fine to me.
I mean, it's easier to google than Go :) 13:49
stmuk_ I've had troll attacks from rust people posting about go on both reddit & twitter -- so its not just a perl problem 13:50
me posting about go I mean
teatime it's like, two problems, the other one being that reddit can be so infuriating. 13:52
and they would combine into the perfect storm.
lizmat++
titsuki I found a way to leverage macro constants in a header file with helper functions!: github.com/krunen/term-termios/pull/11 14:26
Geth doc: 9f77ed7475 | (Jan-Olof Hendig)++ | doc/Type/WhateverCode.pod6
Remove duplicate line
16:20
synopsebot Link: doc.perl6.org/type/WhateverCode
buggable New CPAN upload: Terminal-Getpass-0.0.3.tar.gz by TITSUKI cpan.metacpan.org/authors/id/T/TI/...0.3.tar.gz 16:22
Geth doc: 6b6060aec6 | (Jan-Olof Hendig)++ | doc/Type/utf8.pod6
Fix typo in example output
16:34
synopsebot Link: doc.perl6.org/type/utf8
leont reddit is reddit. I've seen far worse than the perl ones :-/ 16:47
teatime TIL that ^D doesn't close the stdin stream, and a program can receive multiple EOF's 17:14
moritz I object to the sentiment behind "reddit is reddit." People should be civil everywhere, and being on a traditionally hostile platform is no excuse for such behavior 17:16
and we shouldn't simply accept that hostility as the new norm 17:17
b2gills lizmat's blog was referenced at sdtimes.com/android/sd-times-news-...ing-round/ 17:19
lizmat yikes :-) 17:20
dinner& 17:21
geekosaur teatime, ^D just sends what's in the terminal buffer. if it's the start of a line then that will be nothing, resulting in a zero length read that is taken as EOF 17:23
BenGoldberg moritz, Does that mean that you would also expect people on 4chan to be nice and polite, too? 18:26
moritz BenGoldberg: the word "expectation" has several meanings, I think 18:31
BenGoldberg: if you ask me for my predition on how they behave, I'd say "not nice"
moritz BenGoldberg: but when talking about expectation in the sense of social norms, my answer is that they should limit their non-niceness to people who have chosen to be part of that community, not "innocent" strangers 18:32
lizmat afk until tomorrow probably& 19:01
buggable New CPAN upload: Sparrowdo-0.0.37.tar.gz by MELEZHIK cpan.metacpan.org/authors/id/M/ME/....37.tar.gz 19:12
rindolf moritz: i agree with your sentiments about trying to be better than the social norm 19:46
preaction especially if Perl.com is linking to you as the place to make comments? 19:53
if r/perl is given official status (which it looks like it is), then r/perl is the official face of the community. so, look at your face, community... 19:55
moritz is perl.com in any way official/authorotative?
DrForr It has a .com in it, so in the minds of people new to the discussion it will be. 19:56
preaction the official announcement says The Perl Foundation is its "custodian"
www.perl.com/article/welcome-back-perl-com/
DrForr Maybe I should get an account there and add my blog postings, just to see how much traffic I can draw. 19:58
preaction the about page says it's "managed by The Perl Foundation"
so, not sure how official something can get in Perl-land, but it seems pretty official to me 19:59
i consider Perl.com an opportunity to have a community news / announcement pipeline. but then i realize that the TPC::NA announcement isn't up there and realize that's probably not happening 20:00
DrForr Maybe someone should submit it? 20:01
preaction i would, but i expended all my community energy for the weekend in the reddit thread that shall not be named... 20:12
stmuk_ . o O ( I should never publish this blog I'm writing ) 20:39
dmaestro I'm having trouble using modules and namespaces. I've read the relevant docs on perl6.org, but haven't found a rule or example that describes what I'm trying to do. Hoping someone can help me or point me in the right direction. 20:45
Example code at github.com/dmaestro/p6-packages 20:46
I want to share an outer namespace between related modules but get this error: ===SORRY!=== P6M Merging GLOBAL symbols failed: duplicate definition of symbol Shared 20:47
I'm pretty sure I'm violating some rule about namespacing; but there ought to be a way to do this ... 20:48
Geth doc: 5812800509 | (Marcel Timmerman)++ (committed by Zoffix Znet) | doc/Language/regexes.pod6
first call to show_captures has wrong number of arguments in section Backtracking (#1735)

In the first example where show_captures is defined, the call to it has also $string as its second argument(line 1937). this is not used in the sub signature.
Furthermore a small typo on line 1917 (matched instead of match).
23:16
synopsebot Link: doc.perl6.org/language/regexes
Geth doc: b95b5c6cf5 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/regexes.pod6
Apply code suggestions

From github.com/perl6/doc/pull/1735#dis...r162783203
23:18