🦋 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 00:01 reportable6 joined 00:08 xinming left, xinming joined 00:27 lichtkind left 01:05 ProperNoun left 02:01 linkable6 left 02:03 linkable6 joined 02:20 guifa joined 03:01 razetime joined
guifa .tell jmerelo I'll have my article converted and ready for posting within 24 hrs. Sorry things have been a bit crazy. In an absolute pinch, can grab them from gist.github.com/alabamenhu/7261845...fb4d945f58 but will need some light editing 03:10
tellable6 guifa, I'll pass your message to jmerelo
03:55 Kaiepi left 04:55 greppable6 left, coverable6 left, tellable6 left, evalable6 left, sourceable6 left, linkable6 left, bisectable6 left, bloatable6 left, committable6 left, benchable6 left, squashable6 left, nativecallable6 left, unicodable6 left, notable6 left, shareable6 left, quotable6 left, releasable6 left, statisfiable6 left, reportable6 left 04:56 notable6 joined 04:57 bisectable6 joined, statisfiable6 joined, shareable6 joined, committable6 joined, benchable6 joined, unicodable6 joined, releasable6 joined, tellable6 joined, reportable6 joined 04:58 squashable6 joined, bloatable6 joined, coverable6 joined, greppable6 joined, quotable6 joined, sourceable6 joined, evalable6 joined, nativecallable6 joined, linkable6 joined 05:58 sourceable6 left, linkable6 left 05:59 sourceable6 joined 06:00 reportable6 left 06:01 linkable6 joined 06:03 reportable6 joined 06:54 xinming left, xinming joined 07:14 codesections left 07:29 Sgeo left 08:00 abraxxa joined 08:01 Kaiepi joined 08:04 abraxxa left 08:05 abraxxa joined, xinming left 08:06 xinming joined
Geth ecosystem/main: a6c5d6bea2 | (Juan Julián Merelo Guervós)++ (committed using GitHub Web editor) | META.list
Moved to zef ecosystem
08:07
08:15 xinming left 08:16 xinming joined 09:13 dakkar joined 09:21 sena_kun joined 09:35 jpn joined 10:04 mahafyi joined 10:31 lichtkind joined 11:31 linkable6 left, reportable6 left, releasable6 left, squashable6 left, tellable6 left, quotable6 left, nativecallable6 left, committable6 left, bloatable6 left, greppable6 left, bisectable6 left, statisfiable6 left, sourceable6 left, evalable6 left, shareable6 left, coverable6 left, coverable6 joined, sourceable6 joined 11:32 reportable6 joined, evalable6 joined, committable6 joined, tellable6 joined, bisectable6 joined 11:33 greppable6 joined, statisfiable6 joined, bloatable6 joined, nativecallable6 joined, quotable6 joined 11:34 linkable6 joined, releasable6 joined, squashable6 joined, shareable6 joined 12:00 reportable6 left 12:02 reportable6 joined 12:06 sweetblood left 13:05 jpn left 13:21 jpn joined 13:32 razetime left 14:32 quotable6 left, sourceable6 left, evalable6 left, reportable6 left, shareable6 left, bloatable6 left, statisfiable6 left, bisectable6 left, releasable6 left, squashable6 left, tellable6 left, coverable6 left, greppable6 left, nativecallable6 left, committable6 left, linkable6 left, notable6 left, benchable6 left, unicodable6 left, reportable6 joined 14:33 mahafyi left, greppable6 joined, bisectable6 joined, unicodable6 joined 14:34 statisfiable6 joined, linkable6 joined, sourceable6 joined, coverable6 joined, tellable6 joined, evalable6 joined, benchable6 joined, squashable6 joined, committable6 joined, releasable6 joined 14:35 shareable6 joined, bloatable6 joined, quotable6 joined, nativecallable6 joined, notable6 joined 14:39 dakkar left 14:40 dakkar joined 15:02 Sgeo joined 15:12 Kaiepi left 15:36 ProperNoun joined 15:47 Kaiepi joined
Voldenet that is a nice post raku-advent.blog/2022/12/20/sigils/ 15:56
Nemokosch codesections has arrived 16:00
16:01 abraxxa left
Voldenet In apl when I see the symbol I don't know, I don't know how to google it 16:02
and I think that's beautiful :) 16:03
Nemokosch hot take: Raku's sigils *could* be great if they were backed up by (nearly) equally useful semantics
there was no Google in APL times and no APL in Google times 😛
Voldenet but APL is still alive! :D
Nemokosch or so they say 🤌 16:04
16:25 mahafyi joined 16:53 grondilu joined, grondilu left 16:54 grondilu joined 16:55 codesections joined
grondilu I have a module for which the dynamic variables might be useful. Example : 16:57
tellable6 2022-12-19T16:03:46Z #raku <melezhik> grondilu - I guess this is already fixed - ci.sparrowhub.io/report/2220 ?
grondilu m: package foo { our sub bar { $*bar } }; my $*bar = "bar"; say foo::bar
camelia bar
grondilu that works fine, but what if I need that at compile time? 16:58
m: package foo { our sub bar { $*bar } }; my $*bar = "bar"; BEGIN say foo::bar
camelia ===SORRY!=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
Dynamic variable $*bar not found
in sub bar at <tmp> line 1
in code at <tmp> line 1
grondilu here I get an error, which is understandable, but what about that :
m: package foo { our sub bar { $*bar } }; BEGIAN my $*bar = "bar"; BEGIN say foo::bar
camelia ===SORRY!=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
Dynamic variable $*bar not found
in sub bar at <tmp> line 1
in code at <tmp> line 1
grondilu why do I get that same error here too? $*bar was declared at compile time too, and before the call to foo::bar 16:59
spoiler: it's for github.com/grondilu/finite-fields-raku 17:00
I want to use it in github.com/grondilu/elliptic-curves-raku, and it works, but I have to set the $*modulus variable for each import. I tried to set it just once at the beginning, but it fails because further down there is a constant defined with a constructor calling the finite fields module. 17:03
thus the foo bar example above which replicates the problem, I think 17:04
oh wait there was a typo above 17:05
m: package foo { our sub bar { $*bar } }; BEGIN my $*bar = "bar"; BEGIN say foo::bar
camelia ===SORRY!=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
Dynamic variable $*bar not found
in code at <tmp> line 1
grondilu well, same
(kind of weird that it didn't complain about BEGIAN) 17:06
m: BEGIAN say "hi"
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared name:
BEGIAN used at line 1
17:12 equinox joined 17:22 squashable6 left 17:23 squashable6 joined 17:49 grondilu left 17:56 dakkar left, jpn left 18:00 reportable6 left 18:03 reportable6 joined 18:11 jpn joined 18:31 sena_kun left 18:34 Xliff joined
Xliff \o 18:34
When I have the following line in code:
$O = try require ::($ot<name>) if $O ~~ Failure;
I get this error at COMPILE time; 18:35
===SORRY!===
lang-call cannot invoke object of type 'VMNull' belonging to no language
Is there something I am doing wrong?
18:35 sena_kun joined
Xliff m: try require::("NativeHelpers::Blob"); 18:35
camelia ( no output )
Xliff m: my $O = try require::("NativeHelpers::Blob"); say $O.^name
camelia Any
18:46 Xliff left 19:06 jpn left
[Coke] Why ~~ Failure and not === Nil? 19:14
19:14 jpn joined
[Coke] github.com/coke/raku-zef-deps/blob...od#L87-L93 is what I ended up with 19:15
Geth rakubrew.org: 952e1a7381 | (Patrick Böker)++ | lib/Homepage.rakumod
Work around a severe memory leak

Also be faster.
19:26
19:48 equinox left 19:54 abraxxa-home joined
[Coke] www.reddit.com/r/rakulang/comments...end_fails/ needs some jvm backend build help 20:12
tonyo m: package foo { our sub bar { $*bar } }; BEGIN { our $*bar = "bar"; say foo::bar }; # grondilu 20:16
camelia bar
Voldenet hmm 20:18
m: package foo { our sub bar { $*bar } }; BEGIN { my $*bar = "bar"; say foo::bar }
camelia bar
Voldenet doesn't matter if it's my/our
20:22 squashable6 left, squashable6 joined
tonyo m: package foo { our sub bar { $*bar } }; BEGIN { our $*bar = "bar"; } BEGIN { say foo::bar }; 20:31
camelia ===SORRY!=== Error while compiling <tmp>
Strange text after block (missing semicolon or comma?)
at <tmp>:1
------> $*bar } }; BEGIN { our $*bar = "bar"; }⏏ BEGIN { say foo::bar };
expecting any of:
infix
tonyo m: package foo { our sub bar { $*bar } }; BEGIN { our $*bar = "bar"; }; BEGIN { say foo::bar };
camelia ===SORRY!=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
Dynamic variable $*bar not found
in sub bar at <tmp> line 1
in block at <tmp> line 1
tonyo less about my vs our and about multiple BEGINs breaking their assumption
20:39 abraxxa joined 20:40 abraxxa left 20:41 equinox joined 20:54 jpn left, vrurg_ is now known as vrurg 20:59 daxim_ is now known as daxim, lichtkind_ joined 21:00 Kaiepi left 21:02 lichtkind left 21:09 jpn joined 21:11 sftp left 21:17 jpn left, equinox left 21:18 jpn joined 21:40 martinthewildpig joined 21:44 jpn left
Voldenet m: BEGIN my $x = 42; BEGIN say $x; 21:45
camelia 42
Voldenet It would be consistent if that also worked 21:46
m: BEGIN my $*x = 42; BEGIN say $*x;
camelia ===SORRY!=== Error while compiling <tmp>
An exception occurred while evaluating a BEGIN
at <tmp>:1
Exception details:
Dynamic variable $*x not found
in code at <tmp> line 1
Voldenet I suppose
21:47 sena_kun left 21:50 martinthewildpig left 22:16 epony left 22:18 Kaiepi joined 22:26 epony joined 22:27 epony left, epony joined 22:54 epony left 23:10 abraxxa-home left, abraxxa-home joined 23:11 djerius left, djerius joined 23:17 epony joined 23:34 abraxxa-home left