🦋 Welcome to the former MAIN() IRC channel of the Raku Programming Language (raku.org). This channel has moved to Libera (irc.libera.chat #raku)
Set by lizmat on 23 May 2021.
00:04 reportable6 left 00:05 reportable6 joined 00:10 m6502 joined 00:13 m6502 left, m6502 joined 00:15 tyil left 00:16 tyil joined 00:25 gugod left 00:26 corwin left, summerisle is now known as eof 00:27 [dpk] joined 00:28 jraspass left, dpk left 00:29 corwin joined, gugod joined, m6502 left 00:32 dogbert17 joined 00:35 moritz_ joined, dogbert12 left 00:36 moritz left, ugexe left, ugexe joined, pounce left 00:37 sjn left, leah2 left, jjatria left, sjn joined, pounce joined 00:38 leah2 joined 00:44 ggoebel_ joined 00:46 b2gills left 01:05 Sir_Ragna left, cog left 01:15 swaggboi joined, Sir_Ragna joined, cog joined, kornbluth.freenode.net sets mode: +vv Sir_Ragna cog 01:16 b2gills joined 01:17 b2gills joined 01:18 kvw_5 joined 01:19 |Sno| joined 01:21 [Sno] left 01:22 kvw_5_ left 01:43 kini left 01:44 kini joined 01:54 dogbert17 left, dogbert17 joined 01:58 dogbert17 left 02:00 dogbert17 joined
moon-child is there an 'apply' function? 02:01
elcaro what specifically do you want to do that isn't covered by .map or .reduce? 02:07
The only lisp I've used is Racket. Racket's `(apply + '(1 2 3))` can be expressed in Raku as `[+] (1, 2, 3)` or `(1, 2, 3).reduce(* + *)` 02:10
... among other ways 02:11
moon-child I think the more natural dual is |. E.G. infix:<+>(|<1 2 3>) 02:13
in this case I have a sequence of functions that I want to apply to a single object. Not hard to express, but it would be nice to be able to say [&f, &g, &h...].map(&apply.assuming: *, $object) 02:14
elcaro are you opposed to: (&f, &g, &g).map(-> &func { func($object) }) 02:16
moon-child not opposed, certainly. I just think the first version is a bit prettier 02:17
dac Sometimes when I start raku for the first time in a while it can take upward of 20 seconds to become interactive, is there anything that might be causing that? 02:18
02:19 dac is now known as dcx
moon-child probably precompiling the standard library. That only happens for when I upgrade 02:20
dcx Ah makes sense
It would be neat if there was just a small message saying that was happening, it's a little confusing 02:41
02:43 kini left 02:44 kini joined 03:19 linkable6 left 03:20 linkable6 joined
raydiak moon-child: if I understand correctly, you could also write (&f, &g, &h)».($object) 03:36
moon-child ooh, cool 03:43
thanks!
raydiak yw!
04:07 rbt left, rbt joined
guifa Is there any way to inspect a package's outer symbol table? 04:18
e.g.
04:19 Xliff_ joined, Xliff left
guifa class A { constant foo = 0; class B { constant bar = 1 } }; my \C := A::B; say B::.keys; 04:19
m: class A { constant foo = 0; class B { constant bar = 1 } }; my \C := A::B; say B::.keys; 04:20
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared name:
B used at line 1
guifa m: class A { constant foo = 0; class B { constant bar = 1 } }; my \C := A::B; say C::.keys;
camelia (bar)
guifa so that gets me the keys inside of class B
how could I get the keys inside of A (that is, <foo B>), by using C? I figured C::OUTER::.keys would work but it doesn't 04:21
04:23 rbt left, rbt joined, rbt left, rbt joined 04:43 rbt left, rbt joined 04:54 guifa left 05:06 frost-lab joined, frost joined 05:09 wingfold_ joined 05:28 rbt left 05:29 rbt joined 05:44 rbt left, rbt joined, rbt left, rbt joined 05:56 swaggboi left 06:02 swaggboi joined 06:04 reportable6 left 06:06 reportable6 joined 06:15 Sgeo left, holyghost joined, Sgeo left 06:22 guifa joined 06:23 guifa left 06:40 dotdotdot left 06:41 xelxebar left 06:45 guifa joined 06:46 guifa left 06:51 dotdotdot joined 06:54 rbt left, rbt joined 07:00 abraxxa joined 07:05 domidumont joined 07:07 abraxxa left, pecastro joined 07:08 abraxxa joined 07:14 xelxebar joined 07:27 abraxxa left, guifa joined 07:28 guifa left 07:30 abraxxa joined 07:34 abraxxa left 07:35 abraxxa joined 07:43 [dpk] is now known as dpk 07:50 patrickb joined 07:53 Altreus_ left, Altreus joined 08:04 dakkar joined 08:05 rbt left 08:06 MasterDuke joined 08:10 rbt joined 08:12 patterner left 08:14 timeless joined 08:15 patterner joined 08:20 timeless left 08:21 patterner left 08:24 patrickb left, holyghost left, samebchase left, Ekho left, sivoais left, dcx left, vrurg left, broquaint left, moon-child left, SmokeMachine left, tbrowder left, SqrtNegInf left 08:25 timeless joined, patterner joined 08:26 rjeli joined 08:27 caasih joined, broquaint joined, holyghost joined, samebchase joined, Ekho joined, sivoais joined, dcx joined, vrurg joined, moon-child joined, SmokeMachine joined, tbrowder joined, SqrtNegInf joined
lizmat: clickbaits rakudoweekly.blog/2021/05/24/2021-...hattering/ 08:28
Altreus has there always been a hero image at the top? 08:30
lizmat hero image ?
Altreus like when you have one big image for its own merit 08:31
lizmat yes, every issue of the Rakudo Weekly News had one
Altreus literally only just realised :D
although that's probably exactly how it should be
lizmat ah, I guess then I failed this week ? :-) 08:32
Altreus Well I thought of that too
Maybe I'm just more on the ball today :D
lizmat all but 2 of them, come from my personal picture collection 08:33
Altreus ones you've taken, or ones you've collected?
lizmat ones Wendy or I have taken 08:34
08:34 holyghost left
Altreus nice :) 08:35
raydiak thank you for another weekly lizmat++ 08:42
08:58 jjatria joined 08:59 holyghost joined
holyghost fucking netsplits 09:00
tyil just like in the old days
09:07 asymptotically joined
El_Che weekly: new rakudo-pkg 2021.05 09:08
notable6 El_Che, Noted! (weekly)
09:11 childlikempress joined 09:12 moon-child left, childlikempress is now known as moon-child 09:13 samebchase1 joined, samebchase left 09:16 guifa joined, JRaspass_ joined 09:17 guifa left, MasterDuke55 is now known as MasterDuke, JRaspass_ is now known as JRaspass
raydiak lizmat: I've been looking at your irc log. thank you again for working on it. do you want issues filed wrt the front end, or should it be regarded as a placeholder until the back end is more settled? 09:21
09:25 jjatria left, JRaspass left
Altreus Has anyone else tried Joplin? I happen to be looking for a shared todo/notes app for the business 09:26
Small projects like the one on this weekly are good for word-of-mouth learning about other projects
09:27 jraspass joined, jjatria joined, JRaspass joined
dakkar for my notes & todo I use NextCloud, but that's a big PHP application suite (it replaced most of Google services for me, and it runs on my own server) 09:28
may not be appropriate for your use case
09:32 jraspass left
Altreus I think Opus uses NextCloud 09:37
I think there's also another thing with a similar name
That's gonna be useful in future when we don't want to rely on Google Drive for all our shared docs
dakkar OwnCloud, of which NextCloud is a fork?
Altreus ah that might be it 09:38
Didn't realise they were related!
one of them is good and works well - probably NextCloud
tyil nextcloud works great for me and the missus
dakkar it's free software with commercial backing, so it will probably not die soon ☺ 09:40
(AGPL-3)
09:41 guifa joined
El_Che Altreus: I use markdown and git 09:42
09:43 guifa left
holyghost I started a NES Solstice game on github.com/theholyghost2/Solstice 09:43
just a side game project
Altreus El_Che: yeah, works for me but not for a business with other people in 09:44
holyghost still needs lots of work but there's some kind of a codebase
Altreus Especially ones who use email, and apps, and what have you
El_Che Altreus: ahm you're the social type :P
Altreus no I'm the CTO type, not the CEO type
09:46 Black_Ribbon left 09:47 guifa joined 09:48 guifa left
Xliff_ m: multi sub infix:<*> (Int() $a, Int() $b) is equiv(&infix:<+>) is assoc<left> is default { say "A: $a / B: $b"; nqp::mul_I($a, $b, Int); }; say 1 + 2 * 3 + 4 * 5 + 6; 09:49
camelia ===SORRY!=== Error while compiling <tmp>
Could not find nqp::mul_I, did you forget 'use nqp;' ?
at <tmp>:1
------> A: $a / B: $b"; nqp::mul_I($a, $b, Int)⏏; }; say 1 + 2 * 3 + 4 * 5 + 6;
Xliff_ m: use nqp; multi sub infix:<*> (Int() $a, Int() $b) is equiv(&infix:<+>) is assoc<left> is default { say "A: $a / B: $b"; nqp::mul_I($a, $b, Int); }; say 1 + 2 * 3 + 4 * 5 + 6;
camelia A: 2 / B: 3
A: 4 / B: 5
33
Xliff_ I am trying to get * to act like + in terms of operator precedence. What am I doing wrong?
dakkar m: 4.^name 09:51
camelia ( no output )
dakkar m: say 4.^name
camelia Int
dakkar oh, it's not a type problem then
raydiak I'm not sure that adding another multi will work, there is already a candidate with Int args. you might have to change the precedence of the existing one 09:53
Xliff_ radiak: It's getting selected. See the output. 09:54
raydiak that's true...
Geth problem-solving: a830d70241 | (Elizabeth Mattijsen)++ | solutions/meta/move-repo-to-raku.md
Suggest moving to "raku" organisation

Note, this is only part of solving issue #280.
09:55
problem-solving: 72008265ff | (Elizabeth Mattijsen)++ (committed using GitHub Web editor) | solutions/meta/move-repo-to-raku.md
Merge pull request #281 from Raku/move-repo-to-raku

Suggest moving IRC logs to "raku" organisation
09:57 kawaii_ is now known as kawaii
raydiak I suspect it has something to do with how the core ops are written explicitly into the grammar... 10:02
github.com/rakudo/rakudo/issues/1237 10:04
dakkar also, having one candidate have a different *parsing* than others, is not exactly a sensible thing to do 10:08
because the parsing has to happen before all type information is available
10:09 unclechu joined, jdv79 joined, kornbluth.freenode.net sets mode: +vv unclechu jdv79
Xliff_ radiak: OK. So how would I change the rule on the existing operator? 10:10
dakkar (maybe in 6.zz we should require precedence/associativity/&c to be declared on the `proto`, and not on the candidates?)
10:10 Xliff_ is now known as Xliff 10:11 shadowpaste left, kawaii is now known as kawaii_ 10:12 unclechu left 10:14 Ulti joined
raydiak Xliff: it wouldn't work if I'm reading the code related to that bug correctly. the precedence of core ops is basically hard-coded into the grammar. best I can think to suggest off the top of my head is to just name your operator something else 10:14
10:14 klapperl joined
Xliff radiak: Unfortunately, that's not a part of the problem space. 10:14
10:14 kornbluth.freenode.net sets mode: +vv Ulti klapperl, swaggboi left, wingfold_ left, perigrin left, Manifest0 left, cooper left, sena_kun left
Xliff I will have to figure out another method. Thanks! 10:15
10:16 swaggboi joined
raydiak wouldn't hurt to add a comment to that bug along the lines of "this is a blocking issue for my current project" to get it a little more attention, but no guarantees. you're welcome, sorry I couldn't be more helpful 10:16
10:16 wingfold_ joined, perigrin joined, Manifest0 joined, cooper joined, sena_kun joined, Xliff joined, kornbluth.freenode.net sets mode: +vvvv Manifest0 cooper sena_kun Xliff, krunen joined, kornbluth.freenode.net sets mode: +v krunen 10:17 stux|RC joined
Xliff raydiak: You were helpful enough. Thanks! 10:17
10:17 shadowpaste joined 10:18 swaggboi left, wingfold_ left, perigrin left, Manifest0 left, cooper left, sena_kun left, Xliff left, krunen left, Ulti left, klapperl left, jdv79 left, shadowpaste left, stux|RC left, |Sno| left, aluaces left, dustinm` left, oftl left, nebuchadnezzar left, Sir_Ragna left, cog left, b2gills left, asymptotically left, abraxxa left, pecastro left, frost-lab left, jmcgnh left, gordonfish left, xinming left, kini left, jcallen left, nine left, tyil left, mojca left, pnu__ left, charsbar left, mtj left, a3f left, caasih left, Grauwolf left, solitario3 left, rjeli left, timeless left, domidumont left, ugexe left, riatre left, perry left, SmokeMachine left, renormalist left, benaiah left, Mithaldu left, KotH left, pierrot left, samebchase left, literal left, DiffieHellman left 10:19 shadowpaste joined
raydiak wonder what the concequences would be if we just outright removed github.com/rakudo/rakudo/blob/mast...4547-L4549 10:19
10:19 stux|RC joined, krunen joined, Xliff joined, sena_kun joined, cooper joined, kornbluth.freenode.net sets mode: +vvvv krunen Xliff sena_kun cooper, Manifest0 joined, perigrin joined, wingfold_ joined, swaggboi joined, klapperl joined, Ulti joined, jdv79 joined, kornbluth.freenode.net sets mode: +vvvv Manifest0 klapperl Ulti jdv79, asymptotically joined, caasih joined, rjeli joined, timeless joined, abraxxa joined, pecastro joined, domidumont joined, frost-lab joined, kini joined, |Sno| joined, b2gills joined, cog joined, Sir_Ragna joined, aluaces joined, Grauwolf joined, kornbluth.freenode.net sets mode: +vvvv cog Sir_Ragna aluaces Grauwolf, dustinm` joined, jcallen joined, jmcgnh joined, gordonfish joined, kornbluth.freenode.net sets mode: +vvvv dustinm` jcallen jmcgnh gordonfish, solitario3 joined, xinming joined, nine joined, stux|RC-only joined, kornbluth.freenode.net sets mode: +vvvv solitario3 xinming nine stux|RC-only, BuildTheRobots joined, robinsmidsrod joined, jhill joined, Voldenet joined, kornbluth.freenode.net sets mode: +vvvv BuildTheRobots robinsmidsrod jhill Voldenet, peteretep joined, spycrab0 joined, codesections joined, brass joined, kornbluth.freenode.net sets mode: +vvvv peteretep spycrab0 codesections brass, broquaint joined, maggotbrain joined, rypervenche joined, vrurg joined, kornbluth.freenode.net sets mode: +vvvv broquaint maggotbrain rypervenche vrurg, bonz060 joined, PotatoGim joined, mrsolo joined, kst joined, kornbluth.freenode.net sets mode: +vvvv bonz060 PotatoGim mrsolo kst, agentzh joined, japhb joined, defaultxr joined, sivoais joined, kornbluth.freenode.net sets mode: +vvvv agentzh japhb defaultxr sivoais, __jrjsmrtn__ joined, silug joined, nicholatian joined, ecocode joined, kornbluth.freenode.net sets mode: +vvvv __jrjsmrtn__ silug nicholatian ecocode, Grrrr joined, sjn joined, m_athias joined, bdju joined, kornbluth.freenode.net sets mode: +vvvv Grrrr sjn m_athias bdju, vaskozl joined, ambs joined, UukGoblin joined, xi joined, kornbluth.freenode.net sets mode: +vvvv vaskozl ambs UukGoblin xi, Util joined, nebuchadnezzar joined, oftl joined, pierrot joined, kornbluth.freenode.net sets mode: +vvvv Util nebuchadnezzar oftl pierrot, mtj joined, tyil joined, charsbar joined, pnu__ joined, kornbluth.freenode.net sets mode: +vvvv mtj tyil charsbar pnu__, mojca joined, a3f joined, SmokeMachine joined, riatre joined, kornbluth.freenode.net sets mode: +vvvv mojca a3f SmokeMachine riatre, perry joined, ugexe joined, KotH joined, Mithaldu joined, kornbluth.freenode.net sets mode: +vvvv perry ugexe KotH Mithaldu, benaiah joined, renormalist joined, kornbluth.freenode.net sets mode: +vv benaiah renormalist, literal joined, kornbluth.freenode.net sets mode: +v literal, samebchase joined, kornbluth.freenode.net sets mode: +v samebchase, xelxebar left 10:20 jmcgnh left, holyghost left, xelxebar joined, DiffieHellman joined 10:21 epony joined, jast joined, masak joined, ens joined, kornbluth.freenode.net sets mode: +vvvv epony jast masak ens, tinita joined, Woodi joined, kornbluth.freenode.net sets mode: +vv tinita Woodi, Sir_Ragna left, cog left, b2gills left
Xliff We'd have to start a proto and create a candiate list for the dispatch as replacement behavior. 10:22
MasterDuke Stage start : 0.000
Error while compiling, type X::Comp::AdHoc
payload: don't change grammar in the setting, please!
Xliff I agree with you: straight up removal would cause problems.
MasterDuke at line 2239, near "(Mu, Mu, *"
at gen/moar/stage2/NQPHLL.nqp:1053 (/home/dan/Source/perl6/install/share/nqp/lib/NQPHLL.moarvm:panic)
^^^ just removing it
Xliff MasterDuke: Oh, wow. 10:23
10:24 b2gills joined
raydiak heh, fair enough 10:24
10:24 Sir_Ragna joined, cog joined, kornbluth.freenode.net sets mode: +vv Sir_Ragna cog
dakkar the bug is not that change precedence/assoc fails, is that it fails *silently* 10:26
it *must* fail
10:27 oftl left, linkable6 left, nebuchadnezzar left
lizmat and all of that would be different with the RakuAST branch 10:27
10:27 oftl joined
dakkar m: multi sub infix:<☞>(Int $a, Int $b) is assoc<left> { return $b }; multi sub infix:<☞>(Str $a, Str $b) is assoc<right> { return $b }; sub foo($a,$b,$c) { return $a☞$b☞$c }; say foo(1,2,3); 10:27
10:27 nebuchadnezzar joined
Xliff Where can I find a list of CORE grammar rules? 10:27
camelia 3
dakkar m: multi sub infix:<☞>(Str $a, Str $b) is assoc<right> { return $b }; multi sub infix:<☞>(Int $a, Int $b) is assoc<left> { return $b }; sub foo($a,$b,$c) { return $a☞$b☞$c }; say foo(1,2,3);
camelia 3
dakkar uh… that worked differently on my machine
lizmat it should probably complain about assigning associativity to candidates, rather than the proto 10:28
Xliff lizmat++: I expect RakuAST will solve a lot of things and give us new bugs we didn't expect.
lizmat I'm not saying it would solve this
10:29 AlexDaniel` joined
dakkar lizmat: I agree 10:29
10:29 uzl[m] joined, patrickbkr[m] joined 10:30 linkable6 joined
raydiak Xliff: the core grammar is github.com/rakudo/rakudo/blob/mast...rammar.nqp 10:30
dakkar lizmat: AIUI, having candidates with different assoc/precedence should just be prohibited, because it can't be made to work 10:31
lizmat any assoc trait on a candidate is just ignored, apparently
compar:
m: multi sub infix:<foo>(\a,\b) is assoc<left> { "foo" }; dd &infix:<foo>.prec
MasterDuke couldn't it work if they have non-overlapping types?
camelia Hash % = {}
lizmat m: proto sub infix:<foo>(|) is assoc<left> {*}; multi sub infix:<foo>(\a,\b) { "foo" }; dd &infix:<foo>.prec
camelia Hash element = {:assoc("left"), :prec("t=")}
dakkar MasterDuke: no, because associativity is a parse-time thing, and at parse-time you (almost)never have enough typing information 10:32
lizmat so you're telling the candidate something, but nobody's listening :-)
dakkar not exactly… 10:33
m: multi sub infix:<☞>(Int $a, Int $b) is assoc<left> { return $a+$b*1000 };multi sub infix:<☞>(Str $a, Str $b) is assoc<right> { return "($a,$b)" };sub foo($a,$b,$c) { return $a☞$b☞$c };say foo(1,2,3);
camelia 5001
dakkar m: multi sub infix:<☞>(Str $a, Str $b) is assoc<right> { return "($a,$b)" };multi sub infix:<☞>(Int $a, Int $b) is assoc<left> { return $a+$b*1000 };sub foo($a,$b,$c) { return $a☞$b☞$c };say foo(1,2,3);
camelia 3002001
dakkar notice that the associativity changed
it's taken from the first candidate seen
lizmat hmmm...
worth an issue, I'd say, if there isn't one already 10:34
dakkar there is: github.com/rakudo/rakudo/issues/1237
although it may be reworded to more explicitly point out that the problem is the "silently", not the "fails"
declaring candidates with different assoc/prec should be a compile-time erorr 10:35
10:35 rbt left
lizmat agree 10:36
raydiak can the precedence of the proto be changed?
dakkar maybe in a slang
10:37 jmcgnh joined
lizmat I guess you could, but it will only affect code compiled *after* that change 10:37
so you'd need to do that at compile time, and it wouldn't affect any code compiled *before* that change
dakkar isn't "I want this to be parsed different than normal raku" exactly what slangs are for? 10:38
lizmat it is
but the question was about core ops, no ?
10:39 holyghost joined 10:40 uzl[m] left, AlexDaniel` left
raydiak yes he wanted to change the precedence of infix:<*> 10:42
Xliff lizmat: It is as you say. Your understanding is along the lines of what I need.
lizmat: glot.io/snippets/fyxgoslq4r 10:43
In that example, the right multi is dispatched, but the operator precedence is unchanged. 10:45
10:49 tusooa joined 10:51 juanfra__ joined
raydiak I have to ask because nobody has yet...why? 10:51
10:53 Tirifto[m] joined 10:55 demostanis[m] joined
Xliff Because that's what I need. 10:55
10:55 pwr22 joined
Xliff I dislike it when that question comes up, because then someone can say "why do it that way" or "what's the point" 10:56
And then stop answering.
10:57 mendel_ joined 10:58 tobs` joined
raydiak well that's why I thought of everything I could suggest *before* asking :) either way I'm gonna stop answering in the next several minutes, have to try to get a few hours of sleep soon 10:58
10:58 AlexDaniel joined 10:59 tobs` is now known as tobs
Xliff Now that is an acceptable reason to stop answering... 10:59
10:59 raydiak joined
Xliff :) 10:59
10:59 ribasushi joined
Xliff Again, thanks for your help. 10:59
raydiak I mean at this point, you're down to writing a slang, parsing the whole expression with your own grammar, or doing whatever you're doing some other way anyway 11:00
looks like dakkar and lizmat were the insightful ones here, but glad I could do...whatever I did :D
Xliff radiak: Yeah. I am going the grammar route, with.... not much luck. 11:02
glot.io/snippets/fyxh7lm58f
11:03 kawaii joined
Xliff I can't figure out why that last expression isn't getting parsed. 11:03
11:03 fvox joined 11:06 doconthe2ocks joined 11:07 tailgate joined
raydiak Grammar::Tracer is really helpful for deubgging and optimizing grammars 11:07
Xliff Yes, but it won't handle all cases
11:08 samcv joined
raydiak what doesn't it handle? 11:08
11:08 markmarkmark joined
Xliff I'm to tired to remember. 11:08
I need sleep, too!
raydiak I'm sure it should work for what you pasted, I used it for all of Math::Symbolic 11:09
Xliff Will check later today, then. Thanks. 11:10
raydiak: Ah. The situation where it the grammar can't get a hold of a starting place. 11:12
raydiak yw, good luck. bed and hopefully sleep for me. lizmat if you see this let me know about my question at 9:21:52, there are many irregularities in the html and I don't know if I should be reporting them in one big issue, a pile of small issues, or not at all 11:14
lizmat raydiak: please hold off until we got real UI people involved (sena_kun is working with me on that) 11:15
11:16 sienet_ja_LSD[m] joined, rbt joined
lizmat I never got much beyond HTML 0.9 :-) 11:16
raydiak heh got it 11:17
11:19 kiti_nomad[m] joined
MasterDuke Xliff: i think the problem is you can't have an expression on the left in your grammar 11:20
*a parenthesized expression 11:21
11:22 ugexe left, frost-lab left
Xliff MasterDuke: Yep. Figured that out. Still trying to work out the best solution. 11:23
MasterDuke moritz might be around 11:24
moritz_ hm?
MasterDuke from Xliff, glot.io/snippets/fyxh7lm58f "I can't figure out why that last expression isn't getting parsed." 11:25
11:25 holyghost left
moritz_ MasterDuke: well, you figured it out already 11:26
MasterDuke heh. the problem, not a solution 11:27
moritz_ my go-to solution is another layer of indirection 11:29
perlpunks.de/paste/show/60acdfac.6b20.384
that's what I use in the book 11:30
the gist is that an expression is <term> <operator> <term>, and term can be a <value> or '(' <expression> ')' 11:31
the rest (using multi regexes) is just sugar
11:31 holyghost joined 11:36 guifa joined 11:37 guifa left 11:42 ServerStatsDisco joined 11:43 unclechu joined 11:48 uzl[m] joined, holyghost left, AlexDaniel` joined 11:54 holyghost joined 11:58 domidumont left 12:00 guifa joined 12:01 guifa left 12:04 reportable6 left
Xliff moritz_++ # Thanks! 12:04
12:06 guifa joined, reportable6 joined 12:07 guifa left 12:15 aborazmeh joined, aborazmeh left, aborazmeh joined 12:18 Xliff left 12:21 aborazmeh_ joined 12:25 aborazmeh left 12:29 mowcat joined 12:31 Xliff joined 12:32 Xliff joined 12:42 mowcat left, ggoebel_ left 12:58 Sgeo joined 13:00 SqrtNegInf left 13:01 LizBot left, LizBot joined 13:02 SqrtNegInf joined
holyghost I finished the my Solstice with just floors :-) 13:05
s/the//
13:20 samebchase1 left 13:21 cog left, rbt left 13:25 samebchase joined 13:26 holyghost left 13:27 rbt joined 13:30 holyghost joined 13:32 rbt left, rbt joined 13:51 lucasb joined 13:52 rbt left, rbt joined 14:08 lucasb joined 14:20 holyghost left 14:24 holyghost joined 14:42 rbt left, rbt joined 14:48 m_athias left 14:52 m_athias joined 14:56 ggoebel_ joined 14:59 holyghost left 15:01 guifa joined 15:02 guifa left 15:08 |Sno| left 15:09 aborazmeh_ left 15:10 holyghost joined
[Coke] is it possile that running the REPL for the first time ends up precompiling something? 15:12
*possible
Finding that the REPL on windows is very slow to start (2021.04)
ah. it's not doing anything in the background, just hanging. :( 15:13
ugexe you could run `RAKUDO_MODULE_DEBUG=1 raku` to find out
[Coke] ah: under 'cmd', it launches immediately. under 'git bash', it hangs. 15:14
lizmat it shouldn't precompile anythinkg 15:15
then it probably cannot read STDIN in that case ?
[Coke] lizmat: tried cmd/powershell; even under the right codepage (65001), the welcome to message isn't rendering. Guessing we'd need some kind of font fallback mechanism? 15:22
lizmat so you're saying the rendering of the welcome message is what's blocking ? 15:23
[Coke] no. separate issue 15:24
... as far as I know
15:25 sno joined 15:26 guifa joined 15:27 renormalist left, guifa left 15:28 kevin1 joined 15:31 holyghost left, kjp left
nine But...if it's unable to output anything, how do you know that it's actually hanging and not just waiting for your input? 15:31
15:31 renormalist joined 15:32 renormalist left, guifa joined, renormalist joined 15:33 guifa left, renormalist left 15:34 renormalist joined
[Coke] I don't know that it can't output anything? 15:38
there are 2 issues here; one is running raku repl under git bash, the other is displaying the repl announcement where it does work.
15:39 renormalist left, renormalist joined
ugexe i guess it doesnt suprise me that it doesnt work under git bash, since that is probably a more cygwin toolchain like setup and you likely used VS toolchain to build rakudo 15:39
[Coke] happy to test while I have the windows box up if there's anything else I can run.
I did use VS. note that raku works fine in scripts, just not in REPL there. 15:40
ugexe raku -e 'say $*SPEC.raku' 15:41
[Coke] (could very well be DIHWIDT)
ugexe what does that say in git bash by chance
[Coke] IO::Spec::Win32
renormalist raku.org/ still talks about freenode for IRC. 15:42
ugexe the repl worked for me on windows using 2020.04. building 2021.05 now 15:43
[Coke] ugexe: again, works fine here in cmd & powershell.
ugexe ah so the issue in cmd is just the jumbled text? 15:44
renormalist rakudo.org/ also has a link to freenode near the bottom
[Coke] ugexe: aye 15:45
ugexe yeah thats been that way for a bit. i argued against it but im not a lawyer
[Coke] which is very likely just a font issue; tried various system fonts, tried source code pro, nada. I think on the mac there's a fallback font for unicode, not sure that exists on windows.
well, the message is useless on windows at the moment, at least for me. I opened a ticket if someone wants to use that to argue we should at least default to plain text. 15:46
ugexe well asking the average window user to change their terminal settings is a pretty big ask considering i dont think any other language does so
[Coke] I think it makes sense to get to the unicode features of the language; not to see the welcome message. 15:47
ugexe aye
lizmat renormalist: thanks for the headsup
renormalist: I think we have all the changes done, it's now a matter of deploying :-) 15:48
renormalist lizmat: cool, thanks
15:51 holyghost joined
[Coke] ugexe: I found one font where instead of "cant display glyph", you get whitespace (just blanks). "welcome to TM" 15:53
ugexe ive always just gotten "Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2021.05." 15:59
16:03 holyghost left 16:13 holyghost joined 16:14 mowcat joined 16:18 swaggboi left, swagg_boi joined
tonyo asking someone to change their font is just as bad 16:18
16:31 perlbot left 16:32 domidumont joined 16:33 simcop2387 left 16:36 dakkar left 16:37 guifa joined 16:38 guifa left 16:43 guifa joined 16:44 guifa left 16:49 guifa joined 16:50 guifa left 16:54 simcop2387 joined 16:56 perlbot joined
andinus do old versions of modules stay forever on fez? 16:58
mine is listed as "xyz:ver<0.1.1>", "xyz:ver<0.1.2>" and search for it on modules.raku.org returns 3 results (1 - CPAN entry, 0.1.1 fez, 0.1.2 fez entry) 17:00
how do i make it show only the 0.1.2 entry and not pollute the results?
tonyo andinus: yes they do 17:11
17:12 aborazmeh joined
tonyo what do you mean by not pollute? it'd be up to the search or zef to only show the highest ver 17:12
up to search meaning up to your search term, eg `zef search xyz:ver<0.1.2>` 17:13
andinus by pollute i meant that the number beside tags (on modules.raku.org) increments by 1 for each version i push 17:22
[Coke] might be nice if default search showed latest stable and not everything, but allowed -v to show all. 17:27
(assuming we have the concept of a stable or recommended, not sure we do)
tonyo i thought zef only showed the highest version 17:38
ugexe: ^
17:38 daimon joined
tonyo andinus: what is the name of the module? 17:38
antlia?
ugexe zef will show all of them if you do `search` and the highest if you do `info` without any version
the problem they are talking about is how modules.raku.org groups (or rather doesnt group) distributions 17:39
tonyo d'oh 17:40
daimon tyil, lizmat, nine: in the mass migration from freenode my primary concern was making sure my channels and nicknames remained owned by me, as an extension of this I also tried to register nicknames and channels for the communities I am involved in, as of such I own the nicknames 'perl','purl','raku','erlang' and 'csharp'; I obviously reserved 'raku' for yourselfs - if you have a use for that nickname drop me a message if you are +F in this channel it will be 17:41
transferred to you immediately; if not then well its safe for whenever (if you ever) require it
17:44 domidumont left
tonyo i reserved daimon1 17:44
daimon :)
17:45 aborazmeh left, guifa joined
daimon my actual main nickname is daemon but it causes havok in accidental highlights 17:45
17:46 guifa left
andinus tonyo: yes i was talking about antlia 17:46
17:47 stoned75 joined 17:48 stoned75 joined 17:50 guifa joined 17:51 guifa left 18:00 holyghost left 18:04 reportable6 left 18:07 reportable6 joined
stoned75 commit: releases my $a = <42>; my Str $s = $a; my Int $i = $a; say ($s.WHAT, $i.WHAT); 18:07
committable6 stoned75, ¦releases (54 commits): «((IntStr) (IntStr))␤» 18:08
18:13 rbt left, rbt joined 18:30 epony left, jast left, masak left, ens left, tinita left, Woodi left, masak_ joined, ens joined 18:31 tinita joined, Woodi joined 18:41 epony joined 18:49 [Coke] left 18:50 [Coke] joined 18:53 lichtkind joined 18:56 Black_Ribbon joined 19:01 mowcat left 19:05 aborazmeh joined 19:16 wingfold joined 19:20 wingfold_ left, wingfold left 19:28 dustinm` left 19:29 stoned75 left 19:30 stoned75 left 19:32 dustinm` joined 19:39 guifa joined 19:40 guifa left 19:48 ilogger2_ joined, rbt left, ilogger2_ joined, ilogger2_ left 19:49 rbt joined 19:50 ilogger2 joined 19:54 rbt left, rbt joined 20:01 stoned75 joined 20:04 guifa joined 20:16 [ptc] joined 20:17 [ptc] left, ptc joined
ptc m: say "hullo libera raku!" 20:18
camelia hullo libera raku!
20:22 mowcat joined 20:24 ptc is now known as [ptc] 20:25 [ptc] is now known as ptc
lichtkind us here the organizer of raku conf? 20:44
what kind of talk do you want?
20:54 mtj left
raydiak we've moved to irc.libera.chat, you might have more luck there. it's also near our quiet time, as much of the community is in europe where it's getting late. if you wanted to try e-mail or other contact methods, they're listed on conf.raku.org/contacts 21:03
in general though, I'd expect pretty much any talk related to the Raku language to be welcome 21:04
lichtkind raydiak: thank you 21:23
21:24 lichtkind joined
raydiak you're welcome :) 21:27
lichtkind raydiak: but channel there is 6667 21:31
21:34 mowcat left
raydiak yes 6667 for unecrypted connections, 6697 for TLS 21:36
actually, looks like there's more ports than that. see libera.chat/guides/connect 21:37
21:40 lichtkind left, lichtkind joined
lichtkind raydiak: yes i mispelled libera thank im there now 21:41
raydiak cool
22:05 codesections left 22:17 dotdotdot joined, lizmat joined 22:23 wingfold joined, swagg_boi joined 22:24 wingfold_ joined, wingfold left 22:29 wingfold joined, wingfold_ left 22:33 wingfold_ joined, wingfold left 22:36 kini joined 22:37 wingfold_ left
moon-child m: .say for 5 22:40
camelia 5
22:47 aborazmeh joined 22:50 swagg_boi left 22:51 wingfold joined
lichtkind raydiak: well the topic i would choose i already talked about at yapc 22:54
22:55 wingfold_ joined 22:56 wingfold left 23:00 wingfold joined, wingfold_ left 23:04 wingfold left 23:17 aborazmeh left 23:18 wingfold joined 23:22 wingfold left 23:23 wingfold joined 23:26 aborazmeh joined 23:27 stoned75 left 23:28 stoned75 left 23:37 lichtkind left 23:39 swagg_boi joined 23:58 aborazmeh left