🦋 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 if i had a shared email account with my wife of 53 years she would have gotten her own account long ago! 00:00
tbrowder the closest she is to raku is being near me 00:01
tbrowder uh, 6 feet away if i talking raku :) 00:02
ToddAndMargo I sometimes show her my accomplishments. She gives me love eyes. I can tell programming goes over her head
tbrowder yeah, i know
same story... 00:03
tbrowder i keep meaning to try raku on win but too busy 00:04
ToddAndMargo I have till July when g-suite discontinues less secure apps to get smtp and OAuth2 working
this is odd. I tried `zef install OAuth2::Client::Google` in my widows 10 virtual machine (VM) and it installed perfectly. Tried i my w7 vm and get the same error message again. I will reinstall git and see what happens 00:07
ToddAndMargo force install did not work either. Odd, if something is not going to work, it is typically w10 not w7 00:11
tbrowder i do want to install on win for educational (and marketing) purposes but i'm not aware of win intstallation issues or testing or anything about. 00:29
how to port modules to win or mac
ToddAndMargo I just zef what I want. I just opened git path psunzip failure in Windows 7, but not 10. github.com/ugexe/zef/issues/341 00:32
Geth_ doc: 5bc00d3439 | Coke++ | doc/Language/hashmap.pod6
fix compilation example, whitespace
01:10
linkable6 Link: docs.raku.org/language/hashmap
tbrowder [Coke]: thnx for ws fix, i tried to be careful but missed a few... 01:39
[Coke] there's a test for it, only reason I catch them 02:06
Kuro3 Hello 09:04
sena_kun Kuro3, o/ 09:06
Kuro3 hmm, is there a way to use committable6/bisectable6 with multiple files? may have found an obscure bug 09:08
AlexDaniel Kuro3: yes, just use github gists
Kuro3 ok thanks 09:09
AlexDaniel c: HEAD gist.github.com/AlexDaniel/7eeaaed...34b227ebb9 09:10
committable6 AlexDaniel, Using file “foo.p6” as a main file, other files are placed in “./sandbox”
AlexDaniel, ¦HEAD(2e60552): «42␤»
AlexDaniel Kuro3: ↑ example
Kuro3 ok thanks 09:12
Kuro3 c: HEAD gist.github.com/SuperKuro3/804bf0e...b7ba860843 09:20
committable6 Kuro3, It looks like a URL, but mime type is ‘text/html; charset=utf-8’ while I was expecting something with ‘text/plain’ or ‘perl’ in it. I can only understand raw links, sorry. 09:21
Kuro3 AlexDaniel: am I doing something wrong? 09:22
Kuro3 c: HEAD gist.github.com/SuperKuro3/804bf0e...b7ba860843 09:29
committable6 Kuro3, It looks like a URL, but mime type is ‘text/html; charset=utf-8’ while I was expecting something with ‘text/plain’ or ‘perl’ in it. I can only understand raw links, sorry.
AlexDaniel Kuro3: ah no, you're doing it right, it's just a bug… It fails to parse the url because you have a digit in your username
Kuro3 ah...
AlexDaniel let me just hit fork… 09:30
Kuro3 thanks
AlexDaniel c: HEAD gist.github.com/AlexDaniel/9d3e67e...922c41595b
committable6 AlexDaniel, Using file “foo.p6” as a main file, other files are placed in “./sandbox”
AlexDaniel, gist.github.com/379cf200839f342791...ace067dd7c
AlexDaniel sooo on all releases now?
c: 6c gist.github.com/AlexDaniel/9d3e67e...922c41595b 09:31
committable6 AlexDaniel, Using file “foo.p6” as a main file, other files are placed in “./sandbox”
AlexDaniel, gist.github.com/7dc2a5d8dbac978a24...c61e6c6fa9
AlexDaniel Kuro3: definitely looks like a bug but at least it's not a regression 09:32
Kuro3: will you submit a bug report?
Kuro3 The last modified time on the file I found that in, was Oct 2016 09:33
and it was working back then
If I inline that class into the main script, it works fine
but once in a separate module, I get that error now
AlexDaniel c: all gist.github.com/AlexDaniel/9d3e67e...922c41595b 09:34
committable6 AlexDaniel, Using file “foo.p6” as a main file, other files are placed in “./sandbox”
Kuro3 yeah I can submit a report 09:35
AlexDaniel Kuro3: it's possible it worked at some point, but back then I don't remember the state of precompilation…
committable6 AlexDaniel, gist.github.com/5fa12c1ac8f976cbb2...3b9c4b457c
AlexDaniel Kuro3: yeah, you're right, seems like it was fine in 2015.11 and before 09:36
can't tell for 2015.12 because it attempts to write into paths it's not supposed to touch 09:37
Kuro3 AlexDaniel: thanks for the help, bug report filed :) 10:07
AlexDaniel Kuro3: hmm we can actually make the output clearer if we remove the use of unicode quotes
c: all gist.github.com/AlexDaniel/9d3e67e...922c41595b
committable6 AlexDaniel, Using file “foo.p6” as a main file, other files are placed in “./sandbox”
AlexDaniel, gist.github.com/bbaf0836ccacf70cb5...eeac81ed57 10:08
Kuro3 heh, I copied that stub from you and didn't even noticed the unicode quotes...
Kuro3 ah, beat me to editing in the new links 10:10
thanks
AlexDaniel Kuro3: thank you for the bug report!
Kuro3 np
AlexDaniel Kuro3: generally, I'm not sure what the meaning of a constant channel is 10:10
Kuro3 honestly, I can't really remember 10:11
AlexDaniel Kuro3: so maybe you shouldn't be doing that in the first place, but the current failure mode is bad anyways
Kuro3 I haven't had the time to do any programming for the past couple years 10:12
but with what's going on in the world right now, I've found a bunch of free time
AlexDaniel that's good, I guess! :)
Kuro3 didn't even know about the renaming until yesterday!
things have come a long way over the past few years as far as optimizations and new community modules :D 10:13
AlexDaniel Kuro3: very often `constant` works as a footgun, in fact it's the first documented trap: docs.raku.org/language/traps#Const...mpile_time 10:14
a constant channel should probably work, I guess, but it's still weird 10:15
Kuro3 I think, though may be mistaken, that it was used here as a way to have a single channel shared between all instances of this class 10:17
AlexDaniel m: class Foo { my $c = Channel.new; method c() { $c } }; say Foo.new.c.WHERE; say Foo.new.c.WHERE 10:18
camelia 140120170933456
140120170933456
AlexDaniel Kuro3: ↑ it doesn't have to be a constant :) 10:19
Kuro3 ahh, using my instead of has 10:20
aha, I think I just found the piece of example code where I got the idea of using constant Channel from 10:27
github.com/raku-community-modules/...ash-bot.p6
not sure why he was using constant there, but I was using a Channel in a similar way so I just followed his example 10:28
AlexDaniel Kuro3: from what I remmember, this was before Zoffix got bit by `constant` :) 10:42
Kuro3: that trap section was added by Zoffix too: github.com/Raku/doc/commit/bcbef20...2f56badf0c 10:43
cpan-raku New module released to CPAN! Text::Utils (2.1.1) by 03TBROWDER 11:05
Geth_ ¦ problem-solving: JJ assigned to jnthn Issue Redesign Exceptions for subclassing github.com/Raku/problem-solving/issues/173 12:19
Altreus I think I have a race condition centred around this github.com/shuppet/p6-api-discord/...n.pm6#L239 13:40
It doesn't seem to actually complete
But it occurs to me that it could take a non-negligible amount of time to complete even if I could figure out why
So I also have an issue where my websocket never actually closes
:)
The race condition comes in here: github.com/shuppet/p6-api-discord/...n.pm6#L169 13:41
Until the websocket is actually closed, things continue to happen
Altreus I suppose I should just have my own closer promise instead of that one 13:42
Altreus oh it's time to brave the supermarket again 13:42
melezhik Hi! RakuDist now has a simple UI to see recent tests and some help how to run tests. repo.westus.cloudapp.azure.com/rakudist 16:00
if one need any help with with . please let me know. thanks
melezhik I just added links to github.com/rakudo/rakudo/commit/ 16:16
wildtrees p6: (^3).&(-> $x {$x X~ ^3}) 17:12
camelia ( no output )
wildtrees p6: say (^3).&(-> $x {$x X~ ^3})
camelia (0 1 20 0 1 21 0 1 22)
wildtrees p6: say (^3).&({$_ X~ ^3}) #this works better, whats going on? 17:13
camelia (00 01 02 10 11 12 20 21 22)
jnthn The topic $_ gets bound, while a scalar parameter $x will act as an item 17:17
p6: say (^3).&(-> \x {x X~ ^3})
camelia (00 01 02 10 11 12 20 21 22)
jnthn p6: say (^3).&(-> @x {@x X~ ^3})
camelia (00 01 02 10 11 12 20 21 22)
wildtrees oops :) so @ makes my problem go away , thanks jnthn 17:22
chloekek p6: say (^3).&({ @^x X~ ^3 }) 18:03
camelia (00 01 02 10 11 12 20 21 22)
chloekek p6: multi f(Str:D $x) { }; multi f(Int:D $x) { }; f('/etc/nothing'.IO.slurp) 18:13
camelia Earlier failures:
(HANDLED) Failed to open file /etc/nothing: No such file or directory
in block <unit> at <tmp> line 1

Final error:
Cannot resolve caller f(Failure:U); none of these signatures match:
(Str:D $x)
(Int:D $x)…
rakuukar raku -e 'sub x{ print "xxxx"} ; my $a = "x"; &$a' # it doesn't work. How can an I do such call ? 18:21
moritz m: sub x { say 'xxx' }; my $a = 'x'; say &::($a); 18:29
camelia &x
moritz rakuukar: ^^ see above, &::( $name ) does a run-time lookup in the lexical pad 18:29
thundergnat m: sub x { print "xxxx"} ; my $a = &x(); &$a 18:30
camelia xxxx
chloekek Why does DBIish SQLite append .sqlite3 to the database name? 19:05
I know the workaround, but not the reasoning. 19:06
Because IME, every time a library is wrapped, and the wrapper gives “it’s own twist” to the API, that is going to cause confusion. 19:10
lizmat And another Rakudo Weekly News hits the Net: rakudoweekly.blog/2020/04/06/2020-...spectives/ 19:12
MasterDuke lizmat: looks like you missed guifa's binary grammar musing? 19:14
lizmat MasterDuke: looks like it? is it posted somewhere? 19:15
MasterDuke gist.github.com/alabamenhu/2fec7a8...4a2ae2f04d
lizmat I'm not omniscient :-(
MasterDuke it was also posted to the FB group 19:16
lizmat: pretty hard to fault you for that...
lizmat I don't do FB :-(
weekly: grammar proposal by guifa gist.github.com/alabamenhu/2fec7a8...4a2ae2f04d 19:17
notable6 lizmat, Noted! (weekly)
chloekek So I just discovered CRAI hadn’t been downloading new versions of packages due to a bug. The bug: the line that called the function that did all the downloading was accidentally removed from MAIN half a year ago. 19:18
guifa lizmat: I posted it in here it was late at night for your side of the Atlantic 19:19
(that’s also what the custom declarator question on SO is about, btw)
lizmat please either Tweet about it with #rakulang, or do a weekly: here 19:20
that would make it easier for me :-)
guifa lizmat++ I didn’t want to spam the weekly. It was a quick proposal but I’ve been slowly fleshing it out more so maybe it’s worth the extra eyes
lizmat can you tweet about it? then I can retweet... or I can tweet on your behalf 19:21
guifa: it wouldn't be spam, it would be welcome content!
guifa I don’t have twitter :-( but feel free to tweet on my behalf. I actually just made the gist public a few hours ago 19:22
lizmat okido
should I use guifa or alabamenhu or another name for you ?
guifa haha
um… I really do go by too many names at this point, don’t I?
lizmat well... I don't have an opinion on that... just what you would like me to call you in the tweet :-) 19:23
guifa Probably guifa, it’s the one I’ve used more often. But someone grabbed it on github before I made an account booooo
lizmat I see... okido 19:24
twitter.com/liztormato/status/1247...4991588356 19:26
guifa lizmat++ 19:27
Geth_ doc/possessive-clitic-fixes: bd3c865319 | (Stoned Elipot)++ | doc/Type/Baggy.pod6
possessive clitic fixes
19:49
doc: stoned++ created pull request #3315:
possessive clitic fixes
synthmeat guifa: bit-banging network protocols via grammars could be interesting, :thumbsup: 20:07
guifa synthmeat: I have zero experience there. Is there much much split-byte work needed or does most stuff align with bytes? 20:13
sena_kun guifa, in binary protocols bit flags are rather common, if you ask me. 20:14
guifa sena_kun: that I imagined, but are things ever split across bytes? 20:15
e.g.
3 bit mask, 8 bit mask, 5 bit mask in that order? Or would they go more like 3 bit 5 bit 8 bit so that the 3 and 5 would be aligned to a byte?
sena_kun you mean something starts in a byte and ends in another? this one is uncommon
or, I am not aware of it
guifa sena_kun++ that’s the only thing I was really wondering about when writing the proposal 20:16
synthmeat yeah, i don't recall something like that either
sena_kun well, I am not really an expert, just kinda implemented ASN.1 BER once and it used bit flags a lot, but usually minimal processing unit is a byte. 20:17
while single "units" which carry data can contain arbitrary length (in bytes) of data 20:19
I'd say if you can implement TLV decoding you're pretty safe.
guifa If things are kept within a byte / word, then the & conjunction could handle things fairly nicely, or maybe that could be a condition of allowing a sub-byte capture (but the question with a subbyte capture would be if you should right align, e.g, (101)(00001), do you read 101 as 10100000 or 00000101?
sena_kun: then I think what I have as is (and even allowing capture only on byte/word levels) should be okay 20:20
I figure anything subbyte level could be done later, as I can catch it as a syntax error at the moment
sena_kun is ashamed of not reading the proposal itself yet
But I can say I certainly saw a proposal like this one much earlier. 20:21
guifa sena_kun: it’s long and rambly, no worries :-)
melezhik AlexDaniel: I have an error on whateverable rakudo on alpine 20:27
stderr: -bash: /tmp/whateverable/rakudo-moar/afff3b0b2ed78b2f146eca63f7e34d4472b3982e/bin/perl6: No such file or directory
repo.westus.cloudapp.azure.com/raku...203581.txt 20:28
any thoughts?
AlexDaniel melezhik: no idea. Did it successfully unpack the archive with zstd? 21:10
did it even download it?
melezhik yes 21:22
let me grap logs
gist.github.com/melezhik/4414c90d8...3165fb295e 21:24
melezhik AlexDaniel: it's quite interesting, but number of files and disk usage is just the same as for CentOS where everything works just fine 21:42
gist.github.com/melezhik/4414c90d8...nt-3243072
I doubt it's unpack problem
AlexDaniel melezhik: I don't get it. It says “No such file or directory” but the file is there?
melezhik yes - gist.github.com/melezhik/4414c90d8...e1-txt-L13 21:43
yes 21:44
gist.github.com/melezhik/4414c90d8...nt-3243076
AlexDaniel melezhik: my only guess is that your process is running with its own private /tmp
melezhik it does say that for other binary files
AlexDaniel otherwise how can you both have a file and not at the same time?
melezhik gist.github.com/melezhik/4414c90d8...nt-3243079 21:45
I don't know
what do you mean by "at the same time"? 21:46
" No such file or directory" does not necessarily mean that THIS file does exist
it could ambiguously complains this way that there is some other file is absent 21:47
but it's just my guess
AlexDaniel melezhik: the error message is complaining exactly about that file 21:49
which exists
could it be a permission issue?
melezhik I am checking ... so far it's really weird 21:52
ls -l /tmp/whateverable/rakudo-moar/afff3b0b2ed78b2f146eca63f7e34d4472b3982e/bin/perl6
-rwxr-xr-x 1 root root 14064 Apr 6 10:00 /tmp/whateverable/rakudo-moar/afff3b0b2ed78b2f146eca63f7e34d4472b3982e/bin/perl6
file /tmp/whateverable/rakudo-moar/afff3b0b2ed78b2f146eca63f7e34d4472b3982e/bin/perl6 21:53
gist.github.com/melezhik/4414c90d8...nt-3243091 21:54
maybe linking issue?
gist.github.com/melezhik/4414c90d8...nt-3243094 21:55
looks like that
Error relocating //tmp/whateverable/rakudo-moar/afff3b0b2ed78b2f146eca63f7e34d4472b3982e/lib/libmoar.so: gnu_get_libc_version: symbol
let me remove this dir and rerun test 21:56
MasterDuke is afff3b0b2ed78b2f146eca63f7e34d4472b3982e supposed to be the rakudo commit? 22:03
linkable6 (2020-04-06) github.com/rakudo/rakudo/commit/afff3b0b2e Make sure die_on_fail shows correct env variable name
MasterDuke heh, never mind, i was a couple commits behind 22:04
melezhik AlexDaniel: after rerun on fresh alpine docker I get the same LDD issue - gist.github.com/melezhik/4414c90d8...nt-3243153 22:46
Error relocating //tmp/whateverable/rakudo-moar/afff3b0b2ed78b2f146eca63f7e34d4472b3982e/lib/libmoar.so: gnu_get_libc_version: symbol not found 22:47
and so on
I can fill a ticket if you want ...
melezhik could an alpine related issue - www.google.com/search?q=gnu_get_li...p;ie=UTF-8 22:58
Xliff o/ 23:45
<-- Turned 49, today.
What's the best way to walk all exported symbols?
Xliff \o sena_kun 23:51
Given the following -> 'require ::($_ = "GStreamer::Raw::Types");'
How can I introspect the symbols exported by GStreamer::Raw::Types?