šŸ¦‹ Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
00:02 reportable6 left 00:04 reportable6 joined 00:05 linkable6 joined 00:13 discord-raku-bot left 00:14 discord-raku-bot joined, discord-raku-bot left 00:15 discord-raku-bot left 00:16 discord-raku-bot joined 00:32 berber44 joined 00:46 berber44 left 00:56 Xliff left 01:56 linkable6 left, evalable6 left 01:57 evalable6 joined 02:00 euandreh left 02:14 ggoebel left 02:33 pony left, euandreh joined 02:34 pony joined 03:20 guifa left 03:45 pony left 03:46 pony joined 04:08 frost joined 04:31 ggoebel joined 04:56 linkable6 joined 05:00 ufobat joined 06:00 notable6 left, evalable6 left, bloatable6 left, linkable6 left, bisectable6 left, releasable6 left, coverable6 left, sourceable6 left, reportable6 left, statisfiable6 left, shareable6 left, nativecallable6 left, squashable6 left, unicodable6 left, benchable6 left, greppable6 left, committable6 left, quotable6 left, tellable6 left 06:01 releasable6 joined, anser joined, notable6 joined, nativecallable6 joined, unicodable6 joined, shareable6 joined 06:02 sourceable6 joined
mfiano Hi. Newbie here, trying to figure out some problem with the repl. 06:02
Works on 1 line, but not 2: i.lisp.cl/kpfZtk.png
06:03 squashable6 joined, benchable6 joined
elcaro The REPL doesn't play with some of the more dynamic features of Raku, particulary it doesn't work very well with new operators 06:07
unless it's all on one line, as you have found
mfiano Unfortunate 06:12
06:17 ufobat left 06:27 Sgeo_ left 07:01 tellable6 joined, linkable6 joined, committable6 joined
moon-child m: say &[-](5) 07:02
camelia 5
moon-child should ^^ not be -5?
07:03 bisectable6 joined
moon-child weirder is this 07:03
m: say <1 2 3>.map(&[-]); say <1 2 3>.map(&[~])
camelia (-1 3)
(1 2 3)
moon-child I understand each behaviour in isolation, but they seem inconsistent 07:04
gfldex m: say prefix:<->(5)
camelia -5
gfldex m: say infix:<->(5)
m: say infix:<->(5) 07:05
camelia 5
moon-child because: multi sub infix:<->($x = 0) { $x.Numeric }
gfldex &[-] defaults to infix by design 07:06
moon-child yes. The question is, why does infix - with one param not negate?
and given it does not, why does infix ~ with one param stringify?
gfldex Because, no matter the multicandidate, operators coerce and guarantee to return a specific type. 07:08
moon-child neither &infix:<->'s proto nor &infix:<~>'s guarantee a specific return type; so it is purely conventional 07:09
gfldex Roast demands them to. 07:10
moon-child that's fine, but I want to know why? 07:11
(also about the discrepancy between the map results)
gfldex Because Larry said so, basically. It is a fundamental design principle not to confuse humans with overloading the same operator over and over again. 07:12
If you see `~`, you know you gonna get a Str. 07:13
moon-child I mean, why does &[-](5) != -5?
gfldex Becaue [stuff] is a reduction operator and those are defined to take an infix as a function argument. 07:14
moon-child yes, the question is why does &infix:<-> not negate when called with one parameter?
gfldex Thus, even with higher order operator programming, you know what you gonna get. 07:15
07:21 clarjon_1 joined 07:22 Altai-man joined, goblin left, vasko8 joined 07:23 perlmaros_ joined, samcv joined 07:24 skaji_ joined, [Coke]_ joined, lucs_ joined 07:26 dac joined, eseyman_ joined, sftp_ joined 07:31 mjgardner left, vodkra left, juanfra left, bartolin_ joined, phogg joined, tejr left, TempIRCLogger left, RakuIRCLogger left, vasko left, eseyman left, clarjon1 left, skaji left, GreaseMonkey left, [Coke] left, sena_kun left, perlmaros_ is now known as perlmaros, vasko8 is now known as vasko, skaji_ is now known as skaji, sftp_ is now known as sftp 07:32 tejr joined 07:33 polettix joined 07:36 gugod joined, mtj joined 07:37 mjgardner joined, vodkra joined, juanfra joined 07:38 ufobat joined, Ekho joined 07:48 sena_kun joined 07:50 Altai-man left 07:53 TempIRCLogger joined 07:56 moon-child is now known as Mondenkind 08:01 quotable6 joined 08:03 greppable6 joined, statisfiable6 joined, evalable6 joined 08:18 tbrowder left, zostay left, tbrowder joined 08:19 rjbs left, Tirifto left 08:20 Tirifto joined 08:22 patterner_ left, pjlsergeant left, patterner_ joined, pjlsergeant joined 08:23 greyrat joined 08:24 lucerne joined 08:25 goblin joined 08:27 evalable6 left, statisfiable6 left, greppable6 left, quotable6 left, TempIRCLogger left, mjgardner left, vodkra left, juanfra left 08:33 zostay joined, rjbs joined, evalable6 joined, statisfiable6 joined, greppable6 joined, quotable6 joined, mjgardner joined, vodkra joined, juanfra joined 08:36 masak joined 08:43 dakkar joined 08:47 Henry151 joined 08:50 greaser|q joined, summerisle joined 08:51 Altreus joined 09:20 lichtkind joined, hkdtam joined 09:28 dakkar left 09:47 perlmaros left, perlmaros joined 09:59 juanfra left, happy-dude left, AlexDaniel left, CIAvash left, demostanis[m] left 10:02 coverable6 joined 10:03 juanfra joined 10:07 squashable6 left 10:10 squashable6 joined 10:23 CIAvash joined, happy-dude joined, AlexDaniel joined, demostanis[m] joined 10:28 Altai-man joined
CIAvash m: say &[~].candidatesĀ».arity; say &[-].candidatesĀ».arity 10:39
camelia (0 1 2 2 2 1 2 2 2 2 2 2 2 2 2 2 1 1 0)
(0 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2)
CIAvash I guess that's the reason for the discrepancy between the map results, `&[-]` doesn't have a candidate with arity 1 10:41
mfiano As a newbie I'm especially confused over why "[-] 42" is not -42 10:51
moritz_ m: say [-] 10, 2 10:52
camelia 8
mfiano Coming from a standardized language, it's hard for me to swallow "because the test suite mandates it" or "because Larry said so"
moritz_ why would [-] 42 be -42 but [-] 42, 0 be +42? 10:53
unary [-] is ambiguous, which is why it's not defined 10:54
mfiano How is it ambiguous? It is well defined in other languages, no?
moritz_ 12:53 < moritz_> why would [-] 42 be -42 but [-] 42, 0 be +42? 10:55
that's what I mean
mfiano I don't know what the latter even means 10:56
I am talking about unary
moritz_ but that's -42, not [-] 42
-42 is defined in raku
mfiano So you can't apply - to a single argument 10:57
moritz_ not if you use it as an infix operator, no
in -42, it's a prefix operator
mfiano how would you do so as a prefix operator without the literal -42?
10:57 immediate joined
mfiano say applying a variable only known at runtime to the - operator 10:58
moritz_ -$foo also uses the prefix operator 11:00
mfiano Ok, makes sense. 11:01
11:02 reportable6 joined
mfiano Sorry for the dumb questions. Coming from Lisp and this is all new to me. 11:02
moritz_ the infix operator is, by its nature, a binary operator -- it always stands between two terms
mfiano Thanks :)
moritz_ so if the operator is associative, it's easy to come up with a sensible degenerate case for just one argument
but both - and / are not associative (so a - (b - c) and (a - b) - c) are not the same), so such a reduction doesn't follow automatically 11:03
you're welcome
11:03 bloatable6 joined
mfiano Makes sense 11:03
11:12 pony left
Kaiepi releasable6, status 11:13
releasable6 Kaiepi, Next release in ā‰ˆ9 days and ā‰ˆ7 hours. 4 blockers. Changelog for this release was not started yet
tellable6 hey Kaiepi, you have a message: gist.github.com/86d02c0af6b5712db5...14574ac780
releasable6 Kaiepi, Details: gist.github.com/76876f8e0ca0fdbbf9...127580d5e8
11:15 pony joined 11:16 Xliff joined 11:22 pony left, Raycat|Home left 11:24 pony joined 11:33 pony left 11:35 pony joined 11:41 tejr left 11:42 tejr joined 11:51 lizmat_ joined, TempIRCLogger joined 11:52 squashable6 left, RakuIRCLogger joined 11:54 lizmat left 11:55 squashable6 joined 11:57 lizmat_ left, lizmat joined 12:02 reportable6 left 12:10 ggoebel left 12:20 tejr left 12:22 tejr joined 12:32 frost left 12:43 immediate left 12:49 pony left 12:52 hkdtam left 13:01 Oshawott joined 13:03 reportable6 joined 13:04 archenoth left 13:16 ircuser is now known as merpkaderp, merpkaderp is now known as merpaderp 13:23 Xliff_ joined 13:37 [Coke]_ is now known as [Coke] 13:59 ggoebel joined
[Coke] had a run() that I was then doing a .decode('utf8-c8') on the output of. Using Proc::Async, I want to use "whenever $proc.stdout.lines" - (from doc examples) - is there a similar need to manually decode? 14:06
(getting a different error at the moment, so not made it this far..)
14:17 anser left
[Coke] someone pointed out 'enc' parameter. Reading the docs explains the function. Thanks. 14:19
14:22 tejr left 14:23 tejr joined 14:24 Sgeo joined 14:25 Sgeo left 14:26 Sgeo joined
[Coke] should I be able to start two Proc::Async and have a react block following with 2 whenevers, once for each to get the lines, one for each to start? when I do that, one of the two doesn't seem to get trigger. 14:26
ah, I'm an idiot. Thanks. :) 14:29
14:31 ggoebel left
[Coke] (there was a done in both of the react blocks). If I wanted a single react block to handle both procs, not sure if/how I could do that. 14:31
I guess manually check for both on the done. 14:32
better. 14:36
14:45 ggoebel joined 14:49 perryprog left 14:50 perryprog joined 15:00 ggoebel left 15:12 melezhik joined
melezhik . 15:12
15:13 melezhik17 joined, melezhik left 15:14 melezhik17 is now known as melezhik
melezhik I have added a "share via tweet" link to project reviews page on mybfio 15:16
for convenience who use twitter
15:22 melezhik left 15:47 clarjon_1 is now known as clarjon1 15:48 clarjon1 left
tonyo [Coke]: raku.land/zef:tony-o/Event::Emitte...er-Process 15:53
err oops
15:57 dogbert17 left, melezhik joined
melezhik another interesting use for mybfio - people could announce new versions releases of their modules, by just adding a comment to a project reviews page 15:58
as the system will pop a project up to the top of the list upon this comment
so that users would quickly share their opinions on the new version, you don't even have to go long way of creating a new post on any social media ... just a thought ... 16:00
16:06 dogbert17 joined
colemanx An API would make that easier 16:27
that's tricky with OAuth services, though
melezhik eventually when/if I add oauth for twitter, it'd be even more easier to use "share via twitter" link, as a one is already authenticated in twitter ))) 16:32
16:36 ggoebel joined 16:37 [Coke]_ joined 16:39 [Coke] left 16:48 ggoebel left, ggoebel joined 16:49 perlbot left, simcop2387 left 16:57 Guest44 joined 16:58 Guest44 left 17:00 perlbot joined 17:02 simcop2387 joined 17:06 [Coke]_ is now known as [Coke] 17:09 simcop2387 left, perlbot left 17:18 lucs_ is now known as lucs 17:20 simcop2387 joined 17:21 bdju left 17:24 perlbot joined 17:27 ggoebel left 17:29 Sgeo_ joined 17:31 Sgeo left, Sgeo__ joined 17:34 Sgeo_ left 17:35 melezhik left 17:40 djerius_ joined, djerius left 17:45 djerius_ is now known as djerius 17:50 simcop2387 left 17:51 perlbot left 18:02 discord-raku-bot left, discord-raku-bot joined, simcop2387 joined, reportable6 left 18:04 perlbot joined 18:06 discord-raku-bot left 18:07 discord-raku-bot joined 18:11 vrurg left, gcd left 18:12 vrurg joined 18:17 vrurg left 18:54 Xliff left, bdju joined 19:04 reportable6 joined 19:05 Altai-man left 19:06 vrurg joined 19:35 Sgeo joined 19:38 Sgeo__ left 19:44 Sgeo left 19:46 Sgeo joined, melezhik joined
melezhik I have made a short review of mybf.io is someone is interested - dev.to/melezhik/mybfio-platform-fo...spect-2eom 19:46
Petr very useful 19:53
i cant find something like this year ago )) 20:07
20:16 berber44 joined
berber44 melezhik: very interesting. just be sure to add protection against spammers, otherwise they will flood your site with their advetisements and genuine reviews will be lost amidst their garbage 20:20
melezhik berber44 sure, thanks, I have already thought about ... however if spammers start get the site, this could be sort of sign of popularity , he-he, but yeah, fair point 20:27
Petr - thanks 20:28
berber44 a sort of defense right now, that only GH authenticated uses can do posts, so at least a spammer needs to have a GH account, so it could be tracked down ... 20:29
I also thought maybe I could add category "languages", add add Rakudo to, and then for every Rakudo release - a new release comment could be added , so that users can give feedback on new release ... anyway just a thought ... 20:31
21:01 Doc_Holliwould joined 21:02 ufobat left 21:11 linkable6 left
Petr right idea 21:18
where Raku search libs in Windows? 21:19
[Coke] C libs or raku libs? 21:26
21:27 greaser|q left, greaser|q joined, greaser|q is now known as GreaseMonkey
Petr Sorry, Raku libs 21:28
and C )) 21:29
21:29 melezhik left 22:09 pony joined, ggoebel joined 22:22 ggoebel left 22:28 djerius left 22:30 djerius joined 22:36 ggoebel joined 22:37 berber44 left 22:52 pierrot_ is now known as pierrot, pierrot is now known as info 22:53 info is now known as pierrot
tbrowder .tell melezhik a selection by language would be useful (don't forget Perl) 22:53
tellable6 tbrowder, I'll pass your message to melezhik
23:34 pony left 23:35 pony joined 23:36 lichtkind left