»ö« 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.
tbrowder_ stmuk: i just filed an issue with “rakudup”, it looks like “$dir” on line 31 is undefine. 01:01
.tell stmuk_ see new issue for rakudup 01:03
yoleaux tbrowder_: I'll pass your message to stmuk_.
Liuweic join 04:02
syslog
help 04:03
say 49 + 9
evalable6 58
Liuweic --help
7.WHAT 04:04
7 %% 4
AlexDaniel Liuweic: you have to say it :)
say 7 %% 4
evalable6 False
AlexDaniel or even better:
m: say 7 %% 4
camelia False
AlexDaniel (where m: triggers the bot consistently) 04:05
AlexDaniel huggable: try 04:07
huggable AlexDaniel, f.perlbot.pl/#perl6 tio.run/#perl6 glot.io/new/perl6 ideone.com/
AlexDaniel Liuweic: you can also use these websites ↑ to try things out
yosh_ sup 04:40
AlexDaniel o/ 04:41
Geth doc: cd3f6827a0 | cfa++ | doc/Language/faq.pod6
Clarify that contextualisers, .list and .item deal with context, not flattening
04:48
synopsebot Link: doc.perl6.org/language/faq
buggable New CPAN upload: PDF-Class-0.1.0.tar.gz by WARRINGD cpan.metacpan.org/authors/id/W/WA/...1.0.tar.gz 05:11
teatime Is the built-in command-line argument parsing stuff, exposed for use in parsing command lines that did not come from the program's actual command line? 07:14
teatime for example, would it be possible to use it to create a unix/windows-like syntax for an irc bot 07:15
lookatme m: sub MAIN(Str $file) { echo $file; }; &MAIN.wrap(sub (|c) { nextwith("file A"); }); 07:37
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
echo used at line 1
lookatme m: sub MAIN(Str $file) { put $file; }; &MAIN.wrap(sub (|c) { nextwith("file A"); });
camelia Usage:
<tmp> <file>
lookatme m: sub MAIN(Str :$file) { put $file; }; &MAIN.wrap(sub (|c) { nextwith(file => "file A"); }); 07:38
camelia Cannot invoke object with invocation handler in this context
in block <unit> at <tmp> line 1
teatime oh, right.. I forgot about that.. so it has to be named MAIN, still? that's actually OK though, for my use.
lizmat clickbaits p6weekly.wordpress.com/2018/03/12/...less-gems/ 07:38
lookatme yeah, maybe you can HOOK it :)
there are some module you can try . I think 07:39
grep: getopt
greppable6 lookatme, 155 lines, 16 modules: gist.github.com/e03db5edc08a6c188f...0d11167e4a
lookatme you can trying my module Getopt::Advance, pass things not from actual command line to module interface 07:41
teatime I know about getopt et al., was just wondering if Perl6's MAIN stuff was reusable 07:42
I will def. check out your module, though.
lookatme++
hehe, yay, I got to give it its first github star 07:43
lookatme thanks
MAIN is enough for most case
teatime it does work surprisingly well 07:44
when I first learned Perl6 was going to build-in argument parsing
I thought it was a bad idea, because I figured it would be difficult to get right, and if it was a built-in shouldn't have obvious flaws/deficiencies 07:45
lookatme yeah, that's a useful feature :)
teatime but then I looked at it, and couldn't really find anything to complain about, heh
lookatme though I want some more flexible style like `-foo 2` rather than `-foo=2` 07:46
so I create my module :)
teatime sure
FROGGS Hi, is anybody working on a Net::LDAP port, or does somebody know about something that allows me to authenticate users against ActiveDirectory? 08:36
ufobat misses Net::LDAP as well 08:37
FROGGS how hard could it be? :P
ufobat: would you like to join the fight?
ufobat uhm! 08:38
i am missing complete openssl bindings even more :-( 08:39
FROGGS :/
ufobat why not inline::perl5 net::ldap?
FROGGS yeah, I could give that a try
I probably should anyway... there are a bunch of Perl 5 modules in the Net::LDAP dist that would need porting 08:41
FROGGS I hope Inline::Perl5 plays nicely with cro 08:41
ufobat net::ldap is huge, thats why i said "uhm"
ufobat ping me if you really want/need to port it 08:43
FROGGS will do 08:44
ufobat a friend of mine is writing a bailador app and needs net::ldap as well, i'am going to ask him as well :)
FROGGS \o/ 08:45
FROGGS all what I need is: Net::LDAP->new($server)->bind(...)->code 08:47
when code is zero, the user was authenticated successfully...
I pull out information about users in another project, but I do not plan to port that to Perl 6 anytime soon 08:48
ufobat sergot, is there a specific reason why the PR github.com/sergot/openssl/pull/49 is not yet merged, can i help? i am looking for some missing parts in the openssl bindings 09:06
e.g. github.com/sergot/openssl/issues/39 and the ability to set the verify_callback 09:07
El_Che Net::LDAP, where Pull Requests got to die 09:11
stmuk_ . 10:19
yoleaux 01:03Z <tbrowder_> stmuk_: see new issue for rakudup
FROGGS ufobat: the Net::LDAP code is horror 10:24
El_Che FROGGS: what I would do is setup something that talks to ldap and offer oauth/saml2 auth 10:25
so your project doesn't depend on ldap
FROGGS hmmm
El_Che if you're a C heron you could bind libldap through nativecall 10:28
moritz heron, that's a bird, right? 10:33
El_Che moritz: one with style, at that 10:34
FROGGS hmmm, I do love C and NativeCall... 10:44
El_Che FROGGS: to get you started, generate the LDAP perl 6 constants from the Net::LDAP doc :) : gist.github.com/nxadm/2c5a415ea0c3...768bac7ddf 10:54
FROGGS nice :o) 10:56
Zoffix m: &[RRRRRRRRZZZZZZZZZZZZZZZZZZRRRRRRRRRSSSSSSSS+] 10:56
camelia ===SORRY!===
No such method 'CALL-ME' for invocant of type 'Int'
Zoffix Do I have too much blood in my coffee veins or why is it executing it? I just want the Callable object, not to actually call anything 10:57
m: say &[RRRRRRRRZZZZZZZZZZZZZZZZZZRRRRRRRRR,]
camelia -> |args is raw { #`(Block|67228960) ... }
El_Che FROGGS: or I could give you the result: gist.github.com/nxadm/5acd0d322374...893a791cf0 :)
Zoffix Ah, it's the S meta op doing things looks like
FROGGS El_Che: awesome, thank you
Zoffix R#1616 11:01
synopsebot R#1616 [open]: github.com/rakudo/rakudo/issues/1616 Callables for auto-generated metaops blow up with `S` metaop
El_Che FROGGS: this was a handy doc for the C sdk: www.yolinux.com/TUTORIALS/LinuxTuto...pment.html 11:02
stmuk_ .tell tbrowder_ thanks 11:15
yoleaux stmuk_: I'll pass your message to tbrowder_.
mr_ron m: gist.github.com/ronaldxs/5303df1f7...de6d38e56f 11:19
camelia MoarVM panic: Memory allocation failed; could not allocate 154928 bytes
mr_ron seems to hang - rakudobug ?
jnthn On `FETCH => method () { say self.WHAT; $storage * 2 },` the self.WHAT will try to defereence self, which is the Proxy, thus calling FETCH 11:23
yoleaux 04:04Z <samcv> jnthn: where do I need to set gc mark? not sure where it is github.com/MoarVM/MoarVM/pull/815#...3675573R40
jnthn (So it's an infinite recursion, which eventually runs out of memory)
masak mr_ron: curious question - did you try it first without the `say self.WHAT;` and then notice it started hanging with that line? 11:24
mr_ron masak: yes 11:25
araraloren :) yeah self will calling FETCH
mr_ron jnthn: I understand it's a recursive loop ... still contemplating exactly why 11:26
jnthn Because a Proxy is an item container, and .WHAT on an item container fetches from the container
m: my $a = 42; say $a.WHAT; 11:27
camelia (Int)
jnthn That's why you get Int, not Scalar, here.
araraloren m: gist.github.com/araraloren/dfd54ba...9dcef89388 11:28
camelia 0
1
2
3
(Int)
(Int)
(Int)
4
5
6
7
8
9
10
11
8
mr_ron don't understand why araloren example doesn't recursively loop too ... sigh ... 11:30
araraloren :) I add a `if` there 11:31
an
It will stop trying to saying self.WHAT when $count > 3
mr_ron got it - stops looping for $count > 3 ... thanks 11:32
mr_ron So self refers to the proxy but .WHAT fetches from container. Didn't expect .WHAT to fetch from container. 11:35
masak m: my $a = 42; say $a.VAR.WHAT 11:37
camelia (Scalar)
masak that's how you can prevent fetching from the container
mr_ron thanks !
masak dunno why you're so keep on printing out (Proxy) there in your code, though
keen*
:) 11:38
jnthn Probably to understand what's happening :) 11:38
mr_ron looking at rt.perl.org/Ticket/Display.html?id=126198
masak oh; in that case, carry on ;) 11:39
araraloren so it should print (Proxy) ?
masak if you add .VAR it should, yes
if you don't have .VAR, it should loop infinitely
because you're (implicitly) calling a thing from within itself 11:40
araraloren oh
clear ! 11:41
Geth doc: 9735277593 | (Zoffix Znet)++ | doc/Type/Junction.pod6
Use better head
14:22
synopsebot Link: doc.perl6.org/type/Junction
Geth doc: 3745e866ca | (Will "Coke" Coleda)++ | 2 files
remove dupe words
14:27
doc: b6fab0e369 | (Will "Coke" Coleda)++ | doc/Language/functions.pod6
Can't test <unit>s with our current testing setup
synopsebot Link: doc.perl6.org/language/functions
cfa morning 14:30
[Coke]: thanks (and oops)
masak good afternoon, cfa
cfa hi masak
[Coke] cfa: no worries. 14:31
cfa: github.com/perl6/doc/blob/master/C...ning-tests shows a way to run the extended tests on just your local changes, btw. 14:32
cfa nods
[Coke] but I run it every few days or so, not a huge deal 14:33
cfa in the MAIN case i copy-pasted the example and didn't think to test whether `unit` would cause problems
[Coke] notes he's working on the duplicates test, which is currently borked. nearly there.
cfa neat 14:36
btw, for anyone using vim-perl6: .pm6 files are now searched for before .pm (when using gf etc.) 14:37
timotimo oh, are you developing vim-perl6 per chance? 14:44
Geth doc: 9f6d9bf61a | (Zoffix Znet)++ | doc/Type/Junction.pod6
Document Junction.Str/.gist/.perl

Propspec: github.com/perl6/roast/commit/177ce4d52b
14:48
synopsebot Link: doc.perl6.org/type/Junction
doc: d4109600bc | (Zoffix Znet)++ | 2 files
Document output routines' behaviour with Junctions

Propspect:
  github.com/perl6/roast/commit/6a8fc07878
Rakudo impl:
  github.com/rakudo/rakudo/commit/b62e0eb7a7
  github.com/rakudo/rakudo/commit/07616effd1
  github.com/rakudo/rakudo/commit/355b2eb5ff
14:49
cfa timotimo: nah, i just contributed a patch 14:52
timotimo OK
because it'd be really neat if someone could unbreak the syntax highlighter for comments that have = or - in them or whatever it is 14:53
timotimo many = or -, i should say 14:53
timotimo there must be some catastrophic backtracking or something 14:53
cfa timotimo: did you file an issue? i found the maintainer very helpful, responsive
timotimo i definitely should have 14:58
is there some way i could include debug output of some kind? 14:59
Geth doc: cabc1e5e6d | (Zoffix Znet)++ | doc/Type/Pair.pod6
Fix shown output
15:47
synopsebot Link: doc.perl6.org/type/Pair
Geth doc: c9414514f5 | (Zoffix Znet)++ | doc/Type/Pair.pod6
Not Pair.freeze is proposed for removal in 6.d

Proposal: github.com/perl6/6.d-prep/commit/ce7fab350a
15:48
cfa timotimo: not sure 16:00
another hmm, this time re: the list contextualiser vs. list sub 16:01
m: my @a = <one two three>; my $i = @a.item; .say for list($i), $i.list, @($i)
camelia ([one two three])
[one two three]
[one two three]
timotimo m: my @a = <one two three>; my $i = @a.item; .perlsay for list($i), $i.list, @($i) 16:02
camelia No such method 'perlsay' for invocant of type 'List'
in block <unit> at <tmp> line 1
timotimo m: my @a = <one two three>; my $i = @a.item; .perl.say for list($i), $i.list, @($i)
camelia ($["one", "two", "three"],)
["one", "two", "three"]
["one", "two", "three"]
timotimo that's clearer 16:03
cfa yeah, but this is re: design.perl6.org/S03.html#line_2537 16:03
where list contextualizer is used to refer to the list routine
whereas its behaviour differs from @() and .list
FROGGS ufobat: now I've got a short module that lets me authenticate a user against ActiveDirectoy... interested? 16:04
ufobat aye :-) 16:08
FROGGS gist.github.com/FROGGS/bafc8454a14...0048dabf47
ufobat net::ldap::simple? 16:08
looks good! 16:09
cfa updated my previously confus{ed,ing} comment on github.com/perl6/doc/issues/1711 16:11
Zoffix cfa: note the message at the top of that page. Those documents are historical and in many places differ from today's language. The `@` contextulizer in Rakudo calls .cache method (doesn't look like the spec mandates it; only the return value), which on all but Seq type calls .list method, which returns a Positional type (so, say, Int is not Positional so it'd be listified and returned as (Int,), while List and 16:14
Array are position so those would be returned as List and Array). When it comes to &list the sub, there's inconsistency with how it handles Seq (it just returns a Seq, despite it not being Positional). It's R#1344 which is blocked by R#1355
synopsebot R#1344 [open]: github.com/rakudo/rakudo/issues/1344 [@LARRY] What is a "list"?
R#1355 [open]: github.com/rakudo/rakudo/issues/1355 +@a/+a slurpies produce inconsistent results
cfa Zoffix: oh neat, didn't realise this was a bug 16:15
cfa Zoffix: i'm only mentioned s03 because you referred to it in the ticket 16:15
mentioning* 16:16
ufobat FROGGS, (17:16:35) Felix: gute arbeit 16:23
FROGGS \o/ 16:25
cfa Zoffix: added a note to the issue 16:27
Zoffix m: dd cache 1, 2, 3; dd (1, 2, 3).cache 16:29
camelia [1, 2, 3]
(1, 2, 3)
Zoffix ZofBot: the joys of over-engineering! 16:30
ZofBot Zoffix, And went up the stairs and saw a sign saying Platform 1 and there was pointing at a glass door so went through it, and someone bumped into me again with a suitcase and made another noise like a dog barking, and they said, “Watch where the hell you’re going,” but pretended that they were just o
Zoffix item, cache, pair, hash, list. Do we got any others? 16:32
ah, slip, bag, mix, set
cfa eep
Zoffix cfa: FWIW, the ticket only mentions inconsistency in `item Seq:D` vs `Seq:D.item`. I'm spectesting a fix for the other problem you showed. 16:37
aaand it's blocked :( unless I did something wrong 16:38
Zoffix ah 16:38
cfa Zoffix: thanks 16:39
[Coke] Zoffix: How's it going? 16:45
Zoffix [Coke]: with what? 16:46
[Coke] Just in general. Thanks for all the work you're putting in, I appreciate it.
Zoffix m: dd hash Map.new 16:50
camelia Hash % = {}
Zoffix deep the rabbit hole goes >_<
[Coke] didn't know we had a 'hash' keyword. operator? 16:51
Zoffix m: dd pair 1, 2 16:52
camelia 1 => 2
Zoffix I didn't know we had `pair` until recently.
There's like a billion waits to make Pairs
s/waits/ways/;
huggable: colonpair
huggable Zoffix, All the shortcuts of colonpairs: twitter.com/zoffix/status/839807414211854337
cfa also, +1 to [Coke]'s comment 17:03
Zoffix now blows up setty tests. Maybe broken tests. Will look later at it 17:08
|4h coercers fixes gist.github.com/zoffixznet/0dbeeaa...9a85b5ec90
ZofBot Zoffix, Will remind you on 2018-03-13T16:08:45.766154-05:00 about coercers fixes gist.github.com/zoffixznet/0dbeeaa...9a85b5ec90
lichtkind zoff 18:12
ah no zoffix there 18:13
timotimo you can just write his name and he'll get your message delivered by his trusty bot 18:19
El_Che just don't say it 3 times in a row...
you never know
Zoffix lichtkind: what? 18:21
Zoffix Math::Vector pr? It ain't my module, bruh 18:24
lichtkind Zoffix but you seems to have admin rights 18:27
Zoffix eco: Math::Vector
buggable Zoffix, Math::Vector 'Vector math class': github.com/colomon/Math-Vector
Zoffix lichtkind: ^ that module? No, I don't... "You’re editing a file in a project you don’t have write access to." 18:28
There are a couple of my commits, but they were merged via PRs
lichtkind i was checking if github automatically creates a clone if i try to do that
Zoffix It does. 18:29
lichtkind so i have to make pr as well to colomon, i currently do math::matrix and at least want to ensure interoperability 18:33
lichtkind zoffix: and i didnt seen any activity in long time so i hoped maybe get maintanane 18:36
nance
[Coke] . o O (there's no one named nance here...) 18:55
lichtkind maintenance 18:59
[Coke] was just being silly 19:02
lichtkind good 19:10
masak .oO( just a bunch of nansense ) 19:14
Geth doc: bfe911449e | (JJ Merelo)++ | htmlify.p6
Exceptions → Exception closes #659
19:42
Geth perl6.org: 605bc928b7 | (Zoffix Znet)++ (committed using GitHub Web editor) | source/community/irc.html
Link synopse bot's repo

Updates github.com/perl6/doc/issues/711
19:50
rightfold Can I do blocking I/O in a Cro HTTP request handler? In particular, a blocking Native call. 20:01
timotimo you could ask in #cro as well 20:02
rightfold Ah, I didn't see that mentioned on the website, thaniks.
I'll ask there. :)
timotimo also, i'd assume you can whenever start { do some work } { do something with the result }
n.b. it's been a while since i last wrote crode 20:03
tony-o m: mkdir 'lib'; 'lib/A.pm6'.IO.spurt('class A { has $.x = 5; }'); require ::('A'); my $a = ::('A').new; $a.x.say; 20:21
camelia mkdir is disallowed in restricted setting
in sub restricted at src/RESTRICTED.setting line 1
in sub mkdir at src/RESTRICTED.setting line 8
in block <unit> at <tmp> line 1
tony-o oops
Geth rakudo.org: dba91d1d8e | (Zoffix Znet)++ | templates/files-star-windows.html.ep
Fix 404
22:08
jnthn A little announcement: 6guts.wordpress.com/2018/03/13/rem...or-moarvm/ 22:30
Geth rakudo.org: fe1c642d38 | (Zoffix Znet)++ | 4 files
Move Rakudo-Only option onto a separate page
22:32
lizmat reddited it 22:34
Geth rakudo.org: e19daa9918 | (Zoffix Znet)++ | 6 files
Add footer social media icons
22:55
thowe Can someone tell me how I would get the last day of a month using DateTime? Or is there a way? 23:47
cfa m: say DateTime.new(year => 2018, month => 2).days-in-month 23:50
camelia 28
cfa thowe: ^^^
cfa m: say DateTime.new(year => 2020, month => 2).days-in-month # leap year 23:52
camelia 29
thowe oh, yeah... duh
Geth rakudo.org: 21d478ea3a | (Zoffix Znet)++ | 2 files
Add favicon
thowe I'm looking for some kind of last method or somsuch. I'm clearly not in the right state of mind for this. I should just go home.
thowe cfa, Thank you, kind person of the net 23:53
timotimo thowe: do you know .truncated-to? you can easily .earlier :1day i think
i mean like take the month you're interested in, truncate to month, go forwards one month, go backwards 1 day 23:54
thowe I'm just looking at it now as I want to re-write my invoice calculator in Perl6.
They keep throwing hardware at the old one, and I need some way to make replacing it fun. So... Perl6.
thowe the symbols like :1day suprise me. what are these things called? 23:56
if I know their name maybe I can find them in the docs. 23:57