»ö« 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.
00:01 Khisanth joined
colomon argh. I sometimes think the #1 problem I have with p6 is “Malformed UTF-8” 00:19
00:20 Tison joined
colomon ooooo. utf8-c8? 00:21
chansen_ LOL, blaming bad data on a programming language? 00:22
00:23 HaraldJoerg left
colomon chansen_: blaming the language for making it tricky to deal with bad data that I nevertheless need to process 00:24
timotimo utf8-c8 is exactly the tool for that, i think
colomon yeah, just tried it and it seemed to work pretty well.
timotimo just don't print it out by encoding it back to utf8 without -c8, that looks funny
00:25 markong left
colomon I don’t think I’m likely to ever use bits (at least for this task) which require actually looking at the non-utf8 data. 00:25
it’s just that those lines need to be read from the file without killing the import. 00:26
timotimo in that case, why not use latin1 as the encoding? :)
colomon …. that might work 00:29
timotimo latin1 is basically "i want this to behave like a Buf8, but i want to use string functions on it"
colomon that’s exactly what I need
timotimo++
timotimo utf8-c8 is similar, but it lets you not accidentally chop graphemes in half
colomon I mean, this is hypothetically ASCII, it’s just real world people don’t always sanitize their strings correctly ASCII 00:30
timotimo heh.
colomon and I can’t even really complain about that, because various of my own software had that same issue for probably at least 15 years. 00:31
timotimo :) 00:33
just don't get a Yutf8K bug in your program
00:33 cog_ joined
chansen_ Should I laugh or cry? 00:33
00:42 mack[m] left 00:46 Rawriful left
colomon do we have an unpack equivalent yet? 00:48
timotimo the experimental one, a module in the ecosystem, and nativecast
colomon (actually, I guess comb(/.8/) might work for my purposes?)
timotimo what is that supposed to do? 00:49
colomon the file format I’m working with is an old punched card style 80 character line
with (more or less) 10 8-char fields
timotimo in that case you will want comb(8)
colomon just 8? 00:50
timotimo because comb(/.8/) will give you all characters that are followed by an 8
including the 8
m: say "123456789012345678901234567890".comb(8)
camelia (12345678 90123456 78901234 567890)
timotimo m: say "123456789012345678901234567890".comb(/.8/)
camelia (78 78 78)
00:50 zachk left
colomon needs to brush up on his quantifiers 00:51
timotimo that's a feature of comb itself, not regex per se :)
colomon the comb(8) thing, yes
I was looking for something like… comb(/.{8}/) ?
the lazy way of writing comb(/…...../) 00:52
timotimo not quite ;)
m: say "123456789012345678901234567890".comb(/. ** 1..8/)
camelia (12345678 90123456 78901234 567890)
colomon that’s barely even lazy!
timotimo alternatively if you're certain the fields all are 8 long and there isn't one with only 7 or so
m: say "123456789012345678901234567890".comb(/. ** 8/)
camelia (12345678 90123456 78901234)
colomon comb(8) is faster anyway, yes? 00:54
timotimo oh yes 00:55
probably at least 100x
00:57 cog_ left 01:25 colomon_ joined 01:26 colomon left, colomon_ is now known as colomon 01:27 mryan left, mryan_ joined 01:54 ilbot3 left 01:56 ilbot3 joined, ChanServ sets mode: +v ilbot3
Geth doc: def91a72e2 | MasterDuke17++ | doc/Language/performance.pod6
Expand the "Profile locally" section

First stab at #1921
01:59
synopsebot Link: doc.perl6.org/language/performance
02:00 molaf left 02:12 molaf joined 02:40 ufobat_ joined 02:43 ufobat left
squashable6 🍕 AlexDaniel++ unlabeled issue “pragma MONKEY-BARS is no…”: github.com/perl6/doc/issues/802 03:03
🍕 AlexDaniel++ unlabeled issue “pragma MONKEY-BUSINESS i…”: github.com/perl6/doc/issues/804
🍕 AlexDaniel++ unlabeled issue “pragma MONKEY-TRAP is no…”: github.com/perl6/doc/issues/807
🍕 AlexDaniel++ unlabeled issue “pragma MONKEY-SHINE is n…”: github.com/perl6/doc/issues/806
🍕 AlexDaniel++ unlabeled issue “pragma MONKEY-WRENCH is …”: github.com/perl6/doc/issues/808
🍕 AlexDaniel++ unlabeled issue “pragma MONKEY-BRAINS is …”: github.com/perl6/doc/issues/803
AlexDaniel heh…
03:27 khw left, araraloren joined 03:29 kaare_ joined 03:30 Quadrant joined 03:34 eliasr left
Geth doc/master: 6 commits pushed by (Aleks-Daniel Jakimenko-Aleksejev)++ 03:39
squashable6 🍕 AlexDaniel++ closed issue “Document how to get .exi…”: github.com/perl6/doc/issues/785 03:40
Geth doc: 8e762ea25b | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/Proc/Async.pod6
Add missing sentence

Otherwise it's unclear why .pid is called like that.
03:44
synopsebot Link: doc.perl6.org/type/Proc::Async
AlexDaniel squashable6: status
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈8 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/523493c4dc2488b9c1...0344527d2f
AlexDaniel drops to bed for a bit
03:47 espadrine left 03:53 cog_ joined 04:01 kurahaupo_ is now known as kurahaupo 04:17 cog_ left 04:32 skids left 04:41 araraloren left, araraloren joined 04:46 telnet left, nebuchadnezzar left, nebuchadnezzar joined 04:47 telnet joined, kst` joined 04:48 awwaiid left 04:49 awwaiid joined 04:51 kst left 05:02 aborazmeh joined, aborazmeh left, aborazmeh joined 05:27 jast left, jast joined 05:57 wamba joined 06:29 jmerelo joined
jmerelo squashable6: status 06:30
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈5 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo, Log and stats: gist.github.com/a3297160d145ed245e...8e59aadaeb
🍕 JJ++ submitted a review on pull request “Update htmlify.p6 to fix…”: github.com/perl6/doc/pull/1997#pul...-117832720 06:32
🍕 JJ++ labeled issue “Kernel, Distro, VM, Perl…”: github.com/perl6/doc/issues/503 06:37
🍕 JJ++ milestoned issue “Kernel, Distro, VM, Perl…”: github.com/perl6/doc/issues/503
06:46 darutoko joined 06:50 rindolf joined 06:54 Quadrant left
buggable New CPAN upload: P5chop-0.0.3.tar.gz by ELIZABETH modules.perl6.org/dist/P5chop:cpan:ELIZABETH 06:57
Geth doc: JJ self-assigned Kernel, Distro, VM, Perl, Systemic and Compiler object types not documented github.com/perl6/doc/issues/503
e112a84219 | (JJ Merelo)++ | 5 files

And links it from the pages it was mentioned. Refs #503
squashable6 🍕 JJ++ unlabeled issue “Kernel, Distro, VM, Perl…”: github.com/perl6/doc/issues/503
jmerelo p6: say $*PERL.gist 07:00
camelia Perl 6 (6.c)
jmerelo p6: say $*VM.gist 07:01
camelia moar (2018.04.39.gc.702.f.4.c.66)
tobs m: .("42") with sub (Str(Int) $s) { $s.chars } # wouldn't it make sense if Str(Int) also accepted Str? 07:02
camelia Type check failed in binding to parameter '$s'; expected Int but got Str ("42")
in sub at <tmp> line 1
in block <unit> at <tmp> line 1
squashable6 🍕 JJ++ edited issue “Kernel, Distro, VM, Perl…”: github.com/perl6/doc/issues/503 07:05
07:14 cog_ joined
jmerelo p6: say $*VM.verbose-config(True) 07:15
camelia No such method 'verbose-config' for invocant of type 'VM'
in block <unit> at <tmp> line 1
jmerelo p6: say $*PERL.verbose-config(True)
camelia No such method 'verbose-config' for invocant of type 'Perl'
in block <unit> at <tmp> line 1
jmerelo p6: say $*PERL.compiler.verbose-config(True)
camelia Too many positionals passed; expected 1 argument but got 2
in block <unit> at <tmp> line 1
jmerelo p6: say $*PERL.compiler
camelia rakudo (2018.04.1.38.gede.507.b.73)
jmerelo p6: say $*PERL.compiler.^name
camelia Compiler
jmerelo p6: say $*PERL.compiler.build-date 07:16
camelia 2018-05-05T21:49:43Z
jmerelo p6: say $*PERL.compiler.verbose-config( :1say ) 07:18
camelia distro::auth=www.opensuse.org/
distro::desc=201...64
kerne…»
jmerelo p6: say $*PERL.compiler.verbose-config
camelia distro::auth=www.opensuse.org/
distro::desc=201...64
kerne…»
jmerelo p6: say $*PERL.compiler.verbose-config( say => True )
camelia distro::auth=www.opensuse.org/
distro::desc=201...64
kerne…»
jmerelo p6: say $*PERL.compiler.verbose-config( say => True ).^name 07:19
camelia distro::auth=www.opensuse.org/
distro::desc=201...64
kerne…»
doc: c6546a205b | (JJ Merelo)++ | 2 files
Adds the Compiler type

Links it from `Perl`. Closes #503
squashable6 🍕 JJ++ closed issue “Kernel, Distro, VM, Perl…”: github.com/perl6/doc/issues/503
squashable6 🍕 JJ++ edited issue “Kernel, Distro, VM, Perl…”: github.com/perl6/doc/issues/503
squashable6 🍕 JJ++ labeled issue “Inconsistent capitalization for doc headers”: github.com/perl6/doc/issues/1945 07:24
07:25 robertle joined
squashable6 🍕 JJ++ wrote a comment on “Document how one could write their own .gist”: github.com/perl6/doc/issues/922#is...-386860222 07:31
🍕 JJ++ milestoned issue “Document how one could write their own .gist”: github.com/perl6/doc/issues/922 07:32
🍕 JJ++ labeled issue “Document how one could write their own .gist”: github.com/perl6/doc/issues/922 07:33
07:38 cog_ left, Sgeo joined 07:40 Sgeo__ left 07:44 kaare_ left 07:55 espadrine joined 07:56 labster left
Geth doc: cecimerelo++ created pull request #1998:
Corrected some minor problems
08:00
squashable6 🍕 cecimerelo++ opened pull request “Corrected some minor problems”: github.com/perl6/doc/pull/1998
🍕🍕🍕 First contribution by cecimerelo++! ♥
🍕 JJ++ submitted a review on pull request “Corrected some minor problems”: github.com/perl6/doc/pull/1998#pul...-117834669 08:02
08:04 kent\n left 08:05 kent\n joined
Geth doc: cecimerelo++ created pull request #1999:
Close #1994
08:09
squashable6 🍕 cecimerelo++ opened pull request “Close #1994”: github.com/perl6/doc/pull/1999
🍕 JJ++ edited a review on pull request “Close #1994”: github.com/perl6/doc/pull/1999#pul...-117834883 08:11
🍕 JJ++ wrote a comment on a review for “Close #1994”: github.com/perl6/doc/pull/1999#dis...r186282094
🍕 JJ++ wrote a comment on a review for “Close #1994”: github.com/perl6/doc/pull/1999#dis...r186282136
🍕 JJ++ wrote a comment on a review for “Close #1994”: github.com/perl6/doc/pull/1999#dis...r186282120
🍕 JJ++ submitted a review on pull request “Close #1994”: github.com/perl6/doc/pull/1999#pul...-117834883
🍕 JJ++ wrote a comment on a review for “Close #1994”: github.com/perl6/doc/pull/1999#dis...r186282110
🍕 JJ++ edited pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999 08:15
🍕 cecimerelo++ submitted a review on pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999#pul...-117835109 08:19
🍕 cecimerelo++ wrote a comment on a review for “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999#dis...r186282320
🍕 cecimerelo++ synchronize pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999 08:24
🍕 cecimerelo++ synchronize pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999 08:27
🍕 JJ++ edited a review on pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999#pul...-117835279 08:28
🍕 JJ++ wrote a comment on a review for “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999#dis...r186282503
🍕 JJ++ submitted a review on pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999#pul...-117835279
jmerelo Next issue is going to be #2000 08:29
Maybe we should kinda keep it for something beautiful, and encouraging, and, I don't know, special
(or PR)
08:41 domidumont joined 08:47 domidumont left 08:48 domidumont joined
Geth doc: cc6e9eaba9 | (JJ Merelo)++ | doc/Language/classtut.pod6
Documents gist override

Closes #922
09:02
synopsebot Link: doc.perl6.org/language/classtut
squashable6 🍕 JJ++ closed issue “Document how one could write their own .gist”: github.com/perl6/doc/issues/922
jmerelo squashable6: status
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈2 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo, Log and stats: gist.github.com/3feb84cf658dbae530...0f0ed75fbc
jmerelo C'mon, two hours to go...
09:17 brrt joined
Geth doc: 3d92154e3c | Cecilia++ (committed using GitHub Web editor) | README.es.md
Corrected some minor problems
09:19
doc: 1a93d75aba | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | README.es.md
Merge pull request #1998 from cecimerelo/patch-1

Corrected some minor problems
squashable6 🍕 JJ++ merged pull request “Corrected some minor problems”: github.com/perl6/doc/pull/1998
doc/master: 4 commits pushed by Cecilia++, (Juan Julián Merelo Guervós)++
squashable6 🍕 JJ++ merged pull request “Revises README.md, closes #1994”: github.com/perl6/doc/pull/1999
squashable6 🍕 JJ++ closed issue “Revise README.md”: github.com/perl6/doc/issues/1994
Geth doc: a66a26a29a | (Ronald Schmidt)++ | htmlify.p6
Update htmlify.p6 to fix 'got empty filename' issue #1971. Was looking

for "infix C<foo>" and tried to process '=head1 baz X<|baz>' same way which results in empty document name. Note 'infix X<C<foo>>' is sometimes used so need to check content as well as .type eq 'X'.
09:20
squashable6 🍕 JJ++ merged pull request “Update htmlify.p6 to fix…”: github.com/perl6/doc/pull/1997
Geth doc: 96341fd2d6 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | htmlify.p6
Merge pull request #1997 from ronaldxs/fix-empty-filename-subkind-Xindex

Update htmlify.p6 to fix 'got empty filename' issue #1971.
doc: JJ self-assigned A DBIish example is outdated; MySQL is replaced with MariaDB on Debian Stretch github.com/perl6/doc/issues/1993
229f524a19 | (JJ Merelo)++ | doc/Language/nativecall.pod6
09:22
squashable6 🍕 JJ++ wrote a comment on “A DBIish example is outd…”: github.com/perl6/doc/issues/1993#i...-386865959 09:23
09:24 ufobat_ left
squashable6 🍕 JJ++ wrote a comment on “A DBIish example is outd…”: github.com/perl6/doc/issues/1993#i...-386866130 09:26
doc: e69970ed66 | (JJ Merelo)++ | doc/Language/nativecall.pod6
Inserted instructions MySQL → MariaDB

Closes #1993
synopsebot Link: doc.perl6.org/language/nativecall
squashable6 🍕 JJ++ closed issue “A DBIish example is outd…”: github.com/perl6/doc/issues/1993
squashable6 🍕 JJ++ wrote a comment on “Split "Any" documentatio…”: github.com/perl6/doc/issues/1991#i...-386866582 09:35
🍕 JJ++ closed issue “Split "Any" documentatio…”: github.com/perl6/doc/issues/1991
🍕 JJ++ wrote a comment on “Problems with ".html"”: github.com/perl6/doc/issues/1971#i...-386866652 09:36
🍕 JJ++ closed issue “Problems with ".html"”: github.com/perl6/doc/issues/1971
Geth doc: JJ self-assigned add more detail about implicit return github.com/perl6/doc/issues/388
mryan self-unassigned Document `/<foo ...>/` syntax somewhere github.com/perl6/doc/issues/1858

Adds implicit return trap example.
That would close #388.
Also, adds links to NativeCall use in DBIish, refs #1993 albeit closed.
09:38
squashable6 🍕 JJ++ milestoned issue “add more detail about implicit return”: github.com/perl6/doc/issues/388
09:38 eliasr joined, yoleaux left 09:39 yoleaux joined, ChanServ sets mode: +v yoleaux
squashable6 🍕 mryan++ wrote a comment on “Document `/<foo ...>/` syntax somewhere”: github.com/perl6/doc/issues/1858#i...-386866903 09:41
mryan_ Hello all: the comment squashable just referred has a request for some input when you can … 09:44
jmerelo mryan_: wow, lot to read... 09:52
mryan_ I wish it was simpler but the more I looked, the more complicated it got - either that, or there’s something I just done get... 09:54
squashable6 🍕 JJ++ wrote a comment on “Document `/<foo ...>/` syntax somewhere”: github.com/perl6/doc/issues/1858#i...-386867552
🍕 JJ++ unlabeled issue “Document `/<foo ...>/` syntax somewhere”: github.com/perl6/doc/issues/1858
mryan_ s/done/don’t/ 09:55
jmerelo Let me see if I can address some of that.
mryan_: first, I don't think you need to define a whole grammar; it's probably OK if you just define a regex, token or rule. You can do that independently of grammars, as you probably know. 09:57
mryan_: In any case, it's better of you show us the examples. Also great if you post it in StackOverflow :-) 09:58
mryan_: also good: you can post whatever you've done as a pull request, and lest the rest interact with it. Maybe what you've done is good enough, documentation wise. We won't know until we see it :-) 09:59
mryan_ You and stack overflow…. :-) :-) 10:01
There’s a bit of a description of what the syntax does here: design.perl6.org/S05.html#Extensibl...%3C...%3E) 10:03
It’s definately a method call which implies a grammar for the method to live in (as far as I (don’t) understand it) 10:04
squashable6 🍕 JJ++ closed issue “add more detail about implicit return”: github.com/perl6/doc/issues/388
AlexDaniel squashable6: status
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈1 hour. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/a30de265c545dfc9c6...556f8a7eb3
jmerelo mryan_: yep, I know... But can't help. I think it really helps improve perl6 visibility 10:05
10:05 Gothmog_ left
jmerelo mryan_: it probably makes a lot of sense inside a grammar, but token, regex, rules are actually funnily-named methods, which you can declare independently if you want. 10:05
mryan_ jmerelo: re SO - without a doubt it improves perl6’s visibillity… 10:07
squashable6 🍕 JJ++ wrote a comment on “xt/aspell.t - aspell issue”: github.com/perl6/doc/issues/975#is...-386868351 10:08
🍕 JJ++ labeled issue “xt/aspell.t - aspell issue”: github.com/perl6/doc/issues/975
jmerelo mryan_: this month we have reached the highest number of questions ever, which amounts to all of 45 questions. Pretty much what react-native gets in one hour. 10:09
mryan_: or Perl in half a week... 10:10
mryan_: so, anyway. Best option here would be to do a PR and we'll take it from there. Ask at the same time in SO, to see if you get something better out of thet (most times you do).
squashable6 🍕 JJ++ labeled issue “Str.match not documented…”: github.com/perl6/doc/issues/919 10:11
🍕 JJ++ wrote a comment on “Create language/notable-design-decisions page”: github.com/perl6/doc/issues/1002#i...-386868630 10:14
🍕 JJ++ labeled issue “Create language/notable-design-decisions page”: github.com/perl6/doc/issues/1002
10:16 markong joined
squashable6 🍕 JJ++ wrote a comment on “unival is in Str, not Int”: github.com/perl6/doc/issues/1045#i...-386868804 10:17
🍕 JJ++ labeled issue “unival is in Str, not Int”: github.com/perl6/doc/issues/1045 10:18
🍕 JJ++ wrote a comment on “"References"/"Dereferenc…”: github.com/perl6/doc/issues/1081#i...-386868895 10:19
🍕 JJ++ labeled issue “"References"/"Dereferenc…”: github.com/perl6/doc/issues/1081
mryan_ jmerelo: I can’t look at this any more now, so I’ve posted what I’ve done here: gist.github.com/mryan/dc8c890de862...f55d974070 10:22
It’s half done… I’ll finish it and post to SO tomorrow.
squashable6 🍕 JJ++ wrote a comment on “Pointer.deref method is not documented”: github.com/perl6/doc/issues/1007#i...-386869054 10:23
🍕 JJ++ labeled issue “Pointer.deref method is not documented”: github.com/perl6/doc/issues/1007
🍕 JJ++ edited issue “Pointer.deref method is not searchable”: github.com/perl6/doc/issues/1007
mryan_ The more imporant thing, IMO, is whether this feature can be used without stuffing around with cursor_start_cur and friends...
jmerelo mryan_: thanks 10:24
squashable6 🍕 AlexDaniel++ wrote a comment on “Create language/notable-design-decisions page”: github.com/perl6/doc/issues/1002#i...-386869141
10:25 mryan_ left
squashable6 🍕 JJ++ labeled issue “Create language/notable-design-decisions page”: github.com/perl6/doc/issues/1002 10:26
🍕 JJ++ wrote a comment on “Create language/notable-design-decisions page”: github.com/perl6/doc/issues/1002#i...-386869245
🍕 JJ++ wrote a comment on “Document `/<foo ...>/` syntax somewhere”: github.com/perl6/doc/issues/1858#i...-386869291 10:27
Geth doc: 387bf275a1 | (JJ Merelo)++ | doc/Language/nativecall.pod6
Indexes deref

Minor typographic changes to the page too. Closes #1007
10:28
synopsebot Link: doc.perl6.org/language/nativecall
squashable6 🍕 JJ++ closed issue “Pointer.deref method is not searchable”: github.com/perl6/doc/issues/1007 10:29
10:29 araraloren_ joined
squashable6 🍕 AlexDaniel++ wrote a comment on “Document `/<foo ...>/` syntax somewhere”: github.com/perl6/doc/issues/1858#i...-386869412 10:30
10:32 araraloren left 10:33 cog_ joined
AlexDaniel jmerelo: hey, what's up with D#503 10:34
synopsebot D#503 [closed]: github.com/perl6/doc/issues/503 [JJ TPF Grant][docs] Kernel, Distro, VM, Perl, Systemic and Compiler object types not documented
AlexDaniel jmerelo: there was NOTSPECCED label but you removed it?
jmerelo: systemic is still not specced as far as I can see 10:35
10:36 aborazmeh left 10:37 scott left 10:38 scott joined
squashable6 🍕 AlexDaniel++ opened issue “Pages without ToC appear on the left side”: github.com/perl6/doc/issues/2000 10:38
🍕 AlexDaniel++ labeled issue “Pages without ToC appear on the left side”: github.com/perl6/doc/issues/2000
🍕 AlexDaniel++ edited issue “Content of pages without…”: github.com/perl6/doc/issues/2000
jmerelo AlexDaniel: probably. They are documented now. 10:40
AlexDaniel I see that they are documented…
jmerelo AlexDaniel: right. That's why I removed that. In fact, $*PERL uses Compiler, and the rest use Systemic. They are in roast, too.
Geth doc: 2621399320 | (JJ Merelo)++ | doc/Language/containers.pod6
Adds flat ≭ |

Uses @zoffixznet examples, closes #892
10:42
synopsebot Link: doc.perl6.org/language/containers
squashable6 🍕 JJ++ closed issue “Is flat another way to s…”: github.com/perl6/doc/issues/892
AlexDaniel jmerelo: ok I see, I created github.com/perl6/roast/issues/424 10:44
jmerelo AlexDaniel: thanks. Maybe for the next Squashathon...
AlexDaniel roast squashathon, yes :)
we had two almost in a row actually
squashable6: status 10:45
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in ≈1 hour. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel, Log and stats: gist.github.com/6d9bdd26bfff7fff36...42e4279376
jmerelo And I'm leaving now. Thanks everyone! 10:46
AlexDaniel jmerelo: “an list” in your last commit
u: ≭
unicodable6 AlexDaniel, U+226D NOT EQUIVALENT TO [Sm] (≭)
AlexDaniel :)
jmerelo goes off to enjoy the (for the time being) spring Sunday morning in Spain 10:47
AlexDaniel OH YES, GO
I'm going to steal your 9000th commit :) 10:48
jmerelo AlexDaniel: you do that :-). Enjoy!
10:48 windyhouse joined
Geth doc: 706581a400 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Language/containers.pod6
“an list” → “a list”

The sentence can probably be rephrased to add even more clarity.
10:49
AlexDaniel 9000 commits in the doc repo :)
brrt yay 10:50
10:58 cog_ left 11:01 HaraldJoerg joined
AlexDaniel unidump: a 11:02
unicodable6 AlexDaniel, gist.github.com/cb3d1e2de955e4e251...8b84ca202a
AlexDaniel samcv: you there? 11:04
samcv: I have a feeling that uniprop-str is totally broken
but I could be wrong
m: say uniprop ‘♹’, ‘na’ 11:06
camelia RECYCLING SYMBOL FOR TYPE-7 PLASTICS
AlexDaniel m: say uniprop-str ‘♹’, ‘na’
camelia 3.2
AlexDaniel 6c: say uniprop-str ‘♹’, ‘na’
committable6 AlexDaniel, gist.github.com/8827146af8ffdc5aea...1edb0affd6
AlexDaniel xD
none of these are right in my opinion :D 11:07
11:07 windyhouse left 11:08 ufobat_ joined
AlexDaniel m: say uniprop-int ‘㊷’, ‘Numeric_Value’ 11:08
camelia 81
AlexDaniel m: say uniprop ‘㊷’, ‘Numeric_Value’ 11:11
camelia 42
AlexDaniel m: say uniprop-str ‘㊷’, ‘Numeric_Value’
camelia 42.0
AlexDaniel uhm…
m: say WHAT uniprop ‘㊷’, ‘Numeric_Value’
camelia (Int)
AlexDaniel why is it 42.0 if that's an Int 11:12
.tell samcv please let me know if you need a ticket this: irclog.perlgeek.de/perl6/2018-05-06#i_16134827
yoleaux AlexDaniel: I'll pass your message to samcv.
Geth doc: 39241d1a9f | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/Cool.pod6
Touch uniprop documentation

This was an attempt to fix #1045, but I realized that uniprop-int and uniprop-str don't return anything sensible¹ at this moment.
  ¹ – irclog.perlgeek.de/perl6/2018-05-06#i_16134827
11:16
synopsebot Link: doc.perl6.org/type/Cool
squashable6 🍕 AlexDaniel++ closed issue “unival is in Str, not Int”: github.com/perl6/doc/issues/1045
squashable6 🍕 AlexDaniel++ reopened issue “unival is in Str, not Int”: github.com/perl6/doc/issues/1045
🍕 AlexDaniel++ wrote a comment on “unival is in Str, not Int”: github.com/perl6/doc/issues/1045#i...-386871956 11:17
🍕 AlexDaniel++ opened issue “RHS (right hand side) sh…”: github.com/perl6/doc/issues/2001 11:26
🍕 AlexDaniel++ labeled issue “RHS (right hand side) sh…”: github.com/perl6/doc/issues/2001
11:34 peteretep joined
squashable6 🍕 JJ++ reopened issue “Intermitent problems with some builds”: github.com/perl6/doc/issues/1951 11:36
🍕 JJ++ wrote a comment on “Intermitent problems with some builds”: github.com/perl6/doc/issues/1951#i...-386872979
Geth doc: eb8f7f2480 | (Aleks-Daniel Jakimenko-Aleksejev)++ | 14 files
Ban “RHS” and “LHS” abbreviations

By removing them from words.pws and eliminating a few usages from the docs.
We're sometimes criticized for using lingo that is unfamiliar to beginners or those coming from other languages. While RHS and LHS are ... (8 more lines)
11:47
squashable6 🍕 JJ++ wrote a comment on “Intermitent problems with some builds”: github.com/perl6/doc/issues/1951#i...-386873619 11:49
🍕 JJ++ wrote a comment on “Intermitent problems with some builds”: github.com/perl6/doc/issues/1951#i...-386873733 11:51
🍕 JJ++ wrote a comment on commit eb8f7f248035: github.com/perl6/doc/commit/eb8f7f...t-28871910 11:53
11:53 jmerelo left
Geth doc: 5fd2b45654 | (Aleks-Daniel Jakimenko-Aleksejev)++ | doc/Type/Junction.pod6
Add a note about Junctions on the RHS of ~~

Resolves #1343.
12:00
synopsebot Link: doc.perl6.org/type/Junction
12:00 zostay left
AlexDaniel ah CRAP 12:00
25 seconds too late :D
12:00 zostay joined 12:01 domidumont left, squashable6 left 12:02 squashable6 joined 12:04 squashable6 left, squashable6 joined, ChanServ sets mode: +v squashable6
squashable6 🍕 AlexDaniel++ closed issue “Junctions and ~~”: github.com/perl6/doc/issues/1343 12:04
AlexDaniel >:) 12:05
12:05 squashable6 left 12:06 squashable6 joined, ChanServ sets mode: +v squashable6, nightfrog left
AlexDaniel a question from github.com/perl6/doc/commit/eb8f7f...de00bfL160 12:08
right-hand-side, right-hand side, right hand side – what's the difference?
12:08 nightfrog joined
AlexDaniel squashable6: log 2018-05-05 12:10
squashable6 AlexDaniel, Log and stats: gist.github.com/119668546305192532...5849bb5d91
12:11 mcmillhj joined
MasterDuke right-hand side 12:13
AlexDaniel MasterDuke: always? In all cases? 12:14
MasterDuke i think so 12:15
AlexDaniel MasterDuke: what if it's used as a hyphenated adjective?
12:15 Tison left
MasterDuke example? 12:16
12:21 Exodist left
AlexDaniel MasterDuke: well… good point, I can't come up with anything meaningful 12:21
MasterDuke: right-hand-side value?
yea, that
12:22 Exodist joined, bouchert joined
MasterDuke hm, not sure 12:23
Geth doc: titsuki++ created pull request #2002:
Improve MySQL installation process
12:24
doc: d12bac41bf | (Itsuki Toyota)++ | doc/Language/nativecall.pod6
Improve MySQL installation process

I fixed this section for several reasons:
1) The previous example could install the dynamic library but the DBIish example also requires MySQL server. 2) The MySQL APT Repository officially supports debian stretch (also it supports jessie and wheezy). 3) Even if an user use an older distribution, he/she can install the current version of MySQL easily.
  (and sorry for my confusing suggestion: github.com/perl6/doc/issues/1993 )
synopsebot Link: doc.perl6.org/language/nativecall
doc: 3b7ec30b62 | (Itsuki Toyota)++ (committed using GitHub Web editor) | doc/Language/nativecall.pod6
Merge pull request #2002 from titsuki/fix-mysql

Improve MySQL installation process
12:25 boucher left
mcmillhj What section of the docs would I look at to learn about how to compare objects for equality? I don't see anything linked on the Object-Orientation or Objects and Classes pages 12:27
AlexDaniel mcmillhj: I think what you need is docs.perl6.org/language/operators#infix_=== 12:29
Geth doc: titsuki++ created pull request #2003:
Fix typo
AlexDaniel mcmillhj: or maybe even just ~~ depending on what you need exactly
Geth doc: 1e24281d31 | (Itsuki Toyota)++ | doc/Language/nativecall.pod6
Fix typo
doc: 432b29495c | (Itsuki Toyota)++ (committed using GitHub Web editor) | doc/Language/nativecall.pod6
Merge pull request #2003 from titsuki/fix-typo

Fix typo
AlexDaniel mcmillhj: can you submit a doc ticket for that? (or maybe fix it directly) 12:30
mcmillhj: so that the docs on Object-Orientation and Objects and Classes pages link to === or ~~ or .ACCEPTS
or .WHICH
MasterDuke why do some code examples in the doc Pod use `=for code` and others use `=begin code`? 12:33
12:34 brrt left
mcmillhj AlexDaniel: yeah, I can do that. 12:36
12:37 AlexDaniel left 12:39 mcmillhj left 12:42 BenGoldberg joined 12:54 windyhouse joined
AlexDaniel` mcmillhj: thanks 13:09
MasterDuke: I think =for code needs no =end
so it's probably suitable for small examples
more than half an hour without electricity, have to use relatively slow mobile internet instead #firstworldproblems 13:12
13:38 shinobi-cl joined
buggable New CPAN upload: IO-Socket-Async-SSL-0.7.0.tar.gz by JNTHN modules.perl6.org/dist/IO::Socket::...cpan:JNTHN 13:47
jnthn Now with upgrade support, for anybody who fancies implementing IMAP/POP/SMTP clients with StartTLS support :P 13:48
13:51 AlexDaniel joined
AlexDaniel weekly: another successful squashathon: github.com/rakudo/rakudo/wiki/Mont...Squash-Day 13:53
notable6 AlexDaniel, Noted!
AlexDaniel weekly: 9000 commits in the doc repo: github.com/perl6/doc/
notable6 AlexDaniel, Noted!
13:55 raynold left
El_Che someone on the channel talked about repeatable builds for perl6 and how go couldn't do it. They can now (or soon): engineers.sg/episodes/2603 14:04
14:10 HaraldJoerg1 joined 14:11 HaraldJoerg left
Geth doc: 7a2e391e5f | (Itsuki Toyota)++ | doc/Language/nativecall.pod6
Add a link of the example for MySQL
14:22
synopsebot Link: doc.perl6.org/language/nativecall
14:43 bwisti joined 14:54 khw joined 15:17 sftp left, sftp joined 15:18 domidumont joined 15:29 Gothmog_ joined, imcsk8_ joined 15:30 MilkmanDan left 15:31 MilkmanDan joined 15:32 imcsk8 left 15:36 SmokeMachine joined 15:48 araraloren_ left 15:53 jmerelo joined 15:55 mithaldu_ left, mithaldu_ joined, eliasr left 15:56 eliasr joined 16:06 BuildTheRobots left
buggable New CPAN upload: P5chop-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5chop:cpan:ELIZABETH 16:07
16:07 BuildTheRobots joined 16:13 skids joined
buggable New CPAN upload: P5oct-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5oct:cpan:ELIZABETH 16:17
New CPAN upload: P5ord-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5ord:cpan:ELIZABETH
New CPAN upload: P5ord-0.0.5.tar.gz by ELIZABETH modules.perl6.org/dist/P5ord:cpan:ELIZABETH
16:26 ExtraCrispy left
buggable New CPAN upload: P5rindex-0.0.3.tar.gz by ELIZABETH modules.perl6.org/dist/P5rindex:cpan:ELIZABETH 16:27
16:28 kipd joined 16:30 telex left 16:33 telex joined
buggable New CPAN upload: P5uc-0.0.3.tar.gz by ELIZABETH modules.perl6.org/dist/P5uc:cpan:ELIZABETH 16:37
New CPAN upload: P5ucfirst-0.0.4.tar.gz by ELIZABETH modules.perl6.org/dist/P5ucfirst:cpan:ELIZABETH
16:43 olinkl left 16:44 olinkl joined
jmerelo A little help with this... directly asked in Stackoverflow stackoverflow.com/questions/502019...-really-do 16:51
16:54 Gothmog_ left, Petit_Dejeuner left
Juerd lizmat: Why are those p5 functions all in separate modules instead of one slightly bigger p5func? 16:59
lizmat there is also a P5builtins 17:00
that gives you all
Juerd Still curious though :) 17:01
lizmat why ?
Juerd It seems like a lot of work, both for you and for the user. I'm sure there's a good reason for it but I couldn't think of one myself.
lizmat some people might just want to use localtime() in their Perl 6 code
El_Che maoschists 17:02
:)
s
Juerd Sure, but usually in Perl 6 everything is available even if you want to use only one function, so it seems to deviate from that :)
lizmat well, then `use P5builtins :all`
Juerd But my question is answered; thanks :)
timotimo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $list.elems == 2 { $list.Str } });
camelia [1 2 3 4 5 6 7 1 2 3 4 5 6 7]
timotimo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $list.elems == 2 { $list.Str } }).perl; 17:03
camelia ["1 2 3 4 5 6 7", "1 2 3 4 5 6 7"]
lizmat Juerd: thanks for asking :-)
17:04 iviv left, iviv joined
jmerelo timotimo: even more confused now 17:04
m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.Str } });
camelia []
17:05 Ben_Goldberg joined, BenGoldberg left, Ben_Goldberg is now known as BenGoldberg
timotimo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $list.elems == 2 { $list.Str } else { Any } }).perl; 17:05
camelia ["1 2 3 4 5 6 7", "1 2 3 4 5 6 7"]
jmerelo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap( *.Str );
camelia [1 2 3 4 5 6 7]
timotimo oh, lol
m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.Str } else { Any } }).perl;
camelia [Any, Any]
jmerelo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.deepmap( *.Str );
camelia [[1 2 3] [[4 5] 6 7]]
timotimo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.Str } }).perl;
camelia []
timotimo yeah i don't really know how duckmap. 17:06
jmerelo timotimo: thanks for trying, anyway. 17:07
timotimo m: my $list = [[1, 2, 3], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.Str } else { die "oh no" } }).perl; 17:09
camelia [[1, 2, 3], ["4 5", 6, 7]]
timotimo jmerelo: it's not about undefined return values, it's about exceptions being thrown
jmerelo timotimo: sorry, you lost me here 17:10
17:10 lizmat left
timotimo if the mapping function throws an exception, it'll descend into the argument if it's Iterable:D, otherwise it returns the original argument. if the mapping function returns a value, that value is used 17:10
Juerd m: say (Any, Str, Int).duckmap(-> $x { $x }) 17:11
camelia ((Any) (Str) (Int))
jmerelo timotimo: so duckmap is throwing the "oh no" exception if the number of elements is not equal to 2, in which case it's going a bit deeper 17:12
timotimo no, duckmap is catching the exception
jmerelo m: my $list = [[1, [2, 3]], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.Str } else { die "oh no" } }).perl
camelia ["1 2 3", ["4 5", 6, 7]]
Juerd Interesting hack.
jmerelo timotimo: right, the block is throwing the exception, duckmap catching it.
17:13 lizmat joined
timotimo m: my $list = [[1, [2, 3]], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.perl } else { die "oh no" } }).perl 17:13
camelia ["\$[1, [2, 3]]", ["\$[4, 5]", 6, 7]]
timotimo ah
here's the reason why this is useful:
jmerelo m: my $list = [[1, [2, 3]], [[4, 5], 6, 7]]; say $list.duckmap(-> $_ { if $_.elems == 2 { $_.perl } }).perl
camelia ["\$[1, [2, 3]]"]
jmerelo timotimo: no throw, no descent 17:14
timotimo m: my $list = [[1, 2, [1e9, 2e9]]]; say $list.duckmap(-> Int $foo { $foo + 1 }).perl
camelia [2, 3, [1000000000e0, 2000000000e0]]
timotimo you give it a function that only wants to handle Int, which means duckmap will leave everything else alone
jmerelo timotimo: that explains the "duck". It only works if it walks like a duck... 17:15
timotimo: thanks!
timotimo aye 17:16
YW :)
i helped two people today, that's good
jmerelo timotimo: :-) Don't finish the day without helping the third one :-) 17:17
17:18 skaji joined 17:20 windyhouse left, windyhouse joined
El_Che jmerelo: sent an issue your way :) 17:28
jmerelo El_Che: got it. Will check it out. 17:32
El_Che just cleaned it up a little
refresh
17:33 ufobat_ left
jmerelo 6 issues in 6 hours. I think that's a record... 17:34
Geth doc: JJ self-assigned links-not-links test, false positive? github.com/perl6/doc/issues/2006
453d6bed44 | (Elizabeth Mattijsen)++ | doc/Language/5to6-perlfunc.pod6

  - add description for getppid
  - mention P5getpriority for getpriority / setpriority / getpgrp
17:35
El_Che jmerelo: how long does your grant last?
jmerelo El_Che: I'm halfway through it. I would say that I officially started on April 1st and will end by May 31st 17:36
El_Che: that does not mean that I'm going to quit, though... will keep doing more stuff, although more slowly, I guess. 17:37
El_Che: I'm going on a research stage in June, and to Japan for a conference in July, as well as devoting some time to domestic issues. So I can't really devote so much time.
El_Che of course, that stuff is dependent of other duties 17:40
17:53 lancew joined 18:17 jmerelo left 18:18 lancew left
buggable New CPAN upload: P5getpriority-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz 18:27
synopsebot Link: doc.perl6.org/language/5to6-perlfunc
18:49 domidumont left
El_Che that gal has her priorities right :) 19:01
Geth doc: d7108f2c08 | (Elizabeth Mattijsen)++ | doc/Language/5to6-perlfunc.pod6
Update setpgrp documentation
19:11
synopsebot Link: doc.perl6.org/language/5to6-perlfunc
buggable New CPAN upload: P5getpriority-0.0.2.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.2.tar.gz 19:17
19:20 raynold joined
tyil there's no "Staging" area for cpan to test modules that try to upload to cpan, is there? 19:20
19:22 darutoko left
El_Che tyil: use github as your staging? 19:23
tyil but I want to test uploading to cpan (which is something my module does, and I'm rewriting it to use CPAN::Uploader::Tiny instead of my own code 19:24
)
El_Che ah, meta problem :) 19:25
19:29 Rhow joined
tyil I was considering to just make a module called MyPersonalTestModuleDoNotUse and just use that for testing, and removing them once I am done with my testing 19:32
but if there's a cleaner way to go about it, I would be interested 19:33
19:41 lancew joined 19:43 |oLa| left
Geth doc: 2b9d4500f8 | (Samantha McVey)++ | doc/Type/IO/Handle.pod6
Add documentation for windows-932 (shiftjis)

Also make some other encodings searchable.
19:47
synopsebot Link: doc.perl6.org/type/IO::Handle
19:50 Rhow left 19:54 molaf left 19:58 Kaiepi left, Kaiepi joined 20:00 Ben_Goldberg joined 20:01 BenGoldberg left, Ben_Goldberg is now known as BenGoldberg, comborico1611 joined 20:03 windyhouse left
zostay When doing NativeCall, is there a way to handle structs returned by value? Or do I just need to write some C shims to handle it? 20:10
i.e. equivalent to: struct FOO { int x, y }; FOO foo = foo_init(); 20:12
I'm writing some native calls for Allegro and al_map_* functions for working with colors do this: liballeg.org/a5docs/trunk/graphics....al_map_rgb 20:13
20:14 shinobi-cl left 20:28 mcmillhj joined 20:36 uzl joined 20:38 robertle left
uzl sub postfix:<!>(Int $x where { $x >= 0 }) { [*] 1..$x }; 20:46
Do the curly braces around the condition ( $x >= 0 ) do something special?
I know the defined operator works with or without the curly braces around the condition but are they doing something extra behind the scene? 20:47
moritz they introduce a code block, which is the most general form to write a subset constraint
but you could also write it as
m: subset NonNeg of Int where * >= 0;
camelia ( no output )
moritz m: subset NonNeg of Int where * >= 0; say $_ ~~ NonNeg for -1, 0, 1
camelia False
True
True
lizmat zostay: is docs.perl6.org/language/nativecall...ntation%29 what you need? 20:51
20:51 dwarring left 20:56 uzl left, uzl_ joined
MasterDuke uzl: i'm couldn't explain exactly which and why, but some things you can do by leaving off the braces and using a * instead (like moritz's example). however, some need the braces 20:58
zostay lizmat: Sorry, but no. That shows CStruct being passed by reference, but I need to see a way to return a CStruct by value... i.e., a return causing a memory copy.
I can write a shim in C that performs a memcpy or something myself. I was just wondering if someone knew of a way to do that with NativeCall. 20:59
I don't think any such thing is in the docs.
cono uzl: MasterDuke difference is that {} <- is a Block and * >= 0, will create a WhateverCode instance.
zostay I'll write the docs if someone knows of it.
lizmat zostay: perhaps a syntax could be (--> TheStruct is copy) ? 21:00
21:00 uzl_ is now known as uzl
lizmat ah, no, we would have to change the Perl 6 grammar to support that 21:00
cono so this -> $a, $b { $a cmp $b } <- is a Block wich takes 2 arguments and returns Order enum as a result. * cmp * also returns Order and takes 2 arguments, but its an instance of WhateverCode
MasterDuke m: sub f(@a where *.all ~~ Int) { dd @a }; f((1,2)) 21:01
camelia Constraint type check failed in binding to parameter '@a'; expected anonymous constraint to be met but got List ($(1, 2))
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
MasterDuke m: sub f(@a where {.all ~~ Int}) { dd @a }; f((1,2))
camelia (1, 2)
21:01 molaf joined
MasterDuke m: sub f(@a where *.all ~~ Int) { dd @a }; f((1,"a")) 21:02
camelia Constraint type check failed in binding to parameter '@a'; expected anonymous constraint to be met but got List ($(1, "a"))
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
MasterDuke m: sub f(@a where {.all ~~ Int}) { dd @a }; f((1,"a"))
camelia Constraint type check failed in binding to parameter '@a'; expected anonymous constraint to be met but got List ($(1, "a"))
in sub f at <tmp> line 1
in block <unit> at <tmp> line 1
cono uzl: this graph illustrates Block and WhateverCode and their parent: docs.perl6.org/type/Code#Type_Graph
21:03 windyhouse joined
MasterDuke those are an example where braces (i.e., a Block, as cono++ explained) are needed, but i can't explain why the WhateverCode doesn't work 21:04
uzl Thanks to all!!! (sorry, I still do not how to mention particular users in irc)
I'll take a look at the graph.
skids lizmat: No, zostay is referring to things like function f () { struct timeval f; ... return f } where a struct is pushed directly to the stack with no pointer indirection. Last time I looked for that is was not supported by NativeCall, not for returns nor for params. 21:05
lizmat skids: but isn't that just the matter of needing a wrapper function ?
skids The wrapper functions would need to be in C, but yes. 21:06
lizmat ah, no, I see what you mean,
i was thinking a wrapper in perl 6
yeah, see the problem now
is there an issue for it yet ?
skids Not sure, but it's been intentionally NYI due to it messing with calling conventions I think. I forget where I read that though. 21:07
21:08 dataangel joined
skids General industry attitude has been libraries should not don't do that in API functions these days. 21:09
mcmillhj What is the idiomatic way to iterate over a list or array if I want to start at a specific index i.e. 1?
I don't see a traditional for-loop listed in the control flow docs 21:10
MasterDuke mcmillhj: it's called loop()
skids for list.tail(something) might be more idiomatic.
mcmillhj MasterDuke: oooh, thank you. I didn't think to look there I thought that was for a different purpose
MasterDuke or .skip 21:11
21:12 windyhouse left, windyhouse joined
cono m: my @a = <a b c>; @a[1..*].say 21:13
camelia (b c)
cono or use whatever :D
21:13 dataange` joined, dataangel left, molaf left
mcmillhj Both the whatever and tail() versions look pretty clean: @prices[1..*] vs @prices.tail(* - 1) 21:16
21:18 lancew left, huf left 21:19 lancew_ joined, quotable6 left, dataange` left, huf_ joined, quotable6 joined, dataangel joined
MasterDuke fwiw, .skip is probably a bit faster if it's possible to use it 21:19
but, TMTOWTDI 21:20
skids .skip would definitely be better if the length is not known (e.g. a Seq)
Probably the best choice overall. 21:21
21:23 lancew_ left
comborico1611 Why does this return false? so 'abcdefghijklmnopqrstuvwxyz'~~ rx {a..z} 21:37
yoleaux 5 May 2018 12:34Z <hankache> comborico1611: I am really happy that perl6intro.com was of use to you. Thank you for your feedback :)
timotimo comborico1611: that's a pattern that will match a11z or abcz or aXXz or something like that 21:38
comborico1611 Hmm. 21:39
timotimo you were looking to match exactly the letters a through z in a row?
comborico1611 Yes.
timotimo m: say so "abcdefghijklmnopqrstuvwxyz" eq ("a".."z").join()
camelia True
comborico1611 Ahh. Thanks!
21:45 ilbot3 left 21:46 ambs left, cibs left, cxreg left 21:47 cxreg joined 21:48 khw left, ilbelkyr_ joined 21:49 ilbelkyr left, ilbelkyr_ is now known as ilbelkyr 21:51 HaraldJoerg1 left 21:53 quotable6 left, nightfrog left, yoleaux left, awwaiid left, kst` left, nebuchadnezzar left, lichtkind left, ryn1x left, syntaxman left, speedChicken left, statisfiable6 left, greppable6 left, nativecallable6 left, committable6 left, undersightable6 left, unicodable6 left, lucs left, APic left, lookatme left, giraffe left, KotH left, simcop2387 left, perlbot left, ttkp6 left, profan left 21:54 ambs_ joined, quotable6 joined, nightfrog joined, awwaiid joined, kst` joined, nebuchadnezzar joined, lichtkind joined, ryn1x joined, syntaxman joined, speedChicken joined, undersightable6 joined, committable6 joined, greppable6 joined, statisfiable6 joined, unicodable6 joined, lucs joined, lookatme joined, KotH joined, simcop2387 joined, perlbot joined, profan joined
cono m: say so "abcdefghijklmnopqrstuvwxyz" ~~ rx{<[a..z]>+} 21:54
camelia True
21:54 mcmillhj left, nightfrog left, cibs joined 21:55 nightfrog joined, bouchert left 21:56 lancew_ joined, giraffe joined, bouchert joined, giraffe is now known as Guest43927
buggable New CPAN upload: P5rand-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz 21:57
21:57 lancew_ left
timotimo m: say so "aaaabbbbddddccccxxxxwwwwyyyyzzzz" ~~ rx{<[a..z]>+} 21:57
camelia True
21:59 imcsk8 joined, ilbot3 joined, ChanServ sets mode: +v ilbot3, kybr left 22:00 APic joined, Phil21 left, KotH_ joined, kybr joined, quotable6 left, committable6 left, undersightable6 left, statisfiable6 left, greppable6 left, unicodable6 left 22:01 KotH left, imcsk8_ left 22:02 Phil21 joined 22:03 espadrine left 22:11 rindolf left 22:12 shinobi-cl joined 22:15 imcsk8 left 22:19 imcsk8 joined, wamba left 22:23 imcsk8_ joined 22:24 uzl left, KotH_ is now known as Koth 22:25 Koth is now known as KotH, imcsk8 left, BenGoldberg left 22:29 imcsk8 joined 22:31 imcsk8_ left
b2gills m: say so 'abcdefghijklmnopqrstuvwxyz'~~ rx {"{('a'..'d').join}"} 22:50
camelia True
22:53 committable6 joined, unicodable6 joined 22:54 undersightable6 joined
comborico1611 Hmm 22:59
23:07 epony joined 23:17 imcsk8 left 23:18 imcsk8 joined
lichtkind i get Math::Matrix is insufficiently type-like to qualify a parameter 23:19
why is that?
inside its won module this worked
why not outside?
or in other words what makes a package type like? 23:20
timotimo can you say the .HOW?
m: say Foo::Bar::Baz.HOW 23:21
camelia Could not find symbol '&Baz'
in block <unit> at <tmp> line 1
timotimo well, fair enough
m: try require Foo::Bar <Baz>; Foo::Bar::Baz.HOW
camelia Could not find symbol '&Baz'
in block <unit> at <tmp> line 1
timotimo *shrug*
lichtkind .HOW return to me: Perl6::Metamodel::ClassHOW+{AttrX::Lazy::LazyAttributeContainerHOW}.new 23:26
timotimo is that output from the same file you're trying to use it as a parameter type in?
lichtkind no Math::Matrix is in different file 23:28
timotimo well, outputting it in that file isn't very interesting
lichtkind it was weird i could not even use a sub from the Math::matrix even it was loaded
timotimo well, that sounds like your problem starts much earlier than the error you're getting 23:29
is the code on line so i can try it?
lichtkind i dont want upload broken code into github
timotimo i'd accept a tarball or zipfile too 23:30
lichtkind allright i have to churn some simple prototype to test what im tryin 23:31
timotimo, thanks but you dont have to bother its a decent chunk of code
timotimo can you tell me how you're pulling the module in? and is it in your META6.json's provides section?
lichtkind yes maybe there is a better way 23:32
main idea is the module gets longer and longer and i wanted put some methods in its own file
and this class is now attribute of main class holding the parent as reference 23:33
timotimo i meant more like "do you use a 'use' statement or 'require" or something?"
the error message you've pasted suggests to me that you're not getting what you're expecting from the import
lichtkind the parent uses the ::decomposition class
b2gills the way to split up methods into more than one file is to put them into roles, and compose them in 23:34
timotimo that's why i asked you to post the .HOW, to see what you get from importing
lichtkind so you tell me that i can not even call sub under its full namen when its not exported?
b2gills The default for subs is `my` not `our` like Perl5 23:35
lichtkind b2gills, yes your right
timotimo i don't think i've said anything about subs, or full names, or did you mean someone else?
lichtkind maybe i misunderstood but it sounded you implied this but its now clearer 23:36
i try to rewrite as role 23:37
23:37 kaare_ joined, mcmillhj joined
lichtkind timotimo, thanks 23:40
timotimo i still think your problem lies with the way you import it, something's going wrong there
i was hoping you could get the .HOW of Math::Matrix in the file you've included it into, to see if it maybe shows up as a Package for example
m: use Test; sub blah(Test $a) { } 23:41
camelia 5===SORRY!5=== Error while compiling <tmp>
Module Test is insufficiently type-like to qualify a parameter
at <tmp>:1
------> 3use Test; sub blah(Test7⏏5 $a) { }
timotimo m: use Test; sat Test.HOW
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
sat used at line 1. Did you mean 'set', 'say'?
timotimo m: use Test; say Test.HOW
camelia Perl6::Metamodel::ModuleHOW.new
23:41 w_richard_w joined
timotimo it would look like that 23:41
b2gills lichtkind: I think you have one or more mistaken assumptions, and I would prefer to find out what they are so that we can help people in the future that may have the same assumptions 23:42
(Even Perl 6 “experts” sometimes have made assumptions that turn out to be incorrect) 23:43
23:43 yoleaux joined, ChanServ sets mode: +v yoleaux
lichtkind b2gills, well my idea was: class A has class B as an attribute, and i though in class B i can use A as type 23:44
but i could not
timotimo that sounds like a case of circular dependency, what do you have to break that? a stub somewhere? 23:45
lichtkind i dont understand
i mean the stub thing
skids Stubbed class name
timotimo well, you can't "use A" in B.pm6 and have "use B" in A.pm6 23:46
lichtkind this is what i found out
but i thought no problem its already loaded 23:47
thanks agoin but i think i have to learn more and some real bugs to fix first 23:49
b2gills You would need a `class A {...}` added to the top of B.pm6 23:54
23:56 mcmillhj left