🦋 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 6 September 2022.
00:00 reportable6 left, reportable6 joined
Voldenet rf: I like the stash, but accessing it by string is not very great performance-wise 00:41
m: for ^100000 { my %h; %h<what> = 42; for ^100 { %h<what>++; }}; say now - BEGIN now
camelia 1.246504761
Voldenet m: my %x = :what(1); for ^100000 { my $n = %x<what>; my @h; @h[$n] = 42; for ^100 { @h[$n]++; }}; say now - BEGIN now
camelia 0.62027981
Voldenet using array for stash is massive performance boost
and lookup can be mapped into array's index just once 00:42
the "stash-item" -> "index" can be mapped only on middleware starting up and can use some global session for the stash
s/global session/global hashmap/ 00:43
rf Hmm, I want it to be fairly usable though 00:45
I think you would expect to get stuff from the stash with named keys rather than indices
Voldenet consider such syntax: `sub middleware-session($app) { my $session-stash = $app.reserve-stash<session>; sub aux() { $lock.protect({ $session-stash.rw = %sessions{$session-id} }) })` 00:47
it's even possible to still have the by-dictionary hash 00:48
rf Ah, nice.
Voldenet basically, the array could implement associative role in a way that would delegate things to a hash
but middlewares with reserved stash item index could use this performance trick 00:49
and use the array directly
but imo most middlewares wouldn't have problems reserving their own stashes first 00:50
and dict-stash would be pure overhead, since the stash entries are going to be relatively static
rf Thanks for this feedback I will play around with this idea 00:52
Voldenet hm, now that I think of it, the bigger problem is that hash keys are going to allocate themselves per request and might end up being bigger than data 00:53
especially if you store bools/ints in that stash
so it's good to not allocate them at all :) 00:55
01:00 linkable6 left, evalable6 left
Voldenet `sub middleware-session($app) { my \session-stash = $app.reserve-stash("session"); sub aux() { $lock.protect({ session($request) = %sessions{$session-id} }) })` 01:01
`sub middleware-session($app) { my \session = $app.reserve-stash("session"); sub aux() { $lock.protect({ session($request) = %sessions{$session-id} }) })`
01:01 evalable6 joined, linkable6 joined
Voldenet there's definitely too many possibilities in how this can be implemented 01:01
01:32 jpn joined 01:37 jpn left 01:42 Sauvin left 01:48 Sauvin joined 02:21 Sgeo left 02:24 Sgeo joined 02:28 razetime joined
MasterDuke does anyone here know the git diff implementation well enough to add a raku option to github.com/git/git/blob/master/userdiff.c ? would be very helpful 02:47
03:02 razetime left 03:08 razetime joined 03:11 MasterDuke left, derpydoo joined 03:20 jpn joined 03:25 jpn left 03:40 razetime left 03:48 MasterDuke joined 04:02 MasterDuke left, Sauvin left, seekr left, derpydoo left, exp left, _________ left, gordonfish left, perlmaros left, codesections left, eseyman left, xinming left, a3r0 left, japhb left, ingy left, Henry151 left, ab5tract left, cm left, destroycomputers left, Maylay left, tib left, peder left, sjn left, Ekho left, gabiruh_ left, perryprog left, synthmeat left, rf left, quotable6 left, squashable6 left, nativecallable6 left, committable6 left, unicodable6 left, ProperNoun left, hexology left, Woodi left, discord-raku-bot left, leah2 left, justache left, pejayes left, zups left, esh left, zostay left, rjbs left, patrickb left, summerisle left, swaggboi left, atweedie left, jcallen left, xkr47 left, camelia left, theesm left, mtj left, GreaseMonkey left, phogg left, Altreus left, dcx left, jast left, maettu left, leont left, SmokeMachine left, leedo left, moritz left 04:03 MasterDuke joined, derpydoo joined, Sauvin joined, seekr joined, rf joined, exp joined, patrickb joined, _________ joined, ingy joined, summerisle joined, swaggboi joined, atweedie joined, jcallen joined, Henry151 joined, gordonfish joined, perlmaros joined, ab5tract joined, codesections joined, quotable6 joined, squashable6 joined, nativecallable6 joined, committable6 joined, unicodable6 joined, eseyman joined, xinming joined, a3r0 joined, japhb joined, ProperNoun joined, cm joined, destroycomputers joined, synthmeat joined, perryprog joined, gabiruh_ joined, sjn joined, Ekho joined, justache joined, pejayes joined, leont joined, zups joined, esh joined, SmokeMachine joined, zostay joined, rjbs joined, leedo joined, moritz joined, simcop2387 left, nine left, El_Che left, nebuchadnezzar left, PotatoGim left, pjlsergeant__ left, elcaro left, clarkema left, rba left, justache left, hexology joined 04:04 simcop2387 joined, nine joined, El_Che joined, nebuchadnezzar joined, PotatoGim joined, pjlsergeant__ joined, elcaro joined, clarkema joined, rba joined, PotatoGim left, justache- joined, justache- left 04:06 tadzik left, Matthew|m left 04:07 PotatoGim joined 04:08 justache joined 04:09 PipStuart left, kawaii left, jetchisel left, Voldenet left, avar left, BinGOs left, aqua2 left, donpdonp- left, dg left, ugexe left, euandreh left, oodani left, dustinm` left, falsifian left, andinus left, PipStuart joined, kawaii joined, jetchisel joined, Voldenet joined, avar joined, BinGOs joined, aqua2 joined, donpdonp- joined, dg joined, ugexe joined, euandreh joined, falsifian joined, oodani joined, dustinm` joined, andinus joined
tonyo . 04:10
04:10 tonyo left, andinus joined, ilogger2 left, Scotteh left, sivoais left, jmcgnh left, corwin left, samebchase left, CIAvash left, charsbar left, mjgardner left, dpk left, dutchie left, tailgate left, BarrOff left, amenonsen left, JRaspass left, patterner_____ left, skaji left, Sevalecan left, tbrowder left, mst left, perlbot left, merp left, buffet left, heartburn left, thowe left, bdju left, evalable6 left, reportable6 left, jdv left, xelxebar left, gugod left, renormalist left, sourceable6 left, bisectable6 left, releasable6 left, bloatable6 left, statisfiable6 left, shareable6 left, benchable6 left, tellable6 left, human-blip left, Aedil left 04:11 gfldex left, tib_ is now known as tib, sftp left, samcv left, tinita left, bartolin_ left, tobs left, jjatria left, ecocode_ left, polettix_ left, Ulti_ left, nicole left, BarrOff joined, amenonsen joined, JRaspass joined, tonyo joined, ilogger2 joined, Scotteh joined, sivoais joined, jmcgnh joined, corwin joined, samebchase joined, charsbar joined, mjgardner joined, dpk joined, dutchie joined, tailgate joined, samebchase left, skaji joined, Sevalecan joined, tbrowder joined, mst joined, BarrOff left, PotatoGim left, Sgeo left, linkable6 left, pierrot left, daxim left, notable6 left, greppable6 left, coverable6 left, gcd left, DarthGandalf left, archenoth left, kjp left, silug8 left, patterner_____ joined, perlbot joined, merp joined, buffet joined, heartburn joined, thowe joined, bdju joined, bdju left, samebchase joined 04:12 bdju joined, PotatoGim joined, Sgeo joined, linkable6 joined, pierrot joined, daxim joined, notable6 joined, greppable6 joined, coverable6 joined, gcd joined, DarthGandalf joined, archenoth joined, kjp joined, silug8 joined 04:17 evalable6 joined, reportable6 joined, jdv joined, xelxebar joined, gugod joined, renormalist joined, sourceable6 joined, bisectable6 joined, releasable6 joined, bloatable6 joined, statisfiable6 joined, shareable6 joined, benchable6 joined, tellable6 joined, human-blip joined, Aedil joined, gfldex joined, sftp joined, samcv joined, tinita joined, bartolin_ joined, tobs joined, jjatria joined, ecocode_ joined, polettix_ joined, Ulti_ joined, nicole joined 04:18 squashable6 left 04:19 razetime joined 04:20 evalable6 left, reportable6 left, jdv left, xelxebar left, gugod left, renormalist left, sourceable6 left, bisectable6 left, releasable6 left, bloatable6 left, statisfiable6 left, shareable6 left, benchable6 left, tellable6 left, human-blip left, Aedil left, gfldex left, sftp left, samcv left, tinita left, bartolin_ left, tobs left, jjatria left, ecocode_ left, polettix_ left, Ulti_ left, nicole left, PotatoGim left, Sgeo left, linkable6 left, daxim left, pierrot left, notable6 left, greppable6 left, coverable6 left, gcd left, DarthGandalf left, archenoth left, kjp left, silug8 left, skaji left, Sevalecan left, tbrowder left, mst left, perlbot left, merp left, buffet left, heartburn left, thowe left, patterner_____ left, amenonsen left 04:21 squashable6 joined, JRaspass left, Scotteh left, sivoais left, jmcgnh left, corwin left, charsbar left, mjgardner left, dpk left, dutchie left, tailgate left, tonyo left, ilogger2 left, PipStuart left, kawaii left, jetchisel left, Voldenet left, avar left, BinGOs left, aqua2 left, donpdonp- left, dg left, ugexe left, euandreh left, oodani left, dustinm` left, falsifian left, andinus left, simcop2387 left, nine left, El_Che left, nebuchadnezzar left, pjlsergeant__ left, elcaro left, clarkema left, rba left, bdju left, samebchase left, hexology left, MasterDuke left, Sauvin left, seekr left, justache left, derpydoo left, exp left, _________ left, gordonfish left, perlmaros left, codesections left, eseyman left, xinming left, a3r0 left, japhb left, razetime left, ingy left, Henry151 left, ab5tract left, cm left, destroycomputers left, sjn left, Ekho left, gabiruh_ left, perryprog left, synthmeat left, rf left, quotable6 left, nativecallable6 left, committable6 left, unicodable6 left, ProperNoun left, pejayes left, zups left, esh left, zostay left, rjbs left, patrickb left, summerisle left, swaggboi left, atweedie left, jcallen left, leont left, SmokeMachine left, leedo left, moritz left, Geth left 04:23 RakuIRCLogger__ joined, goblin joined, snonux joined, tea3po joined, tejr joined, Manifest0 joined, vrurg joined, lizmat joined, Tirifto joined, lucs joined, [Coke] joined, shmup joined, sarna joined, coleman joined, kaskal joined, bd3i joined, avuserow joined, RakuIRCLogger joined, RakuIRCLogger left 04:24 goblin joined, snonux joined, tea3po joined, tejr joined, Manifest0 joined, vrurg joined, lizmat joined, Tirifto joined, lucs joined, [Coke] joined, shmup joined, sarna joined, coleman joined, kaskal joined, bd3i joined, avuserow joined, RakuIRCLogger joined, RakuIRCLogger left 04:34 evalable6 left, reportable6 left, jdv left, xelxebar left, gugod left, renormalist left, sourceable6 left, bisectable6 left, releasable6 left, bloatable6 left, statisfiable6 left, shareable6 left, benchable6 left, tellable6 left, human-blip left, Aedil left, gfldex left, sftp left, samcv left, tinita left, bartolin_ left, tobs left, jjatria left, ecocode_ left, polettix_ left, Ulti_ left, nicole left, Sussysham joined 04:36 evalable6 joined, reportable6 joined, jdv joined, xelxebar joined, gugod joined, renormalist joined, sourceable6 joined, bisectable6 joined, releasable6 joined, bloatable6 joined, statisfiable6 joined, shareable6 joined, benchable6 joined, tellable6 joined, human-blip joined, Aedil joined, gfldex joined, sftp joined, samcv joined, tinita joined, bartolin_ joined, tobs joined, jjatria joined, ecocode_ joined, polettix_ joined, Ulti_ joined, nicole joined, razetime left 04:39 xelxebar left, xelxebar joined, Sussysham left 04:41 Sussysham joined 04:52 Sussysham left 05:09 jpn joined 05:11 CIAvash joined, BarrOff joined 05:13 jpn left 05:18 jpn joined 05:19 Matthew|m joined 05:23 jpn left 05:51 derpydoo left 06:00 reportable6 left 06:02 reportable6 joined 06:21 tadzik joined 06:39 derpydoo joined 06:47 teatwo joined 06:50 tea3po left 07:00 jpn joined 07:02 codesections left 07:03 codesections joined 07:07 jpn left 07:46 Sussysham joined 07:50 Sussysham left 07:57 jpn joined 08:02 jpn left, abraxxa-home joined 08:24 jpn joined 08:34 squashable6 left 08:36 jpn left 08:38 squashable6 joined 09:33 Sgeo left 10:16 derpydoo left 10:18 jpn joined 10:22 RakuIRCLogger__ left 10:23 Geth joined, jpn left, RakuIRCLogger joined 10:29 jpn joined 10:39 jpn left 10:44 jpn joined 11:02 codesections left, codesections1 joined 11:04 codesections1 is now known as codesections, Geth left, Geth joined 11:46 linkable6 left, linkable6 joined
tbrowder hi, i'm seeing TAP installation failures on github workflows. to whom should i report that? uh, 12:00
12:00 reportable6 left
tbrowder and happy spring forward DST change (not!) 12:00
the TAP failure is on windows, it's ok on linux and macos 12:01
12:02 reportable6 joined 12:05 perlbot left, perlbot joined
tbrowder ah, i see the issue on the TAP github site 12:06
12:37 jpn left 13:04 simcop2387 left, perlbot left 13:05 perlbot joined 13:06 simcop2387 joined
lucs tbrowder: It's known: github.com/Raku/tap-harness6/issues/61 13:26
(Oh, I guess you saw that.) 13:37
14:05 Geth left, Geth joined 14:12 jpn joined 14:17 jpn left 14:40 perlbot left 14:41 simcop2387 left 14:45 simcop2387 joined 14:48 perlbot joined, TieUpYourCamel joined 14:51 simcop2387 left 14:53 perlbot left
rf Good morning folks 14:54
14:54 perlbot joined 14:55 simcop2387 joined 15:08 jpn joined 15:13 jpn left 15:52 derpydoo joined 15:53 derpydoo joined 16:05 nort joined, razetime joined 16:10 jpn joined
rf .tell ugexe Is it possible to hookup zef to Jenkins or Nexus? 16:10
tellable6 rf, I'll pass your message to ugexe
16:15 jpn left 16:26 merp left
ugexe what do you mean 16:26
tellable6 2023-03-12T16:10:52Z #raku <rf> ugexe Is it possible to hookup zef to Jenkins or Nexus?
16:27 merp joined
rf Like if I wanted a private dist for a business or something but still have it installable by zef 16:28
For example in Java gradle, I'd just have to add the location of my builds to my build file and then gradle would look there if it couldn't find them in the main ecosystem 16:29
If `zef install <private-git-repo>` works that would work too I guess. 16:31
ugexe one way is to pass the url to `zef install MyDistDependingOnFoo github.com/private/repo/foo.git`. the other way is to add a config entry to github.com/ugexe/zef/blob/5345b918...on#L26-L38 that points to the private repo
rf Thanks! The latter is exactly what I'm after
ugexe i.e. you can use a Zef::Repository::Ecosystem plugin pointed to a remote or local json file of array of hash 16:32
rf ugexe++ 16:33
lizmat: dev.to/rawleyfowler/practical-mona...result-8c8 Hot off the presses 16:36
lizmat rf++ cool 16:38
shmup rf++ 16:50
rf: > So if we wanted to use our new exec-sql sub-routing downstream we'll no explicitly that this call can, and will fail.
rf Lol I started writing this too early in the morning apparently, thanks :) 16:59
shmup++
tbrowder hi, question: since rakudoc is to be the "pod" for Raku, has anyone started an effort to allow "rakudoc" as an alias to "pod" as in "=begin/=end rakudoc" interpreted in raku code as being the same as '=begin/=end pod'? that probably should be done as a branch off the raku ast branch i assume.
17:18 abraxxa-home left 17:19 abraxxa-home joined, Geth left, Geth joined 17:22 abraxxa-home left, razetime left
rf So turns out Humming-Bird is about 12% faster than Mojolicious with my basic tests :D 17:41
Maybe I should add "blazingly fast" to the readme 17:42
jdv i'd be skeptical. why not hit up @sri about measurements. 17:43
i think there's a mojo channel
rf I'm just blasting it with ~2000 req/sec it drops around 31% HB drops around 19%, over 500 seconds 17:49
17:50 jpn joined
rf It is also worth mentioning I HB provides about a 5th of what Mojo does so it's not really a fair comparison I guess 17:53
17:55 jpn left 18:00 derpydoo left, reportable6 left 18:02 reportable6 joined
shmup i see you starred fennel. that is a good community 18:18
er, rf
rf I like Lisp quite a bit, don't write nearly enough of it
I have a few lua scripts I plan to re-write in Fennel or Raku some day
18:34 Sgeo joined 18:44 jpn joined 18:49 jpn left 18:50 NemokoschKiwi joined 18:51 NemokoschKiwi left 18:55 teatwo left, teatwo joined, jpn joined 19:01 jpn left 19:17 tea3po joined 19:19 tea3po left 19:20 teatime joined 19:21 teatwo left 19:26 skaji left, Sevalecan left, tbrowder left, mst left 19:27 mst_ joined, mst_ left, mst_ joined, skaji_ joined, tbrowder__ joined, Sevalecan joined 19:28 mst_ is now known as mst 19:48 teatime left 19:49 teatime joined 19:51 teatime left, teatime joined
patrickb ugexe: I'm curious. What came of your Zef Grant idea? 19:52
ugexe patrickb: Yeah I need to revisit that... my laptop crapped out on me when I was originally making those plans and it fell on the back burner 20:01
$work has since provided me with a personal laptop to do open source with though (maxmind++) so that isn't a problem now 20:02
patrickb Ok. Thanks for the update. I do like what the grant is aiming for. 20:03
maxmind++ indeed 20:04
rf ugexe you work at maxmind? Neat. I applied there last year when I was looking for a new job. 20:08
20:14 teatime left 20:15 teatime joined 20:26 perlbot left 20:27 perlbot joined 20:33 jpn joined 20:38 jpn left 21:15 jpn joined 21:22 jpn left 21:39 jpn joined 22:21 jpn left 22:40 kjp left 22:44 kjp joined 23:11 BigAnt joined 23:12 BigAnt left 23:17 simcop2387 left, simcop2387 joined 23:23 simcop2387 left 23:24 perlbot left 23:26 simcop2387 joined 23:28 perlbot joined