Raku Conference Day 2 on Youtube: www.youtube.com/watch?v=BL9-XdC9WYI 🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 14 August 2022.
00:07 reportable6 left 00:08 reportable6 joined 01:08 sourceable6 left, reportable6 left, squashable6 left, benchable6 left, shareable6 left, linkable6 left, greppable6 left, unicodable6 left, notable6 left, tellable6 left, coverable6 left, quotable6 left, nativecallable6 left, statisfiable6 left, releasable6 left, bisectable6 left, evalable6 left, committable6 left, bloatable6 left, unicodable6 joined, statisfiable6 joined, greppable6 joined 01:09 bisectable6 joined, committable6 joined, squashable6 joined, linkable6 joined, bloatable6 joined, reportable6 joined, shareable6 joined, releasable6 joined 01:10 tellable6 joined, nativecallable6 joined, notable6 joined, sourceable6 joined, quotable6 joined, benchable6 joined, evalable6 joined 01:11 coverable6 joined 01:30 m_athias left, nine_ left, nine joined 01:31 m_athias joined 01:43 frost joined 01:45 razetime joined 02:45 benchable6 left, bisectable6 left, committable6 left, squashable6 left, unicodable6 left, evalable6 left, releasable6 left, coverable6 left, reportable6 left, nativecallable6 left, notable6 left, linkable6 left, tellable6 left, sourceable6 left, quotable6 left, statisfiable6 left, greppable6 left, bloatable6 left, shareable6 left 02:46 statisfiable6 joined, squashable6 joined, shareable6 joined 02:47 linkable6 joined, notable6 joined, committable6 joined, unicodable6 joined, quotable6 joined, coverable6 joined, greppable6 joined 02:48 benchable6 joined, releasable6 joined, bloatable6 joined, bisectable6 joined, evalable6 joined, nativecallable6 joined, tellable6 joined, sourceable6 joined 02:49 reportable6 joined 02:55 Util_ left 03:02 bigdata joined 04:02 bisectable6 left, bloatable6 left, reportable6 left, quotable6 left, statisfiable6 left, greppable6 left, coverable6 left, linkable6 left, notable6 left, releasable6 left, tellable6 left, nativecallable6 left, committable6 left, benchable6 left, sourceable6 left, shareable6 left, evalable6 left, unicodable6 left, squashable6 left 04:03 benchable6 joined, bloatable6 joined, releasable6 joined, squashable6 joined, greppable6 joined, reportable6 joined, nativecallable6 joined 04:04 sourceable6 joined, coverable6 joined, evalable6 joined, linkable6 joined, shareable6 joined, quotable6 joined, unicodable6 joined, statisfiable6 joined, tellable6 joined, bisectable6 joined 04:05 committable6 joined, notable6 joined 05:05 quotable6 left, bisectable6 left, squashable6 left, nativecallable6 left, sourceable6 left, benchable6 left, tellable6 left, unicodable6 left, statisfiable6 left, notable6 left, evalable6 left, greppable6 left, committable6 left, coverable6 left, bloatable6 left, shareable6 left, linkable6 left, releasable6 left, statisfiable6 joined, shareable6 joined 05:06 squashable6 joined, bloatable6 joined, notable6 joined 05:07 evalable6 joined, committable6 joined, sourceable6 joined, greppable6 joined, nativecallable6 joined, releasable6 joined, unicodable6 joined, benchable6 joined, bisectable6 joined 05:08 coverable6 joined, quotable6 joined, tellable6 joined, linkable6 joined 05:30 Util joined 05:38 vrurg_ joined, vrurg left 06:06 reportable6 left 06:08 reportable6 joined 06:37 MoC joined 07:25 Sgeo left
Nemokosch For the first time in my life, I feel I found a use for "scalar is one-element array" 😄 07:42
07:58 axmed99 joined 08:06 lizmat_ left, lizmat joined 08:28 discord-raku-bot left, discord-raku-bot joined 09:00 elcar0[m] left 09:53 jaguart joined 10:21 linkable6 left, linkable6 joined 11:21 Kaiepi joined 11:24 Kaipei left 11:25 axmed99 left
gfldex I just wrote `LAST say (ENTER ++$), ‘ rounds’;` and I liked it. 11:27
12:06 reportable6 left 12:08 reportable6 joined 12:33 raiph joined, raiph left 12:54 frost left 13:15 Kaiepi left 13:18 RakuIRCLogger left, lizmat left 13:19 Geth left 13:20 lizmat joined 13:21 Geth joined
tbrowder tonyo: i'm having trouble github testing with a module using Text::CSV::LibCSV. it tests fine locally on my debian box. mine uses mi6's workflow with the following line added to test.yml: "run: sudo apt-get install -y libcsv-dev" 13:24
can you trigger yr mod to see if it still tests ok on github? 13:25
thanks 13:26
13:32 vrurg_ left 13:33 vrurg joined 13:50 Kaiepi joined
p6steve nemokosch - do share the use case for Scalar is a one element array 14:11
14:11 raiph joined 14:14 rbt joined 14:23 rbt left 14:25 HvszrStykp joined 14:31 bigdata left
Nemokosch I needed to write a function that can operate both on an element type and a list of that type 14:31
I can use the same for on decont data if it's the supposed list, or the scalar data if it's an element 14:32
Not having to worry that the element might be a list itself 14:34
14:43 Sgeo joined 14:58 raiph left 15:30 squashable6 left 15:32 squashable6 joined 15:33 raiph joined
tonyo tbrowder: just an empty CI build? 16:22
tbrowder hi! trying to debug now. i’m trying to convert yr module to github testing with workflows 16:24
in the past i haven’t used yr mod with a published module so haven’t had a problem 16:25
now i want to use it with two new modules 16:26
so i need it to work with .github 16:27
tonyo oh nice, you want me to kick off an empty CI build for that repo to make sure it's still OK?
tbrowder i don’t know anything about circleci 16:28
16:28 tailgate left, JRaspass left, El_Che left, daxim left, avar left, tbrowder left, El_Che joined, avar joined, JRaspass joined, tbrowder joined, daxim joined 16:29 tailgate joined
tbrowder i thought we were getting away from travis and the other non-github testers 16:29
raiph anyone know bisectable6?
tbrowder tonyo: yes, pls 16:30
raiph if so, can one use it to test a MAIN which needs some stdin?
tbrowder i know you need to chg c code to (int options) to remove a compiler warning 16:31
i also chgd Build.pm to Build.rakumod 16:34
leont m: class Value { method COERCE() { Value } }; multi foo(Hash:D) {}; multi foo(Value(Any:D)) {}; foo({ :foo }) 16:48
camelia Ambiguous call to 'foo(Hash)'; these signatures all match:
(Hash:D $)
(Value(Any:D) $)
in block <unit> at <tmp> line 1
leont That is a bug, right?
Clearly the hash should dispatch to the hash multi
[Coke] doesn't think he's ever seen "Value" before. 16:54
... oh, because it's defined right there. :)
tonyo tbrowder: will do, cannot at the moment 17:03
17:29 evalable6 left, linkable6 left 17:30 razetime left 17:31 linkable6 joined 17:32 evalable6 joined, melezhik joined 18:06 reportable6 left 18:07 p6steve joined
p6steve m: sub fn($x) {say $x.first}; my $a = 42; fn($a); my @b = 1,2,3; fn(@b); 18:07
camelia 42
p6steve nemokosch: I imagine something like this ... interesting 18:08
tellable6 p6steve, I'll pass your message to Nemokosch
18:09 reportable6 joined 18:12 jgaz joined
tbrowder .tell tonyo no rush, i'm working now on a PR for Text::CSV::LibCSV to use github workflows 18:14
tellable6 tbrowder, I'll pass your message to tonyo
guifa I feel like i remember someone asking this a few days ago 18:17
Let's say I want arguments for MAIN() to be a literal string starting with a hyphen ... how can?
18:23 raiph left
lizmat raku -e '@*ARGS.unshift("--"); sub MAIN(|c) { dd c }' --foo 18:25
guifa ^^
guifa Okay that works but … how LOL 18:27
lizmat any arguments after a -- are not interpreted in any way
guifa Yeah, I just thought that @*ARGS represented the arguments 18:28
so if you did @*ARGS.unshift('foo'), it would ignore things beginning with foo? 18:29
raku -e '@*ARGS.unshift("foo"); sub MAIN(|c) { dd c }' foo
lizmat no
no, the unshift just makes it look like: 18:30
raku -e 'sub MAIN(|c) { dd c }' -- --foo
guifa is making an interface where -z is "don't include z as a possibility" and +z is "require z in output" in a generator 18:35
Voldenet why not –include-z –exclude-z 18:51
guifa because takes too long to type ha
it's a password generator
pwgen 16 -s +uln 18:52
"generate a 16 digit passsword, don't use symbols, but must include upper, lower, and numbers"
Voldenet too long? My solution is `cat /dev/random | tr -dc '[:alpha:]' | head -c8 | add-password [email@hidden.address]
too long? My solution is `cat /dev/random | tr -dc '[:alpha:]' | head -c8 | add-password site@whatever.com'
now that's too long to type :D 18:53
guifa hahaha
tonyo don't you get that for free with the bool type?
tellable6 2022-09-02T18:14:25Z #raku <tbrowder> tonyo no rush, i'm working now on a PR for Text::CSV::LibCSV to use github workflows
guifa I'm pretty sure that's what Firefox does — but it's alpha only which is annoying when sites require numbers or symbols. 18:54
Voldenet I wish you could create accounts just by sending properly formatted email
tonyo raku -e 'sub MAIN(Bool :$z = False) { dd $z; };' -z # true 18:55
raku -e 'sub MAIN(Bool :$z = False) { dd $z; };' -/z # false
Voldenet (I wonder why people insist on sending verification emails when they could receive the verificatione mail) 18:56
19:06 melezhik left 19:09 squashable6 left 19:12 squashable6 joined 19:28 raiph joined 19:29 jgaz left 19:37 raiph left 19:50 ToddAndMargo joined
ToddAndMargo Found something interesting.  I have a `BEGIN {}` that I use for a splash screen.  `-c` executes the BEGIN {}, not just syntax check it.   This suppose to happen? 19:52
Fedora 36
$ raku -c GetUpdates.pl6
Syntax OK
20:13 jaguart left
Voldenet ToddAndMargo: BEGIN blocks run at compile time by design, so yes 20:18
it's a gift and a curse I suppose
You could use environment variable or argument to silence it 20:20
guifa You may want INIT instead of BEGIN — INIT runs at script execution, rather than compile 20:24
Voldenet guifa: the problem was that compilation took too long 20:27
over 20s iirc
and splash screen has to show up for those 20s
It could be solved by having script spawn splash screen and pass its handle/id/whatever to the "real" script that takes longer to run 20:29
Which wouldn't be as cool as using BEGIN, but more predictable
20:33 jgaz joined
ToddAndMargo Oh I do not mind it.  I was just perplexed by it.   I do typically run -c before to catch all my stinkin' typos before I run the program itself.  and the programs works the way I want with the BEGIN as it is.   Thank you for the explanation and tips: "it's a gift and a curse I suppose" 20:48
21:01 melezhik joined 21:04 melezhik left
ToddAndMargo I make a call to zenity with an "okay" to dismiss the pop up.  I though that was sweet.  Sometimes splash screens can be annoying trying to work around them 21:13
21:19 jgaz left 21:45 MoC left 21:51 greaser|q left, greaser|q joined, greaser|q is now known as GreaseMonkey 22:18 Kaiepi left 22:19 Kaiepi joined 22:21 ToddAndMargo left 23:21 coverable6 left, tellable6 left, linkable6 left, statisfiable6 left, nativecallable6 left, unicodable6 left, quotable6 left, bloatable6 left, releasable6 left, notable6 left, sourceable6 left, committable6 left, squashable6 left, evalable6 left, shareable6 left, greppable6 left, benchable6 left, bisectable6 left, reportable6 left, committable6 joined, squashable6 joined, quotable6 joined, Kaiepi left, sourceable6 joined 23:22 notable6 joined, nativecallable6 joined, greppable6 joined, epony left 23:23 evalable6 joined, bloatable6 joined, linkable6 joined, reportable6 joined, shareable6 joined, bisectable6 joined, benchable6 joined, tellable6 joined 23:24 unicodable6 joined, coverable6 joined, statisfiable6 joined, releasable6 joined