🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
tbrowder .ask nine Using Inline::Perl5, is there any way to use a Raku module from a Perl program? I don't see anything like quite like that in the README, nor does it seem likely, but it could be useful. 00:36
tellable6 tbrowder, I'll pass your message to nine
Grinnz tbrowder: wouldn't that be the job of a corresponding perl module? 00:41
metacpan.org/pod/Inline::Perl6 - also seems to be nine's :) 00:42
tbrowder Grinnz: thanks! i forgot about that! 01:02
and it makes sense, a perl 5 module to use Raku, duh! 01:03
Geth whateverable: ba87c4b2da | (Aleks-Daniel Jakimenko-Aleksejev)++ | lib/Whateverable/Running.pm6
Add :wipe and :lock parameters for running code

This allows to unpack a build once and run code on it rapidly. It was already possible (which is what Blin used) but the functionality was very limited.
02:17
whateverable: 79b39b022a | (Aleks-Daniel Jakimenko-Aleksejev)++ | 3 files
Make Sourceable more awesome

TL;DR: You can just give it the code you have as is. Magic.
The best interface is no interface. Previous version was a simple cover for the CoreHackers::Sourcery module, which is a collection of helper functions to get .file and .line of code blocks. It was OK, ... (12 more lines)
whateverable: ba19584084 | (Aleks-Daniel Jakimenko-Aleksejev)++ | META6.json
Bump version
whateverable: 44b62aa63c | (Aleks-Daniel Jakimenko-Aleksejev)++ | xt/sourceable.t
Add forgotten test description
02:20
elcaro awwaiid: a day late, i know, but I've published 'Point' to the ecosystem that performs faster than 'Tuple' 04:24
awwaiid: but will probably come in handy for future AOC challenges
cpan-raku New module released to CPAN! Point (1.0.0) by 03ELCARO 11:24
lucasb elcaro: playing AoC? :) 13:11
lucasb lol, people got offended by the name of the Brainfuck language 13:32
Let's rename it too, it's causing problems! 13:33
bazzaar raku o/ 13:53
sena_kun bazzaar: o/ 13:54
bazzaar After installing rakudo-pkg on OpenSuse (/opt/rakudo-pkg), and installing zef as user, I'm running through the Rakudo Star module list, installing modules to the default modules location (~/.perl6)
It's all going swimmingly, until I get to try 'zef install p6doc' which fails, as it's unable to create directory '/opt/rakudo-pkg/share/perl6/site/doc' with mode '0o777': Permission denied 13:55
My question is why isn't it installing p6doc in ~/.perl6 with all the other modules?
sena_kun: Hi
sena_kun bazzaar: can you provide `which zef` output? if it's using your local zef, then it should happen, otherwise need to do some magic with $PATH to make the local one priority 13:56
s/provide/check/ 13:57
bazzaar sena_kun: which zef (/opt/rakudo-pkg/bin/zef) 13:58
sena_kun: raku -v (This is Rakudo version 2019.11 built on MoarVM version 2019.11) 13:59
sena_kun bazzaar: it means that the binary of zef you are using is still the rakudo-pkg one, not local one... maybe El_Che knows the answer quickly?
bazzaar: did you do github.com/nxadm/rakudo-pkg#set-the-path instructions? 14:02
`PATH=~/.perl6/bin:/opt/rakudo-pkg/bin:/opt/rakudo-pkg/share/perl6/site/bin:$PATH` sets `perl6/bin` above `/opt/rakudo-pkg/bin`, so the local zef is used
bazzaar sena_kun: I ran the script (/opt/rakudo-pkg/bin/install-zef-as-user) before installing any of the modules, and I now have successfully installed around 20 of the R* modules, and they reside in the local (~/.perl6) dir 14:07
sena_kun: p6doc has been the only one to try install into /opt 14:08
sena_kun: thanks for your help 14:10
sena_kun bazzaar: so updating the $PATH helped? 14:14
bazzaar sena_kun: sorry I didn't see your question, yes I originally ran /opt/rakudo-pkg/bin/add-rakudo-to-path, and the local .perl6 dir does occur before /opt/rakudo-pkg/bin in my PATH, this was all done before I started loading the modules 14:20
sena_kun bazzaar: do you have `zef` binary in local .perl6? because it seems like it is not, as `which zef` points to global one 14:22
bazzaar sena_kun: so as all the modules have loaded seemingly in a correct fashion, I assume? that my setup is OK?
sena_kun: yes there is a zef binary in ~/.perl6/bin also which was installed when I ran that script (/opt/rakudo-pkg/bin/install-zef-as-user) 14:26
bazzaar sena_kun: aaah, I just tried echo $PATH, and it's not what I expected :-), sigh.. , thanks for your help :-) 14:33
tellable6 bazzaar, I'll pass your message to sena_kun
tyil .tell jmerelo do you have an idea what I could do to fix this p6doc issue here: gitlab.com/tyil/rakudo-star/-/jobs...3844#L1035 14:42
tellable6 tyil, I'll pass your message to jmerelo
tyil .tell jmerelo I think it's a misconfigured submodule on my end, upon taking a closer look 14:45
tellable6 tyil, I'll pass your message to jmerelo
jmerelo .seen kaiepi 15:54
tellable6 jmerelo, I saw kaiepi 2019-12-03T22:07:45Z in #raku-dev: <Kaiepi> still, i wonder if there are ways to avoid needing to make a mixin for each parameterization of a parametric class
jmerelo .seen guifa 15:55
tellable6 jmerelo, gist.github.com/2625754c61366d4ae7...e7bd461d16
jmerelo .tell Kaiepi please send me in some effective way your email address or ID in wordpress.com for the Advent calendar articles.
tellable6 jmerelo, I'll pass your message to Kaiepi
jmerelo .tell guifa please send me in some effective way your email address or ID in wordpress.com for the Advent calendar article. 15:56
tellable6 jmerelo, I'll pass your message to guifa
jmerelo OK, I think I've got everyone or invited or with a notice to send me their email. If there's anyone who's going to write an article and does not have the credentials to publish it, just let me know 16:02
tellable6 2019-12-05T14:42:29Z #raku <tyil> jmerelo do you have an idea what I could do to fix this p6doc issue here: gitlab.com/tyil/rakudo-star/-/jobs...3844#L1035
2019-12-05T14:45:32Z #raku <tyil> jmerelo I think it's a misconfigured submodule on my end, upon taking a closer look
tyil jmerelo: if you prefer, I'm connected almost all the time, so people can easily pm me an email address if they don't want to post it publically 16:03
but I'm unsure if I can invite people
jmerelo I'm asking them to email or dm me, but thanks anyway
I don't see the error above. Where is it?
tyil [p6doc] fatal: not a git repository: /builds/tyil/rakudo-star/work/build/rakudo-star-2019.11-rc1/modules/p6doc/../../.git/modules/modules/p6doc 16:04
on line 1035, apparently it doesn't anchor well
jmerelo tyil: maybe because it's moved to Raku/doc? 16:05
jmerelo tyil: no, that shouldn't be it... It's an old version, too... 16:07
japhb I'm collecting a list of all games (of any size, genre, level of polish, UI toolkit) written in Raku ... if you have written one, or know of one that I should include, please ping me! :-) 16:30
Geth ¦ problem-solving: lizmat assigned to jnthn Issue What should `val()` support? github.com/perl6/problem-solving/issues/138 16:41
AlexDaniel squashable6: status 17:52
squashable6 AlexDaniel, ⚠🍕 Next SQUASHathon in ≈10 hours (2019-12-07 UTC-12⌁UTC+20). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
Geth ecosystem: 1c28634ac1 | (Nick Logan)++ (committed using GitHub Web editor) | META.list
Add 'sanity' distribution to ecosystem
18:29
japhb Really? Nobody knows any Raku games? I know *I've* written a few, and timotimo I believe has as well. There's got to be more than just us. 18:49
No game is too small. If you've written Hangman, that counts for my purposes.
Geth doc: coke assigned to JJ Issue typo github.com/Raku/doc/issues/3110
coke self-assigned typo github.com/Raku/doc/issues/3110

e06444bf1c | Coke++ | xt/words.pws Learn more compunit names
19:18
doc: 802300fdce | Coke++ | util/aspell-wrapper.t
add wrapper for xt/aspell.t

we can't run it for all files at once due to a rakudo bug.
doc: 589005d982 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | doc/Type/Sequence.pod6
Fixes non-existent word.

Closes #3110 Thanks!
19:25
TreyHarris I just tried to push a typo fix but it didn't work--what do I have to do besides changing "perl6" to "Raku" in my remotes? 19:32
My signature hash was verified
Sorry, talking about Raku/doc repo 19:33
[Coke] what does the error message say?
I had an issue recently where I had to push "ok" on an old ssh key somewhere. 19:34
TreyHarris Hmm
lucasb GH status says it's ok, but looks instable to me...
*unstable 19:35
TreyHarris My git interface is a bit cryptic for unusual error messages. Let me try pushing at the CLI--I need to figure out how to use my GPG agent with the default porcelain first
TreyHarris Oh, it was just an edit conflict--somebody else beat me to it 19:36
patrickb I'm pondering to change my github account name. Any hints on what might go wrong? 20:02
Same question wrt CPAN name. I suspect rename is a bad idea for CPAN is it's pretty much write once only... Should I just create a second CPAN identity? 20:03
AlexDaniel: I seem to recall a conversation about this ^ topic you took part in some time ago ... Any clues? 20:04
El_Che github does not recognize *.raku files or files with shebang #!raku it seems
is there somewhere we can send a PR? 20:05
AlexDaniel patrickb: read this: help.github.com/en/github/setting-...b-username
patrickb: I think it should go smoothly
renaming an org is problematic, but renaming a personal account should be ok I think 20:06
El_Che: yes, was it linguist?
patrickb Thanks! I hope to lower the confusion a bit. I've been pretty much throwing my old an new name around at the same time for quite a while now...
AlexDaniel El_Che: see here for closed issues to get an idea of what we did in the past: github.com/github/linguist/issues?...s%3Aclosed 20:07
Grinnz github.com/github/linguist/issues/4090 is the latest relevant issue 20:12
linguist is indeed what would make that determination 20:13
separately, github.com/github/markup would have to be told how to render a rakudoc and such
and github.com/github/linguist/pull/4149 20:18
there was a lot of work to get pod6 both recognized and rendered (not sure if the latter happened?)
AlexDaniel … sorta 20:19
it doesn't fully work
Grinnz github.com/github/markup/issues/12...-466825090 20:20
ah the problem was executing the program to render its pod
Geth ecosystem: db401615c6 | thundergnat++ (committed using GitHub Web editor) | META.list
Add perl6-App-pixel-pick to the ecosystem

Terminal utility to interactively / programmatically get the RGB color of any screen pixel in an X11 environment. See github.com/thundergnat/perl6-App-pixel-pick
20:21
Grinnz so anyway - getting linguist to recognize the new extensions should be an easy task. getting markup to render rakudoc may take more effort
AlexDaniel patrickb: ah, one thing you have to be aware of is that anybody else will be able to register your previous nickname 22:25
patrickb: if you have some important repos, then they can also create repos with same names
patrickb: meaning that a repo redirect will stop working
patrickb: keep in mind you can't register another account for your old name, github allows only 1 account per human 22:26
you can claim that the other account is your bot account (which you can only have 1) but I'm not sure if that's going to fly
so instead, you can probably register an org
El_Che AlexDaniel: replacing perl6 by raku could be very easy: github.com/github/linguist/blob/b6....yml#L3849 . Adding it next to perl6 less so 22:57
AlexDaniel El_Che: aliases?
El_Che: it's just a name 22:58
El_Che: call it Raku, add raku to aliases and interpreters, and we're good to go? What am I missing?
El_Che change all the examples as well 22:59
github.com/github/linguist/search?...ed_q=perl6
do we have someone that knows linguist well in order to make sure we don't send a bullshit PR?
Grinnz tyil and jj both have sent linguist PRs so maybe know what to do 23:01
tyil I once got something merged, but that was later reverted iirc
because to generate pod6, you have to execute the file 23:02
which was not allowed in the end
El_Che is there a way to get the keys of the named parameters of MAIN as a hash of strings, a list, whatever? 23:32
or do I need to parse @*ARGS myself for that?
mm, skip that last one, because params that are not present are not there 23:33
I need the signature of MAIN, rather
sena_kun El_Che: `say &MAIN.signature;`? 23:34
tellable6 2019-12-05T14:33:27Z #raku <bazzaar> sena_kun: aaah, I just tried echo $PATH, and it's not what I expected :-), sigh.. , thanks for your help :-)
sena_kun El_Che: and then you can play with the signature however you want, I think... getting a list of nameds would be a one-liner for sure. ;) 23:35
El_Che I'll have a look at signature, thx! 23:36
sena_kun m: sub foo(:$hehe) { say &foo.signature }
evalable6
sena_kun hmm
m: sub foo(:$hehe) { say &foo.signature }; foo;
evalable6 (:$hehe)
sena_kun sub foo(:$hehe) { say &foo.signature.grep(*.is-named) }; foo;
what, no response? 23:37
m: sub foo(:$hehe) { say &foo.signature.params.grep(*.named)>>.name }; foo;
evalable6 ($hehe)
sena_kun ^ something like this
sourceable6: Int, 'base' 23:38
sourceable6 sena_kun, No idea, boss. Can you give me a Code object?
El_Che can I get the 'hehe'?
sena_kun El_Che: like, without sigils?
El_Che I need the string, yes 23:38
sena_kun nope, you need to cut them off by yourself
El_Che I want to provide parameters by env en by signature of Main 23:39
sena_kun check if the second char is alpha and if no, cut off two chars, else a single one
Xliff o/
El_Che PARAM=foo would be the same as --param=foo
sena_kun: ah, it's a literal
nice
sena_kun El_Che: well, if you do `.name` on Parameter instance, then yes, they are strings 23:40
you can read up about `Signature` and `Parameter` in docs, it is a pretty cool feature and it is documented pretty well
El_Che yes, looking at Signature atm 23:41
sena_kun sourceable6: help 23:41
sourceable6 sena_kun, Like this: sourceable6: 42.base(16) # See wiki for more examples: github.com/perl6/whateverable/wiki/Sourceable
sena_kun sourceable6: 42.base(16)
sourceable6 sena_kun, github.com/rakudo/rakudo/blob/382d...nt.pm6#L93
Xliff Is there a string distance algorithm built into rakudo?
MasterDuke Xliff: yeah levenstein, but it's really meant only for internal use 23:42
Xliff How can I get at it?
MasterDuke StrDistance
Xliff \o/
El_Che sena_kun: thanks. Exactly what I was looking for
I see this waaaaaaay to often: sub foo(:$hehe) { say &foo.signature.params.grep(*.named)>>.name }; foo; 23:43
oops
El_Che I meant: Unsupported use of =~ to do pattern matching; in Perl 6 please use ~~ 23:43
sena_kun \o/
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/$old/$new).^name
evalable6 (exit code 1) 04===SORRY!04=== Er…
Xliff, Full output: gist.github.com/0c761b29c599830dd0...e25eda5648
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/$old/$new/).^name
evalable6 StrDistance
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/$old/$new/).Int
evalable6 3
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/$a/$b/).Int 23:44
evalable6 0
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/{$a}/{$b}/).Int
evalable6 0
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/{$a}/{$b}/).before
evalable6 old
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/{$a}/{$b}/).after
evalable6 old
AlexDaniel sena_kun: yeah, it's different now, no need to think and transform your code :)
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/{$a}/$b/).after
evalable6 old
AlexDaniel this should work too: 23:45
sourceable6: Int.base
sourceable6 AlexDaniel, github.com/rakudo/rakudo/blob/382d...nt.pm6#L92
Xliff m: my $a = "old"; my $b = "new"; say ($a ~~ tr/<{$a}>/$b/).Int
evalable6 0
El_Che fml: 00:45
thx, see you tomorrow probably!
Xliff How can I get tr to work with lexicals?
sena_kun AlexDaniel++
Xliff m: my $before = "old"; my $after = "new"; my $d = StrDistance.new( :$before, :$after ); say $d.Int 23:48
evalable6 3
Xliff m: my $before = "old"; my $after = "new"; my $d = StrDistance.new( :$before, :$after ); say $d.Int; say $d.before; say $d.after
evalable6 3
old
new