🦋 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:07 reportable6 left 00:20 melezhik joined
melezhik . 00:20
00:27 melezhik left 01:00 monkey_ left 01:07 reportable6 joined 02:22 vrurg left, vrurg joined 02:25 vrurg_ joined 02:28 vrurg left 02:44 vrurg joined, vrurg_ left 03:01 m_athias left 03:02 m_athias joined 03:10 elcaro_ joined, thowe_ joined, merpader1 joined 03:11 mplsCorwin joined, kjp_ joined, thowe left, kjp left, jrjsmrtn left, merpaderp left, corwin left, elcaro left, jrjsmrtn joined 03:34 destroycomputers joined 04:39 reportable6 left, statisfiable6 left, unicodable6 left, linkable6 left, bloatable6 left, evalable6 left, bisectable6 left, notable6 left, greppable6 left, coverable6 left, benchable6 left, quotable6 left, squashable6 left, nativecallable6 left, shareable6 left, sourceable6 left, releasable6 left, committable6 left, bloatable6 joined, sourceable6 joined 04:40 evalable6 joined, committable6 joined 04:41 unicodable6 joined, notable6 joined, benchable6 joined 04:42 bisectable6 joined 05:39 quotable6 joined, shareable6 joined 05:40 linkable6 joined 05:41 statisfiable6 joined, squashable6 joined, greppable6 joined 05:52 ggoebel left 06:08 reportable6 joined 06:20 thowe_ is now known as thowe 06:41 nativecallable6 joined, releasable6 joined 07:20 sena_kun left 07:26 abraxxa joined 07:27 abraxxa left 07:29 abraxxa joined
nine It's shared. 07:32
In practice, most of the time things start to build immediately.
07:34 abraxxa left 07:35 abraxxa joined
Geth ¦ App-Rakubrew: patrickbkr self-assigned "unauthenticated git protocol no longer supported" github.com/Raku/App-Rakubrew/issues/48 07:39
07:43 Sgeo left 07:52 kj4tip left 08:05 vrurg_ joined 08:07 vrurg left 08:08 mexen_wfh joined 08:12 suman joined
suman m: my @a=[1,2,3,4]; 08:12
camelia ( no output )
suman Is there a way to test if the giveb list is all composed  of integers or num or rat ? 08:13
MasterDuke m: my @a = [1,2e2,3.3]; say all(@a) ~~ Numeric; my @b = [1,2e2,3.3,"str"]; say all(@b) ~~ Numeric; 08:22
camelia True
suman MasterDuke my goal is to test if the list is made of ints or num, accordingly i can pass the list/array to nativecall. If I test individual items then it would be O(n). can it be done in O(1) time. 08:33
MasterDuke sort of 08:34
m: my int @a = 1,2; say @a.of 08:35
camelia (int)
MasterDuke if the array is parameterized, you can check what it was parameterized as with `.of`. if it isn't parameterized, but you just want to check that all the elements are ok, you're pretty much stuck at O(n) 08:37
m: sub foo(@a) { say @a.of; say @a }; foo([1, 2]); my int @n = 2,3; foo(@n) 08:39
camelia (Mu)
[1 2]
[2 3]
08:39 coverable6 joined
lizmat m: dd (1,2,3,"foo").are 08:47
camelia Cool
lizmat m: dd (1,2,3).are
camelia Int
lizmat m: dd (1,2,3,3.4).are
camelia Real
lizmat suman MasterDuke ^^
MasterDuke doh, forgot that was added
lizmat m: dd (1,2,3,3.4,Date.today).are 08:48
camelia Any
09:00 suman left, dakkar joined
CIAvash oh! `infer` was changed to `are`? Is it part of Raku or just Rakudo? 09:35
lizmat I think it's Raku now 09:40
although I just noticed it's not been added to the docs yet 09:41
nor are there any spectests yet
10:00 evalable6 left, linkable6 left 10:03 linkable6 joined 10:10 wingfold joined 10:23 Darkcoal joined 11:03 evalable6 joined 11:20 razetime joined 11:29 ggoebel joined 11:32 razetime left 11:37 razetime joined 12:07 reportable6 left 12:22 discord-raku-bot left, discord-raku-bot joined 12:52 ggoebel_ joined 12:56 ggoebel left
lizmat clickbaits rakudoweekly.blog/2022/03/21/2022-...easomatic/ 13:09
13:20 razetime left 13:27 Darkcoal left 13:29 Darkcoal joined 13:32 Darkcoal left 13:37 Darkcoal joined 13:48 Darkcoal left 13:51 Darkcoal joined 14:00 Sgeo joined 14:23 mplsCorwin is now known as corwin 14:29 Darkcoal left 14:31 Darkcoal joined 14:39 abraxxa left, abraxxa joined
[Coke] good tutorial on Raku OO? I am trying to follow the BUILD/TWEAK examples for a simple class and passing in an attribute in the constructor doesn't seem to be working. 14:48
AHAHAHA. because I'm an idiot. 14:49
nevermind. :)
... crud. the powershell command to get the window size seems to be reporting on it as if it were a brand new powershell, not whatever the current terminal (in my case, a git bash terminal) is 14:57
works just fine if my terminal is already a powershell, unsurprisingly. 14:59
vrurg_ [Coke]: $COLUMNS? 15:00
15:00 vrurg_ is now known as vrurg
vrurg %*ENV<COLUMNS> I mean. :) 15:01
[Coke] doesn't exist on windows 15:05
best I've found is: powershell -command '&{(get-host)).ui.rawui.WindowSize;}' 15:07
15:18 razetime joined
[Coke] ah, tput works on git bash 15:22
16:09 reportable6 joined
[Coke] docs.raku.org/language/concurrency#Locks - This example is unlikely to trigger the issue the lock is protecting against. should make it ^1000 and remove the sleep, yes? 16:11
16:15 morte_ joined
[Coke] ... actually, tempting to make it a race. 16:17
16:37 djerius left 16:39 djerius joined
guifa needs a cool title for his PRC talk 16:43
it's gonna be about reusing grammars inside of other grammars
16:47 razetime left
lizmat Grammarly Grammaring 16:48
[Coke] somehow work in a Kelsey Grammer joke? 16:53
guifa Grammarly ™̸ Grammaring to avoid legal trouble? 16:55
17:34 dakkar left 17:35 peder left 17:57 mexen_wfh left 18:09 reportable6 left 18:22 peder joined 18:23 wingfold left
Voldenet [Coke]: you can get columns in powershell using nativecall 18:41
like this: ix.io/3Tcb 18:42
18:43 _ed joined
Voldenet i've skipped the error handling, but basically GetConsoleScreenBufferInfo returns 0 on fail, so there's nothing much in it 18:51
18:55 _ed left 19:04 colemanx left 19:07 Darkcoal left 19:32 morte_ left 19:38 morte_ joined
vrurg [Coke]: Sorry, I was away. I know Win doesn't have $COLUMNS, but as long as you mentioned bash I thought it does it for user. 19:38
[Coke] git bash doesn't, no 19:41
tmux is fine. I assume that your solution is using the same as my powershell call, which would return the wrong numbers. 19:42
and it's got the advantage of being less code.
unfortunately, while my standalone version of the viewport worked, it looks like it's not working when I try to integrate it with actual code. blah.
19:46 _ed joined 20:11 reportable6 joined 20:53 [Coke] left 20:56 [Coke] joined 21:08 _ed left 21:21 aru left 21:25 _ed joined 21:26 aru joined, morte_ left 21:27 morte_ joined 21:30 _ed left 21:39 _ed joined 21:41 abraxxa left 21:43 squashable6 left, _ed left 21:44 squashable6 joined 22:08 djerius left 22:09 djerius joined 22:15 _ed joined 22:19 _ed left 22:51 _ed joined 22:52 morte_ left 22:57 _ed left 23:05 _ed joined 23:12 _ed left 23:28 _ed joined 23:53 euandreh left 23:55 euandreh joined