🦋 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.
00:06 nebuchadnezzar left 00:07 Guest30808 joined 00:14 pmurias left 00:32 lucasb left
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
00:45 hkdtam left 00:49 wamba left
tbrowder Grinnz: thanks! i forgot about that! 01:02
and it makes sense, a perl 5 module to use Raku, duh! 01:03
01:20 Doc_Holliwood left 01:22 Xliff joined
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
02:22 evalable6 left 02:25 evalable6 joined, sourceable6 joined 03:01 benjif joined 04:11 reportable6 left, squashable6 left, quotable6 left, statisfiable6 left, sourceable6 left, bisectable6 left, greppable6 left, notable6 left, releasable6 left, unicodable6 left, committable6 left, shareable6 left, nativecallable6 left, benchable6 left, coverable6 left, bloatable6 left 04:12 unicodable6 joined, squashable6 joined 04:13 greppable6 joined, benchable6 joined, bloatable6 joined, reportable6 joined, releasable6 joined 04:14 shareable6 joined, bisectable6 joined, statisfiable6 joined, committable6 joined, coverable6 joined, quotable6 joined, nativecallable6 joined, sourceable6 joined, notable6 joined
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
05:24 shareable6 left, bloatable6 left, releasable6 left, sourceable6 left, greppable6 left, squashable6 left, notable6 left, reportable6 left, statisfiable6 left, committable6 left, unicodable6 left, quotable6 left, benchable6 left, bisectable6 left, coverable6 left, nativecallable6 left, nativecallable6 joined, committable6 joined 05:25 unicodable6 joined, bisectable6 joined, notable6 joined, sourceable6 joined, releasable6 joined 05:26 bloatable6 joined 05:27 reportable6 joined, coverable6 joined, shareable6 joined, benchable6 joined, quotable6 joined, statisfiable6 joined, squashable6 joined, greppable6 joined 05:36 maettu left 05:37 maettu joined 05:57 stoned75 left 06:06 benjif left 06:11 xinming_ left, xinming_ joined 06:14 rindolf joined 06:27 xinming_ left 06:28 xinming_ joined 06:31 wamba joined 06:33 moon-child left 06:43 moon-child joined 06:50 Doc_Holliwood joined 06:58 wamba left 07:11 lelf left 07:37 epony left 07:49 epony joined 08:02 wamba joined 08:03 kensanata joined 08:21 Guest30808 is now known as nebuchadnezzar 08:23 [Coke] left 08:25 [Coke] joined 08:29 RobRaku joined 08:34 squashable6 left, greppable6 left, quotable6 left, coverable6 left, reportable6 left, bloatable6 left, releasable6 left, sourceable6 left, bisectable6 left, unicodable6 left, committable6 left, nativecallable6 left, tellable6 left, chsanch left, kubrat left, rba left 08:38 greppable6 joined, squashable6 joined, quotable6 joined, coverable6 joined, reportable6 joined, bloatable6 joined, releasable6 joined, sourceable6 joined, bisectable6 joined, unicodable6 joined, committable6 joined, nativecallable6 joined, tellable6 joined, kubrat joined, chsanch joined, rba joined 08:43 mid_home joined 09:03 wamba left 09:04 Doc_Holliwood left 09:07 wamba joined 09:15 scimon joined 09:18 kensanata left 09:30 kensanata joined 09:54 squashable6 left, greppable6 left, quotable6 left, coverable6 left, reportable6 left, bloatable6 left, releasable6 left, sourceable6 left, bisectable6 left, unicodable6 left, committable6 left, nativecallable6 left, tellable6 left, chsanch left, kubrat left, rba left, El_Che left, b2gills left, sjn left, dogbert17 left, pat_js left, broquaint left, Ulti left, kensanata left, RobRaku left, statisfiable6 left, benchable6 left, evalable6 left, nebuchadnezzar left, robertle left, awwaiid left, johnjay left, renormalist left, scimon left, xinming_ left, daxim left, abraxxa left, lizmat left, Geth left, Ekho left, surrealpie left, mspo left, bartolin left, tony-o left, cxreg left, ilbelkyr left, mid_home left, Xliff left, eiro left, moritz left, veesh left, sarna left, huf left, cognomin_ left, Manifest0 left, silug left, Summertime left, eythian left, tobs left, Altreus left, tyil left, brass left, masak left, tadzik left, dotdotdot left, nine left, SyrupThinker left, skaji_ left, rba[m] left 09:55 sergot left, freezing left, matiaslina left, CIAvash left, wamba left, [Coke] left, moon-child left, skyl4rk left, ZzZombo left, Guest38485 left, maggotbrain left, a6502 left, vrurg left, jjatria left, Guest90798 left, libertas left, guifa left, marcusr left, markmarkmark left, tejr left, jnthn left, KotH left, xkr47 left, klapperl left, go|dfish left, elcaro left, shareable6 left, notable6 left, TreyHarris left, Demos[m] left, Hotbees left, kawaii left, domm left, maettu left, cpan-raku left, lgtaube left, timotimo left, pochi_ left, kybr_ left, AlexDaniel left, japhb left, wbn left, Grrrr left, lucs left, k-man left, xi left, jdv79 left, uzl[m] left, epony left, dpk left, samebchase left, zostay left, Grinnz left, rindolf left, Kaiepi left, unclechu left, zeylos left, Nasrudin left, AlexDaniel` left, BinGOs left 09:56 [Coke] joined, epony joined, moon-child joined, rindolf joined, maettu joined, shareable6 joined, notable6 joined, cpan-raku joined, Nasrudin joined, skyl4rk joined, uzl[m] joined, sergot joined, freezing joined, Kaiepi joined, unclechu joined, ZzZombo joined, lgtaube joined, Guest38485 joined, timotimo joined, TreyHarris joined, pochi_ joined, maggotbrain joined, kybr_ joined, zeylos joined, AlexDaniel joined, libertas joined, matiaslina joined, CIAvash joined, a6502 joined, vrurg joined, jjatria joined, Guest90798 joined, Demos[m] joined, AlexDaniel` joined, dpk joined, japhb joined, guifa joined, wbn joined, Grrrr joined, marcusr joined, markmarkmark joined, tejr joined, jnthn joined, lucs joined, KotH joined, Hotbees joined, xkr47 joined, klapperl joined, go|dfish joined, k-man joined, xi joined, samebchase joined, elcaro joined, kawaii joined, domm joined, jdv79 joined, BinGOs joined, zostay joined, Grinnz joined 09:59 scimon joined, xinming_ joined, daxim joined, abraxxa joined, lizmat joined, Geth joined, Ekho joined, surrealpie joined, ilbelkyr joined, mspo joined, bartolin joined, tony-o joined, cxreg joined, Doc_Holliwood joined 10:00 scimon left, xinming_ left, daxim left, abraxxa left, lizmat left, Geth left, Ekho left, surrealpie left, mspo left, bartolin left, tony-o left, cxreg left, ilbelkyr left, sergot left, freezing left, matiaslina left, CIAvash left, Doc_Holliwood left, [Coke] left, moon-child left, skyl4rk left, ZzZombo left, Guest38485 left, maggotbrain left, a6502 left, vrurg left, jjatria left, Guest90798 left, libertas left, guifa left, marcusr left, markmarkmark left, tejr left, jnthn left, KotH left, xkr47 left, klapperl left, go|dfish left, elcaro left, shareable6 left, notable6 left, TreyHarris left, Demos[m] left, Hotbees left, kawaii left, domm left, maettu left, cpan-raku left, lgtaube left, timotimo left, pochi_ left, kybr_ left, AlexDaniel left, japhb left, wbn left, Grrrr left, lucs left, k-man left, xi left, jdv79 left, uzl[m] left, epony left, dpk left, samebchase left, zostay left, Grinnz left, rindolf left, Kaiepi left, unclechu left, zeylos left, Nasrudin left, AlexDaniel` left, BinGOs left 10:01 Doc_Holliwood joined, cxreg joined, tony-o joined, bartolin joined, mspo joined, ilbelkyr joined, surrealpie joined, Ekho joined, Geth joined, lizmat joined, abraxxa joined, daxim joined, xinming_ joined, scimon joined, [Coke] joined, epony joined, moon-child joined, rindolf joined, maettu joined, shareable6 joined, notable6 joined, cpan-raku joined, Nasrudin joined, skyl4rk joined, uzl[m] joined, sergot joined, freezing joined, Kaiepi joined, unclechu joined, ZzZombo joined, lgtaube joined, Guest38485 joined, timotimo joined, TreyHarris joined, pochi_ joined, maggotbrain joined, kybr_ joined, zeylos joined, AlexDaniel joined, libertas joined, matiaslina joined, CIAvash joined, a6502 joined, vrurg joined, jjatria joined, Guest90798 joined, Demos[m] joined, AlexDaniel` joined, dpk joined, japhb joined, guifa joined, wbn joined, Grrrr joined, marcusr joined, markmarkmark joined, tejr joined, jnthn joined, lucs joined, KotH joined, Hotbees joined, xkr47 joined, klapperl joined, go|dfish joined, k-man joined, xi joined, samebchase joined, elcaro joined, kawaii joined, domm joined, jdv79 joined, BinGOs joined, zostay joined, Grinnz joined 10:02 wamba joined, kensanata joined, RobRaku joined, statisfiable6 joined, benchable6 joined, evalable6 joined, nebuchadnezzar joined, robertle joined, awwaiid joined, johnjay joined, renormalist joined, johnjay left 10:03 greppable6 joined, squashable6 joined, quotable6 joined, coverable6 joined, reportable6 joined, bloatable6 joined, releasable6 joined, sourceable6 joined, bisectable6 joined, unicodable6 joined, committable6 joined, nativecallable6 joined, tellable6 joined, kubrat joined, chsanch joined, rba joined, El_Che joined, b2gills joined, sjn joined, dogbert17 joined, pat_js joined, Ulti joined, broquaint joined 10:04 rba[m] joined, mid_home joined, Xliff joined, eiro joined, moritz joined, veesh joined, sarna joined, Summertime joined, huf joined, cognomin_ joined, Manifest0 joined, silug joined, eythian joined, tobs joined, Altreus joined, tyil joined, masak joined, dotdotdot joined, skaji_ joined, tadzik joined, brass joined, nine joined, SyrupThinker joined, johnjay joined 10:05 sarna left, sarna joined 10:13 wamba left 10:21 rindolf left 10:24 wamba joined, pmurias joined 10:25 wamba left 10:30 wamba joined 10:55 wamba left 10:57 wamba joined 11:01 sena_kun joined 11:05 wamba left 11:11 rindolf joined 11:15 mid_home left 11:17 wamba joined 11:20 mid_home joined
cpan-raku New module released to CPAN! Point (1.0.0) by 03ELCARO 11:24
11:36 Doc_Holliwould joined 11:39 Doc_Holliwood left 11:51 wamba left 12:08 hkdtam joined 12:10 RobRaku left 12:11 pmurias left, wamba joined 12:26 sena_kun left 12:40 RobRaku joined 12:41 sena_kun joined 12:43 pmurias joined, skyheights joined 12:56 lucasb joined
lucasb elcaro: playing AoC? :) 13:11
13:24 joule joined
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
13:33 bazzaar joined 13:37 Xliff left
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
14:07 skyheights left
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
14:27 sena_kun left 14:30 Doc_Holliwould left 14:31 Doc_Holliwould joined, patrickb joined
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
14:36 RobRaku left 14:40 sena_kun joined
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
14:47 RobRaku joined 14:59 bazzaar left, joule left 15:17 RobRaku left 15:34 wamba1 joined 15:36 vrurg_ joined 15:37 vrurg left 15:38 wamba left 15:43 pmurias left 15:45 jmerelo joined
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
15:56 pmurias joined
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
16:05 b2gills left 16:06 b2gills joined
jmerelo tyil: no, that shouldn't be it... It's an old version, too... 16:07
16:14 benjif joined 16:15 ben_m left 16:26 sena_kun left
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
16:40 kensanata left
Geth ¦ problem-solving: lizmat assigned to jnthn Issue What should `val()` support? github.com/perl6/problem-solving/issues/138 16:41
16:43 MasterDuke joined 16:44 lucasb left 16:51 sena_kun joined 16:52 hythm joined 16:53 Guest38485 left 17:23 scimon left 17:30 wamba1 left 17:33 jmerelo left
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
17:59 cpan-raku left 18:03 wamba joined 18:09 cpan-raku joined, cpan-raku left, cpan-raku joined 18:24 chloekek joined
Geth ecosystem: 1c28634ac1 | (Nick Logan)++ (committed using GitHub Web editor) | META.list
Add 'sanity' distribution to ecosystem
18:29
18:46 patrickb left
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.
18:52 sena_kun left 19:00 patrickb joined 19:03 finanalyst joined 19:05 stoned75 joined 19:07 sena_kun joined 19:08 stoned75 left
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
19:24 lucasb joined
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
19:32 RobRaku joined
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
19:36 mspo left
TreyHarris Oh, it was just an edit conflict--somebody else beat me to it 19:36
19:37 stoned75 joined 20:01 RobRaku left
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
20:52 sena_kun left 21:00 RobRaku joined 21:03 mid_home left 21:07 sena_kun joined 21:37 RobRaku left, wildtrees joined 21:49 RobRaku joined 21:51 finanalyst left 21:52 hythm left 21:54 RobRaku left, Bob47 joined, wamba left 21:56 Bob47 left 22:16 chloekek left
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
22:54 sena_kun left
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
23:08 sena_kun joined
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 :-)
23:35 stoned75 left
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?
23:38 Xliff joined
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
23:41 pmurias left
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
23:43 pmurias joined
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++
23:46 sena_kun left
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