🦋 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
tbrowder .tell tony-o fez problem solved with "zef upgrade fez" 00:15
tellable6 tbrowder, I'll pass your message to tonyo
tonyo Thanks tbrowder, another update coming soon. I'm testing fez orgs out right now 00:22
tellable6 2021-12-04T17:25:58Z #raku <tbrowder> tonyo my fez user name was entered as tbrowder. new App::Mi6 expects it to be "zef:tbrowder". can i change it in the .fez-config.json file or do i have to start over with a new fez account, or should mi6 deal with it?
2021-12-04T23:37:42Z #raku <tbrowder> tonyo i need help with my fez issue #49. mi6 barfs on the "fez upload --file=Foo.tar.gz" part, and i don't understand yr readme on the tar issue.
tonyo .tell tbrowder I know you're all set but just for posterity, fez expects your meta auth to be `zef:tbrowder`. What's the error and what info were you looking for so I can make the readme better? 00:24
tellable6 tonyo, I'll pass your message to tbrowder
00:25 [Coke] left 00:28 Colt left, Colt joined, abraxxa-home left 00:53 monkey_ joined 01:05 reportable6 joined 01:43 ggoebel left 01:49 monkey_ left
tbrowder tony-o: it's working fine. i just had an old version. a Changes file would have helped see the fix. 02:11
tellable6 2021-12-06T00:24:42Z #raku <tonyo> tbrowder I know you're all set but just for posterity, fez expects your meta auth to be `zef:tbrowder`. What's the error and what info were you looking for so I can make the readme better?
02:49 evalable6 left, linkable6 left 02:50 evalable6 joined 03:21 euandreh left 03:22 euandreh joined 04:22 shareable6 left, nativecallable6 left, sourceable6 left, quotable6 left, greppable6 left, benchable6 left, evalable6 left, bloatable6 left, notable6 left, bisectable6 left, unicodable6 left, squashable6 left, reportable6 left, committable6 left, statisfiable6 left, releasable6 left, tellable6 left, coverable6 left, bloatable6 joined, nativecallable6 joined, coverable6 joined, bisectable6 joined, releasable6 joined 04:23 unicodable6 joined 04:24 sourceable6 joined, shareable6 joined 04:25 committable6 joined 04:40 Flwyd joined 05:08 oodani left 05:09 oodani joined 05:10 frost joined 05:22 benchable6 joined 05:23 evalable6 joined 05:24 reportable6 joined, squashable6 joined 05:26 Manifest0 left, jjatria left, sjn left, tobs left, gugod left, ilogger2 left, squashable6 left, Flwyd left, euandreh left, Colt left, seednode left, qorg11 left, MasterDuke left, renormalist left, Summer left, gcd left, kybr left, sftp left, dogbert17 left, silug left, dmc00 left, ptc left, lucs left, tonyo left, pejayes left, thowe left, sivoais left, vrurg left, unicodable6 left, bisectable6 left, bloatable6 left, mtj left, summerisle left, jast left, Ulti left, avuserow left, goblin left, mjgardner left, skaji left, tbrowder left, rjbs left, SmokeMachine left, peder left, hexology left, corwin left, jercos left, BinGOs left, jcallen left, ugexe left, GreaseMonkey left, happy-dude left, _________ left, Altreus left, leedo left, dpk left, synthmeat left, timo left, pjlsergeant left, mykhal left, ingy left, andrea[m] left, demostanis[m] left, casaca left, sena_kun left, sienet_ja_LSD[m] left, phogg left, Tirifto left, Util_ left, nine left, AlexDaniel left, Maylay left, bdju left, moritz_ left, broquain1 left, xkr47 left, codesections left, mathias[m]12 left, DarthGandalf left, chronon left, Arathorn left, CIAvash left, merryprog left, Voldenet left, JRaspass left, pierrot left, Juerd left, polettix left, El_Che left, charsbar left, jdv left, masak_ left, jrjsmrtn left, Od1n left, kawaii_ left, rypervenche left, samcv left, samebchase left, elcaro left, dg left, Grrrr left, wanko left, tejr left 05:27 reportable6 joined, evalable6 joined, benchable6 joined, frost joined, oodani joined, committable6 joined, shareable6 joined, sourceable6 joined, releasable6 joined, coverable6 joined, nativecallable6 joined, TempIRCLogger joined, RakuIRCLogger joined, Geth joined, discord-raku-bot joined, Sgeo joined, vasko joined, avar joined, Woodi joined, djerius joined, vodkra joined, Zero_Dogg joined, gabiruh joined, ProperNoun joined, japhb joined, simcop2387 joined, perlbot joined, Oshawott joined, swaggboi joined, gordonfish joined, gfldex joined, eseyman joined, lizmat joined, moon-child joined, maettu joined, daxim joined, colemanx joined, jmcgnh joined, bartolin joined, markmarkmark joined, amenonsen joined, andinus joined, perlmaros joined, a3r0 joined, merpaderp joined, patterner_ joined, Kaiepi joined, greyrat_ joined, camelia joined, ecocode__ joined, zostay joined, leont joined, PotatoGim joined, Ekho joined, dustinm` joined, dcx joined, KotH joined, leah2 joined, Scotteh joined, rba joined, ecocode joined, Henry151 joined, spacekookie joined, esh joined, tinita joined 05:28 squashable6 joined, Flwyd joined, unicodable6 joined, bisectable6 joined, bloatable6 joined, euandreh joined, Colt joined, mathias[m]12 joined, silug joined, seednode joined, dmc00 joined, tejr joined, ptc joined, Manifest0 joined, sienet_ja_LSD[m] joined, qorg11 joined, MasterDuke joined, renormalist joined, DarthGandalf joined, mtj joined, Summer joined, lucs joined, dogbert17 joined, hexology joined, gcd joined, kybr joined, tonyo joined, sftp joined, pejayes joined, chronon joined, thowe joined, Altreus joined, leedo joined, jjatria joined, summerisle joined, tobs joined, sivoais joined, dpk joined, sjn joined, vrurg joined, Arathorn joined, synthmeat joined, jrjsmrtn joined, timo joined, pjlsergeant joined, mykhal joined, jast joined, JRaspass joined, phogg joined, Tirifto joined, Util_ joined, BinGOs joined, El_Che joined, Ulti joined, avuserow joined, nine joined, Od1n joined, kawaii_ joined, goblin joined, rypervenche joined, mjgardner joined, skaji joined, tbrowder joined, rjbs joined, SmokeMachine joined, peder joined, ingy joined, pierrot joined, corwin joined, jcallen joined, ugexe joined, GreaseMonkey joined, jercos joined, samcv joined, happy-dude joined, AlexDaniel joined, Maylay joined, bdju joined, andrea[m] joined, demostanis[m] joined, CIAvash joined, _________ joined, gugod joined, ilogger2 joined, samebchase joined, casaca joined, moritz_ joined, broquain1 joined, xkr47 joined, sena_kun joined, codesections joined, merryprog joined, Voldenet joined, Juerd joined, polettix joined, charsbar joined, jdv joined, masak_ joined, elcaro joined, dg joined, Grrrr joined, wanko joined, jmcgnh left, dmc00 left 05:29 jmcgnh joined 05:30 Colt left, gordonfish left, Colt joined 05:31 gordonfish joined 05:37 El_Che left, charsbar left, jdv left, masak_ left, masak joined, jdv joined, El_Che joined, charsbar joined 05:38 gordonfish- joined 05:40 gordonfish left 05:50 jrjsmrtn left, Od1n left, kawaii_ left, rypervenche left, samcv left, samebchase left, elcaro left, dg left, Grrrr left, wanko left, wanko joined, elcaro joined, dg joined, Grrrr joined, rypervenche joined, Od1n joined, kawaii_ joined 05:51 rypervenche left, rypervenche joined, jrjsmrtn joined, samcv joined, solitario joined 06:02 reportable6 left 06:05 slowtyper joined 06:23 nebuchadnezzar joined, quotable6 joined, tellable6 joined 06:50 linkable6 joined 07:27 seednode left 07:28 seednode joined 07:38 dmc00 joined 07:51 jjido joined 07:53 abraxxa-home joined 07:55 abraxxa joined 07:59 abraxxa left 08:00 abraxxa joined 08:04 riffraff joined
riffraff Hey everyone, I'm trying to build a Hash with defaults starting from a list. I can use BagHash to do a tally/count of the various things, but I can't see how to also set a default value, any clues? 08:07
I.e. I do 08:08
my @list = [1,2,2,3,3,3,4]
my %h = bag @list
%h{2} # 2
%h{99} #raku I want a zero here, but I get (Any)
08:12 merpaderp left, merpaderp joined
riffraff ah it seems 08:15
my Int %h{Int} = bag a
works :)
ah no, still unininitialized:( 08:19
moritz_ m: my %h is default(0); say %h{42}
camelia 0
moon-child m: my Int:D() %h; say %h{99} #whyn't? 08:20
camelia (Int)
08:24 notable6 joined
moritz_ I guess coercions to smily'ed types aren't implemented 08:32
riffraff thanks moritz_ ! Now I think  I may have found a bug: clone'ing does not carry over the default. But I am not sure if its supposed to :) 08:38
m: my %h is default(0); my %h2 = %h.clone; say %h2{99}
camelia (Any)
SmokeMachine m: my @list = 1,2,2,3,3,3,4; my %h := bag @list; say %h{2}; say %h{99} 08:39
camelia 2
0
moritz_ m: my %h is default(0); my %h2 := %h.clone; say %h2{99} 08:40
camelia 0
moritz_ riffraff: ^^ it's not the cloning that loses the default, it's the assigment. Using binding instead to avoid the assignment
SmokeMachine riffraff: when you do %h = bag @list, you are giving a bag to a hash, to make %h a bag, use := or my %h is Bag 08:41
riffraff ah-ha, that makes sense, thanks again
08:42 Sgeo left
SmokeMachine m: my @list = 1,2,2,3,3,3,4; my %h is Bag = |@list; say %h{2}; say %h{99} 08:42
camelia 2
0
riffraff ah that is also nice, so my problem was self-inflicted because I was casting the Bag into a Hash to begin with, right? 08:59
ops, I realize now I should have been in #raku-beginner sorry for the noise :(
09:04 reportable6 joined 09:13 dakkar joined
nine didn't know that there was a raku-beginner channel 09:19
09:45 Skarsnik_ joined 09:50 Zero_Dogg left 10:22 statisfiable6 joined 10:34 Zero_Dogg joined 10:35 ggoebel joined 10:58 atroxaper joined
atroxaper Hello, #raku 10:58
tellable6 2021-12-05T20:52:37Z #raku <MasterDuke> atroxaper gist.github.com/MasterDuke17/b9ff1...a70ef2eca7 is a lightly edited version, it really didn't need a whole lot
atroxaper .tell MasterDuke Many-many thanks to you! You've helped me a lot. I've already add the article to the advent list. 10:59
tellable6 atroxaper, I'll pass your message to MasterDuke
11:01 riffraff left 11:02 riffraff joined
Nemokosch hello hello 11:07
is there a detailed description of list comprehensions somewhere?
11:11 riffraff left, riffraff joined 11:15 riffraff left 11:16 Altai-man joined 11:23 jjido left 11:24 atroxaper left 11:40 riffraff joined 11:42 tejr left 11:43 tejr joined 12:02 reportable6 left 12:05 Skarsnik_ left
tbrowder tonyo: you here? 12:44
frost m: "/dev/urandom".IO.open.read(5).read-ubits(0, 5*8) 12:48
camelia ( no output )
frost m: say "/dev/urandom".IO.open.read(5).read-ubits(0, 5*8) 12:49
camelia 307861414805
frost m: say "/dev/urandom".IO.open.read(5).read-ubits(0, 5*8), ' ', now - INIT now
camelia 442574743393 0.007803579
tbrowder info for Raku module authors: i just published two of mine on the recommended Zef repo using mi6. it works great if you prep your module repo to change it from cpan to zef properly (and it's easy to do). 12:55
lizmat and others have started the move already. mi6 (v2.0.1+) is fully able to greatly assist in the effort--check it out! 12:56
13:04 atroxaper joined 13:05 reportable6 joined 13:10 jjido joined 13:15 Zero_Dogg left 13:54 frost left 13:59 Zero_Dogg joined 14:00 atroxaper left
ggoebel still trying to grok Str ranges and how raku does incrementing using character classes... 14:11
m: ("aa".."bb")>>.say
camelia aa
ab
ba
bb
ggoebel m: ("ab".."ba")>>.say
camelia ab
aa
bb
ba
ggoebel why isn't the later «ab␤ba␤»? 14:12
m: "ab".succ.say 14:14
camelia ac
lizmat TimToady knows
14:14 dextercd joined
ggoebel m: ("bb".."aa")>>.say 14:22
camelia ( no output )
ggoebel m: ("bb"..."aa")>>.say
camelia bb
ba
ab
aa
ggoebel m: ("ab".."ba")>>.say
camelia ab
aa
bb
ba
ggoebel m: ("ab"..."ba")>>.say
camelia ab
aa
bb
ba
14:22 greppable6 joined 14:25 atroxaper joined
atroxaper ggoebel: hyper operations can be done in concurrent way. 14:27
ggoebel m: ("aa".."bb").flat.say 14:28
camelia (aa ab ba bb)
ggoebel m: ("ab".."ba").flat.say
camelia (ab aa bb ba)
14:30 Sgeo joined
ggoebel atroxaper: regarding hyper ops... "methods can be called in an out of order, concurrent fashion. The resulting list will be in order." 14:30
El_Che I wonder if the intellij plans around Fleet will impact Comma IDE 14:31
atroxaper ggoebel: .say do not have a result in you case. Only the side effect. My point was for sure.
El_Che: Which for example? 14:32
El_Che as I understand it, Fleet is not based on the Intellij framework but it's reqrite 14:33
14:35 Zero_Dogg left
El_Che w 14:39
atroxaper El_Che: Fleet do not require IntelliJ. Fleet uses a common code base of IntelliJ. 14:41
14:44 A26F64 joined
Altai-man El_Che, don't take it as an official opinion or anything, but I don't see any ways for it to cause any impact on Comma so far. 14:45
tellable6 2021-12-03T18:18:02Z #raku <SmokeMachine> Altai-man yes, that makes sense, thanks
tbrowder m: say "12".succ 14:50
camelia 13
15:00 riffraff left, riffraff joined 15:18 Zero_Dogg joined 15:21 riffraff left, riffraff joined 15:25 riffraff left 15:36 abraxxa left 15:37 abraxxa joined 15:44 monkey_ joined 15:45 [Coke] joined
El_Che atroxaper: I understood Fleet was written in Kotlyn and Rust 15:46
atroxaper El_Che: yes. 15:48
japhb El_Che: Do you have a link to the announcement or article or what have you? 15:52
15:55 riffraff joined
El_Che japhb: blog.jetbrains.com/blog/2021/11/29...-to-fleet/ 16:03
japhb: there was a comment by a fleet dev with the kotlyn+rust info, but it looks it's gone
this one: blog.jetbrains.com/blog/2021/11/29...e157a8e7f4 16:06
although it's more about the ui
I wonder if it's kotlyn native or the jvm 16:07
the speed of opening a file hints native
atroxaper El_Che: native or jvm is only runtime thing. Fleet can be run on native or jvm either. No? 16:09
El_Che: and JB works a lot to speed up native, of course. 16:10
El_Che atroxaper: their target is inmediate startup, no way they can do that with the jvm 16:12
but you load the ide features by clicking a button (how lame is that???), so maybe they load the jvm then :) 16:13
atroxaper El_Che: IDE features appears in separate process, i think. Because they can appears on another machine. 16:20
El_Che I think so too 16:22
16:33 A26F64 left
El_Che anyway, what I wonder if it will replace intellij platform if it's a success 16:38
(and let's be honest, intellij is a great ide (I have ultimate) but the java only menus when programming in other languages are terrible) 16:39
if it would be easy to fix, they would have done so already
16:39 riffraff left, riffraff joined
[Coke] Someone offered to buy github.com/coke from me. 16:42
ggoebel m: my @a = (1,2); @a = @a.rotate; @a[0] += @a[1]; @a.raku.say 16:43
camelia [3, 1]
[Coke] They wanted to take over the account, not somehow have me release/transfer the nick, too.
ggoebel m: my @a = (1,2); @a[0] += (@a = @a.rotate)[1]; @a.raku.say
camelia [2, 1]
ggoebel why don't those two give the same output? 16:44
16:44 gordonfish- is now known as gordonfish
ggoebel Coke: if it is Coca Cola... maybe they'll make an offer you can't refuse :-) 16:46
[Coke] in the second case, the += is getting the original value before the rotate 16:47
ggoebel: some rando offerring 40USD.
I would totally have considered Coca Cola money. :)
ggoebel thx. another difference from Perl which surprised me... 16:50
[Coke] (to clarify, we're setting a0 in the rotated array to the 0-index of the original array plus the 1-index of the rotated array) 16:52
You can probaly verify that by looking at some AST output.
*probably
a0==0-index
ggoebel m: my @a = (1,2); @a[0] += (@a[0,1] = @a.rotate)[1]; @a.raku.say 16:59
camelia [3, 1]
ggoebel m: my @a = (1,2); @a[0] += (@a = @a.rotate)[1]; @a.raku.say 17:00
camelia [2, 1]
ggoebel hmm... not understanding why those are different either
[Coke] coding style aside (why would you not do the rotate first to avoid this?), I imagine you're referring directly to a[0] in the first one, and only @a as a whole in the second. You should definitely compare the --target=ast output to see what the code gen is doing in each case. 17:02
... I imagine "it's because" you're...
"raku --target=ast -e '...'" 17:03
ggoebel the code is just a golf of a problem I ran into when trying to collapse 2 loc into 1. Normally I write for readability, but this was for brevity.
will try that
17:07 azee joined 17:09 azee left 17:18 synthmeat left, synthmeat1 joined 17:22 djerius left, djerius joined 17:24 abraxxa left 17:30 riffraff left, riffraff joined 17:35 dakkar left 17:44 discord-raku-bot left 17:45 discord-raku-bot joined
tonyo tbrowder: i'm here now, what's up? 17:51
17:58 Flwyd left 18:02 reportable6 left
tbrowder i wanted you to know mi6 and fez are interoperating well. i am working on an advent article on moving mi6 modules from cpan mgmt to fez. you might want to use part of it for yr faq or readme when it's published. 18:08
tonyo: ^^^ 18:10
18:12 Altai-man left
tonyo danke, i'll add it to the FAQ 18:15
18:19 jjido left 18:27 patrickb joined 19:20 atroxaper left 19:22 melezhik joined
melezhik Sparky now has "watcher" mechanism allow to wait till asynchronous jobs are finished, here is an example - github.com/melezhik/sparrowdo/blob...tcher-jobs 19:22
interesting , do I need to sleep within supply block? or it will hold CPU does useless jobs, instead of doing something useful? I am not sure how supply works from this point of view ... The reason for sleep might be not to over stretch sparky web app ... 19:30
19:44 monkey_ left 20:03 riffraff left 20:04 riffraff joined 20:05 riffraff left, riffraff joined 20:06 melezhik left
tonyo melezhik: what do you mean sleep in supply block? why would you need to do that? 20:12
tellable6 tonyo, I'll pass your message to melezhik
20:14 monkey_ joined 20:20 Skarsnik_ joined
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2021/12/06/2021-...ing-is-on/ 20:41
merryprog the Net must have a lot of bruises after so many
20:43 melezhik joined
melezhik . 20:43
tellable6 2021-12-06T20:12:55Z #raku <tonyo> melezhik: what do you mean sleep in supply block? why would you need to do that?
melezhik tonyo I mean "The reason for sleep might be not to over stretch sparky web app, not to generate too many request ", from other hand it's a waste of CPU, right? 20:45
tonyo can you golf it? 20:48
gfldex lolibloggedalittle: gfldex.wordpress.com/2021/12/06/main-course/
vasko: ^^^ This is your fault! :->
lizmat gfldex: will be in the next weekly :-) 20:53
and /me has a comment about it on /r/rakulang 20:57
21:03 reportable6 joined 21:08 jgaz joined 21:10 melezhik left 21:33 jgaz left 21:41 Xliff joined 22:19 tbrowder left 22:21 riffraff left, riffraff joined 22:22 tbrowder joined 22:27 riffraff left 22:32 pamplemousse joined 22:36 abraxxa-home left 22:42 jjido joined 22:51 riffraff joined 22:52 riffraff joined 22:58 pamplemousse left 23:00 riffraff left 23:02 monkey_ left 23:09 Skarsnik_ left 23:13 riffraff joined 23:19 riffraff left 23:24 ProperNoun left, ProperN[out] joined 23:30 jjido left 23:32 riffraff joined 23:41 riffraff left