»ö« 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. |
|||
00:02
lizmat joined
00:03
p6bannerbot sets mode: +v lizmat
00:06
lizmat left
|
|||
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 | |
00:25
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
p6bannerbot sets mode: +v aborazmeh
00:26
Me4502 joined
00:27
Me4502 is now known as Guest81939,
p6bannerbot sets mode: +v Guest81939
|
|||
Guest81939 | faᥒxE2x80x80iѕ ᥒ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ѕxE2x80x81nοt dοing Ꭺllah іs doⅰng | ||
seasons arexE2x80x81xE1xA5x92ot 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∪xE2x80x81are 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еаrtxE2x80x81recі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. | |||
00:31
Guest81939 left
00:33
avar left,
avar joined,
avar left,
avar joined,
p6bannerbot sets mode: +v avar
00:34
p6bannerbot sets mode: +v avar
00:35
blackberry9900 joined
00:36
p6bannerbot sets mode: +v blackberry9900
00:45
blackberry9900 left,
blackberry9900 joined
00:46
p6bannerbot sets mode: +v blackberry9900
|
|||
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 | ||
00:53
cog joined
00:54
p6bannerbot sets mode: +v cog
00:56
cognominal-p6 left
|
|||
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 | ||
00:59
blackberry9900 left
01:00
blackberry9900 joined,
p6bannerbot sets mode: +v blackberry9900
01:01
blackberry9900 left
01:02
blackberry9900 joined
|
|||
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. | |||
01:03
p6bannerbot sets mode: +v blackberry9900,
sotona joined
|
|||
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. :) | ||
01:04
p6bannerbot sets mode: +v sotona
|
|||
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 ) | ||
01:13
blackberry9900 left
|
|||
Xliff | timotimo: With respect to nativecall, I think I'm good. | 01:13 | |
01:13
blackberry9900 joined
|
|||
Xliff | Since a returned NativeCall type object are considered undefined. | 01:13 | |
Or NULL, at least | |||
01:14
p6bannerbot sets mode: +v blackberry9900
|
|||
timotimo AFK | 01:14 | ||
o/ | |||
01:26
stmuk_ joined,
Xliff left
01:27
p6bannerbot sets mode: +v stmuk_
01:28
stmuk left
01:31
mingdao left,
mingdao joined,
p6bannerbot sets mode: +v mingdao,
stmuk joined
01:32
stmuk_ left,
p6bannerbot sets mode: +v stmuk
01:35
blackberry9900 left
01:36
sotona left
01:45
saki left
|
|||
buggable | New CPAN upload: AttrX-Mooish-v0.4.5.tar.gz by VRURG modules.perl6.org/dist/AttrX::Mooish:cpan:VRURG | 01:53 | |
01:57
molaf left
01:59
kerframil left
02:08
kerframil joined,
p6bannerbot sets mode: +v kerframil
02:10
molaf joined
02:11
p6bannerbot sets mode: +v molaf
02:18
kerframil left,
aborazmeh left
02:21
Herby_ joined
02:50
angelds joined
02:51
p6bannerbot sets mode: +v angelds
03:10
aindilis left
03:37
stmuk_ joined
03:38
p6bannerbot sets mode: +v stmuk_
03:39
stmuk left
04:17
sotona joined
04:18
p6bannerbot sets mode: +v sotona
04:49
cgfbee joined
04:50
p6bannerbot sets mode: +v cgfbee
04:51
sotona left
|
|||
Geth | doc: 5cb6bd72a6 | (JJ Merelo)++ | 2 files Adds link, eliminates TODO, refs #2277 Also some reflow and reformatting. |
04:54 | |
04:54
curan joined,
p6bannerbot sets mode: +v curan
05:01
molaf left
05:19
itaipu left
05:29
Herby_ left
05:30
vrurg left
05:42
vrurg joined
05:43
p6bannerbot sets mode: +v vrurg
05:50
vrurg left
05:54
m7120 joined
05:59
spycrab0 left,
m7120 left
06:21
aindilis joined,
p6bannerbot sets mode: +v aindilis
06:22
HaraldJoerg joined
06:23
p6bannerbot sets mode: +v HaraldJoerg
06:30
SyrupThinker left,
robertle left
06:32
SyrupThinker joined
06:33
p6bannerbot sets mode: +v SyrupThinker
|
|||
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) |
||
06:45
domidumont joined
06:46
p6bannerbot sets mode: +v domidumont
06:49
dct left
|
|||
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 |
||
07:05
fake_space_whale left
07:08
rindolf joined
07:09
p6bannerbot sets mode: +v rindolf,
robertle joined,
p6bannerbot sets mode: +v robertle
07:15
lizmat joined
07:16
p6bannerbot sets mode: +v lizmat
07:24
zakharyas joined,
p6bannerbot sets mode: +v zakharyas
07:25
domidumont left
07:34
Ven` joined
07:35
p6bannerbot sets mode: +v Ven`
07:41
domidumont joined,
p6bannerbot sets mode: +v domidumont
07:50
jsimonet joined,
p6bannerbot sets mode: +v jsimonet
07:59
saki joined,
saki left
08:04
_nipc joined,
_nipc left
08:07
saki joined
08:08
saki left
08:09
masak_ is now known as masak
08:10
dakkar joined
|
|||
masak | moritz: "deeply unsettling" is a bit of an understatement. | 08:11 | |
08:11
p6bannerbot sets mode: +v dakkar
|
|||
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 | ||
08:22
stmuk joined
08:23
p6bannerbot sets mode: +v stmuk
08:24
stmuk_ left
|
|||
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 | ||
08:56
saki joined
|
|||
lizmat | and I will check the log :-) | 08:56 | |
08:56
saki left
|
|||
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 | ||
09:21
robertle left
|
|||
lizmat | afk& | 09:33 | |
09:33
lizmat left
09:36
Ven` left
|
|||
timotimo | Ulti: in theory my perl6 version could just keep the substrings as strands | 09:37 | |
09:40
Ven` joined,
p6bannerbot sets mode: +v Ven`
09:52
stmuk_ joined,
p6bannerbot sets mode: +v stmuk_
09:54
stmuk left
09:55
pmurias joined
09:56
p6bannerbot sets mode: +v pmurias
09:58
robertle joined
09:59
p6bannerbot sets mode: +v robertle
10:01
saki joined,
saki left
10:07
calcul0n joined
|
|||
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 | |||
10:09
calcul0n left,
saki joined
10:10
lichtkind joined,
lichtkind left
|
|||
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 | |
10:10
p6bannerbot sets mode: +v saki
|
|||
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 | ||
10:21
APLU29 joined
10:22
APLU29 left
|
|||
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! | ||
10:26
pppingme23 joined
|
|||
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 | |
10:29
pppingme23 left
|
|||
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 | |||
10:32
saki left
|
|||
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 | |
11:21
japhb_ left
11:22
japhb_ joined,
p6bannerbot sets mode: +v japhb_
|
|||
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 | |
11:41
zakharyas left
11:51
Guest91984 joined
11:54
Guest91984 left
|
|||
Ulti | Altreus $!user = instead | 11:54 | |
11:57
HaraldJoerg1 joined
11:58
p6bannerbot sets mode: +v HaraldJoerg1
12:00
HaraldJoerg left
12:09
spycrab0 joined,
p6bannerbot sets mode: +v spycrab0
12:12
stmuk joined
12:13
stmuk_ left,
p6bannerbot sets mode: +v stmuk
12:24
saki joined,
saki left
12:26
saki joined,
saki left
12:28
HaraldJoerg1 is now known as HaraldJoerg
12:42
HackMaster25 joined
12:43
HackMaster25 left,
itaipu joined,
saki joined,
saki left
12:44
p6bannerbot sets mode: +v itaipu
12:46
aborazmeh joined,
aborazmeh left,
aborazmeh joined,
p6bannerbot sets mode: +v aborazmeh
12:47
p6bannerbot sets mode: +v aborazmeh
|
|||
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 | ||
13:17
vrurg joined
13:18
p6bannerbot sets mode: +v vrurg
13:22
lizmat joined
13:23
scimon joined,
p6bannerbot sets mode: +v lizmat
13:24
p6bannerbot sets mode: +v scimon
13:25
zakharyas joined,
p6bannerbot sets mode: +v zakharyas
13:27
DoctorMir left
|
|||
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 | |
13:29
saki joined
|
|||
tyil | wonder if I should add default appveyor files | 13:29 | |
13:30
p6bannerbot sets mode: +v saki
13:35
curan left
|
|||
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 | |||
13:43
angelds left
|
|||
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 | |
13:55
aborazmeh left
|
|||
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 | |
14:05
HaraldJoerg1 joined
14:06
p6bannerbot sets mode: +v HaraldJoerg1
|
|||
Summertime | is there any official documentation for sub langs? | 14:07 | |
14:07
HaraldJoerg left
|
|||
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 | ||
14:26
vike1 left
14:27
vike1 joined
14:28
p6bannerbot sets mode: +v vike1
|
|||
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 | |||
14:56
MasterDuke left
14:58
molaf joined
14:59
p6bannerbot sets mode: +v molaf
15:05
leont joined
15:06
p6bannerbot sets mode: +v leont
15:12
MilkmanDan left
15:14
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
|
|||
rindolf | zef is slow | 15:18 | |
leont | Added that license ;-) | 15:22 | |
Altreus | can has evalbot sauce? | 15:24 | |
15:26
stmuk_ joined
|
|||
rindolf | leont: thanks | 15:26 | |
15:27
p6bannerbot sets mode: +v stmuk_
15:28
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke
15:29
stmuk left
15:34
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|
|||
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 | |
15:56
MilkmanDan left
|
|||
MasterDuke | Altreus: pretty sure camelia is here github.com/perl6/evalbot | 15:56 | |
Altreus | cool beans | 15:57 | |
15:58
zakharyas left
|
|||
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 | |||
16:03
domidumont left
|
|||
moritz | $ret.{:param} looks kinda wrong | 16:03 | |
:param is a Pair | |||
and you try to index a hash by a pair? | 16:04 | ||
16:05
Ven` left
|
|||
leont | That doesn't look like anything I've seen before | 16:05 | |
16:05
MilkmanDan joined,
p6bannerbot sets mode: +v MilkmanDan
|
|||
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 | |
16:07
Khisanth left
|
|||
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 | |||
16:12
ChanServ sets mode: +vvvv statisfiable6 shareable6 evalable6 unicodable6,
ChanServ sets mode: +vvvv benchable6 coverable6 committable6 irco
|
|||
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 | |
16:20
Khisanth joined
16:21
p6bannerbot sets mode: +v Khisanth
|
|||
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 | ||
16:29
Herby_ joined
|
|||
rindolf | AlexDaniel: and third one | 16:30 | |
AlexDaniel | haha | 16:32 | |
“We can schedule it for 9.d or whatever” | |||
9.d, heh | |||
16:33
scimon left
16:37
robertle left
|
|||
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: █; :$label, :$item, *%_) in block <unit> at <tmp> line 1 |
||
16:38
Herby_ left
|
|||
jkramer | Shouldn't this work? | 16:38 | |
It works both with *.&WHAT and *.WHICH, for example | |||
16:39
domidumont joined
|
|||
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 |
||
16:39
p6bannerbot sets mode: +v domidumont
|
|||
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 | ||
16:41
dakkar left
|
|||
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) | ||
16:55
stmuk_ left
|
|||
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 | |||
16:58
fake_space_whale joined,
lizmat left
16:59
p6bannerbot sets mode: +v fake_space_whale
|
|||
leont | Though I haven't figured out a way to test that, I really hope that plumbing still works | 17:00 | |
17:01
lizmat joined,
p6bannerbot sets mode: +v lizmat
17:04
saki left
17:05
lizmat left
|
|||
rindolf | leont: github.com/Leont/getopt-long6/pull/3 - untested | 17:06 | |
17:06
FrozenFox29 joined
17:09
FrozenFox29 left
17:12
integral left
17:14
integral joined,
lizmat joined,
p6bannerbot sets mode: +v integral
17:15
p6bannerbot sets mode: +v lizmat
17:18
integral left
17:19
integral joined
17:20
p6bannerbot sets mode: +v integral
17:24
integral left,
integral joined
17:25
p6bannerbot sets mode: +v integral
17:26
thowe joined,
mahafyi joined
17:27
p6bannerbot sets mode: +v thowe,
p6bannerbot sets mode: +v mahafyi
17:28
lizmat left,
fake_space_whale left
17:29
integral left,
integral joined,
rajaniemi.freenode.net sets mode: +v integral,
p6bannerbot sets mode: +v integral
17:34
rfold joined
17:35
p6bannerbot sets mode: +v rfold
17:44
pmurias left
17:45
pmurias joined,
p6bannerbot sets mode: +v pmurias
17:54
mahafyi left
18:09
mahafyi joined,
p6bannerbot sets mode: +v mahafyi
18:12
fake_space_whale joined
18:13
p6bannerbot sets mode: +v fake_space_whale
|
|||
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 | ||
18:21
lizmat joined,
p6bannerbot sets mode: +v lizmat
18:22
lichtkind joined
18:23
p6bannerbot sets mode: +v lichtkind
|
|||
vrurg | Anybody here with working macos + DBIish + mysql? | 18:30 | |
18:31
lizmat left
18:34
sotona joined
18:35
p6bannerbot sets mode: +v sotona
18:39
sotona left
18:41
domidumont left,
|oLa| joined
18:42
p6bannerbot sets mode: +v |oLa|
|
|||
buggable | New CPAN upload: Trait-Env-0.4.0.tar.gz by SCIMON modules.perl6.org/dist/Trait::Env:cpan:SCIMON | 18:43 | |
18:46
Glyphie____ joined
|
|||
rindolf | what is tempdir in p6? docs.perl6.org/routine.html | 18:51 | |
18:51
Glyphie____ left,
pmurias left,
itaipu left
|
|||
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 | |
18:54
fake_space_whale left
18:56
HaraldJoerg1 is now known as HaraldJoerg
|
|||
rindolf | El_Che: nice | 18:59 | |
19:05
pmurias joined
|
|||
El_Che | alpine 3.8 is struggeling though :) | 19:06 | |
19:06
p6bannerbot sets mode: +v pmurias,
xinming_ joined
19:07
p6bannerbot sets mode: +v xinming_
19:10
xinming left,
hoelzro left,
iviv left,
mrsolo left,
pnu__ left,
stux|RC-only left,
sotona joined,
iviv joined,
stux|RC-only joined,
hoelzro_ joined,
tbrowder__ joined,
p6bannerbot sets mode: +v tbrowder__,
tbrowder__ left,
tbrowder__ joined,
kornbluth.freenode.net sets mode: +v tbrowder__,
p6bannerbot sets mode: +v iviv,
p6bannerbot sets mode: +v tbrowder__
19:11
pnu__ joined,
p6bannerbot sets mode: +v pnu__,
p6bannerbot sets mode: +v hoelzro_,
mrsolo joined,
p6bannerbot sets mode: +v mrsolo,
caasih joined,
p6bannerbot sets mode: +v caasih,
p6bannerbot sets mode: +v sotona,
p6bannerbot sets mode: +v stux|RC-only
|
|||
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 | |
19:27
pmurias left,
pmurias joined
19:28
p6bannerbot sets mode: +v pmurias
|
|||
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 | |
20:02
rfold left
20:11
pecastro joined
|
|||
rindolf | anyone? | 20:12 | |
20:12
p6bannerbot sets mode: +v pecastro
|
|||
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 | ||
20:24
itaipu joined
20:25
p6bannerbot sets mode: +v itaipu
20:28
cbk joined
20:29
p6bannerbot sets mode: +v cbk
|
|||
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 | |||
20:44
itaipu left
|
|||
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) | ||
20:46
davercc joined
|
|||
cbk | !!? ok so the << and >> does the bounding? | 20:46 | |
20:46
davercc left
|
|||
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 | |||
20:50
lizmat joined
20:51
p6bannerbot sets mode: +v lizmat
|
|||
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 | |
21:09
itaipu joined
21:10
p6bannerbot sets mode: +v itaipu
|
|||
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) { } |
||
21:17
ravioli joined
21:20
ravioli left
21:26
fake_space_whale joined
21:27
p6bannerbot sets mode: +v fake_space_whale
|
|||
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 | ||
21:33
sotona left
21:44
|oLa| left
|
|||
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! | ||
22:00
itaipu left
22:07
HaraldJoerg left,
rindolf left
22:14
badet0s1 joined
22:19
badet0s1 left
22:25
pmurias left
22:51
Voldenet left
22:55
Voldenet joined,
Voldenet left,
Voldenet joined,
p6bannerbot sets mode: +v Voldenet
22:56
p6bannerbot sets mode: +v Voldenet
23:06
mahafyi left
23:09
obamasama joined,
p6bannerbot sets mode: +v obamasama
23:17
pecastro left
23:27
Kaiepi left
23:43
MasterDuke left
|