🦋 Welcome to the IRC channel of the core developers of the Raku Programming Language (raku.org #rakulang). This channel is logged for the purpose of history keeping about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Logs available at irclogs.raku.org/raku-dev/live.html | For MoarVM see #moarvm
Set by lizmat on 8 June 2022.
00:00 reportable6 left 00:03 reportable6 joined 00:47 rba left 00:48 rba joined 02:44 MasterDuke joined
MasterDuke anyone else seeing this? 02:45
ok 59 - hash variable with a where guard (failing initializer)
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/59 subtests
Test Summary Report
-------------------
t/12-rakuast/var.rakutest (Wstat: 256 (exited 1) Tests: 59 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
04:49 squashable6 left 04:50 squashable6 joined 06:00 reportable6 left 06:01 reportable6 joined 06:15 MasterDuke left 06:48 sena_kun joined 06:57 sena_kun left
Geth rakudo/main: c0c5e9edac | (Stefan Seifert)++ | 2 files
RakuAST: support attribute aliases without twigil

Like: class Foo { has $foo; method get-foo() { $foo } };
08:00
rakudo/main: 4e547d17d5 | (Stefan Seifert)++ | src/Raku/ast/variable-declaration.rakumod
RakuAST: allow binding to attribute aliases

class Foo { has $foo; method set() { $foo := 1 } }
rakudo/main: 5a1e016199 | (Stefan Seifert)++ | src/Raku/ast/variable-declaration.rakumod
RakuAST: allow binding to our scoped variables

In our $foo; $foo := 1; what is bound is not the package-variable but the lexical alias. I.e. the link between this alias and the package-variable is severed.
nine MasterDuke: yes irclogs.raku.org/raku-dev/2024-05-01.html#18:50 08:18
tellable6 nine, I'll pass your message to MasterDuke
tellable6_ nine, I'll pass your message to MasterDuke
nine We're at 1063 btw 08:24
lizmat [Coke]: looks like JJ did this already in github.com/JJ/p6-math-constants/bl...stants.pm6 08:37
nine: this looks like low hanging RakuAST fruit: 08:48
m: sub a(--> "foo") { }; dd a
camelia "foo"
lizmat in RakuAST: Return value after --> may only be a type or a constant 08:49
1063 confirmed BTW :-)
08:49 sena_kun joined
Geth rakudo/main: a3907c3ac4 | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Unbreak quite a few "make test" tests with RakuAST

Looks like --> "foo" is not supported in RakuAST yet
08:51
rakudo/main: 4de8e84abb | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Streamline NativeCall (part 7/N)

  - some helper subs
09:38
nqp/main: b1c0c48dd0 | (Elizabeth Mattijsen)++ | tools/templates/MOAR_REVISION
Bump MoarVM to get MasterDuke17++ itoa fixes
10:21
rakudo/main: 539e4d26de | (Elizabeth Mattijsen)++ | tools/templates/NQP_REVISION
Bump NQP to get MasterDuke17++ itoa fixes
10:46
rakudo/main: d374dbb2bd | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Streamline NativeCall (part 7/N)

  - make private helper subs realy private
  - reduce scope of the NativeCall module further
  - more ternaries instead if if/elsif/else
10:59
lizmat greppable6: NativeCall::cglobal 11:06
greppable6 lizmat, Found nothing!
lizmat greppable6: cglobal
greppable6 lizmat, 45 lines, 16 modules: gist.github.com/ad54fb9682c9eb4c5b...45023f00a0
lizmat greppable6: NativeCall::nativecast
greppable6 lizmat, Found nothing!
lizmat greppable6: nativecast
greppable6 lizmat, 382 lines, 49 modules: gist.github.com/2e9b2039719edf9212...ebc7b41ca3
12:00 reportable6 left 12:02 reportable6 joined
Geth rakudo/main: 894075587d | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Streamline NativeCall (part 8/N)

Make Native role the only thing in the NativeCall module. And fix indenting, now there's not a lot of code in it
12:08
[Coke] JJ++ 12:22
Geth rakudo/main: 14bde02567 | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Streamline NativeCall (part 9/N)

Move NativeCall module up in the code to a more logical location
12:31
[Tux] Rakudo v2024.04-37-g14bde0256 (v6.d) on MoarVM 2024.04-3-g62e64677e
csv-ip5xs0.256 - 0.262
csv-ip5xs-201.129 - 1.153
csv-parser1.563 - 1.580
csv-test-xs-200.142 - 0.142
test1.908 - 1.978
test-t0.426 - 0.430
test-t --race0.274 - 0.275
test-t-205.184 - 5.198
test-t-20 --race1.223 - 1.260
12:41
Geth rakudo/main: 9ef2df5bca | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Streamline NativeCall (part 10/N)

  - move all local roles together
  - make all subs "my", even if they're exported, as they weren't part
   of the NativeCall namespace anymore either
  - add prototype if applicable
  - reduce number of "is exports"
  - single candidate multis become an only
13:04
nine Seems to me like map_return_type should have gone the other way: multi sub map_return_type(Mu $type) { Mu }; multi sub map_return_type(Int $type) { Int }; multi sub map_return_type(Num $type) { Num }; multi sub map_return_type($type) { $type } 13:07
lizmat good point! 13:08
Actually, the Mu would be the fallback
nine ah yes 13:10
lizmat my multi sub map_return_type(Mu $type ) { $type }
my multi sub map_return_type(Int $type --> Int) { }
my multi sub map_return_type(Num $type --> Num) { }
actually: 13:12
my multi sub map_return_type(Int --> Int) { } 13:13
my multi sub map_return_type(Num --> Num) { }
Geth rakudo/main: 586c783224 | (Elizabeth Mattijsen)++ | lib/NativeCall.rakumod
Streamline NativeCall (part 11/N)

Re-imagine map_return_type, nine++
13:25
13:31 Altai-man joined 13:34 sena_kun left
nine lizmat: re commit fff197957ad04090e01b24cb2064f9125c7bce57 using $*LANG there cannot work as that code won't get executed during the parse, thus $*LANG will be in a completely different state 14:14
linkable6 (2023-02-10) github.com/rakudo/rakudo/commit/fff197957a Make "use fatal" operational
14:15 linkable6_ left
nine That's the good reason for why the RakuAST precompiler did not even support dynamic variables until recently 14:15
14:15 linkable6_ joined
Geth rakudo/main: 80ae959aa1 | (Stefan Seifert)++ | src/Raku/ast/expressions.rakumod
RakuAST: fix BEGIN time execution of thunked expressions

We need to create a thunk's QAST from a place where we have access to the expression its thunking. The code stub doesn't have that.
15:39
rakudo/main: 4988fb37ba | (Stefan Seifert)++ | 4 files
RakuAST: avoid deparsing when we have access to the source.
Algorithm-Diff: antononcube++ created pull request #22:
Correct results of diff and sdiff
16:56
17:09 linkable6_ left 17:11 linkable6_ joined 18:00 reportable6 left 18:01 reportable6 joined
Geth Algorithm-Diff/main: e146870541 | (Anton Antonov)++ (committed using GitHub Web editor) | 2 files
Correct results of diff and sdiff

Also correct license.
18:13
Algorithm-Diff/main: 50a20665de | (Elizabeth Mattijsen)++ | 2 files
0.0.3
18:16
19:57 Altai-man left 19:59 sena_kun joined
Geth rakudo/main: 331f0192f7 | (Stefan Seifert)++ | src/Raku/ast/expressions.rakumod
RakuAST: detect a case of double closure

Detects {* + 1}(1) which is {{$_ + 1}}(1) which won't do what's intended.
20:21
rakudo/main: 1d5cd34f12 | (Stefan Seifert)++ | src/Raku/ast/checktime.rakumod
RakuAST: set file and line on sorries and worries (i.e. compile time exceptions)
21:23 squashable6 left 21:26 squashable6 joined 22:36 MasterDuke joined 23:06 sena_kun left