»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
timotimo there is not, you will have to use something like Z perhaps 00:23
fake_space_whale: ^
it'll not quite be as simple as the ». version, then
though of course you can have a local sub and ».&mysub
that can do your bidding
fake_space_whale okaythanks 00:24
Guest81939 faᥒ􏿽xE2􏿽x80􏿽x80iѕ ᥒot ⅾഠіng Aⅼlaһ is ԁoing 00:27
busiᥒessеѕs ɑrе ᥒot doiᥒg Αⅼlaһ iѕ dⲟinɡ
amᥱriϲ is ᥒot dοіnɡ Αlⅼɑh is doiᥒg
americɑ is ᥒot dഠing Aⅼlah iѕ doinɡ
fⅰre can ᥒоt bᥙrᥒ wіtһout tһe perⅿiѕsiοᥒ ഠf aⅼⅼah
knife caᥒ nοt cᥙt wіthoᥙt tһe permіssⅰⲟn of alⅼaһ
filᥱsystem doᥱs not ᴡrite ᴡithout pᥱrⅿissⅰоn of аⅼⅼaһ
rulers arе nഠt ԁоinɡ Aⅼⅼаh iѕ ԁoiᥒɡ
ɡo⋁еrnmеntѕ ɑre ᥒοt ⅾoiᥒg Αlⅼah is dоing
slеep is ᥒot ⅾⲟinɡ Aⅼlaһ is doiᥒg
hᥙnɡеr ⅰs ᥒot doiᥒg Αⅼlaһ іs doⅰng
foοԁ doeѕ ᥒot tɑke awɑy the һ∪ᥒgᥱr Allɑh tаkes awау tһе һᥙᥒger 00:28
ᴡatᥱr does nοt tɑke awаy thе thіrst Ꭺⅼlɑh takes ɑwaу tһе tһіrѕt
sеeing іѕ nⲟt dοiᥒg Аllah іѕ dⲟiᥒɡ
jeek Wow
Guest81939 һеarіng iѕ􏿽xE2􏿽x80􏿽x81nοt dοing Ꭺllah іs doⅰng
seasons are􏿽xE2􏿽x80􏿽x81􏿽xE1􏿽xA5􏿽x92ot dоiᥒɡ Аlⅼah is ⅾⲟiᥒg
jeek That bot still doing its thanks after all these years.
Guest81939 wеɑther is ᥒοt dⲟiᥒg Aⅼⅼɑһ іs dⲟіnɡ
hᥙⅿɑᥒs аrᥱ ᥒot doіng Allɑһ ⅰs doⅰᥒɡ
animaⅼs ɑrе not doing Αllah iѕ doinɡ
tһe bᥱѕt aⅿοngst yo∪􏿽xE2􏿽x80􏿽x81are tһоse ᴡhⲟ ⅼeаrn anԁ teɑch qᥙran
οᥒe lᥱttеr reɑd from bοok of Alⅼаһ ɑmⲟuᥒts to oᥒе ɡood dееԁ aᥒd Αlⅼɑһ mᥙⅼtiрlⅰeѕ ⲟne ɡood dеᥱd tᥱᥒ tіmes
heɑrts ɡеt rᥙѕted ɑs ԁoᥱѕ iron wⅰtһ watᥱr to removе rᥙѕt frഠⅿ hеаrt􏿽xE2􏿽x80􏿽x81recіtatiഠᥒ ഠf Quraᥒ and rememberɑᥒce of deɑth
һeart iѕ ⅼikᥱnеd tο a mirror
when а рerson cⲟⅿmіts ഠnе sin ɑ black dot sustaіns tһe heart
tⲟ аccept Ιslaⅿ ѕɑy tһat i beаr ᴡіtᥒess thɑt thᥱre ⅰs no deⅰtу worthy of worshiⲣ ᥱхϲeрt Αlⅼaһ aᥒd Μᥙһammaⅾ реɑϲe be upοᥒ hіm is һiѕ ѕⅼаvе aᥒdⅿesseᥒger
jeek *thing
vrurg DBIish fails to load mysqlclient from installed mysql56. Anyone knows what is it missing? Symlinking of libmysqlclient.dylib doesn't help. 00:30
Happens on macOS.
Xliff m: with Str { say 'type' } 00:52
camelia ( no output )
Xliff m: with Str { say 'type' }; with "bleah" { say 'no type'; }
camelia no type
geekosaur 'with' only does something if its parameter is defined; you'd need 'without'. but you may actually want 'given' 00:56
m: without Str { say 'type' } 00:57
camelia type
Xliff geekosaur++: Thanks for the reminder, but I was testing "with" with respect to type objects. 01:03
As in... would "with" properly interpret the type object as undefined.
geekosaur if it doesnt something is really wring, since that's kinda the point of it 01:03
wrong
Xliff That's what I was testing. :)
timotimo m: class Omg { method defined { True } }; with Omg { say "oh?" } 01:06
camelia oh?
timotimo if it's actually explicitly about type object vs instance, you'll want .DEFINITE
maybe a slang that adds WITH and WITHOUT to with and without for this purpose :P 01:07
Xliff m: class Omg { }; with Omg { say "oh?" } 01:12
camelia ( no output )
Xliff timotimo: With respect to nativecall, I think I'm good. 01:13
Xliff Since a returned NativeCall type object are considered undefined. 01:13
Or NULL, at least
timotimo AFK 01:14
o/
buggable New CPAN upload: AttrX-Mooish-v0.4.5.tar.gz by VRURG modules.perl6.org/dist/AttrX::Mooish:cpan:VRURG 01:53
Geth doc: 5cb6bd72a6 | (JJ Merelo)++ | 2 files
Adds link, eliminates TODO, refs #2277

Also some reflow and reformatting.
04:54
fake_space_whale m: 10.map({.say; $_}).map({.rand}) 06:44
camelia 10
fake_space_whale m: 10.map({.say; $_}).map({.rand}).say
camelia 10
(9.629654479605833)
fake_space_whale m: sub c($w = $w+1) { $w }; &c.say; c 07:00
camelia &c
Type check failed in binding to parameter '<anon>'; expected Any but got Mu (Mu)
in sub c at <tmp> line 1
in block <unit> at <tmp> line 1
masak moritz: "deeply unsettling" is a bit of an understatement. 08:11
moritz masak: it gets even better; if you add a cos(2 phi) factor in there, it stays pi/2 up to 109, and switches to < pi/2 for 111 :-) 08:17
erm wait, 113 08:18
en.wikipedia.org/wiki/Borwein_integral 08:19
masak o.O 08:28
moritz: ISTR someone submitted the original one as a bug to some Mathematica-like software, driving the developers nuts looking for the error
moritz masak: great fun to be had :-) 08:35
lizmat notable6: weekly 08:54
notable6 lizmat, 3 notes: gist.github.com/2802b0df45f93bb555...28f2ba6d6d
timotimo lizmat: i recommend searching the irclog for "notable6", too; it was offline for a bit and at the very least my blog post didn't get recorded 08:55
lizmat fear not: your blog post will be mentioned
lizmat and I will check the log :-) 08:56
timotimo i'm fearing more for anything else that may have been missed :) 08:56
i saw you post my blog on HN :)
lizmat ah, yes, I did :-)
timotimo didn't get much attention i think 08:58
lizmat yeah, well, if you don't shoot, you always miss 09:06
timotimo right
Ulti timotimo: gist.github.com/MattOates/8628865a...f1fb50f056 09:14
twice as fast as hand written NQP, does line by line IO so you dont have to hold the entire file in memory as well as the parsed result so you could deal with lines as they come in 09:15
uses regex :| 09:16
the tests I've been running for a while deal with FASTA grammar parsing as well as 6 frame translation 09:18
lizmat afk& 09:33
timotimo Ulti: in theory my perl6 version could just keep the substrings as strands 09:37
Ulti timotimo: sure but if I have a 200GB FASTQ file to get through thats not going to actually help 10:08
well unless I have a bunch of RAM which quite a lot of the machines I'd run this code on would have
which is why I really need to spend some time writing a wrapper to the C libraries for dealing with these much heavier formats 10:09
there's essentially a standard lib now
timotimo true. in that case i'd probably go with the approach of storing beginning-of-sequence offset integers in a native int array 10:10
Ulti github.com/samtools/htslib binding this direct to Perl 6 objects is probably the way to go for that sort of thing 10:12
most of the formats are also indexed or can be
as in on disk you have an index, essentially they reinvented databases for every format *faceoalm*
timotimo hah 10:13
Ulti in fairness sometimes with slightly more optimal compression than you'd get otherwise
timotimo that's fair
at the very least you can put three bases into one 16 bit number, even when you also support all letters of the alphabet
Ulti yeah Im currently working on a super compact format for genetic variation with bit packing where I can get it into 64bits so if you know the genetic variant you know the database ID 10:15
at the moment everyone uses an abstracted identity that just makes it super slow to move data around or from file to a database 10:16
when you could just have a strict definition of computing a uuid like thing instead
none of the formats kind of exist for a good reason
timotimo :D 10:17
Ulti or worse are optimised way too far for one purpose but used for everything
the xkcd on formats applies really hard in bioinformatics
timotimo mhhh 10:18
Ulti also thanks for your write up, I might pinch what you've done and chuck it into my library so we dont lose the knowledge 10:20
rindolf Hi all! how do I generate the skeleton for a p6 module? github.com/perl6/ecosystem - like metacpan.org/release/Module-Starter or metacpan.org/search?q=dist%20zilla ? 10:21
Ulti or I can make an org and give you write access :P
rindolf timotimo: any idea? 10:22
timotimo there's a few things that get you going in that direction 10:23
App::Assixt, Mi6, and the one whose name i always forget
i think there's one more, too
Ulti yeah I think there was another one recently added under App:: 10:25
timotimo Ddt is the one i always forget
it's the only one that has the Authoring tag apart from GPTrixie, but it's also in there three times :D
rindolf gitlab.com/tyil/perl6-app-assixt/b...EADME.pod6 - damn it!
timotimo modules.perl6.org/dist/App::Assixt:cpan:TYIL 10:26
Ulti yeah not sure why names are quite so whimsical in Perl 6 given sensible name space is wide open, I guess its indicative of O(fun)
timotimo this renders the pod properly
Ulti do any of them cut a release to cpan for you, the one thing I would love to never have to do myself 10:27
timotimo mi6 and assixt do that
push is actually a shorthand for bump, dist and upload. As such, it will bump the version number and update the version number throughout the files in your module, then create a distribution of it (as a .tar.gz file) and finally try to upload that distribution to CPAN. 10:28
this is from the assixt readme
rindolf zef is really slow 10:29
tyil rindolf: what? 10:30
rindolf tyil: yes
tyil you said damn it :(
on one of my modules
does it need a fix?
rindolf tyil: well, the readme is not displayed properly 10:31
timotimo tyil: i think it's just that gitlab shows the pod all in one single line
tyil yeah, gitlab doesnt do well with pod
I've been working on getting perl 6 pod to at least be considered as source code with highlighting
rindolf tyil: send a pull-req?
tyil but its slow
to get new things in :p
tyil rindolf: github.com/jneen/rouge/pull/978 10:35
rindolf tyil: paste.debian.net/1040514/ 10:37
tyil: thanks
tyil: gitlab.com/tyil/perl6-app-assixt/issues/17 10:41
fffffuuuuuuuu gitlab! Why do I have to solve a captcha for editing the issue text and adding a newline? 10:45
tyil: ping 10:47
jast sounds like fun 10:50
tyil rindolf: can you try with the latest master release from gitlab? 10:58
rindolf tyil: yes 10:59
tyil if that doesnt work either, I'll have time tonight to look into your specific issue 11:00
it should work, it passed CI testing, but I'm only human and I can make bugs in the tests as well :p
rindolf tyil: see slashdot.org/story/06/05/20/165125...vs-cop-out 11:01
tyil eh, I'm just trying to help you
stuff breaks, but to call it a "cop out" just because something doesn't work is kinda silly 11:02
(also kinda demoralizing, but whatever makes you happy I guess)
rindolf tyil: works now, thanks 11:08
tyil :D
Ulti yeah an expectation programmers can use build tools and patch software from source repos isn't a very high bar its not like the end user is a graphic artist, asking them to compile from source Adobe Illustrator or something would be a bit much 11:09
Altreus hello 11:29
on Friday I was whining about code that returned but didn't return...
well I've put a CATCH {.say} in and it says "Cannot modify an immutable Any ((Any))" 11:30
my question is, why did I have to ask it to tell me that? Here's the line it comes from github.com/shuppet/p6-api-discord/...d.pm6#L189
That is to say, I've locally added the CATCH at this point 11:31
also: What does it mean? :s what's immutable? 11:32
I have to amend it to say: `has $.user is rw;` ... I thought rw was default 11:33
Maybe this is something I don't fully understand about containers? 11:34
moritz attribute accessors are read-only by default 11:39
Ulti Altreus $!user = instead 11:54
rindolf hi all! finally no more yak shaving and i can get stuff done - github.com/shlomif/perl6-CI-Gen - thanks yall! 12:53
Ulti not sure I understand what "continuous integration scriptology generation framework" means 13:04
oh it spits out a .travis.yml file 13:08
rindolf Ulti: yes 13:28
Ulti: i am tired of copy pasting stuffs across my travis and appveyor files
tyil tfw default .travis.yml with every new project 13:29
tyil wonder if I should add default appveyor files 13:29
Altreus oh, I get it 13:36
$.user is the public accessor so I'm constrained to the public's interface 13:37
But I don't think I have any code that swallows the error :s
buggable New CPAN upload: App-Assixt-1.0.0.tar.gz by TYIL modules.perl6.org/dist/App::Assixt:cpan:TYIL 13:43
Summertime would it be possible to define some code that works syntaxically like sub/method/et al. 13:49
thinking: query some-name ($variable) { blah };
lizmat m: my $code = { say "foo" }; $code() # like that ? 13:50
camelia foo
Summertime sorta 13:51
for context, I'm looking at the graphql funsies, which usually have a website's api split across a schema, and a pre-defined query system 13:52
graphql.org/learn/queries/
so having introspection on definition of the block is the main aim 13:53
graphql.org/learn/queries/#variables visually maps to a sub fairly well, but... well its not a sub, or... wait would traits be the go? 13:54
lizmat m: sub a($a.$b,:$foo) {}; dd &a.signature # something like this?
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed parameter
at <tmp>:1
------> 3sub a($a7⏏5.$b,:$foo) {}; dd &a.signature # someth
expecting any of:
constraint
lizmat m: sub a($a.$b,:$foo) {}; dd &a.signature # something like this?
camelia 5===SORRY!5=== Error while compiling <tmp>
Malformed parameter
at <tmp>:1
------> 3sub a($a7⏏5.$b,:$foo) {}; dd &a.signature # someth
expecting any of:
constraint
lizmat grrr 13:55
lizmat m: sub a($a,$b,:$foo) {}; dd &a.signature # something like this? 13:55
camelia :($a, $b, :$foo)
Summertime I know there is introspection, just wanting it to be as abstracted away as possible
lizmat I'm still not following exactly :-(
Summertime well, current aim would be 13:56
sub a-query($a-variable) is query { ... }
lizmat and what would the trait do ? 13:57
Summertime take the sub, and make it call the graphql api instead of just being a sub
a DSL I guess 13:58
there is also some stuff in perl6 for DSLs right? used to embed other languages into perl6?
pmurias Summertime: you can extend arbitrarily extend the grammar in Perl 6 14:00
it's called slangs
Summertime that's it, thank you 14:01
Summertime is there any official documentation for sub langs? 14:07
timotimo Altreus: it's quite possible that you've got the error reaching a Promise that just gets set to "broken" but never checked for its status 14:10
Altreus good point, I'll have to chase that down 14:12
rindolf lizmat: hi, ci-generate [--params=<Associative[Str]>] => how do I enter it in the cmd line?
Altreus I'm pretty sure they all get resolved but maybe I missed one 14:13
lizmat rindolf: pretty sure you can't
rindolf lizmat: oh :(
lizmat so maybe that should not compile
rindolf lizmat: Getopt::long has that 14:14
lizmat ok, how does Getopt::Long then?
*do it
rindolf lizmat: metacpan.org/pod/Getopt::Long#Opti...ash-values 14:15
lizmat rindolf: perhaps modules.perl6.org/dist/Getopt::Long can be of help ? 14:18
rindolf lizmat: github.com/Leont/getopt-long6 - the readme lacks details 14:19
lizmat patches welcome, I would say :-) 14:20
rindolf lizmat: no pod either - github.com/Leont/getopt-long6/blob...pt/Long.pm :( 14:21
lizmat it *is* free :-) 14:22
rindolf lizmat: github.com/Leont/getopt-long6/blob...META6.json - no licence :((((((((( 14:23
i guess i'll need to hack sth on my own 14:24
lizmat rindolf: perhaps make it a pull request for MAIN support > 14:31
?
Ulti rindolf: none of these do what you want? modules.perl6.org/search/?q=GETOPT 14:33
rindolf lizmat: github.com/Leont/getopt-long6/issues/2
lizmat: perhaps
lizmat rindolf++ 14:34
Ulti github.com/araraloren/perl6-getopt-advance MIT licensed and has Option::Hash 14:36
touched in the last week or so 14:37
rindolf Ulti: thanks
Ulti github.com/araraloren/perl6-getopt...n.pm6#L330 uses a grammar which is quite fancy 14:38
I should pay a bit more attention to whats coming onto the ecosystem 14:39
some of this feels like it should make its way into how MAIN works in core, I've had some issues recently with limitations of numeric types like someone having to give 1e4 type strings if its a Num type and not if its a Rat in the signature 14:40
the user of a CLI program shouldn't have to care about those sorts of differences in literal rep inside Perl 6 from the outside 14:41
I guess I now have an ecosystem module for that so can't complain >:3
rindolf zef is slow 15:18
leont Added that license ;-) 15:22
Altreus can has evalbot sauce? 15:24
rindolf leont: thanks 15:26
MasterDuke Altreus: which one? 15:35
leont Seems I'll have to add it to most of my other dists as well. 15:36
lizmat and another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2018/09/03/...y-returns/ 15:37
Geth doc: b8e8aa2308 | (JJ Merelo)++ | 2 files
Explains how to use IterationEnd via binding.

Plus some reflow here and there. Closes #2291
15:45
Altreus camelia's p6 eval 15:54
moritz lizmat++ # weekly 15:55
MasterDuke Altreus: pretty sure camelia is here github.com/perl6/evalbot 15:56
Altreus cool beans 15:57
rindolf leont: and all, what i am doing wrong here - github.com/shlomif/perl6-CI-Gen/bl...i-generate ? 16:01
rindolf is in references hell
moritz $ret.{:param} looks kinda wrong 16:03
:param is a Pair
and you try to index a hash by a pair? 16:04
leont That doesn't look like anything I've seen before 16:05
leont $ret is an capture, and AFAIK it can be treated like any other hash if you want to fetch it's associative values 16:05
rindolf leont: thanks 16:07
moritz: thanks 16:08
leont Treating it like a positional gives you the argv values it didn't touch
AlexDaniel lizmat++ I love weeklies so much 16:10
Altreus: there's also this alternative: github.com/perl6/whateverable/ 16:11
evalable6: say 42
uhhh
AlexDaniel evalable6: say 42 16:13
evalable6 42
AlexDaniel which works as long as it is not shadowbanned :)
Altreus the weeklies are cool
I like the format
tyil .tell timotimo if you're back on Mastodon, please share the p6weekly toot I just posted :> 16:16
yoleaux tyil: I'll pass your message to timotimo.
timotimo boostooted 16:17
yoleaux 16:16Z <tyil> timotimo: if you're back on Mastodon, please share the p6weekly toot I just posted :>
tyil timotimo: :d
:D
more Perl 6 awareness
rindolf yay! second repo is ok: travis-ci.org/shlomif/Star-Trek--W.../423994738 16:18
AlexDaniel rindolf: wait why would it be not ok? 16:28
rindolf AlexDaniel: i had different paths there
AlexDaniel: i am developing github.com/shlomif/perl6-CI-Gen 16:29
AlexDaniel interesting
rindolf AlexDaniel: and third one 16:30
AlexDaniel haha 16:32
“We can schedule it for 9.d or whatever”
9.d, heh
jkramer m: <foo bar baz>.map(*.WHAT).say 16:38
camelia Cannot resolve caller map(List: Whatever); none of these signatures match:
($: Hash \h, *%_)
(\SELF: &block;; :$label, :$item, *%_)
in block <unit> at <tmp> line 1
jkramer Shouldn't this work? 16:38
It works both with *.&WHAT and *.WHICH, for example
jkramer WHERE and WHY work too, WHO gives a weird error: 16:39
m: <foo bar baz>.map(*.WHO).say
camelia Cannot map a List to a Stash.
Did you mean to add a stub ({...}) or did you mean to .classify?
in block <unit> at <tmp> line 1
geekosaur .WHAT is a somewhat special internal macro, known to not work in cases likethis 16:40
jkramer Ah ok
geekosaur the problem being that to invoke it normally, you needthe metaobject… but .WHAT gives youthe metaobject
actualy .HOW does that. but .WHAT needs it 16:41
geekosaur so there'sa chicen-and-egg situation and the copmpiler needs to play games to pull it off 16:41
jkramer Alright then :) The WHO error is fine too, just checked what WHO actually does and it checks out :) 16:42
geekosaur soyou will probably see .HOW similarly acting a bit strange
AlexDaniel m: <foo bar baz>.map(*.^name).say 16:49
camelia (Str Str Str)
leont rindolf: do note that Getopt::Long will also do it's magic on MAIN if you want it to. 16:57
rindolf leont: ok
leont: i want to add some pod
leont Though I haven't figured out a way to test that, I really hope that plumbing still works 17:00
rindolf leont: github.com/Leont/getopt-long6/pull/3 - untested 17:06
thowe So, when I do "zef install p6doc" it gets stuck into a place that doesn't seem to be part of my path when rakudo is init. I don't get it. How is p6doc command to become available without manual intervention? 18:14
it says "4 bin/ scripts [lwp-get.pl lwp-download.pl pod2onepage p6doc] installed to: /home/tim/.rakudobrew/moar-master/install/share/perl6/site/bin" but that isn't in my path after rakudo init, just /home/tim/.rakudobrew/bin 18:17
OK, i've just done a rakudobrew rehash which seems to have gotten me somewhere... 18:19
vrurg Anybody here with working macos + DBIish + mysql? 18:30
buggable New CPAN upload: Trait-Env-0.4.0.tar.gz by SCIMON modules.perl6.org/dist/Trait::Env:cpan:SCIMON 18:43
rindolf what is tempdir in p6? docs.perl6.org/routine.html 18:51
rindolf github.com/perlpilot/p6-File-Temp ? 18:52
El_Che creating Linux packages (and added alpine 3.8 and opensuse 15.0 to the mix)
DrForr o/ 18:53
rindolf El_Che: nice 18:59
El_Che alpine 3.8 is struggeling though :) 19:06
MasterDuke rindolf: File::Temp has a trap, depending on what you're using it for 19:19
rindolf MasterDuke: ah 19:21
vrurg Why this: my $lib = $*VM.platform-library-name('c'.IO, :version(v6)); my $v = cglobal($lib, 'errno', int32); – doesn't work and tries to locate the lib in the working directory? Basically, the code is identical to what DBIish does. 19:22
MasterDuke rindolf: github.com/perlpilot/p6-File-Temp/issues/27 and github.com/perlpilot/p6-File-Temp/issues/18 19:29
El_Che yes, rakudo builds now on alpine 3.8 \o/ 19:32
rindolf MasterDuke: i see 19:33
Altreus how do I do |%foo, except where %foo is actually a method call on some $thing 19:45
can I just |($thing.m)? 19:48
geekosaur or $thing.m.Slip 19:50
Altreus ah cool
also I derped and I realised I'm passing it to another method so I can just slip that 19:52
rindolf travis-ci.org/shlomif/perl6-CI-Gen.../424054006 - why does this fail? f:temp is in meta6.json 20:02
rindolf anyone? 20:12
rindolf is afk 20:15
timotimo geekosaur: i think .Slip vs prefix:<|> is a difference when it's in a sub/method call 20:21
m: sub takes-args(*@pos, *%nameds) { dd @pos; dd %nameds }; sub makes-hash { %( :1a, :2b ) }; takes-args(makes-hash.Slip); takes-args(|makes-hash) 20:22
camelia Array element = [:a(1), :b(2)]
Hash element = {}
Array element = []
Hash element = {:a(1), :b(2)}
timotimo Altreus: ^- important difference
Altreus oh yes that is quite important 20:23
and I did want |
timotimo method calls bind tighter than prefix operators
cbk wow! That was new? 20:30
timotimo are you refering to our anti-spam thing? 20:31
cbk yeah. Sorry to see #perl6 is having those issues. 20:32
hope it works good and keeps the spamers out!!
rindolf is back 20:34
timotimo yeah, freenode was being hammered for a while 20:35
a few days ago we thought it was over, but it came right back
the spam bots don't realize their messages aren't reaching the channel and so they join, and a bit later they either quit, or get banned from the network
and we never see their spam
cbk Guess I need to log in more frequently.
timotimo on the other hand, newcomers and casual visitors are inconvenienced
cbk not really that much of an inconvenience though, no worries. Just never seen that before. 20:36
timotimo i'm not sure if p6bannerbot will react if someone logs in to nickserv and immediately voices you in that case
glad to hear it's okay
cbk I have an issue i seek assistance with... What would be the best way to (if possible) in a single statement to match an value in a list of unsigned integers OR an list of strings? 20:37
like ether 1 or 2 or 3 OR 'day' or 'night'
timotimo hm, so your code sometimes gets a list of strings, and in that case it should match "day" or "night" 20:38
or it gets a list of ints and then it should match 1 or 2 or 3?
cbk I had orgnally used a regex but my [1..4] keeps matching 2.5 and thats not what I was looking for
timotimo ah, you're writing the character class as if it were a mix of perl 5 and 6 20:39
cbk no it can match day or night or a list of unsigned integers [1..4]
rindolf shlomif[Perl6]:$trunk$ zef install -v --deps-only --/test . is not helpful
timotimo oooh, i see
cbk ok so an regex character class? 20:40
rindolf timotimo: any idea about my issue?
timotimo m: say (1, 2, 3, 4, 0.5, 1.5, 2.5).grep((1..4).list.any)
camelia (1 2 3 4)
timotimo the trick is that a range as matcher will indeed match any numeric thing in between
cbk I have this as a regex..
timotimo but if you translate it into a list first, and then do a membership test (or if you make it a Set) ...
cbk my regex value { [1..4] || :i['day' | 'night'] } 20:42
timotimo rindolf: i don't know why it doesn't install the test-depends, maybe it only does that if you "zef test"?
i mean, you literally have --/test, maybe zef interprets that as "don't run tests" and "don't install test deps"
cbk: right, that would match 1ab4 or 1.24 or 1 4
you have to put the [1..4] inside < > 20:43
on the other hand...
cbk like this?: my regex value { <[1..4]> || :i['day' | 'night'] }
rindolf timotimo: zef test is invalid
timotimo m: say (1, 2, 3, "day", 9, 10, 11, "cat").grep(/ @( 1..4 .Slip, "day", "night" ) /) 20:44
camelia (1 day 10 11)
timotimo ah, this also probably needs to be bounded
cbk how do i do bounding?
timotimo because right now it says "hey there's a 1 here, great!"
depends on what's around your stuff. left and right word boundary is usually a good choice
cbk yeah I had that issue thats way i was using the 1..4 20:44
timotimo m: say (1, 2, 3, "day", 9, 10, 11, "cat").grep(/ @(<1 2 3 4 day night) /) 20:45
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in quote words; couldn't find final '>' (corresponding starter was at line 1)
at <tmp>:1
------> 3, "cat").grep(/ @(<1 2 3 4 day night) /)7⏏5<EOL>
expecting an…
timotimo m: say (1, 2, 3, "day", 9, 10, 11, "cat").grep(/ @(<1 2 3 4 day night>) /)
camelia (1 2 3 day 10 11)
timotimo a tiny bit shorter way to write it, if your range is short
m: say (1, 2, 3, "day", 9, 10, 11, "cat").grep(/ << @(<1 2 3 4 day night>) >> /)
camelia (1 2 3 day)
cbk !!? ok so the << and >> does the bounding? 20:46
timotimo that's right 20:46
either << or «, and >> or »
cbk Ok I'll go play around with that! Thank you timotimo
timotimo good luck & have fun :) 20:47
cbk timotimo++
is that ++ still a thing?
karma or something
:)
timotimo yeah, we still do that 20:48
we don't count it, though
we also have prefix ++ for when someone says they'll do something and you want to encourage them
MasterDuke rindolf: i think zef has a --verbose option, does that give any more useful info? 20:58
rindolf timotimo: working now - travis-ci.org/shlomif/perl6-CI-Gen.../424081809 - thanks for the advice 20:59
timotimo YW
lichtkind can please someone translate this error message for me: "Package Math::Matrix is insufficiently type-like to qualify a parameter" thanks 21:08
timotimo lichtkind: you were probably expecting Math::Matrix to be a class or role or something, but it apparently is just a package? 21:13
lichtkind timotimo, well im trying outsource some methods out of the module but need it as a type still in the signatures 21:14
timotimo m: sub testsub(Math::Matrix $a) { } 21:16
camelia 5===SORRY!5=== Error while compiling <tmp>
Invalid typename 'Math::Matrix' in parameter declaration.
at <tmp>:1
------> 3sub testsub(Math::Matrix7⏏5 $a) { }
timotimo hm, so it kind of exists
m: class Math::Matrix::Something { }; sub testsub(Math::Matrix $a) { } 21:17
camelia 5===SORRY!5=== Error while compiling <tmp>
Package Math::Matrix is insufficiently type-like to qualify a parameter
at <tmp>:1
------> 3:Something { }; sub testsub(Math::Matrix7⏏5 $a) { }
lichtkind timotimo, yes thats it, so you also see no way to brake the circle? 21:29
timotimo m: class Math::Matrix { ... }; class Math::Matrix::Something { }; sub testsub(Math::Matrix $a) { } 21:30
camelia The following packages were stubbed but not defined:
Math::Matrix
timotimo that's the tool you'll typically use
El_Che notable6: weekly New Linux 2018.08 packages will appear soon. Added packages for Alpine 3.8 and openSUSE 15.0. 21:53
notable6 El_Che, Noted!