🦋 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:06 ufobat__ left 00:07 jrjsmrtn left 00:08 jrjsmrtn joined 00:18 dogbert17 joined 00:19 dogbert11 joined 00:23 dogbert17 left 00:31 dogbert11 left 00:44 thowe left 00:50 dogbert11 joined, euandreh joined 00:55 dogbert17 joined 00:57 djerius left 00:58 djerius joined 00:59 dogbert11 left 01:04 reportable6 joined 01:20 MoC_ joined 01:21 MoC left 02:09 dogbert17 left 02:28 dogbert17 joined 03:06 djerius left 03:09 djerius joined 03:10 no-n joined 03:12 pony left 03:34 melezhik76 joined, melezhik76 is now known as melezhik2
melezhik2 I've just added my comment to the latest Rakudo release - mybf.io/project/Rakudo/reviews#mel...1635034626 , if someone has something to say - you can reply to the same thread 03:35
03:41 melezhik2 left 03:50 melezhik left 04:50 reportable6 left, notable6 left, quotable6 left, unicodable6 left, bloatable6 left, statisfiable6 left, greppable6 left, committable6 left, bisectable6 left, benchable6 left, squashable6 left, releasable6 left, linkable6 left, coverable6 left, shareable6 left, evalable6 left, tellable6 left, sourceable6 left, nativecallable6 left, reportable6 joined, quotable6 joined 04:51 benchable6 joined, tellable6 joined, notable6 joined, committable6 joined, linkable6 joined 04:52 shareable6 joined, squashable6 joined, unicodable6 joined 04:53 bloatable6 joined 05:08 frost left 05:18 djerius left 05:19 djerius joined 05:26 patterner_ left, patterner_ joined 05:28 ecocode__ left 05:29 ecocode__ joined 05:32 SmokeMachine left, SmokeMachine joined 05:52 statisfiable6 joined, nativecallable6 joined 05:55 [Coke] left 05:57 dogbert11 joined 05:59 dogbert12 joined 06:00 dogbert17 left 06:02 reportable6 left 06:03 reportable6 joined, dogbert11 left 06:04 dogbert17 joined, dogbert12 left 06:08 Kaiepi left 06:09 Oshawott left 06:19 Sgeo left, Sgeo joined 06:37 ufobat__ joined 06:42 djerius left 06:44 djerius joined 06:51 greppable6 joined, bisectable6 joined, dogbert17 left 06:52 sourceable6 joined
andinus is there a way to get all combinations with repetition? 06:57
i want all possible combinations of throw 2 dices
m: (1..6).combinations: 2
camelia ( no output )
andinus m: say (1..6).combinations: 2
camelia ((1 2) (1 3) (1 4) (1 5) (1 6) (2 3) (2 4) (2 5) (2 6) (3 4) (3 5) (3 6) (4 5) (4 6) (5 6)) 06:58
andinus i could use permutations, but how do i ask it to pick only two elements from the list? it seems to permute over the whole thing
say (1..6).permutations 06:59
m: say (1..6).permutations
camelia ((1 2 3 4 5 6) (1 2 3 4 6 5) (1 2 3 5 4 6) (1 2 3 5 6 4) (1 2 3 6 4 5) (1 2 3 6 5 4) (1 2 4 3 5 6) (1 2 4 3 6 5) (1 2 4 5 3 6) (1 2 4 5 6 3) (1 2 4 6 3 5) (1 2 4 6 5 3) (1 2 5 3 4 6) (1 2 5 3 6 4) (1 2 5 4 3 6) (1 2 5 4 6 3) (1 2 5 6 3 4) (1 2 5 6 4 3…
07:08 Kaiepi joined 07:25 MoC_ left 07:27 MoC joined 07:30 dogbert17 joined 07:31 kylese joined 07:33 dogbert11 joined 07:34 dogbert17 left 07:39 Sgeo left
SmokeMachine m: say (1..6) X (1..6) 07:45
camelia ((1 1) (1 2) (1 3) (1 4) (1 5) (1 6) (2 1) (2 2) (2 3) (2 4) (2 5) (2 6) (3 1) (3 2) (3 3) (3 4) (3 5) (3 6) (4 1) (4 2) (4 3) (4 4) (4 5) (4 6) (5 1) (5 2) (5 3) (5 4) (5 5) (5 6) (6 1) (6 2) (6 3) (6 4) (6 5) (6 6))
SmokeMachine andinus: something like that ^^ ? 07:47
07:57 solitario left, solitario joined 08:05 dogbert17 joined 08:06 dogbert11 left 08:13 dogbert11 joined 08:15 dogbert17 left 08:24 abraxxa-home joined, dumarchie joined, dogbert17 joined 08:25 abraxxa-home left 08:28 dogbert11 left 08:50 coverable6 joined 09:21 frost joined 09:26 MoC left
Anton Antonov I mentioned this yesterday— I have hard time doing development work with Raku on macOS Monterey. `zef` and `prove6` do not work. Trying to compile them from sources hangs. Compiling and installing `moar-blead` with `rakubrew` also hangs. 09:41
09:45 mfiano left
lizmat Anton Antonov: sorry to hear that. 09:46
I'm stuck on Mojave for several reasons, so can't be of much service :( 09:47
OOC, is this on an M1 ?
El_Che Anton Antonov#7232: have you tried homebrew? Last time I checked it had raku binaries 09:48
(and formulas)
09:53 evalable6 joined
solitario 5 10:01
10:25 ufobat__ left
Anton Antonov @lizmat No, it is on a Intel-processor MacBook Pro. 10:42
@E_Che I tried `homebrew` — I can run Raku. I cannot do much software development with it. (On macOS Monterey.) 10:43
lizmat Anton Antonov: perhaps start with gisting the output of `perl Configure.pl --gen-moar` ? 10:46
Anton Antonov @lizmat Ok. I will try that. (Later today.) 10:47
I have to say I see these problems as my fault — I should have not rushed upgrading to macOS Monterey… 10:48
El_Che Can't upu install zef from homebrew of kickstarted with the homebrew raku? 11:08
lizmat Anton Antonov: fwiw, I've come to the conclusion I won't upgrade MacOS anymore 11:11
after Catalina destroyed all of my videos / audio workflows 11:12
so the one machine I had upgraded, I had to downgrade to Mojave at great expense and weeks of work :-(
11:25 evalable6 left, linkable6 left, frost left 11:26 evalable6 joined 11:27 frost joined, linkable6 joined
El_Che lizmat: how did an OS update do that? They killed previously bundled applications? 11:30
lizmat killed iPhoto for one 11:34
and with no viable upgrade path
they *do* provide an upgrade path, but after it had been busy on my photo database for a **WEEK**, I killed the orocess 11:35
and that was the 3rd try
El_Che I read they introduces an app called photos 11:36
lizmat yes, and the conversion program does not run to completion :-( 11:37
so: iPhoto is capable of handling my photo database (20+ years of *many* pictures), but Photos is not
I'm sure it has many nice new features :-( 11:38
yes, I'm disappointed in Apple
11:38 [Coke] joined
El_Che that's a big archive to catalogue again, indeed 11:43
11:50 releasable6 joined
lizmat well, I would understand that it could take a long time to convert 11:53
but after a week it just sits around doing nothing (0.1% CPU) 11:54
so I guess the conversion program gets in some sort of deadlock and never recovers
12:02 reportable6 left 12:03 reportable6 joined
[Coke] is reminded to update github.com/coke/scripts/blob/master/sw_hist so he can double check and say "I'm only on 11.x, sorry" 12:06
I was one of several people pondering getting an updated mac, but it's a huge investment cost and I'm not feeling great about it. (liz's story a contributing factor) 12:07
lizmat yeah, for the first time in ~20 years, I'm seriously considering not having an MBP for my next notebook 12:09
jast there's a lot of value in using open source software for this kind of thing (if the software in question covers your use case, which isn't always a small "if")... 12:15
lizmat jast: yes, I was going for convenience... 12:19
if you want something done well, you have to do it yourself :-)
jast true way too often, unfortunately
andinus SmokeMachine: that works, thank you :)
[Coke] lizmat: did you see the new mbp has the notch in the menu bar for the camera (like the 11 model iphone) and things render behind the camera? 12:21
El_Che I saw rending beneath
menus and the like
lizmat no 12:22
won't be looking at a new notebook until sometime next year anyway
El_Che my main machine is a linux, but the mac I have for testing stuff is getting slow (air) 12:24
I thought, let's try to get a mbp 16
and then I saw the notch
I know it would bother me to no end 12:25
ugexe they must have assumed everyone puts tape there anyway
El_Che ugexe: lol
twitter.com/SnazzyQ/status/1453143...59968?s=20 12:31
12:32 dogbert11 joined 12:35 dogbert17 left
[Coke] Do brew or macports provide a way to test things out on the new OSes? 12:39
12:46 jrjsmrtn left 12:51 jrjsmrtn joined
Anton Antonov El_Che — thanks for sharing 🙂 12:57
El_Che I tried the jump start from Big Sur partition of my laptop -- worked to a point. I will try jump start using `homebrew` installations. 13:05
El_Che I agree the notch on new MacBoo Pros is a deal breaker. 13:26
13:48 Kaiepi left 13:55 dumarchie left 13:57 kylese left 14:13 dogbert17 joined 14:16 dogbert11 left 14:23 _Xliff_ joined 14:25 Xliff_ left 14:26 Xliff joined 14:28 _Xliff_ left, Xliff_ joined
Nemokosch being a Mac itself is a deal breaker 14:29
14:31 Xliff left, _Xliff_ joined 14:34 Xliff_ left 14:39 Od1n1 is now known as Od1n, Sgeo joined 14:46 frost left 14:48 frost joined 15:02 Xliff_ joined 15:04 _Xliff_ left 15:27 _Xliff_ joined 15:30 Xliff_ left, abraxxa-home joined 15:37 melezhik joined 16:07 Xliff_ joined 16:09 _Xliff_ left 16:10 archenoth joined 16:34 mjgardner left, sftp left 16:35 sftp joined 16:36 mjgardner joined 16:40 Od1n left 16:41 Od1n joined 16:53 lichtkind joined 17:03 gordonfish- joined 17:05 zostay_ joined, leont_ joined 17:06 simcop2387_ joined 17:12 Ekho- joined 17:13 Ekho left, gordonfish left, simcop2387 left, leont left, zostay left, casaca left, leont_ is now known as leont, zostay_ is now known as zostay, simcop2387_ is now known as simcop2387, casaca joined 17:23 Ekho- is now known as Ekho 17:34 Kaiepi joined
melezhik I've implemented a simple notification system in mybfi - mybf.io/article/Formatting , if use `@user` in comment/reply/review a respect user will get notification via their account on mybfio ... 18:02
18:02 reportable6 left
melezhik if someone help me to test this, it'd be cool ... thanks 18:03
18:04 reportable6 joined 18:12 abraxxa-home left 18:21 _Xliff_ joined 18:23 Xliff_ left 18:38 notna joined 18:47 sena_kun left 18:48 sena_kun joined
Anton Antonov I am looking for suitable symbol to represent missing values or not-available values when manipulating datasets. I considered Whatever, but that is too generic (and hints multiple possible interpretations or actions.) Any other suggestions? Should I just make suitable simple classes that inherit from Mu? 18:49
18:53 gordonfish- is now known as gordonfish
lizmat Nil 18:54
is what you're looking for 18:55
docs.raku.org/type/Nil
19:12 Xliff_ joined 19:15 _Xliff_ left 19:19 _Xliff_ joined 19:21 Xliff_ left 19:24 Xliff_ joined 19:27 _Xliff_ left 19:31 _Xliff_ joined 19:33 thundergnat joined 19:34 Xliff_ left
thundergnat NOTABUG, but certainly LTA; and it confused the heck out of me for about 20 minute before I figured out what was going on. 19:35
m: say 123.comb.Bag, ' | ', <1 2 3>.Bag, ' | 123.comb.Bag eqv <1 2 3>.Bag? ', 123.comb.Bag eqv <1 2 3>.Bag;
camelia Bag(1 2 3) | Bag(1 2 3) | 123.comb.Bag eqv <1 2 3>.Bag? False
thundergnat I wonder if we should mention that on the Bag docs? Or at least in the Traps section?
That wasn't a bug; but I believe that this _is_. 19:37
m: say "Wat...\nNegative numbers should never be considered prime, even if the absolute value is!!"; my @n = (0 .. 500); say "{-$_} is prime??" if (-$_).is-prime for @n;
camelia Wat...
Negative numbers should never be considered prime, even if the absolute value is!!
-5 is prime??
-17 is prime??
-65 is prime??
-99 is prime??
-107 is prime??
-135 is prime??
-153 is prime??
-185 is prime??
-209 is prime??
…
19:37 Xliff_ joined
thundergnat m: say "\nSome negative numbers are considered prime even if the absolute value isn't!!"; say "Negative \"primes\"?? ", my @m = (0...-500).grep: &is-prime; say "Negative {-$_} is prime??" unless (.abs).is-prime for @m; 19:37
camelia
Some negative numbers are considered prime even if the absolute value isn't!!
Negative "primes"?? [-5 -17 -65 -99 -107 -135 -153 -185 -209 -267 -299 -315 -353 -369 -387 -419 -467 -483]
Negative 65 is prime??
Negative 99 is prime??
Negative …
19:40 _Xliff_ left 19:44 _Xliff_ joined
MasterDuke thundergnat++ that's my bad 19:45
19:46 Xliff_ left
lizmat m: use nqp; dd nqp::isprime_I(-5) # underlying issue 19:47
camelia 1
19:47 Xliff_ joined
lizmat MasterDuke: should that be fixed in MoarVM or in Rakudo? 19:47
MasterDuke i'm testing a moarvm fix now
passes a spectest 19:48
19:50 _Xliff_ left
thundergnat Should I file an issue? Seems like you already have a fix in progress. 19:53
MasterDuke github.com/MoarVM/MoarVM/pull/1587 19:54
20:19 notna left
Anton Antonov @lizmat I will try Nil -- thanks! 20:56
21:19 evalable6 left, linkable6 left 21:20 evalable6 joined
Nemokosch I don't think negative primes would be a problem per se, there are pretty sensible definitions for that 21:27
although -65 or -99 shouldn't be prime numbers under any circumstances
22:08 silug left 22:14 silug joined 22:22 linkable6 joined 22:39 _Xliff_ joined 22:42 Xliff_ left 22:45 squashable6 left, djerius_ joined 22:46 djerius left 22:47 squashable6 joined
[Coke] (file a bug for negative prime) I think there should be a bug, yah. Then if someone finds the issue in a pre-released version, they can see it's fixed in a future release. 22:52
and we can refer to the bug in the commit message as well.
23:06 swaggboi left 23:20 swaggboi joined 23:57 lichtkind_ joined