00:10
arkiuat left
00:21
arkiuat joined
00:26
arkiuat left
00:27
arkiuat joined
01:33
melezhik_ joined
01:37
melezhik_ left
01:50
Aedil joined
|
|||
disbot3 | <jubilatious1_98524> m: my $a = set(1, 3, 7); say 3 (elem) $a; | 02:29 | |
<jubilatious1_98524> m: my $a = set(1, 3, 7); say 3 (elem) $a; | 02:30 | ||
03:33
melezhik_ joined
03:35
melezhik_ left
03:46
apogee_ntv left,
kst`` left
03:48
apogee_ntv joined
03:57
kst`` joined
04:10
kst`` left
04:27
melezhik_ joined
04:28
melezhik_ left
04:34
melezhik_ joined
04:36
melezhik_ left
04:39
abraxxa joined
|
|||
disbot3 | <simon_sibl> you would have a place in the code I did this and shouldnt have ? like calling myself the SITE.serve(params...) or the self.HTML in the FileList (to avoid duplicate code) ? | 04:44 | |
04:44
abraxxa left
04:45
abraxxa joined
|
|||
disbot3 | <simon_sibl> it seems that hArc doesnt let me access local file by default, I get 403 access denied xD | 05:22 | |
05:26
arkiuat left
05:30
arkiuat joined
05:36
arkiuat left
05:56
kjp left
05:58
kjp joined
06:00
kjp left,
kjp joined
06:03
arkiuat joined
06:09
arkiuat left
06:12
Sgeo left
06:18
lichtkind_ joined
06:23
melezhik_ joined
06:24
melezhik_ left
06:37
arkiuat joined
06:42
arkiuat left
06:48
apac joined
07:01
arkiuat joined
07:06
arkiuat left
07:41
arkiuat joined
07:45
arkiuat left
08:07
arkiuat joined
08:10
dakkar joined
08:13
arkiuat left
08:26
melezhik joined
08:43
arkiuat joined
08:48
arkiuat left
09:10
arkiuat joined
09:15
arkiuat left
09:45
arkiuat joined
09:46
El_Che left
09:47
El_Che joined
09:49
arkiuat left
10:11
arkiuat joined
10:15
arkiuat left
10:44
arkiuat joined
10:49
arkiuat left
11:12
arkiuat joined
11:16
melezhik left
11:17
arkiuat left
11:22
apac left
11:26
apac joined
11:45
arkiuat joined
11:51
arkiuat left
12:06
arkiuat joined
12:17
guifa_ left
12:18
guifa joined
12:34
itaipu left
12:48
apac left
12:50
apac joined,
itaipu joined
13:08
apa_c joined,
apac left
13:31
apa_c left
13:47
apa_c joined
14:10
oodani left
14:12
oodani joined
|
|||
disbot3 | <antononcube> Has anyone here taken JLPT N5÷1 tests? | 14:15 | |
<antononcube> And did you use Raku in any way to prepare? | |||
14:43
guifa left,
guifa joined
15:43
melezhik joined
15:45
guifa left
15:46
apa_c left,
guifa joined,
human-blip left
15:48
human-blip joined
|
|||
disbot3 | <librasteve> @simon_sibl well, you need to assemble a website using site() and to call .serve on it which you do … the form SITE() is export is a bit of a throwback to before I added the .serve method when I had a single service.raku that always called SITE from a context that use Cro::Router … so really no need for SITE (in caps) anywhere. Passing parameter with .serve is as intended and nothing stuck out around self.HTML … it’ll | 15:52 | |
likely work just to return self since the HTML is called automatically by the parent component. But honestly I’m not really a stickler for a particular style. | |||
16:08
abraxxa left
16:18
abraxxa joined
|
|||
disbot3 | <melezhik.> What’s is status supporting Rakudo binaries for arm / risk-v ? Quoting some people trying to use Spraky those platforms “Update... I remember I started the process of Sparrow/Sparky on Aarch64 and Risc-V but I couldn't remember how far I got... so I just did a refresher. Neither have pre-built RPM repos. Thus I started the more manual way for doing the install. For Aarch64 I had this issue: $ rakubrew download moar-2025.02 | 16:32 | |
Couldn't find a precomp release for OS: "linux", architecture: "arm64", version: "2025.02" You can try building yourself. Use the `rakubrew build` command to do so. and Risc-V I had this issue: $ rakubrew download moar-2025.02 Couldn't detect system architecture. Current arch is: riscv64-linux-thread-multi Current uname -a is: Linux buildroot 6.12.0-55.34.1.el10_0.riscv64 #1 SMP PREEMPT_DYNAMIC Fri Sep 26 00:36:46 UTC 2025 riscv64 | |||
GNU/Linux I figured I would have more luck with Aarch64 so I started down the road to building but I haven't yet got a solution.” | |||
16:36
dakkar left
|
|||
disbot3 | <melezhik.> ^^ patrickb: | 16:37 | |
<melezhik.> And this one ( apparently for Rakudo devs ) … “I will find a way to get them a Risc-V board with Rocky 10 on it if they need it! 😆 “ | 16:38 | ||
16:40
librasteve_ joined
16:56
MoC joined
|
|||
tbrowder | m: use Test; my $s="10 1"; sub X(Str $s --> List) { my @ints = $s.words.map({ .Int }); @ints.unique.sort({ $^a <=> $^b }) }; my @ints = X $s; .say for @ints; ok @ints, List; | 17:04 | |
camelia | ===SORRY!=== Error while compiling <tmp> Two terms in a row at <tmp>:1 ------> ue.sort({ $^a <=> $^b }) }; my @ints = X<HERE> $s; .say for @ints; ok @ints, List; expecting any of: infix infix stopper postfix… |
||
tbrowder | why can't i use X as a sub name? | 17:25 | |
Voldenet | maybe because there's package for exceptions | 17:29 | |
m: say X.HOW | |||
camelia | Perl6::Metamodel::PackageHOW.new | ||
Voldenet | m: say X::IO | 17:30 | |
camelia | (IO) | ||
17:49
Aedil left
17:53
Aedil joined
17:58
melezhik_ joined,
arkiuat left
18:02
melezhik_ left
18:08
melezhik_ joined
|
|||
melezhik_ | .tell tonyo: I have uploaded new version of Sparky via fez upload few hours ago, but still don't see it on raku.land | 18:09 | |
tellable6 | melezhik_, I'll pass your message to tonyo | ||
melezhik_ | .tell tonyo: here the manifest - github.com/melezhik/sparky | 18:10 | |
tellable6 | melezhik_, I'll pass your message to tonyo | ||
18:12
arkiuat joined
18:14
melezhik_ left
18:16
arkiuat left
18:29
arkiuat joined
18:34
arkiuat left
18:35
arkiuat joined
|
|||
tbrowder | Voldenet: thnx, makes sense, a better err msg would help | 18:42 | |
i have never used the named exceptions except working in core long ago. | 18:44 | ||
but my example actually was to highlight another unexpected raku err msg. i’ll show it again shortly… | 18:46 | ||
ugexe | fez has nothing to do with raku.land really | 18:52 | |
raku.land/build | |||
if you look there though it looks like raku.land might be having an error | 18:53 | ||
19:01
MoC left
|
|||
disbot3 | <melezhik.> ugexe: ah, ok. Thanks . By any chance do you know who maintains Raku land? | 19:02 | |
ugexe | looking at the repo i would guess it is JRaspass | 19:03 | |
JRaspass | Hmm I guess the CPAN rsync mirror is down then - www.cpan.org/misc/how-to-mirror.html | 19:09 | |
tbrowder | m: use Test; my $s="10 1"; sub Foo(Str $s --> List) { my @ints = $s.words.map({ .Int }); @ints.unique.sort({ $^a <=> $^b }) }; my @ints = Foo($s); .say for @ints; ok @ints, List; | 19:15 | |
camelia | Type check failed for return value; expected List but got Seq in sub Foo at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
tbrowder | why is ^^^ failing? I can force the output to be a List by changing the last line in the sub to "@ints.unique.sort({ $^a <=> $^b }) }.List; | 19:18 | |
m: use Test; my $s="10 1"; sub Foo(Str $s --> List) { my @ints = $s.words.map({ .Int }); @ints.unique.sort({ $^a <=> $^b }).List }; my @ints = Foo($s); .say for @ints; | 19:19 | ||
camelia | 1 10 |
||
tbrowder | ChatGPT says the .List is not required | 19:20 | |
[Coke] | (why failing) it is telling you - you said you were getting a List, but got a Seq instead. Are you sure you need a list? | 19:23 | |
19:23
melezhik left
|
|||
[Coke] | sorry, that last list should also be List. | 19:23 | |
tbrowder | i want a List | ||
shouldn't it be coerced to a List automagically? | 19:24 | ||
[Coke] | also, you can probably use ```sort: +*``` - shorter. | ||
No, why would it? | |||
tbrowder | wel, why is it a Seq? | 19:25 | |
[Coke] | m: my @a = 1,2,3,4,5,6,7: say (@a.sort: ~*).WHAT | ||
camelia | ===SORRY!=== Error while compiling <tmp> Confused at <tmp>:1 ------> my @a = 1,2,3,4,5,6,7:<HERE> say (@a.sort: ~*).WHAT expecting any of: colon pair |
||
[Coke] | one sec | ||
19:25
apa_c joined
|
|||
tbrowder | i sure think I've done similar subs in the past without such happening, but ... | 19:26 | |
[Coke] | m: my @a = 1,2,3,4,5,6,7; say (@a.sort: ~*).WHAT | ||
camelia | (Seq) | ||
[Coke] | docs.raku.org/type/List#routine_sort | ||
sort returns a Seq | |||
Voldenet | "ChatGPT says the .List is not required" - chatgpt says many things :D | 19:27 | |
[Coke] | you're using the result of the sort as your return value, so you get a Seq. | ||
disbot3 | <nahita3882> you can do List() in the signature to have the conversion done for you | 19:28 | |
Voldenet | huh, you can do that on return type? :O | ||
m: use Test; my $s="10 1"; sub Foo(Str $s –> List()) { my @ints = $s.words.map({ .Int }); @ints.unique.sort({ $^a <=> $^b }).List }; my @ints = Foo($s); .say for @ints; | |||
camelia | ===SORRY!=== Error while compiling <tmp> Malformed parameter at <tmp>:1 ------> use Test; my $s="10 1"; sub Foo(Str $s<HERE> –> List()) { my @ints = $s.words.map({ expecting any of: constraint |
||
[Coke] | that is true on the parameters, but the return type? | ||
Voldenet | m: use Test; my $s="10 1"; sub Foo(Str $s --> List()) { my @ints = $s.words.map({ .Int }); @ints.unique.sort({ $^a <=> $^b }).List }; my @ints = Foo($s); .say for @ints; | ||
camelia | 1 10 |
||
Voldenet | wow that's convenient | ||
disbot3 | <nahita3882> by the way, .sort must be constructing some sort of a List internally and returning a Seq out of it | 19:30 | |
<nahita3882> so it could have been made to return a List but perhaps there's a reason for Seq | 19:31 | ||
tbrowder | well sort has gotten more powerful/confusing over the years fer sure. i do vaguely remember the --> List() "'trick" shown here some time ago | 19:33 | |
[Coke] | could be using some other iterable. and maybe you're trying to sort an infinite list, or a supply, or... | 19:36 | |
tbrowder | Voldenet, ref ChatGPT, yes, i have caught errors several times before, and argued about this case and wanted to make sure what is the correct output | ||
normally "he" admits it when caught in an error, but this time was quite insistent on it should be a List without .List | 19:38 | ||
disbot3 | <librasteve> took me a while to realise that most listy routines in Raku return a Seq - in other words, Raku tries hard to be lazy wherever possible | ||
tbrowder | good point, and i'm afraid i am weak-brained on Seq types | 19:39 | |
disbot3 | <librasteve> @nahita3882 , of course, is correct so in that case there is no performance gain from the Seq | ||
tbrowder | while i have asking for help, about what year did sort, map, and grep get simplified syntax without needing the braces inside parens? | 19:41 | |
disbot3 | <librasteve> I think the method call syntax xxx.grep: /it/ has been around as long as Raku ... happy to stand corrected | 19:43 | |
tbrowder | prb right, but i have always avoided.grep until getting help from lizmat or, ahem, ChatGPT | 19:45 | |
lots learned to day, thanks all | 19:46 | ||
Voldenet | nahita3882: the reason is obvious - ideally you'd want to return abstract structures everywhere | 20:08 | |
returning plain CArray may seem fast, but if someone does .sort(…).head(1) then obviously you can skip all the sorting | 20:09 | ||
also, (1..10).sort will be no-op | 20:10 | ||
tbrowder | but revisiting the "--> List()" syntax, doesn't that seem like a hack that should be fixed? | 20:12 | |
Voldenet | it's a bit like accepting List(), it's very convenient if you actually want to return or consume a list | ||
tbrowder | i don't understand. is "--> SomeType()" used in other cases? | 20:15 | |
disbot3 | <librasteve> I use it here harcstack.org | 20:16 | |
<librasteve> method hx-increment(--> Hash()) { | |||
<librasteve> otherwise I have to put {{...}} or {%(...)} | 20:17 | ||
<librasteve> which wastes two lines | 20:19 | ||
tbrowder | i think i see that, but i don't quite see the need in the List problem case...unless as y'all said Raku wants to be Lazy so you have to be specific. i will try it without a return type in my real code and see what happens. | 20:28 | |
[Coke] | I think the takeaway is that you can also be lazy here - maybe you just need an Iterable, not a List | 20:32 | |
tbrowder | ok, i do want a List and i prefer the .List syntax and all this proves the beauty of Raku/Perl and Larry's genius in more than one way to do it! | 20:41 | |
disbot3 | <librasteve> amen to that | 20:42 | |
tbrowder | bye for now, it's almost "tea" time... ;-) | 20:49 | |
disbot3 | <librasteve> ttfn | ||
tbrowder | 👍 😆 | 20:50 | |
20:57
arkiuat left
20:59
arkiuat joined
|
|||
tonyo | melezhik: what is the version? | 21:17 | |
tellable6 | tonyo, I'll pass your message to melezhik_ | ||
21:34
apa_c left
21:41
arkiuat left
21:43
LainIwakura joined
21:53
arkiuat joined,
Aedil left
21:57
arkiuat left
22:10
LainIwakura left
22:28
arkiuat joined
22:32
arkiuat left,
LainIwakura joined
22:34
Sgeo joined
|
|||
disbot3 | <jubilatious1_98524> weekly: unix.stackexchange.com/questions/7...132#800132 | 22:37 | |
22:49
arkiuat joined
22:54
arkiuat left
23:08
arkiuat joined
23:09
lichtkind_ left
23:12
arkiuat left
23:15
arkiuat joined
23:45
silug8 joined
23:46
vasko47 joined
23:47
silug left,
tinita left,
silug8 is now known as silug
23:48
tinita joined
23:49
vasko4 left,
vasko47 is now known as vasko4
23:59
librasteve_ left
|