skink Hey timotimo, is there a list of circumstances in which Buf can or can't substitute CArray? 00:00
timotimo when you get something back from C 00:01
a Buf knows how big it is, a CArray doesn't
sortiz skink, you can't receive from C a Buf
timotimo C also doesn't know how big arrays are, at least not in a unified way
sortiz But if the C API expect the allocated space and the size, a Buf is safe. 00:03
00:04 pierre_ left, jamesnek1 joined
skink Right. c_fill/read_buffer(Buf|CArray, size) is fine, but otherwise you need to use CArray? 00:04
(Assuming you've allocated Buf[size-1]) 00:05
sortiz In particular if the C function will allocate the space, and returns it address, you need CArray.
And you got an "unmanaged" CArray. 00:06
00:07 jamesneko left
BenGoldberg Is there any way to distinguish an unmanaged carray from a managed one? 00:08
00:09 pierre_ joined
sortiz BenGoldberg, yep, see: github.com/salortiz/NativeHelpers-...01-basic.t 00:09
BenGoldberg Also, is there any way to tell an unmanaged carray, "you are $length elements long," so that read accesses outside that will die or return failures? 00:10
timotimo nothing built-in
grondilu m: sub infix:<§>($,$) is tighter(&[+]) {0}; say 1 + 2 § 3; 00:12
camelia rakudo-moar d7698f: OUTPUT«1␤»
grondilu m: multi infix:<§>($,$) is tighter(&[+]) {0}; say 1 + 2 § 3;
camelia rakudo-moar d7698f: OUTPUT«1␤»
arnsholt CArrays are a bit wonky, in general (in part my fault, I'm afraid =)
BenGoldberg m: multi infix:<§>($,$) is looser(&[+]) {0}; say 1 + 2 § 3;
camelia rakudo-moar d7698f: OUTPUT«0␤»
grondilu it did not work last time I tried 00:13
BenGoldberg m: multi infix:<§>($,$) is looser(&infix:<+>) {0}; say 1 + 2 § 3;
camelia rakudo-moar d7698f: OUTPUT«0␤»
grondilu I mean there was a different behavior between sub and multi
BenGoldberg ahh
grondilu that's ok I'm not going to complain about rakudo not failing :P 00:14
BenGoldberg m: multi infix:<§>(@_) { [+] @_ }; say [§], 1..3;
camelia rakudo-moar d7698f: OUTPUT«Cannot call infix:<§>(...); none of these signatures match:␤ (@_)␤ in block <unit> at /tmp/ux8ThIdkh8 line 1␤␤»
BenGoldberg m: sub infix:<§>(@_) { [+] @_ }; say [§], 1..3;
camelia rakudo-moar d7698f: OUTPUT«Too few positionals passed; expected 1 argument but got 0␤ in sub infix:<§> at /tmp/4f9gluDuTu line 1␤ in block <unit> at /tmp/4f9gluDuTu line 1␤␤»
BenGoldberg Well, that's different.
m: sub infix:<§>(@_) { [+] @_ }; say [§] 1..3;
camelia rakudo-moar d7698f: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤ in sub infix:<§> at /tmp/nhf0uG4eQl line 1␤ in block <unit> at /tmp/nhf0uG4eQl line 1␤␤» 00:15
BenGoldberg m: multi infix:<§>(@_) { [+] @_ }; say [§] 1..3;
camelia rakudo-moar d7698f: OUTPUT«Cannot call infix:<§>(Int, Int); none of these signatures match:␤ (@_)␤ in block <unit> at /tmp/36WQDSNVM3 line 1␤␤»
grondilu oh I remember now
m: module A { multi infix:<§>($,$) is tighter(&[+]) is export {0}; } import A; say 1 + 2 § 3; 00:16
camelia rakudo-moar d7698f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/rcXmuV5Wkb␤Strange text after block (missing semicolon or comma?)␤at /tmp/rcXmuV5Wkb:1␤------> 3>($,$) is tighter(&[+]) is export {0}; }7⏏5 import A; say 1 + 2 § 3;␤ expecting any of:␤ …»
grondilu m: module A { multi infix:<§>($,$) is tighter(&[+]) is export {0}; }; import A; say 1 + 2 § 3;
camelia rakudo-moar d7698f: OUTPUT«0␤»
grondilu m: module A { sub infix:<§>($,$) is tighter(&[+]) is export {0}; }; import A; say 1 + 2 § 3;
camelia rakudo-moar d7698f: OUTPUT«1␤»
grondilu ^see?
it was when exporting. 00:17
ZoffixLappy May be worth reporting as a bug 00:18
zwu which module has defined LinearArray?
grondilu reports it
BenGoldberg Yeah, that's rakudobugabble ;)
sortiz zwu, NativeHelpers::CStruct 00:19
zwu sortiz: thank you!
Could not find NativeHelpers::CStruct. And Could not find NativeHelpers::Blob. Is there an option I should set? 00:21
ZoffixLappy zwu, did you install the needed module? 00:24
sortiz zwu, a simple 'zef/panda install NativeHelpers::blob' should suffice.
ZoffixLappy zef/panda install NativeHelpers::Blob 00:25
zwu oh, I have not installed any modules 00:30
Is there a list about important modules? 00:31
timotimo there's only a list of all modules
zwu timotimo:)
sortiz hesitating about the "pros"/"cons" on keep NH::* in one distro or separate them 00:36
00:36 AlexDaniel left 00:38 yasnothil joined 00:46 grondilu left
zwu Can we set memory alignment for NativeHelpers::CStruct too? 00:50
which is important for future vectorization support? 00:51
00:57 grondilu joined
sortiz zwu, not explicitly: LinearArray depends on calloc(..., sizeof(Foo)) semantics, and Rakudo's CStruct try to use the proper alignment. 00:58
dalek osystem: 405185e | (Zoffix Znet)++ | META.list:
Add Bailador::Template::Mojo::Extended

Extra features on top of the default ::Mojo renderer for Bailador: github.com/zoffixznet/perl6-Bailad...o-Extended
01:04
ZoffixLappy NOW, 4 modules later, I think, I can actually do work on the original web app I planned last Thursday :P 01:05
heh... npm gets 447 "new" modules a day: www.modulecounts.com/ 01:08
Either the counter system is broken or npm stands for "New Wheel Reinvention Factory"
01:10 pierre_ left
ZoffixLappy 1111th commit to ecosystem 01:11
01:11 molaf left
ZoffixLappy feels a pleasant feeling 01:12
01:24 molaf joined 01:29 itcharlie left 01:31 BenGoldberg left 01:33 BenGoldberg joined
Xliff_out m: my $b = Blob.new(^100); my $c = $b[10..20]; $c.WHAT.say 01:40
camelia rakudo-moar d7698f: OUTPUT«(List)␤»
01:41 zwu left
Xliff_out say $_ for ^5; 01:45
m: say $_ for ^5;
camelia rakudo-moar d7698f: OUTPUT«0␤1␤2␤3␤4␤»
01:47 ilbot3 joined, zacts joined 01:53 BenGoldberg left 01:54 BenGoldberg joined 02:10 kid511 joined, pierre_ joined 02:11 kid51 left 02:15 pierre_ left 02:17 ZoffixLappy_ joined 02:18 ZoffixLappy_ is now known as sexycodergirl, yqt left 02:19 sexycodergirl is now known as Zoffix 02:22 noganex joined 02:25 noganex_ left 02:34 kid511 left 02:39 skink left 02:48 hotel left, hotel joined 02:55 emdashcomma_ left 02:56 emdashcomma joined 02:58 loren joined 03:07 ZoffixLappy left, Zoffix left 03:10 grondilu left 03:12 pierre_ joined 03:13 kaare_ joined
Xliff_out m: my $b = Buf[int16].new(0 xx 100); 03:14
camelia ( no output )
03:14 skids joined
Xliff_out m: my $b = Buf[int16].new(0 xx 100); say $b.elems 03:14
camelia rakudo-moar d7698f: OUTPUT«100␤»
Xliff_out m: my $b = Buf[int16].new(0 xx 100); $b.map({$_ = 0}); 03:17
camelia ( no output )
03:17 pierre_ left 03:21 kurahaupo joined 03:28 kurahaupo left
Xliff_out m: my $b = Buf[int16].new(0 xx 100); $b.map({$_ = 0}); say $b is Buf 03:37
camelia rakudo-moar d7698f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/F8T6ZcXFG3␤Two terms in a row␤at /tmp/F8T6ZcXFG3:1␤------> 3.new(0 xx 100); $b.map({$_ = 0}); say $b7⏏5 is Buf␤ expecting any of:␤ infix␤ infix stopper␤ postfix␤ …»
Xliff_out m: my $b = Buf[int16].new(0 xx 100); $b.map({$_ = 0}); say $b ~~ Buf
camelia rakudo-moar d7698f: OUTPUT«True␤»
richi238 Hi 03:45
Is there a reason why the type num is not documented in the official doc?
doc.perl6.org/type.html
geekosaur because it's a work in progress? 03:47
things that can't be found there yet are often in the older spec docs at design.perl6.org
richi238 ah okay, thanks
04:06 Cabanossi left 04:08 Cabanossi joined
ugexe seems perl6 has totally lost flussence now. a shame... 04:16
04:18 khw left, loren left 04:25 loren joined 04:40 wamba joined 04:54 BenGoldberg left 04:55 dwarring left
MadcapJake ugexe: did something happen? 05:34
05:36 sortiz left
MadcapJake ugexe: gitlab.com/u/flussence 05:37
05:46 loren left 05:54 CIAvash joined 06:13 wamba left
stmuk_ he seems to have been trying to use the JVM backend 06:30
06:44 hotel left, hotel_california joined 06:56 sue joined 07:02 skids left 07:08 firstdayonthejob joined 07:13 firstdayonthejob left 07:24 rindolf joined 07:30 sue left 07:32 domidumont joined 07:34 CIAvash left 07:36 domidumont left 07:37 rurban joined, domidumont joined 07:38 mnick joined 07:39 pierre_ joined 07:43 sue joined 07:44 loren joined 07:48 rurban left 07:49 wamba joined 07:53 lizmat joined 07:54 rurban joined 07:56 loren left, rurban left 08:01 RabidGravy joined 08:10 pierre_ left 08:14 darutoko joined 08:19 firstdayonthejob joined, pierre_ joined 08:31 Ven joined
dogbert2 o/ #perl6, is there anybody out there ? 08:32
08:32 CIAvash joined
dogbert2 hmm 08:33
timotimo o/
_nadim dogbert2: Sunday morning, which is probably after a long "night to Sunday morning"
dogbert2 hello guys
_nadim morning
dogbert2 saw that the doc.perl6.org/language/variables#Dy..._variables had been cleaned up a bit 08:34
still, a lot of vars are still missing and some explanations seem incorrect
_nadim timotimo: I havea, crappy, piece of code with a grammar that core dumps when it is slightly modified. Do you think anyone would be interested in it? it's short.
timotimo i'll take it 08:35
_nadim 2 mn
dogbert2 $*DISTRO Which OS distribution am I compiling under? # this should be 'Which OS distribution am I running under' ?? 08:36
if think I'll write up some changes additions to the variable part and present it here for your perusal. How about that? 08:38
_nadim timotimo: nopaste.linux-dev.org/?1097300 08:41
dogbert2: "that" will probably be welcome but a patch even more. 08:42
dogbert2 _nadim: I can make changes in the repo :) but in a case like this it's nice to have someone take a look first 08:43
RabidGravy make the PR, people will look at it
dogbert2 RabidGravy; can do 08:44
timotimo _nadim: you didn't say anything about including a module :)
_nadim: note that using something like "push" in your action methods is unreliable in the face of backtracking 08:46
08:50 n0xff left 08:51 pierre_ left 08:52 pierre_ joined 09:01 n0xff joined
_nadim timotimo: just ignore the module it's just for display purpose. 09:06
timotimo: yes I am aware of that even though in this case it will work I believe. the whole closure thingy was because of frustration ;)
09:09 AlexDaniel joined
AlexDaniel richi238: if you can't find something then please open a ticket here github.com/perl6/doc/issues/new 09:11
richi238: in this case it was already opened: github.com/perl6/doc/issues/372
09:14 sue left 09:15 pierre_ left, pierre_ joined
dalek c/update-dynamic-vars: e827294 | (Jan-Olof Hendig)++ | doc/Language/variables.pod:
Added TMPDIR and fixed some errors (according to S28)
09:23
dogbert2 ok, PR done, did I get everything wrong? 09:25
09:27 Emeric joined 09:29 pierre_ left
RabidGravy no they look good, $*FOO should always be runtime, but an easy way to check is find the definition - if it's PROCESS::<$FOO> then it's definitely run time 09:29
dalek c: e827294 | (Jan-Olof Hendig)++ | doc/Language/variables.pod:
Added TMPDIR and fixed some errors (according to S28)
09:30
c: f928194 | RabidGravy++ | doc/Language/variables.pod:
Merge pull request #482 from perl6/update-dynamic-vars

Added TMPDIR and fixed some errors (according to S28)
AlexDaniel dogbert2: it looks right, but let's see what precompilation aficionados say :)
dogbert2 AlexDaniel: uh oh :) 09:31
RabidGravy the $*FOO should always be initialised when they are first used with the appropriate run-time values, there may be some hacks in there that make this not the case, but they should 09:32
dogbert2 m: say $. # what will the error message be .. 09:33
camelia rakudo-moar d7698f: OUTPUT«5===SORRY!5=== Error while compiling /tmp/8vFxz5IbCw␤Unsupported use of $. variable; in Perl 6 please use the filehandle's .ins method␤at /tmp/8vFxz5IbCw:1␤------> 3say $.7⏏5 # what will the error message be ..␤»
AlexDaniel what is .ins 09:34
dogbert2 a no longer existing method, removed around Christmas
AlexDaniel irclog.perlgeek.de/perl6/2016-04-30#i_12414356
yeah
timotimo "number of input seperators encountered"
psch m: say $*IN.ins
camelia rakudo-moar d7698f: OUTPUT«Method 'ins' not found for invocant of class 'IO::Handle'␤ in block <unit> at /tmp/t2NZ9VVVql line 1␤␤»
AlexDaniel submits rakudobug
timotimo roughly translates to "current line in file"
what's the rakudobug here? 09:35
dogbert2 the error msg suggesting a method that no longer exists ?
AlexDaniel timotimo: well, you may fix it right away so that I don't have to submit a ticket :) 09:36
github.com/rakudo/rakudo/blob/8d69...n.pm#L1359
m: say $*IN.nl-in 09:37
camelia rakudo-moar d7698f: OUTPUT«[␤
AlexDaniel m: say $*IN.nl-out
camelia rakudo-moar d7698f: OUTPUT«␤␤»
09:38 travis-ci joined
travis-ci Doc build passed. Jan-Olof Hendig 'Added TMPDIR and fixed some errors (according to S28)' 09:38
travis-ci.org/perl6/doc/builds/127000170 github.com/perl6/doc/commit/e827294879e5
09:38 travis-ci left
timotimo ah, *that* is the bug 09:38
ok
09:40 TEttinger left
_nadim masak: going to Cluj? 09:41
09:46 travis-ci joined
travis-ci Doc build passed. Jonathan Stowe 'Merge pull request #482 from perl6/update-dynamic-vars 09:46
travis-ci.org/perl6/doc/builds/127000625 github.com/perl6/doc/compare/05bb1...281940d953
09:46 travis-ci left
dalek c: bceb198 | (Tom Browder)++ | doc/Type/Pod/Block.pod:
add table class
09:50
c: 5c517fe | RabidGravy++ | doc/Type/Pod/Block.pod:
Merge pull request #483 from tbrowder/master

add table class
09:50 wamba left
lizmat AlexDaniel: RT #128045 fixed 10:02
synopsebot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=128045
dogbert2 wonders if unicode contains a bikeshed character :) 10:04
10:05 Actualeyes1 left 10:06 sena_kun joined
tbrowder doc: how does an item become searchable in the search box? 10:07
dogbert2 lizmat: I like the new message :) 10:11
timotimo tbrowder: i think it's either an X<...> tag or some other one 10:12
10:12 tbrowder left, tbrowder joined
AlexDaniel dogbert2: there you go: 🚳 10:12
dogbert2 ok, one possible bikeshed then ... 10:13
AlexDaniel .u 🚳
yoleaux U+1F6B3 NO BICYCLES [So] (🚳)
dogbert2 how would you translate this p5 snippet with .kv
AlexDaniel dogbert2: which snippet? 10:14
dogbert2 perl -n -e 'print $., $_' /etc/passwd
AlexDaniel m: say .[0],.[1] for $*IN.lines.kv; 10:15
camelia rakudo-moar 1e54c5: OUTPUT«Index out of range. Is: 1, should be in 0..0␤ in block <unit> at /tmp/EHSctNz3eu line 1␤␤Actually thrown at:␤ in block <unit> at /tmp/EHSctNz3eu line 1␤␤»
AlexDaniel m: say .k,.v for $*IN.lines.kv;
camelia rakudo-moar 1e54c5: OUTPUT«Method 'k' not found for invocant of class 'Int'␤ in block <unit> at /tmp/DhkGzc8MK9 line 1␤␤»
AlexDaniel oh geez
psch m: .say for lines().kv
camelia rakudo-moar 1e54c5: OUTPUT«0␤Céad slán ag sléibhte maorga Chontae Dhún na nGall␤1␤Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;␤2␤Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí␤3␤I mo dhiaidh bhí gleann…»
psch m: .print for lines().kv 10:16
camelia rakudo-moar 1e54c5: OUTPUT«0Céad slán ag sléibhte maorga Chontae Dhún na nGall1Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;2Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí3I mo dhiaidh bhí gleanntáin ghlas’ Ghaoth…»
psch that's probably the same
oh, no -n adds new-lines
lizmat for $*IN.lines.kv -> $index, $line { }
psch m: for lines().pairs { put .key, .value }
camelia rakudo-moar 1e54c5: OUTPUT«0Céad slán ag sléibhte maorga Chontae Dhún na nGall␤1Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;␤2Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí␤3I mo dhiaidh bhí gleanntáin ghlas…»
AlexDaniel m: for $*IN.lines.kv { say $^a,$^b } 10:17
camelia rakudo-moar 1e54c5: OUTPUT«0Céad slán ag sléibhte maorga Chontae Dhún na nGall␤1Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;␤2Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí␤3I mo dhiaidh bhí gleanntáin ghlas…»
lizmat m: for $*IN.lines.kv -> $index, $line { say "$index: $line" }
camelia rakudo-moar 1e54c5: OUTPUT«0: Céad slán ag sléibhte maorga Chontae Dhún na nGall␤1: Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;␤2: Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí␤3: I mo dhiaidh bhí gleanntái…»
psch m: for lines() { put $++, $_ } # :P
camelia rakudo-moar 1e54c5: OUTPUT«0Céad slán ag sléibhte maorga Chontae Dhún na nGall␤1Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;␤2Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí␤3I mo dhiaidh bhí gleanntáin ghlas…»
AlexDaniel m: for $*IN.lines { say $++, $_ }
camelia rakudo-moar 1e54c5: OUTPUT«0Céad slán ag sléibhte maorga Chontae Dhún na nGall␤1Agus dhá chéad slán ag an Eireagal ard ina stua os cionn caor is coll;␤2Nuair a ghluais mise thart le Loch Dhún Lúich’ go ciúin sa ghleann ina luí␤3I mo dhiaidh bhí gleanntáin ghlas…»
AlexDaniel ah
yeah
psch: right! Forgot that you can use just lines() 10:18
dogbert2 the following hangs: perl6 -n -e 'for $*IN.lines.kv -> $index, $line { say "$index: $line" }' /etc/passwd 10:20
timotimo doesn't -n run the code for every line?
psch dogbert2: i don't think you need -n if you read the lines yourself
AlexDaniel it's just perl6 -ne 'say $++,$_' /etc/passwd 10:21
psch hanging is kind of suboptimal though...
dogbert2 yeah, it's strange
AlexDaniel “readline requires an object with REPR MVMOSHandle” 10:22
and yes, it hangs!
dogbert2 AlexDaniel: your example worked 10:24
AlexDaniel interestingly both get() and lines() kinda work
but $*IN.get and $*IN.lines hang
dalek c: 41bbe3b | Altai-man++ | doc/Language/regexes.pod:
Typo in example fixed

With an order like "0-1-2" substitution makes no sense, since it doesn't change the variable. According to the comment line, the right order should probably be "1-2-0".
10:30
RabidGravy me-- # top tip - if you have an attribute "perl" on an object don't be surprised if things don't appear to behave as expected 10:39
psch RabidGravy: that's a neat braino :) 10:40
10:40 Ven left
timotimo %) 10:41
RabidGravy spent several hours and instrumented a couple of modules trying to debug that :-\
lizmat some lessons learned are expensive :-( 10:42
timotimo uh oh :(
10:42 CIAvash left
RabidGravy anyway off to my 30+ year old stomping ground to meet my brother and family 10:43
have fun
toodles
timotimo :)
i haven't a clue what "stomping ground" refers to :|
psch guesses pub 10:44
timotimo oh
RabidGravy the area I lived until I was 18
but yes there may be a pub involved ;0)
10:49 RabidGravy left 10:52 diakopter left
dalek c: 897f15e | (Tom Browder)++ | doc/Language/5to6-nutshell.pod:
make searchable
10:54
c: 5fa9347 | (Tom Browder)++ | doc/Language/about.pod:
add note about how to make an item searchable
c: 155e9da | (Tom Browder)++ | doc/Language/ (2 files):
Merge pull request #485 from tbrowder/master

make PERL6LIB searchable
10:58 kid51 joined 11:02 kid511 joined 11:03 kid51 left 11:06 CIAvash joined 11:07 diakopter joined
AlexDaniel dogbert2: RT #128046 RT #128047 11:15
synopsebot6 Link: rt.perl.org/rt3//Public/Bug/Displa...?id=128046
Link: rt.perl.org/rt3//Public/Bug/Displa...?id=128047
11:15 spider-mario joined
dogbert2 AlexDaniel++ 11:20
tbrowder doc: the X<> doesn't seem to make a term searchable, any other ideas? 11:26
11:26 zakharyas joined
tbrowder doc: ah, it looks like it's in htmlify.pl6... 11:28
11:29 Ven joined 11:30 Ven left 11:31 wamba joined 11:41 BenGoldberg joined
kid511 What is the appropriate forum in which to ask questions about libraries that are bundled with Rakudo Star? 11:49
Specifically, I have questions about DBIish
timotimo this here is a good place, but perl6-users@, the mailing list, is also a good place 11:50
and reddit is also all right, though i personally don't read it all that often 11:51
like, reddit.com/r/perl6
11:51 pdcawley joined
kid511 Well, let me ask one question here since it may be more general 11:52
At github.com/perl6/DBIish, the following instruction is given for reading the documentation:
perl6 --doc <filename>
But when I searched the rakudo-star tree, I could not find any file with 'DBIish' in its name. 11:53
Hence, I could not read the documentation. What is wrong?
timotimo oh, that's a good point
because the filenames now have sha1 hashes in them
psch yeah, i've tripped over that a few times too 11:54
kid511 So, doesn't that render 'perl6 --doc <filename>' useless, in practical terms?
lizmat is there a ticket for it ?
psch it probably should check if we have a module named <filename> in the CURI
lizmat is nine_ aware of this ?
11:55 Util joined, pdcawley left
kid511 How, in general, does one read the documentation in Perl6 via an invocation at the command-line? 11:55
timotimo there's the p6doc tool, but it's not for installed modules, is it?
kid511 i.e., is there a working equivalent to 'perldoc'? 11:56
psch well, --doc *should* work
timotimo if you can find the file, it definitely will work
psch i'll have a look in a bit, see if i can hook that up to look into the installation repo
lizmat I guess we need to move up handling of --doc to Perl 6 level as well
timotimo we ought to ship a few nice little tools for inspecting CUR's. like CURls that'll ls all the files that are part of a distribution and their installed paths (if there are any), and also CURcat to cat files that are installed even if there aren't any "files" so to speak 11:57
11:58 pierre_ joined
timotimo CURgrep/CURack, ... :) 11:58
lizmat timotimo: and those tools would simply use the CUR.methods available :-) 11:59
so that people can build their own tools :-)
timotimo yes, of course
those tools all ought to be one to five lines long
but there's still no reason to force users to write them out themselves :) 12:00
12:01 brrt joined
tbrowder doc revert pull #485: can someone please revert doc pull #485? it doesn't work as expected, thanks. 12:02
timotimo hm, no button up on github to do the revert in-place on the website 12:03
12:03 pierre_ left, ZoffixWin left
psch actually, i don't see an easy way to not require e.g. --docee=Module::Name... 12:05
lizmat tbrowder: you mean 897f15e39b3ea78cd ? 12:06
kid511 It appear that if, e.g., I want to read the POD found at github.com/perl6/DBIish/blob/maste...DBIish.pm6 from the command-line, I have to say:
perl6 --doc share/perl6/site/sources/8B5538E93290C550228635C3FE5A7111890C4339
... which meant that I first had to search the source tree for files with the string 'DBIish', read a lot of output, and then make an educated guess. 12:07
... which, IMHO, falls into the category of "barriers to adoption" 12:08
AlexDaniel kid511: you are right
lizmat kid511: completely agree :-)
kid511 Is there work under way to rectify this?
lizmat tries to invoke the nine_ 12:09
AlexDaniel since you've just brought it up, I don't think so
psch gets warnocked again
kid511 Also, here I at least had the advantage of knowing that DBIish was bundled with Rakudo-Star
AlexDaniel and there's also no tickte as far as I can see
ticket*
kid511 I would have been completely clueless if this were "installed from CPAN or the cloud"
I will open a ticket based on my remarks ^^ 12:10
lizmat kid511++
AlexDaniel kid511++
12:13 wamba left
jdv79 kid511: good point 12:14
12:15 zakharyas left 12:17 CIAvash left
AlexDaniel .seen Zoffix 12:17
yoleaux I saw Zoffix 26 Jan 2016 15:53Z in #perl6: <Zoffix> m: class Bar does Associative { has $.foo = 42; method AT-KEY($key) { self."$key"() } }; Bar.new<foo>.say
tadzik wouldn't 'p6doc DBIish' DTRT?
AlexDaniel .seen ZoffixWin
yoleaux I saw ZoffixWin 30 Apr 2016 19:55Z in #perl6: <ZoffixWin> \o
AlexDaniel .tell ZoffixWin where is huggable? :)
yoleaux AlexDaniel: I'll pass your message to ZoffixWin.
12:19 brrt left
tadzik kid511: yes, 'p6doc DBIish' is what you're after :) 12:22
similarly to how you'd do 'perldoc DBI' rather than 'perl -Mpod2text-or-whatever `find -name DBI.pm | head -n1` or something :) 12:23
psch tadzik: in that case i'd almost argue to toss the --doc switch 12:24
tadzik: 'case as-is it's just misleading and somewhat useless too
*cause
tadzik it's quite useful for developing and locally testing your own written doc
12:25 kurahaupo joined
tadzik I think the synopses 12:25
timotimo we could deprecate --doc and call the switch --renderpod instead
tadzik ' idea was to make --doc smart enough
so perl6 --doc DBIish would actually work
psch yeah, i'm looking how we could do that
hm, what's the CUR invocation to look for the path of an installed module..? :) 12:26
12:27 Ben_Goldberg joined, BenGoldberg left, Ben_Goldberg is now known as BenGoldberg
kid511 rt.perl.org/Ticket/Display.html?id=128048 12:28
tadzik I'll respond to the ticket :) 12:29
AlexDaniel what is p6doc
tadzik it's a perldoc for perl6,pretty much :)
AlexDaniel where can I get it? 12:30
tadzik same place where everywhere else :)
'redpadna p6doc', or your other favourite equivalent
lizmat redpadna ?
tadzik frankly, I think a reasonable way to resolve the situation is to make --doc load p6doc-the-module and delegate stuff ot it
reppadna, modulo my pytos :)
12:31 grondilu joined
tadzik github.com/tadzik/App-redpanda this 12:31
AlexDaniel oh, so panda install p6doc
tadzik I mean, the precedent to it this way is --doc=HTML that tries to load Pod::To::HTML
AlexDaniel is it included in rakudo star? 12:32
tadzik yeah, sorry for being deliberately confusing :)
I think it is, yes
ISTR there's at least one other module that does that, being the Debugger::UI::Commandline or so
AlexDaniel and then, how do I use it? 12:33
tadzik I don't see why not to make p6doc '2nd degree core' and have --doc rely on it, at least if --doc cannot find the source for the Pod by itself
as you would perldoc
p6doc DBIish
p6doc -f sort
AlexDaniel “panda install p6doc” does not create a p6doc binary on my system 12:34
tadzik (the latter won't work, as I've found, I'm sure moritz will be happy for patches :))
are you using rakudobrew?
in that case, 'rakudobrew rehashh
why can't I type today :|
AlexDaniel yeah, now I have it
tadzik awesome 12:35
AlexDaniel what if I wasn't using rakudobrew?
tadzik then it should Just Work
as long as the default panda install path is in your PATH
12:35 _nadim left
AlexDaniel hmmm… I wonder why would it be… in case of e.g. debian 12:35
ah, there's no panda in debian repos so perhaps it does not matter right now 12:37
tadzik: anyway, thanks! 12:38
tadzik (nvm) 12:44
12:45 loren joined
tbrowder lizmat: I think the whole commit is: 155e9daf87ce9e38e22ef040987a1b24f3f3dfe6 12:50
dalek c: 32d8fe2 | lizmat++ | doc/Language/5to6-nutshell.pod:
Revert "make searchable"

This reverts commit 897f15e39b3ea78cdd11a704c371b860ad124c5b.
12:53
tadzik lizmat: what is the reason for this? 12:55
dalek c: 232d81e | (Zoffix Znet)++ | doc/Language/5to6-nutshell.pod:
make searchable in a way that works
tadzik I assume "it makes it render badly while not giving us any value at this point".... forget I asked :)
lizmat tadzik: basically doing what tbrowder asked me to do ?
tadzik right, I didn't follow the entire thing, sorry 12:56
12:57 ZoffixWin joined 12:58 Actualeyes joined
ZoffixWin AlexDaniel, she keeps dropping because I never finished IRC::Client and I didn't really see people using her, so I stopped restarting her :) 12:58
yoleaux 12:17Z <AlexDaniel> ZoffixWin: where is huggable? :)
12:59 huggable joined
ZoffixWin huggable, help 13:00
huggable ZoffixWin, I'm a factoid bot. See me my source at github.com/zoffixznet/perl6-IRC-Cl...in-Factoid
13:00 pierre_ joined
ZoffixWin huggable, Int 13:00
huggable ZoffixWin, class Int [Integer (arbitrary-precision)]: doc.perl6.org/type/Int
moritz I'd be very interested in an IRC client that can reconnect automatically
because then I could use a Perl 6 version of ilbot in production, finally
ZoffixWin I'll put more work into it then, after I launch perl6.party
tadzik moritz: is ilbot running on Bot::BasicBot? 13:01
moritz tadzik: yes
tadzik moritz: did you do anything speciall to make it automatically reconnect? I have a bot I maintain on another channel, and every now and then it will "fall asleep" and stop responding, and I always manually restart it :? 13:02
moritz tadzik: I don't think I did :-) 13:04
github.com/moritz/ilbot/blob/master/ilbot2.pl
ZoffixWin There's this, but I'd be surprised if B::BB did not use it by default anyway: metacpan.org/pod/POE::Component::I...:Connector
13:05 pierre_ left
AlexDaniel ZoffixWin: perhaps no one is using her because she keeps dropping? 13:06
ZoffixWin :D
AlexDaniel ZoffixWin: I've tried to use it a couple of times but was very disappointed to see that the bot was not there when I needed it 13:07
ZoffixWin I'll shove it into a auto-restarter script that will kill and restart every so often :) 13:08
AlexDaniel huggable: no bikeshedding please :is: 🚳
huggable AlexDaniel, Added no bikeshedding please as 🚳
ZoffixWin m: '🚳'.uninames.say 13:09
camelia rakudo-moar 6df053: OUTPUT«(NO BICYCLES)␤»
ZoffixWin :S
AlexDaniel yea, it's a bit off… but good enough :)