»ö« 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:00 aindilis joined
timotimo SDL and VPython are two very different things altogether 00:02
azawawi timotimo: i meant we need a simple 3D library on top of SDL like VPython's 00:03
timotimo ah 00:04
since vpython has a "scene" thing, it's much more than i'd call a "3d library"
though to be honest, i'm a bit "damaged" in my expectations of what a 3d library would do by having used opengl (a long time ago) 00:05
azawawi im stuck since yesterday on a weird 3D 2D C array problem in ex011.p6 (PLplot) 00:06
:)
opengl is cool but what vpython does perfectly is making complicated 3D stuff simple while providing advanced options 00:07
timotimo maybe it'd be a good idea to model something off of three.js 00:08
00:08 dj_goku joined
azawawi or go crazy and port obelisk.js to Perl 6 :) 00:10
codepen.io/slobaum/pen/zhmFL
on my todo list
00:11 kurahaupo_ joined, kotp left 00:13 kurahaupo left 00:14 dj_goku left, Cabanossi left 00:15 Cabanossi joined
timotimo i remember you spoke about it before 00:29
00:29 nadim left 00:32 finanalyst joined 00:36 [2300mAh] joined 00:38 azawawi left 00:43 kurahaupo_ left, kurahaupo joined 00:44 kurahaupo left, kurahaupo joined 00:45 kurahaupo left, kurahaupo_ joined, kurahaupo joined 00:46 troys is now known as troys_ 00:48 kurahaupo left 00:49 kurahaupo_ left 00:53 yoleaux joined, ChanServ sets mode: +v yoleaux 01:13 BenGoldberg joined 01:15 kurahaupo joined 01:16 kurahaupo left
BenGoldberg wonders if that map is for simcity2000 or xbattle ;) 01:16
Geth doc: 8b77d0f56a | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Supply.pod6
Fix typo
01:16 kurahaupo joined, Praise left 01:20 kurahaupo_ joined, kurahaupo_ left, kurahaupo_ joined 01:23 kurahaupo left, kurahaupo joined 01:24 kurahaupo left, kurahaupo_ left 01:33 curt_ left 01:34 itaylor57 left
zostay MasterDuke: will do, thx 01:41
01:46 ilbot3 left 01:47 ilbot3 joined, ChanServ sets mode: +v ilbot3
zostay .tell lizmat rt.perl.org/Public/Bug/Display.html?id=131386 01:49
yoleaux zostay: I'll pass your message to lizmat.
01:56 dj_goku joined, dj_goku left, dj_goku joined 01:59 Cabanossi left 02:00 Cabanossi joined 02:01 dj_goku left 02:06 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Fix typo' 02:06
travis-ci.org/perl6/doc/builds/236791842 github.com/perl6/doc/compare/9f2e7...77d0f56a23
02:06 travis-ci left 02:13 pilne left 02:24 itaylor57 joined 02:30 dwarring left 02:39 xinming_ joined 02:40 cdg joined, xerx joined 02:43 xinming left 02:52 mr-foobar left 02:53 mr-foobar joined 02:55 noganex_ joined 02:57 Cabanossi left, noganex left 03:00 Cabanossi joined 03:13 Cabanossi left 03:14 Cabanossi joined 03:15 zacts joined 03:22 skids joined 03:29 araraloren_ joined 03:32 araraloren left 03:38 khw left 03:39 cdg_ joined 03:41 cdg left 03:44 dj_goku joined, dj_goku left, dj_goku joined 03:49 dj_goku left 04:13 araraloren_ is now known as araraloren 04:25 rindolf joined, aborazmeh left 04:27 Cabanossi left 04:29 Cabanossi joined 04:33 cdg_ left 04:41 zacts left 04:46 zacts joined 04:57 mr-foobar left 04:58 mr-foobar joined 05:13 CacoS joined
fatguy how do i test can-ok on class ? 05:14
i used this on testing class : can-ok ::(module)::math, 'new', 'ok loading math class'; 05:22
any good practices ?
05:28 parv joined 05:30 zacts left 05:33 dj_goku joined 05:37 dj_goku left 05:39 wamba joined
llfourn fatguy: if ::(module)::match is a class then that looks fine 05:47
math*
if it's not working you might try ::(module).WHO<math> and see if that works 05:48
fatguy llfourn: thanks! 05:54
llfourn m: use Test; say ::("Test")::.keys; say ::("Test").WHO.keys 05:56
camelia ()
(&todo_output EXPORT &failure_output &output)
llfourn fatguy: yep, that's still a bug
05:58 Cabanossi left 05:59 Cabanossi joined, xerx left 06:17 xiaomiao left 06:22 xiaomiao joined
Geth ecosystem: finanalyst++ created pull request #343:
add Task::Popular distribution (correct typo in earlier module)
06:24
ecosystem: 719a6c2c72 | (Richard Hainsworth)++ (committed by Zoffix Znet) | META.list
add Task::Popular distribution (#343)
06:32
06:45 espadrine joined 06:46 wamba left 06:54 smls joined
smls bisectable6: my (@a, @b) := [Z] <a 1>, <b 2>, <c 3>; say @a; 06:55
bisectable6 smls, Bisecting by exit code (old=2015.12 new=a0b6f6b). Old exit code: 1
smls, bisect log: gist.github.com/54a125252b5d73d42c...cf6f752770
smls, (2017-04-28) github.com/rakudo/rakudo/commit/98...dfe6169dbd
smls yay, that's another RT I can close 06:56
07:03 don joined 07:04 don left 07:06 rurban joined, rurban left 07:07 setty1 joined 07:14 jaeuser joined 07:15 nadim joined, fatguy left 07:16 darutoko joined 07:19 skids left 07:21 dj_goku joined, dj_goku left, dj_goku joined, skids joined 07:24 BenGoldberg left 07:26 dj_goku left 07:32 troys_ left 07:37 jaeuser left 07:51 skids left 07:54 dct joined 08:09 mr-foobar left 08:27 Cabanossi left 08:29 cognominal left 08:30 Cabanossi joined 08:43 mr-foobar joined
lizmat . 08:49
yoleaux 01:49Z <zostay> lizmat: rt.perl.org/Public/Bug/Display.html?id=131386
lizmat fixed with github.com/rakudo/rakudo/commit/87d0e0a39e
Geth doc: 6dd92b899e | (Zoffix Znet)++ | 6 files
[io grant] Document IO::CatHandle

A___A
   A___A |o o|
   ____ / o o \ |='=|
___/~____ ='= /_____/ |_________
   (______)__m_m_) / ||||
   |___||||]
08:52
lizmat Zoffix++ # making a dream come true 08:53
08:57 parv left
moritz nadim: nice! 08:58
nadim and 10 times shorter than .gist 08:59
zengargoyle hrmm.... "Remember the various regexes we experimented for extracting dates" vs "Remember the various regexes we experimented with for extracting dates"?
nadim moritz: but to be fair it is specialized; not only does it handle long strings, etc ... but it also knows about what JSON::Tiny returns and decide to inline sub elements or not show them at all 09:00
zengargoyle wonders if this is some Queen's English vs American English sort of thing. worthy of pull-request or not? 09:02
nadim moritz: the JSON::Tiny filter github.com/nkh/P6-Data-Dump-Tree/b...l#L67-L103
09:09 dj_goku joined, dj_goku left, dj_goku joined
zengargoyle is sending pull-requests/issues to thinkinperl6 09:09
09:14 dj_goku left
Voldenet zengargoyle: well the meaning in both cases is different 09:14
"experiment" a regex would mean "to determine what it would do in that case"
...I think 09:15
and "experiment with" would sound that you tried a few of them and picked one that worked best, hm
www.macmillandictionary.com/diction...periment_2 1st vs 2nd meaning :P 09:17
actually most dicts give you similar two meanings onelook.com/?w=experiment&ls=a 09:18
zengargoyle yeah, i'm torn. it just made my brain lock up for a moment reading it. like 'in line' vs 'on line' or 'in the hospital' vs 'in hospital'. 09:19
or 'queue' as the brits say.
Voldenet eh, americans don't say 'queue'? :o 09:20
ah, "line"
but "fifo line" sounds unprofessional, I'm still "queueing", so I can get bonus points for vowel spree ;) 09:21
zengargoyle 'the things that we experimented' is sorta wierd vs 'the things we experimented with'...
moritz queue implies fifo 09:22
zengargoyle so does in a line :P
hahainternet queue is indeed the correct spelling and concept :)
zengargoyle this american watched too much brittish tv as a child in the south and was accused of being a damn yankee by teachers for talking weird. :) 09:24
hahainternet wow that's just depressing zengargoyle :(
Voldenet > docs.perl6.org/routine/pack#role_Blob 09:25
"Considered experimental" ~ should I inline p5's pack/unpack for this? 09:26
zengargoyle meh, just like Perl* i'm liberal in input. :P
Geth doc: 0653d31fbb | (Zoffix Znet)++ | doc/Type/IO/CatHandle.pod6
Fix formatting issue
zengargoyle hence not knowing if 'which' is needed.... 09:27
github.com/LaurentRosenfeld/thinkp...s.tex#L399 09:28
zengargoyle has also been recently watching a bunch of brit Royal Institute lectures with experiments so 'the things we experimented' also makes some sense in that 'experimented' is the like the meta of the experiments as a whole but 'experimented with' is the collective of all of the individual experiments which each stand on their own. 09:37
hahainternet i don't think you can use "experimented" like that, i'm no linguist though 09:40
but it would be more appropriate to be "the experimentation"
lizmat
.oO( we can verb anything )
hahainternet well in the verbed noun form this would be fine "they experimented" as in "they medalled" 09:41
El_Che IANAL aka "I am not a linguist"
hahainternet but referring to the subject by it?
you wouldn't say "the events we medalled"
so yeah, if it'd be "the events in which we medalled" i contest it's also "the things with which we experimented" 09:42
09:45 smls left
zengargoyle the events we medalled with 09:45
hahainternet surely "in", the events were not the tool 09:46
anyway, i have a grade C qualification in english
so not really the most appropriate to correct you
09:52 Jarryd98 joined
zengargoyle hahainternet: you can't correct me, i don't know either. :P 09:54
it just makes my native us english brain go bonk but might not even be a blip for the whole rest of the english speaking world. 09:57
09:57 Cabanossi left 10:00 Cabanossi joined 10:04 wamba joined
zengargoyle decides there are no strong opinions either way and continues reading for something more black and white. 10:06
10:09 TEttinger left 10:11 lolo78 joined
lolo78 zengargoyle: I have tried to use American English throughout Think Perl 6 book. The issue might just be that English is not my mother tongue, so I might not be always very precise with these things. Laurent R. 10:15
That said, the book has been reviewed by three professional editors and proofreaders at O'Reilly, I would think they would have picked it up if it was really a mistake.
10:16 travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Fix formatting issue' 10:16
travis-ci.org/perl6/doc/builds/236849498 github.com/perl6/doc/compare/6dd92...53d31fbbd5
10:16 travis-ci left 10:28 Cabanossi left 10:29 Cabanossi joined 10:30 pmurias joined, espadrine left 10:32 margeas joined
pmurias hmm, building nqp-js currently requires building nqp-m (and moar). What should 'perl Configure.PL --backends=js --gen-nqp' in rakudo.js do? 10:35
zengargoyle lolo78: i understand and that's why i'm cautious. 10:36
lolo78: and great work and enjoyable read (or at least skimming through). 10:38
lolo78: feel free to ignore me if i make some random comments. :) 10:39
lolo78 zengargoyle: oh, no, any comment that might help improve the book is welcome. (Even though it is too late now for the printed version, since the dead tree version is out by now. I can still improve the e-version.) 10:47
Even though I tried to make it as good as I reasonably could, I am aware it does not even come close to perfection. 10:48
zengargoyle lolo78: i am skimming through and reading interesting bits and came across a few sentences/paragraphs here and there that made me stop and re-read a couple of times to understans. 10:49
but not 'horribly broken' or maybe not 'just not quite my dialect of english' and probabbly 'just fine'. 10:50
lolo78 You're welcome to send comments at this address: think.perl6 (at) gmail.com. Or to raise issues on GitHub as you did already. 10:52
zengargoyle cool :) and many thanks for your work and for putting it out there. 10:54
lolo78 BTW, I have added "zengargoyle" in the contributors' list. Please let me know if you wish to appear under another name.
10:57 dj_goku joined, dj_goku left, dj_goku joined
araraloren lolo78++ :) 11:02
11:03 dj_goku left
zengargoyle wishes he could dig up enough of three years of high school french to say something witty. 11:10
mst je suis desolee mais j'ai oubliee le plus part de la langue francaise que j'ai etudie 11:12
zengargoyle i'm desolate but i forgot most of the french that i studed. ????
jnthn Probably studied rather than studed :) 11:13
zengargoyle lol
jnthn I remember "je suis desolee" is "I'm sorry" :)
At school they taught me to pass a French exam rather than to speak French. I passed the exam with the top grade. But I was darn useless if I had to actually use the language. :/ 11:14
In like, a situation other than an exam.
zengargoyle back in the day while reading 'Less Than Zero' I had a brain fart where i didn't understant WTF was that word. it was that chapter where it was in frend and i hit a word that i didn't know. 11:15
lolo78 jnthn: except that if you say "je suis desolee", you are talking as a female person. :)
A man would say "Je suis désolé". 11:17
jnthn That would be an acute mistake...
11:17 shiven joined
zengargoyle groans 11:20
mst zengargoyle: 'je suis desolee' is more "I'm very sorry" 11:25
lolo78: yeah, see the "I've forgotten most of it" bit ;)
every time I type or say it I always manage to make at least one mistake
quelle fuckin' surprise ;)
zengargoyle strangely enough, french is like the third languge in my area, but i rarely hear it. the crosswalks have french markings but i only hear english and ermenian. 11:26
zengargoyle blames decades old high school choose latin/spanish/french ... probabbly should have chosen latin. :P 11:34
11:37 brrt joined
El_Che nxadm.wordpress.com/2017/05/28/so-...endencies/ <-- a blog post where I mention mst, now that he's here 11:42
11:58 Cabanossi left 11:59 Cabanossi joined
mst also worth noting Object::Remote exists since that's excellent for zero-deployment 12:03
I thought lexical importing meant "Soon, you’ll be able to load different versions of the same library in the same program." was viable now? 12:04
12:07 cgfbee left 12:13 cgfbee joined
El_Che mst: I haven't seen that in the wild yet 12:14
12:15 lucasb joined
lucasb Hello o/ 12:16
araraloren hi o\
El_Che Object::Remote does solve one time of deployment, but a lot of use cases need something more simple
lucasb would "().Seq" be the most simple way to create a Seq for demonstration purporses? 12:18
I saw something about Seqs binding to arrays in the backlog and RT
just a sec :) 12:19
araraloren There are some case can return a Seq. Please refer this : docs.perl6.org/type/Seq 12:20
llfourn m: <one two three>.map(*.uc).^name.say # seems pretty simple 12:21
camelia Seq
llfourn m: (loop { }).^name.say
camelia Seq
lucasb thanks for the examples and reference 12:24
araraloren m: WHAT(<1 2 3> Z=> <4 5 6>).say
camelia (Seq)
lucasb has been lots of months since I don't touch Perl 6. I forgot the little I knew 12:26
12:28 khw joined
araraloren There are many many many ... feature in Perl6 .. 12:29
12:30 kaare__ left 12:31 brrt left
zengargoyle mst: i really thought that when IO changes broke my tests I might be able to just throw a pair of {} around it with a 'use v6.c;' at the front and it would magiallly start working again... :( 12:32
i only hope that what i was doing wasn't actuall in the spectests that describe 6.c 12:36
lolo78: i am zengargoyle (at) gmail.com should the need arise. 12:41
12:43 espadrine joined 12:45 dj_goku joined, dj_goku left, dj_goku joined 12:50 dj_goku left 12:57 Cabanossi left 12:59 Cabanossi joined 13:21 wamba left 13:26 CacoS left 13:31 MilkmanDan left 13:32 MilkmanDan joined, wamba joined 13:35 mr-foobar left 13:39 mr-foobar joined 13:49 mr-foobar left 13:56 ufobat joined 13:58 user3 joined
user3 I'm new to perl6. I want to make visible all names in a module I just defined: module mymod { our $x = 42; }; use mymod; 14:03
doesn't work
moritz user3: after that you can use $mymod::x 14:04
user3: and you can give subs an "is export" trait to make it available in the calling module
14:05 b2gills left
araraloren Yeah, you should export by add `is export`, such as { our $x is export = 42; } 14:06
14:07 b2gills joined
user3 module mymod { our $x is export = 42; }; use mymod; 14:08
i still get error messages
i'll put them in a pastebin...
pastebin.com/n5hCJU34 14:12
araraloren m: module mymod { our $x is export = 42; }; say $mymod::x;
camelia 42
araraloren m: module mymod { our $x = 42; }; say $mymod::x;
camelia 42
araraloren m: module mymod { my $x = 42; }; say $mymod::x;
camelia (Any)
geekosaur if your rakudo is old, use won't work and you have to do something like: mymod->IMPORT(); 14:13
or mymod.IMPORT() or whatever that syntax was
user3 This is Rakudo version 2017.04.3-176-g824cfa3 built on MoarVM version 2017.04-56-g8ad18b8
geekosaur actually I wonder fi that was even changed... 14:14
araraloren mymod is under current scope. Use is except a **compunit**
geekosaur m: module mymod { our $x is export = 42; }; use mymod; 14:15
camelia ===SORRY!===
Could not find mymod at line 1 in:
/home/camelia/.perl6
/home/camelia/rakudo-m-inst-2/share/perl6/site
/home/camelia/rakudo-m-inst-2/share/perl6/vendor
/home/camelia/rakudo-m-inst-2/share/perl6
CompUnit::Repos
araraloren s/except/expect /
user3 the compiler seems to be looking for external modules while I just want it to compile the trivial module mymod
could that be something in my environment? like my enviornment variables? 14:16
araraloren No, use expect a **compunit**, not a module/class name 14:17
geekosaur m: module mymod { our $x is export = 42; }; import mymod; dd $x
camelia Int $x = 42
araraloren You **use** a compunit, then import module/class/variable etc
use == need + import 14:18
14:18 Ven joined 14:19 Ven is now known as Guest70007
araraloren Sorry my english is so poor. If you understand what i said, I will appreciate . 14:20
geekosaur araraloren, I understand but I think it's LTA that "need" doesn't turn into a no-op here
user3 well, for now I'm trying to run basic perl6 examples. I'd just like a way to dump all names in the module mymod into the current scope 14:21
geekosaur basically I should be able to write code that doesn't have to know how mymod came into existenced
user3 it appears more complicated than in other languages
araraloren m: module mymod { my $x is export = 42; }; say $mymod::x;
camelia 5===SORRY!5=== Error while compiling <tmp>
Can't apply trait 'is export' on a my scoped variable. Only our scoped variables are supported.
at <tmp>:1
------> 3module mymod { my $x is export7⏏5 = 42; }; say $mymod::x;
expecting any o…
araraloren m: module mymod { my $x is export = 42; }; import mymod; say $mymod::x; 14:22
camelia 5===SORRY!5=== Error while compiling <tmp>
Can't apply trait 'is export' on a my scoped variable. Only our scoped variables are supported.
at <tmp>:1
------> 3module mymod { my $x is export7⏏5 = 42; }; import mymod; say $mymod::x;
e…
user3 araraloren: that works
Geth doc: 0364b594f3 | (Moritz Lenz)++ | doc/Language/variables.pod6
Correct mixed list/item assignment example, dogbert17++
moritz there you go, now you're dogbert18 :-)
user3 but I'd like to make all names visible in the current scope
geekosaur user3, that's only true for a small subset of "other languages" that don't really have the concept of lexical variables
moritz user3: but why? modules are for encapsulation
sharing everything runs counter the idea of encapsulation 14:23
araraloren When you want some name visible, you should add trait `is export` for it.
user3 ok 14:24
m: module mymod { our $x = 42; }; say $mymod::y; 14:25
camelia (Any)
user3 I'd rather have the compiler return an error message, given that y doesn't exist 14:26
14:26 Khisanth left
user3 referecing the nonexisting variable y isnt detected at compile time :( 14:26
araraloren Yeah, Is it a BUG here .? 14:27
user3 ?
araraloren moritz, Why rakudo not report error when refer a name not exists ? 14:29
ufobat woups
moar just crashed
14:30 kaare__ joined 14:31 Praise joined, Praise left, Praise joined
dogbert17 m: for <ab:c d$e fgh ij*> { .say if m/<!alpha>/; } # why is 'fgh' printed here? 14:32
camelia ab:c
d$e
fgh
ij*
araraloren m: for <ab:c d$e fgh ij*> { if m/<!alpha>/ { say $/; } } 14:34
camelia 「」
「」
「」
「」
14:34 dj_goku joined, dj_goku left, dj_goku joined
araraloren + 14:35
m: for <ab:c d$e fgh ij*> { if m/<:!alpha>/ { say $/; } } 14:37
camelia 「:」
「$」
「*」
araraloren m: for <ab:c d$e fgh ij*> { .say if m/<:!alpha>/; } 14:38
camelia ab:c
d$e
ij*
14:38 dj_goku left
dogbert17 araraloren++, so a colon was missing 14:38
araraloren I dont' know, I was also confused here. 14:39
14:42 Khisanth joined
dogbert17 it's odd, should all subrules have a : in them, e.g. <:digit> 14:42
14:42 pilne joined
araraloren dogbert17, no, document said <digit> is same as <:L> 14:43
m: for <ab:c d$e fgh ij*> { if m/<alpha><!alpha>/ { say $/; say "-" ~ $/.Str ~ "-"; } } 14:46
camelia 「b」
alpha => 「b」
-b-
「d」
alpha => 「d」
-d-
「h」
alpha => 「h」
-h-
「j」
alpha => 「j」
-j-
araraloren I think that what you mean , dogbert17 14:48
m: for <ab:c d$e fgh ij*> { .say if m/<-alpha>/; } 14:49
camelia ab:c
d$e
ij*
araraloren s/that/that's/
Add a `-` before character class, indicates a complemented character class 14:50
Geth doc: 2b4586c2f9 | (Jan-Olof Hendig)++ | doc/Language/variables.pod6
Correct the output from a few code examples
14:51
dogbert17 araraloren, many thanks 14:52
14:52 kurahaupo joined
araraloren dogbert17, you are welcome 14:52
dogbert17, `Note that <!alpha> is different from <-alpha>. /<-alpha>/ is a complemented character class equivalent to /<!before <alpha>> ./, whereas <!alpha> is a zero-width assertion equivalent to a /<!before <alpha>>/ assertion.` 14:53
I found that in Synopsis . 14:54
S05
That's clear now, I think .
14:55 finanalyst left
Geth doc: 77972678ac | (Jan-Olof Hendig)++ | doc/Language/variables.pod6
Fixed a broken example. araraloren++
14:56
14:56 Guest70007 left
dogbert17 araraloren: the docs got improved thanks to you :) 14:57
14:57 mr-foobar joined
araraloren dogbert17, :) 14:57
14:59 Ven_ joined
user3 m: module mymod { our $x is export = 42; }; import mymod; say $x; 15:10
camelia 42
user3 just what i need
what difference does this make if I add "is export" after "module mymode"? 15:11
m: module mymod is export { our $x is export = 42; }; import mymod; say $x;
camelia 42
user3 makes no difference. in every example I ran that made no difference lol 15:12
that's probably because i only ran basic cases 15:13
15:15 lucasb left 15:17 BenGoldberg joined
araraloren docs.perl6.org/syntax/class 15:25
15:26 user3 left 15:28 Cabanossi left 15:30 Cabanossi joined 15:32 llfourn left 15:36 vike left
nadim timotimo: when asked about filding data dumps like the html output does, where did you want to show it? an application that is done for that? using curses? as part of something else? 15:36
15:37 domidumont joined
ufobat is there a class in perl6 that acts as a stringbuffer? 15:38
nadim what's a stringbuffer?
what do you expect it to do? 15:39
ufobat basically str, but immutable. i'd like to have an object and add(Str $s) to it and get the current string in buffer and wipe it
s/immutable/mutable/
mst this seems like a "what are you trying to achieve" sort of situation 15:40
15:41 llfourn joined 15:42 domidumont left
ufobat id like to have an objects that is IO::Handle and whenever i write onto that handle i wand to push it into a "buffer" (thats the add() thing from above) i'd like to get the current buffer, == everything that was written onto that io::handle and then maybe i like to say .wipe() so buffers are clean 15:42
15:42 domidumont joined
ufobat probably a simple @array is sufficient for that, i just thought if there is maybe something and i am reinventing a wheel 15:43
nadim you want to use IO methods on it? 15:44
ufobat aye
not necessarily on the stringbuffer itself
15:44 xtreak joined
ufobat this is more o less what i mean: github.com/zoffixznet/perl6-Test-O...put.pm6#L4 15:45
15:46 vike joined 15:47 fatguy joined 15:48 xtreak left, xtreak joined 15:54 xtreak left, wigner joined 15:57 Ven_ left 15:58 Cabanossi left 15:59 Praise left 16:00 Cabanossi joined, Ven joined, Ven is now known as Guest80608
Geth doc: edeb069ce7 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
[io grant] Document IO::Path.split
16:01
doc: 62ec7ff415 | (Zoffix Znet)++ | 2 files
Use direct Str.comb/.split links in IO::*Handle methods
16:04
16:06 wigner left, wigner joined 16:11 sftf joined 16:22 dj_goku joined, dj_goku left, dj_goku joined 16:26 llfourn_ joined 16:27 dj_goku left 16:38 Praise joined, Praise left, Praise joined 16:42 Zoffix joined
Zoffix ufobat: there's a bit of a wobbly IO::String module 16:42
buggable: eco IO::String
buggable Zoffix, IO::String 'Emulate file interface for strings': github.com/hoelzro/p6-io-string
16:44 Cabanossi left
Zoffix ufobat: and in upcoming weeks I plan to make IO::UFO module that basically will let users create custom IO::Handles without needing to implement a gazillion methods, but rather a single writer and/or reader, with possibility of overriding extra methods for, say, perf reasons; kinda like the situation with Iterator 16:44
16:45 Cabanossi joined
Zoffix oh 16:45
buggable: eco middle
buggable Zoffix, Found 4 results: Crust::Middleware::Syslog, Crust::Middleware::Session, IO::MiddleMan, Crust::Middleware::Session::Store::DBIish. See modules.perl6.org/#q=middle
Zoffix buggable: eco IO::middle
buggable Zoffix, IO::MiddleMan 'hijack, capture, or mute writes to an IO::Handle': github.com/zoffixznet/perl6-IO-MiddleMan
Zoffix ufobat: ^ also, maybe that could be useful to whatever you're trying to do
Zoffix wonders how that stuff survived all the recent IO changes 16:46
*how well
16:47 Praise left 16:49 Praise joined, Praise left, Praise joined 16:52 travis-ci joined
travis-ci Doc build errored. Zoffix Znet '[io grant] Document IO::Path.split' 16:52
travis-ci.org/perl6/doc/builds/236915233 github.com/perl6/doc/compare/77972...eb069ce757
16:52 travis-ci left
Geth doc/master: 5 commits pushed by (JJ Merelo)++, (Juan Julián Merelo Guervós)++ 16:58
tbrowder hi #perl6 17:05
Geth doc: 1bc6852530 | (Zoffix Znet)++ | doc/Type/IO/Spec/Cygwin.pod6
Document that IO::Spec::Cygwin.join swaps slashes
17:05 Zoffix left
tbrowder is there a way to get the line number of the original pod source when using, say, pod2text? 17:06
17:11 Ven joined 17:12 Guest80608 left, Ven is now known as Guest24123 17:13 travis-ci joined
travis-ci Doc build failed. Juan Julián Merelo Guervós 'Merge pull request #1342 from perl6/extra-twigils 17:13
travis-ci.org/perl6/doc/builds/236926395 github.com/perl6/doc/compare/62ec7...8d6458eafa
17:13 travis-ci left, cognominal joined 17:16 xtreak joined, Guest24123 left 17:19 Ven_ joined
Geth doc: 2d96596ea0 | (Zoffix Znet)++ | 3 files
[io grant] Document IO::Spec::*.split
17:19
17:22 AlexDaniel left 17:23 xtreak left
Geth doc: e10ff7b3a1 | (Jan-Olof Hendig)++ | doc/Language/typesystem.pod6
Fixed a few typos
17:26
17:27 Cabanossi left 17:29 Cabanossi joined 17:34 zakharyas joined
ufobat .tell zoffix thanks! 17:42
yoleaux ufobat: I'll pass your message to zoffix.
17:43 Ven_ left
ufobat what if there would be a "src" button on the sites on doc.perl6.org? when you read about a class or something you might wonder about the implementation.. because i click on src on metacpan quite a lot 17:45
17:46 Ven_ joined 17:51 Ven_ left, Ven_ joined, travis-ci joined
travis-ci Doc build passed. Zoffix Znet '[io grant] Document IO::Spec::*.split' 17:52
travis-ci.org/perl6/doc/builds/236930468 github.com/perl6/doc/compare/1bc68...96596ea0b8
17:52 travis-ci left 17:56 Ven_ left
Geth doc: 129c09793a | (Zoffix Znet)++ | 2 files
[io grant] Document IO::Spec::*.splitdir
17:56
17:56 Zoffix joined
Zoffix ufobat: I rather we don't do it. Not only is the docs.perl6.org is meant for Perl 6 the language, without relying on any specific implementation, but I also rather people don't know about the internals. There's been a ton of breakage recently because people assumed some IO::Handle methods were implemented in terms of other methods 17:58
17:58 shiven left
Zoffix Not to mention many methods have multiple candidates for perf reasons, despite the API having just one candidate; which candidate would the docs link to anyway? 17:59
ufobat: there's SourceBaby bot in #zofbot you could use; it provides IRC interface for CoreHackers::Sourcery module: 18:00
Zoffix_0 s: Rakudo::Iterator, 'ReifiedList', \([])
SourceBa Zoffix__, Sauce is at github.com/rakudo/rakudo/blob/cd6a....pm#L2452y
buggable: eco SourceHackery
buggable Zoffix, Nothing found
Zoffix buggable: eco Hackery
buggable Zoffix, Nothing found
Zoffix stupid bot
buggable: eco CoreHackers
buggable Zoffix, CoreHackers::Sourcery 'Helper for showing actual source code locations of core subs and methods': github.com/zoffixznet/perl6-CoreHa...s-Sourcery
Zoffix there we go 18:01
18:01 skids joined
Zoffix m: say [.file, .line] with &say 18:03
camelia [SETTING::src/core/io_operators.pm 20]
Zoffix ^ there's also that; though Sourcery gives you a direct link to github for the commit your rakudo is built off of 18:04
18:10 dj_goku joined, dj_goku left, dj_goku joined
El_Che NeuralAnomaly, status 18:12
NeuralAnomaly El_Che, [✘] Next release will be in 2 weeks and 5 days. Since last release, there are 25 new still-open tickets (22 unreviewed and 0 blockers) and 279 unreviewed commits. See perl6.fail/release/stats for details
sftf Hi! Anybody now is there Damian Conway's "400 Years of Perl 6" 2017 video? 18:13
18:15 dj_goku left
El_Che sftf: check with sjn if the oslo guys recorded it 18:16
sftf El_Che: thanks 18:19
18:19 sftf left 18:22 vytautas joined
vytautas zef install GTK::Simpler failed 18:26
18:27 zacts joined
Zoffix sftp: there's last year's version; unsure if it changed a lot: www.youtube.com/watch?v=Nq2HkAYbG5o 18:28
vytautas: did you install the gtk lib? sudo apt-get install libgtk-3-dev 18:29
Per github.com/perl6/gtk-simple/blob/m...requisites
vytautas yes i did, at first it failed earlier in the process and i apt-find found it and installed 18:31
where do we paste stuff?
Zoffix vytautas: gist.github.com/ 18:33
Fails for me too
Zoffix looks
ugh, (pod mixed with code)-- 18:37
vytautas GTK::Simple works so i will have smth to play with in the meantime 18:39
simple but not too simple :P
Geth doc: 36ea8daedf | (Jan-Olof Hendig)++ | doc/Language/typesystem.pod6
Fixed non working code example
18:41
Zoffix Weird. I get a bunch of "WARNING: unhandled Failure detected in DESTROY … Failure was: No such symbol 'GTK::Simple::App'" from it 18:46
With this too: perl6 -e 'sub app (|args) { require GTK::Simple::App; return ::("GTK::Simple::App").new: |args }; for ^50 { app }' 18:47
But not this: perl6 -e 'sub app { require GTK::Simple::App; return ::("GTK::Simple::App").new }; for ^50 { app }'
wtf :s
.tell nine getting weird Failures about symbols in GTK::Simpler checkout. Seem to occur only when .new on looked up symbol is given args. Does it look like an issue with Rakudo? irclog.perlgeek.de/perl6/2017-05-28#i_14649906 18:48
yoleaux Zoffix: I'll pass your message to nine.
Zoffix And goes away in perl6 -e 'sub app (|args) { (require GTK::Simple::App).new: |args }; for ^50 { app }' 18:49
18:50 wigner left 18:52 darutoko left, Skarsnik joined
Zoffix knocks it on the head 18:53
18:55 Zoffix left
Geth doc: a6cd0279ce | (Zoffix Znet)++ | 2 files
Use better example in Spec.split
19:12
19:15 brrt joined 19:20 skids left, TEttinger joined, domidumont left
Geth doc: b9469600d5 | (Zoffix Znet)++ | 3 files
[io grant] Document IO::Spec::*.splitpath
19:26
doc: e93159afd4 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
Improve IO::Path.watch docs
19:30
19:33 vytautas left 19:36 SCHAPiE left 19:37 AlexDaniel joined 19:38 SCHAPiE joined 19:39 skids joined
AlexDaniel c: all my $hash-empty = %(); say $hash-empty.^name; 19:39
19:41 dct left, mr-foobar left
AlexDaniel c: all my $hash-empty = %(); say $hash-empty.^name; 19:41
:|
committable6: help 19:42
19:42 committable6 left, committable6 joined, ChanServ sets mode: +v committable6
AlexDaniel c: all my $hash-empty = %(); say $hash-empty.^name; 19:43
committable6 AlexDaniel, ¦all (41 commits): «Hash»
AlexDaniel \o/
19:43 mr-foobar joined 19:46 zakharyas left 19:47 araujo joined
Geth doc: 8e5ed872f9 | (Zoffix Znet)++ | 2 files
Update docs for the handle encoding refactor
19:48
BenGoldberg wonders why IO::Path.watch does not accept an optional :$scheduler argument. 19:50
lizmat BenGoldberg: because it is a very old proof of concept
19:51 brrt left
Geth doc: ef0b809728 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
Touch up unlink docs
19:52
doc: 93dcea5a8e | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
Touch up `tell` docs
El_Che Zoffix in on a roll. The IO grant? 19:53
AlexDaniel how can I print rakudo version? 19:55
I always forget…
El_Che /opt/rakudo/bin/perl6 --version
AlexDaniel without that
m: say $*PERL # that's not it
El_Che telepathy?
camelia Perl 6 (6.c)
AlexDaniel m: say $*VM # almost but not quite? 19:56
camelia moar (2017.05.25.g.62.bc.54.e.9)
Geth doc: 760d0345b9 | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
Add examples to handle .read/.readchars
19:58 dj_goku joined, dj_goku left, dj_goku joined
Geth doc: b72cf811d7 | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
Use `given` instead of `with` in handle opening

These examples might be copy-pasted into code where ignoring failures in open might be a bad idea.
20:00
AlexDaniel m: say $*PERL.compiler.version
camelia v2017.05.282.gb.3.cd.299.e.1
20:03 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Use better example in Spec.split' 20:03
travis-ci.org/perl6/doc/builds/236954287 github.com/perl6/doc/compare/36ea8...cd0279cedb
20:03 travis-ci left, dj_goku left 20:05 travis-ci joined
travis-ci Doc build failed. Zoffix Znet 'Update docs for the handle encoding refactor' 20:05
travis-ci.org/perl6/doc/builds/236961044 github.com/perl6/doc/compare/e9315...5ed872f9af
20:05 travis-ci left 20:07 skids left
Skarsnik $*VERSION ? 20:07
20:08 skids joined
lizmat blogs.perl.org/users/domm/2017/05/n...8-yet.html 20:08
Geth doc: ef9f453d5a | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
Remove IO::Path.watch

The method was entirely unspecced and not part of Perl 6 language.
Removed from Rakudo in:
  github.com/rakudo/rakudo/commit/21fd2c4ade
20:12
moritz nooo
I actually use that :(
lizmat nooooo
20:14 Zoffix joined
Zoffix moritz: use IO::Notification.watch-path: $path 20:14
wamba m: my  $fr=FatRat.new(17685594380071097, 5629499534213120); say $fr," ", $fr.fmt("%.20f") 20:15
camelia 3.14159265358979258 3.14159265358979000000
moritz Zoffix: that won't help with code published in a print magazine :(
BenGoldberg Zoffix, It should go through a deprecation cycle.
Zoffix Well. It was never part of the language :|
moritz it was documented 20:16
the docs don't make it clear if it's not tested, and thus "never part of the language"
Geth doc: 93515a5785 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
Revert "Remove IO::Path.watch"

This reverts commit ef9f453d5ab4b3fc4637830c4b5ab3ee003088a8.
Per: irclog.perlgeek.de/perl6/2017-05-28#i_14650194
20:17
moritz thanks
20:19 skids left 20:22 fatguy left 20:34 skids joined
ufobat could someone explain me the signature of this method? multi method ACCEPTS(Str:D: Str:D \other) 20:38
i don't get 'Str:D:' 20:39
Zoffix ufobat: the invocant is a string 20:41
that isn't a type object
docs.perl6.org/type/Signature#inde...ned_Values 20:42
ufobat your link is just about the :U and :D, right? 20:44
Zoffix yeah 20:46
m: class Foo { multi method x (Foo:D:) { say "instance" }; multi method x(:Foo:U:) { say "type object" } }; Foo.x; Foo.new.x
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3D:) { say "instance" }; multi method x(:7⏏5Foo:U:) { say "type object" } }; Foo.x;
ufobat this was clear
Zoffix m: class Foo { multi method x (Foo:D:) { say "instance" }; multi method x(Foo:U:) { say "type object" } }; Foo.x; Foo.new.x 20:47
camelia type object
instance
ufobat but not the 'Str:D:' from 'Str:D: Str:D \other'
the very first part
a 20:48
hhh
Zoffix ufobat: it's two Str:D, the first one being the invocant (the object the method is called on). So, Str.ACCEPTS: 'foo' won't hit that candidate (invocant is not :D); 'foo'.ACCEPTS: 'foo' will (both are :D); 'foo'.ACCEPTS: Str won't (arg is not :D); 'foo'.ACCEPTS: 42 won't (arg is not a Str)
ufobat got it :) 20:49
is there a reason for this syntax, now i understand it my first tought is, why do you repeat yourself 20:50
Zoffix Repeat how?
You're specifying two arguments. Hence two Str:Ds 20:51
ufobat why not, for example, just class MyClass { multi method foo(:D:)...}
but it is always the same class from method? right
i coudnt class Foo { multi method (Bar:D:) {...} } or could i? 20:52
Zoffix Yeah, you could 20:53
20:53 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Touch up `tell` docs' 20:53
travis-ci.org/perl6/doc/builds/236962007 github.com/perl6/doc/compare/ef0b8...dcea5a8eff
20:53 travis-ci left
ufobat how does it make sense? 20:53
when i have class Foo with method foo, the invocant is allways Foo (or a class that inherits from it) 20:55
Zoffix m: class Bar {…}; class Foo { multi method x(Bar:) { say "nice subclass, bruh" }; multi method x() { say "booo no subclass" } }; class Bar is Foo {}; Foo.x; Bar.x 20:56
camelia booo no subclass
nice subclass, bruh
ufobat if Bar inherits from Foo i would change the behaviour of method foo in Bar i would change the source there
20:56 lolo78 left
ufobat i see 20:58
thank you Zoffix :)
Zoffix And same for Str:D; keep in mind it does Stringy and is Cool, Any, and Mu. It's nice to be explicit and say what the cindidate is for rather than save 3 characters of typing and risk weird bugs when some parent class adds another candidate.
m: class Foo does Stringy { multi method Bool(Any:D) { say 'ooops... this candidate is not being hit' } }.new.Bool.say
camelia True
Zoffix (and I notice the plain `(:D:)` syntax don't even work
m: class Foo does Stringy { multi method Bool(::?CLASS:D) { say 'ooops... this candidate is not being hit' } }.new.Bool.say 20:59
camelia True
Zoffix m: class Foo does Stringy { multi method Bool(::?CLASS:D:) { say 'ooops... this candidate is not being hit' } }.new.Bool.say
camelia ooops... this candidate is not being hit
True
Zoffix guess it could mean that if it were made to work ¯\_(ツ)_/¯
\o
20:59 Zoffix left 21:02 lichtkind joined 21:05 setty1 left 21:07 travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Remove IO::Path.watch 21:07
travis-ci.org/perl6/doc/builds/236966144 github.com/perl6/doc/compare/b72cf...9f453d5ab4
21:07 travis-ci left
Geth doc: dcd7490800 | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
[io grant] Fix rmdir docs

  - Document sub form takes a list of dirs and returns a list
  - Toss non-empty-dir-removing snippet as it's buggy and leaks handles.
   We have a module for the job; recommend it.
21:08
21:10 travis-ci joined
travis-ci Doc build errored. Zoffix Znet 'Use `given` instead of `with` in handle opening 21:10
travis-ci.org/perl6/doc/builds/236963314 github.com/perl6/doc/compare/760d0...2cf811d7c5
21:10 travis-ci left 21:13 pelev joined 21:15 pelev left 21:16 pelev joined 21:21 zacts left 21:23 [1]Jarryd98 joined 21:25 Jarryd98 left, [1]Jarryd98 is now known as Jarryd98 21:27 bacek__ joined 21:28 travis-ci joined
travis-ci Doc build passed. Zoffix Znet 'Revert "Remove IO::Path.watch" 21:28
travis-ci.org/perl6/doc/builds/236967417 github.com/perl6/doc/compare/ef9f4...515a5785cd
21:28 travis-ci left, Cabanossi left 21:29 bacek_ left, Cabanossi joined 21:34 zacts joined 21:43 zacts left 21:44 zacts joined 21:45 pmurias left 21:46 dj_goku joined 21:48 [1]Jarryd98 joined 21:50 Jarryd98 left, [1]Jarryd98 is now known as Jarryd98 21:52 dj_goku left 21:57 Skarsnik left 21:59 Cabanossi left, Cabanossi joined 22:27 Cabanossi left 22:30 Cabanossi joined 22:50 aborazmeh joined, aborazmeh left, aborazmeh joined 22:59 espadrine left 23:16 BenGoldberg left 23:20 nowan left 23:24 nowan joined 23:25 rindolf left 23:31 [1]Jarryd98 joined 23:33 Jarryd98 left, [1]Jarryd98 is now known as Jarryd98 23:35 dj_goku joined 23:39 dj_goku left 23:41 margeas left 23:49 wamba left 23:59 ufobat left