🦋 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.
ugexe with #5295 and #5296 we should be able to allow people to work around windows issues related to precomp, so people could use github actions with a modern rakudo again 00:30
(by disabling precomp) 00:31
nemokosch hythm: that's definitely good to know ^^ 10:07
lizmat should make this a worry in RakuAST: 11:15
m: sub a($ is rw) { }; a 42 11:16
camelia Parameter '<anon>' expects a writable container (variable) as an
argument, but got '42' (Int) as a value without a container.
in sub a at <tmp> line 1
in block <unit> at <tmp> line 1
nemokosch i.e promote it to compile-time? 11:21
lizmat yes, a worry is a compile time warning 11:27
hmmm.. come to think, it should probably be a sorry, just like:
m: foo(42)
camelia ===SORRY!=== Error while compiling <tmp>
Undeclared routine:
foo used at line 1
Geth rakudo/main: 41ae15a017 | (Nick Logan)++ | src/core.c/CompUnit/Repository/Installation.pm6
Respect CUPR.may-precomp() in CURI

CompUnit::PrecompilationRepository.may-precomp() can be used to check if something should try to precompile using said repo. It is used in CUPR in its try-load method to determine if it should try to precompile a file when loading, which often happens with a CURFS type repository. However, CURI.install also tries to ... (6 more lines)
14:55
rakudo/main: e4b4bdeb57 | (Nick Logan)++ (committed using GitHub Web editor) | src/core.c/CompUnit/Repository/Installation.pm6
Merge pull request #5296 from rakudo/ugexe/curi-use-may-precomp

Respect CUPR.may-precomp() in CURI
rakudo/ugexe/may-precomp-environment-variable: 6750ab31fa | (Nick Logan)++ | src/core.c/CompUnit/PrecompilationRepository.pm6
Add support for RAKUDO_NO_PRECOMPILATION environment variable

This adds a mechanism that allows users to disable precompilation via an environment variable. It prevents rakudo from using precompilation files as well as from generating them.
14:58
Geth rakudo/main: 6750ab31fa | (Nick Logan)++ | src/core.c/CompUnit/PrecompilationRepository.pm6
Add support for RAKUDO_NO_PRECOMPILATION environment variable

This adds a mechanism that allows users to disable precompilation via an environment variable. It prevents rakudo from using precompilation files as well as from generating them.
15:48
rakudo/main: 1d100f8e74 | (Nick Logan)++ (committed using GitHub Web editor) | src/core.c/CompUnit/PrecompilationRepository.pm6
Merge pull request #5295 from rakudo/ugexe/may-precomp-environment-variable

Add support for RAKUDO_NO_PRECOMPILATION environment variable
ugexe tbrowder__: in the next release of rakudo setting RAKUDO_NO_PRECOMPILATION=1 on windows should work around the long path issue and thus let github CI actions work on modern rakudo again. Of course things will also be slower since there will be no precompilation, but at least you'll know if your code works :/ 15:54
lizmat ugexe++ 15:55
lizmat starting to wonder whether END blocks *should* return their value after all 16:53
m: END {say END 42}
camelia WARNINGS for <tmp>:
Nil
Useless use of constant integer 42 in sink context (line 1)
tbrowder__ ugexe++ 👍🏻 17:37
ugexe i may have spoke too soon heh 17:52
ugexe m: module Foo { my $lock = Lock.new; role FooRole { say $lock } }; class XXX does Foo::FooRole {} 18:37
camelia (Any)
ugexe m: module Foo { BEGIN my $lock = Lock.new; role FooRole { say $lock } }; class XXX does Foo::FooRole {}
camelia Lock.new
ugexe is it ok to use BEGIN with a lock like that? 18:38
I'm guessing no
ah, but I think using INIT would be fine... 18:47
Geth rakudo/ugexe/fix-5333: 96bf86ad76 | (Nick Logan)++ | lib/NativeCall.rakumod
Ensure lock is created before NativeCall role is setup

Fixes #5333
18:57
rakudo: ugexe++ created pull request #5334:
Ensure lock is created before NativeCall role is setup
19:00
lizmat .tell ab5tract irclogs.raku.org/cro/live.html 21:20
tellable6 lizmat, I'll pass your message to ab5tract
Geth rakudo/main: a4a2bbd24e | (Nick Logan)++ (committed using GitHub Web editor) | lib/NativeCall.rakumod
Ensure lock is created before NativeCall role is setup (#5334)

Fixes #5333
21:32