🦋 Welcome to Raku! raku.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: colabti.org/irclogger/irclogger_log/raku
Set by ChanServ on 14 October 2019.
Geth ¦ doc: Prince213 assigned to JJ Issue 1-file HTML does not yet exist github.com/Raku/doc/issues/3632 00:32
00:33 mst left, mst joined 00:43 kleb joined
kleb hi everybody! 00:44
I have been debugging this incredibly bizarre error when running raku, and I think I almost have it figured out. The behavior is incredibly odd 00:45
i was hoping to describe it here and see if anybody might know what i can do to work around it! i think it might be a bug in the interpreter itself, but don't know the project well enough to diagnose it yet 00:46
00:48 riceandbeans joined
kleb ------------- file: bin/script#!/usr/bin/env rakuuse v6;use lib 'lib';use MyLibrary::Graph;use MyLibrary::Scrape;sub MAIN { do_stuff(); #this function is from MyLibrary::Scrape}------------- file: lib/MyLibrary/Scraper.pm6use MyLibrary::CompletionChannel;#require Data::Dump::Tree<&ddt>;our sub do_stuff(@seed) { say "do_stuff"; #ddt @seed; 00:53
my $chan = Channel.new;}-------------- file: lib/MyLibrary/Graph.pm6## large file with lots of functions declared "our", as well as some use statements
aw dang it didnt space or indent... 00:55
here it is on pastebin: pastebin.com/raw/qx2zhfNQ
that is a basic idea of the code that is breaking
but the behavior is **almost** non-deterministic. I think i figured out how to deterministically make it break, but this certainly seems like a bug in raku 00:56
guifa What’s is the actual error that it’s giving?
kleb here is the error: 00:57
pastebin.com/raw/6WwiRARd 00:58
timotimo kleb: do you ever access hashes or arrays from multiple threads at the same time?
kleb not in this program stub
timotimo oh, that's not the kind of error i was expecting
kleb i stripped it back to the minimal broken example
timotimo can you use "raku --ll-exception ./bin/runner"?
guifa Do you still get the error if you comment out MyLibrary::Graph? Or are things okay without it? 00:59
kleb here is the --ll-exception output: pastebin.com/raw/Lktihuji 01:00
timotimo oh, 2020.01, is that your raku version? 01:01
ah, right, rakudo-star 01:02
there is a rakudo star of 2020.05 available
kleb if I comment out MyLibrary::Scrape in ./bin/runner, and call a function from MyLibrary::Graph it works find. If I then comment out MyLibrary::Graph, and call that function in MyLibrary::Scrape, it works fine. If I then uncomment MyLibrary::Graph, it **still** works fine! but then if I change one line of code in MyLibrary::Scrape (from one space
to two spaces, for example) it breaks!
it works fine*** 01:03
timotimo can you try deleting the .precomp folder in lib/ ?
kleb if i delete the .precomp folder in lib after getting the error, i still get the error
timotimo fascinating, but as i said, it's quite possible that whatever the bug is was already fixed since then
kleb but then if I comment out MyLibrary::Graph, run it again, it works! then i uncomment that **exact** same line MyLibrary::Graph and it breaks again! 01:04
i am using package manager default raku :)
ill try with the very latest and see if i get it again 01:05
timotimo you can try setting RAKUDO_MODULE_DEBUG and see if that gives any interesting output
kleb wow RAKUDO_MODULE_DEBUG is hyper useful
thank u for that one :) you guys are awesome 01:06
timotimo no problem! 01:07
kleb what does "late loading" mean in the context of that debug output?
timotimo not sure 01:08
kleb pastebin.com/raw/WqAZsTYp 01:09
thats my output when it is **working** with both use statements uncommented 01:10
timotimo huh i wonder where the "Python" comes from that is being compared against in one spot 01:11
01:11 molaf left
timotimo oh, you're using Inline::Python, that could have something to do with it 01:12
kleb and this one is the output from when it is broken: pastebin.com/raw/dZ0avZQB
i am indeed using inline python from the MyLibrary::Graph module
playing around with some networkx code 01:13
but none of that stuff is getting called when it is breaking i dont think...
timotimo i'm going offline now, but i hope you get it to work! 01:14
kleb thanks!!!
timotimo o/
kleb the two commands you gave have already helped me so much thank you!!
it looks like i am getting: Outdated precompiled 01:15
but then i delete ./lib/.precomp and still get the same error 01:17
i will try the newer raku
timotimo i wonder if the lib/.precomp is actually the wrong one?
perhaps "use lib" gives it trouble
no it does look like it's looking at lib/.precomp 01:18
kleb it is errors like these that really teach how everything works under the hood :p 01:21
i just switched to the newest raku with rakubrew and am reinstalling my modules
01:22 phogg left 01:24 molaf joined, phogg joined, phogg left, phogg joined 01:32 kleb left 02:14 skids joined 02:22 skids left 02:47 skids joined 02:50 billN1VUX joined 02:52 skids left 02:59 skids joined 03:18 suzusime[m] joined 03:45 aluaces left 03:47 ensamvarg3 joined 03:48 ensamvarg3 left 03:55 avar joined, avar left, avar joined 03:58 ensamvarg3 joined 04:06 billN1VUX left 04:14 aborazmeh joined, aborazmeh left, aborazmeh joined 04:32 zacts joined 05:07 defaultxr left 05:08 bocaneri is now known as Sauvin 05:20 rindolf joined 05:25 molaf left 05:34 defaultxr joined 05:42 molaf joined 05:48 roguelazer left 05:50 roguelazer joined 05:59 roguelazer left 06:01 roguelazer joined 06:07 zacts left 06:12 Doc_Holliwould left 06:37 Xliff left, Xliff_ joined 06:41 skids left 06:48 CIAvash left, rypervenche left, moon-child left, cheer[m] left, hoelzro left, Altreus left, jcallen left, tejr left, xelxebar left 07:00 ensamvarg3 left, ensamvarg3 joined 07:20 literal left 07:22 literal joined 07:25 CIAvash joined, rypervenche joined, moon-child joined, cheer[m] joined, ssm joined, perlbot joined, hoelzro joined, Altreus joined, jcallen joined 07:29 xelxebar joined 07:30 sena_kun joined 07:32 xelxebar left, xelxebar joined, tejr joined
Geth ¦ problem-solving: JJ assigned to jnthn Issue IO::Path and Distribution::Resource share many methods github.com/Raku/problem-solving/issues/233 07:38
07:39 aluaces joined 07:49 JJMerelo joined
JJMerelo Rien ne va plus! The survey is going to be closed tomorrow docs.google.com/forms/d/e/1FAIpQLS...Q/viewform You want to be heard, fill it today! 07:53
tellable6 2020-09-12T20:53:45Z #raku-dev <ggoebel> JJMerelo Thank you for doing the survey. -MasterDuke mentioned you helped someone transfer some of their modules to raku-community-modules. Is that process documented anywhere?
JJMerelo .tell ggoebel yes I did... but then the amount of modules the community was in charge of increased by 30% and I wasn't too happy about it github.com/Raku/problem-solving/issues/210 My current opinion is that it's much better to get someone else to adopt your module. The community modules should be a last resource. 07:55
tellable6 JJMerelo, I'll pass your message to ggoebel
08:04 kylese joined 08:06 defaultxr left 08:13 defaultxr joined 08:16 stoned75 joined 08:21 domidumont joined 08:24 Doc_Holliwould joined 08:27 andrzejku joined
moritz Raku Fundamentals is now released, both print and ebook! twitter.com/nogoodnickleft/status/...3436916736 08:32
08:42 Sgeo left 08:51 mowcat left
stoned75 m: release my %h; %h.of.say 08:53
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
release used at line 1. Did you mean 'reverse'?
stoned75 m: release my %h; %h.of.say;
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
release used at line 1. Did you mean 'reverse'?
stoned75 m: releases my %h; %h.of.say; 08:54
Geth doc/master: 4 commits pushed by (JJ Merelo)++
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
releases used at line 1. Did you mean 'repeated', 'reverse'?
stoned75 commit: releases my %h; %h.of.say;
committable6 stoned75, ¦releases (46 commits): «(Mu)␤» 08:55
08:55 kylese left 08:56 cpan-raku left
stoned75 commit: releases :{ 0 => 42 }<0>.say; 08:56
JJMerelo moritz: congrats! Shared
committable6 stoned75, gist.github.com/42c42d4e3dddf89c31...af0863e0d2
08:56 cpan-raku joined, cpan-raku left, cpan-raku joined
moritz JJMerelo: thanks on both counts 08:57
JJMerelo: do you have an ETA for Raku Recipies? 08:58
08:59 aborazmeh left
JJMerelo moritz I'm right now in the galleys revision period. Should turn them in by 21st. So I guess late October? 09:00
El_Che moritz: I saw the post about your book on twitter! Comgrats 09:01
I didn't comment om being already in Oreilly's Safari. I don't know if it's a good thing for you or not 09:02
moritz I finished my review October 24th, so it was a bit less than a month turnaround for me 09:03
stoned75 hi. in the gist gist.github.com/42c42d4e3dddf89c31...af0863e0d2 I'm trying to pinpoint what caused this behavior change in rakudo 2018.10. anyone would have an idea ? 09:04
moritz but then this was a second edition, so maybe they had less work in production
Geth doc: 3572f5ae8f | (JJ Merelo)++ | doc/Type/Distribution/Resource.pod6
No tabs anywhere :bug:
linkable6 Link: docs.raku.org/type/Distribution::Resource
JJMerelo moritz maybe. Anyway, couple of Raku-titled books in Apress before the end of the year :-) 09:05
moritz m: say (my $)<0> 09:06
camelia (Any)
moritz bisectable: :{ 0 => 42 }<0>.say;
bisectable6 moritz, Will bisect the whole range automagically because no endpoints were provided, hang tight
El_Che moritz, a typo on the pkg page (no page nr on Safari): In both cases, use version 202.01 to get the best compatibility with the examples used in this book.
bisectable6 moritz, Output on all releases: gist.github.com/08bfd123fbaa253a0c...952caa8e5f
moritz, Bisecting by output (old=2018.09 new=2018.10) because on both starting points the exit code is 0
El_Che 2020.01? 09:07
moritz El_Che: dammit. Thanks for the info. Too late to change in print :-/
bisectable6 moritz, bisect log: gist.github.com/1b6f5470cd1c5af76e...94f6742a42
moritz, (2018-10-08) github.com/rakudo/rakudo/commit/9a...cccf684eae
moritz, Output on all releases and bisected commits: gist.github.com/950ace1eabaa9a0ab1...54b126af13
moritz stoned75: ^^ that's the commit that caused the behavior change, according to git bisect
stoned75 yeah. got it. thanks! 09:08
El_Che moritz: it's very minor, people will use the latest on the pages anyway 09:10
09:10 JJMerelo left, andrzejku left 09:22 marcusr left 09:23 marcusr joined 09:29 leont joined 09:31 marcusr left 09:32 marcusr joined 09:38 Bucciarati left 09:39 avar left 09:46 avar joined, avar left, avar joined, Bucciarati joined 09:49 aborazmeh joined, aborazmeh left, aborazmeh joined 10:19 molaf left 10:21 JJMerelo joined 10:22 camelCaser joined, ccamel left 10:27 xinming joined, Bucciarati left 10:29 literal left, avar left 10:30 Tirifto joined, Bucciarati joined, avar joined, avar left, avar joined, literal joined 10:36 aborazmeh left, JJMerelo left 10:41 andrzejku joined 11:04 molaf joined 11:10 pecastro joined 11:17 stoned75 left 11:19 stoned75 joined 11:23 andrzejku left 11:24 Altai-man joined 11:26 sena_kun left 11:28 avar left 11:30 Bucciarati left, Bucciarati joined, avar joined, avar left, avar joined 11:35 Doc_Holliwould left
Geth doc/hashmap-eg-output: 06fdbf2645 | (Stoned Elipot)++ | doc/Language/hashmap.pod6
Fix examples' output
doc: stoned++ created pull request #3633:
Fix examples' output
12:06 Doc_Holliwould joined
Geth doc: 5760b5ca12 | (Moritz Lenz)++ | doc/Language/regexes.pod6
Improve wording of :sigspace explanation

wording provided by pmichaud++ in
linkable6 Link: docs.raku.org/language/regexes
12:18 epony left 12:20 epony joined 12:29 mst left 13:06 Sauvin left 13:14 __jrjsmrtn__ left 13:15 __jrjsmrtn__ joined
Geth doc/proc-eg-output: e5aa4cf432 | (Stoned Elipot)++ | doc/Type/Proc.pod6
Fix example's output
doc: stoned++ created pull request #3634:
Fix example's output
doc/words-fix: a5e3684e66 | (Stoned Elipot)++ | 2 files
placate xt/words.t

  - remove duplicated word
  - sort words list
  - fold case
doc: stoned++ created pull request #3635:
placate xt/words.t
doc/spell-fix: f8c065000e | (Stoned Elipot)++ | 2 files
Add a new word and a word variant exception

This fix spell checks on doc/Type/Distribution/Resource.pod6
doc: stoned++ created pull request #3636:
Add a new word and a word variant exception
13:42 stoned75 left 13:46 epony left 13:48 epony joined 13:49 stoned75 joined 13:54 domidumont left 13:56 domidumont joined
Geth doc/contexts-fix-link: e0c91ffdcf | (Stoned Elipot)++ | doc/Language/contexts.pod6
fix link
doc: stoned++ created pull request #3637:
fix link
14:00 tejr left, tejr joined 14:06 domidumont left 14:09 MiGhTYGirLs2` joined 14:10 Doc_Holliwould left 14:11 MiGhTYGirLs2` left 14:12 Manifest0 left 14:15 Manifest0 joined 14:23 sftp left 14:24 sftp joined
Geth doc/contexts-eg-output: cff4eeecab | (Stoned Elipot)++ | doc/Language/contexts.pod6
Fix example's output
doc: stoned++ created pull request #3638:
Fix example's output
14:42 natrys joined 14:47 Doc_Holliwould joined 14:54 Manifest0 left 14:56 Manifest0 joined
Geth doc/contexts-eg-say: 6ce34fd0c3 | (Stoned Elipot)++ | doc/Language/contexts.pod6
Sync example's code and its output
doc: stoned++ created pull request #3639:
Sync example's code and its output
15:12 guifa left 15:17 ensamvarg left
Geth doc/contexts-op-xref: f236c093d2 | (Stoned Elipot)++ | doc/Language/contexts.pod6
xref operators
doc: stoned++ created pull request #3640:
xref operators
15:25 sena_kun joined
Geth doc/contexts-extra-word: 874d34d4ac | (Stoned Elipot)++ | doc/Language/contexts.pod6
remove extraneous word
doc: stoned++ created pull request #3641:
remove extraneous word
15:26 Altai-man left 15:37 Doc_Holliwould left 15:44 ensamvarg joined 15:54 mst joined 15:59 orinthe left 16:01 ensamvarg left 16:05 stoned75 left 16:07 stoned75 joined
Geth doc: cff4eeecab | (Stoned Elipot)++ | doc/Language/contexts.pod6
Fix example's output
doc: 2617a3d913 | (Tom Browder)++ (committed using GitHub Web editor) | doc/Language/contexts.pod6
Merge pull request #3638 from Raku/contexts-eg-output

Fix example's output
linkable6 Link: docs.raku.org/language/contexts
16:21 mendel_ is now known as mendel
Geth doc/terms-pair-op: b968f3dfce | (Stoned Elipot)++ | doc/Language/terms.pod6
Tweak operator mention's style and xref it
doc: stoned++ created pull request #3642:
Tweak operator mention's style and xref it
16:40 JJMerelo joined
Geth doc: decbae6345 | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Language/hashmap.pod6
Fix examples' output
linkable6 Link: docs.raku.org/language/hashmap
Geth doc: 53468bce05 | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | 2 files
placate xt/words.t

  - remove duplicated word
  - sort words list
  - fold case
JJMerelo m: put 333444777 ~~ /(3+)/; 16:49
camelia 333
Geth doc: 6cec70728e | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Language/terms.pod6
Tweak operator mention's style and xref it
linkable6 Link: docs.raku.org/language/terms
16:59 hungrydonkey joined 17:00 hungryd41 joined, hungrydonkey left 17:06 sjaveed left 17:07 sjaveed joined, hungryd41 left, hungrydonkey joined 17:14 sjaveed left 17:26 ensamvarg joined 17:28 orinthe joined 17:29 Sgeo joined 17:31 Sgeo left 17:36 renormalist joined
Geth doc/contexts-eg-say: edf21b8ea4 | (Stoned Elipot)++ | doc/Language/contexts.pod6
Sync example's code and its output

  ... the other way around
17:41 aborazmeh joined, aborazmeh left, aborazmeh joined 17:45 ensamvarg3 left
Geth doc/contexts-op-xref: c2651cc2dd | (Stoned Elipot)++ | doc/Language/contexts.pod6
rephrase the sentence about the ? and ! operators
17:48 sjaveed joined
pel I'm curious as to why Raku does not use LLVM like many new languages do: Rust, Swift, Kotlin, etc... Is it because LLVM diid not exist when MoarVM was created, or because it's too complicated? 17:50
lucs pel: Ask in #raku-dev maybe? 17:51
17:52 sjaveed left
codesections can LLVM output bytecode? I think of it as aimed at machine code, but I'm certainly no expert 17:53
17:55 Sgeo joined 17:56 Geth left
pel It outputs LLVM IR bytecode. Raku compiles down to JVM bytecode I think (I'm no expert) 17:57
17:59 skids joined, Geth joined 18:06 andrzejku joined
Geth doc: 094659ff83 | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Language/contexts.pod6
xref operators
doc: 4b77fa4609 | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Language/contexts.pod6
rephrase the sentence about the ? and ! operators
linkable6 Link: docs.raku.org/language/contexts
Geth doc: 06c21504f7 | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Proc.pod6
Fix example's output
doc: 8d120c3e2a | (Stoned Elipot)++ (committed by Juan Julián Merelo Guervós) | doc/Type/Proc.pod6
use multiline example output style
linkable6 Link: docs.raku.org/type/Proc
18:19 aborazmeh left
Geth doc: e87f675ffd | (Stoned Elipot)++ | doc/Language/terms.pod6
fix link anchor
linkable6 Link: docs.raku.org/language/terms 18:20
18:46 yuplushi left 18:51 zacts joined 18:54 molaf left, zacts left 18:56 sjaveed joined 19:02 stoned75_ joined, stoned75 left 19:06 aborazmeh joined, aborazmeh left, aborazmeh joined 19:10 sjaveed left 19:11 guifa joined
guifa Another case of a protect-against-perlisms getting in the way of things lol 19:11
sub implicit-say { say CALLERS::<$_> }; for ^3 { implicit-say } 19:12
evalable6 (LoweredAwayLexical)
guifa o.O LoweredAwayLexical? is that new?
sub say { say CALLERS::<$_> }; for ^3 { say } # <— What I actually meant to point out lol 19:13
19:24 Altai-man joined 19:26 sena_kun left 19:28 skids left
codesections guifa: it's not *brand* new -- it's been around as long as I've been writing Raku, anyway. But that doesn't rule out "new" :) 19:53
19:55 andrzejku left 19:56 aborazmeh left 20:02 molaf joined 20:03 bocaneri joined 20:11 rindolf left 20:40 billN1VUX joined 20:43 hungrydonkey left 20:44 Altai-man left 20:45 aborazmeh joined, aborazmeh left, aborazmeh joined, andrzejku joined 20:53 hungrydonkey joined 20:56 natrys left
tbrowder hi, i believe there was a discussion here recently about how one can show non-raku dependencies in the META6.json file. was there any resoution that anyone remembers? 21:06
21:07 sjaveed joined 21:08 andrzejku left 21:12 sjaveed left 21:28 aborazmeh left 21:34 pecastro left 21:49 mst left, pecastro joined 22:04 skids joined 22:10 aluaces left 22:28 stoned75_ left 22:30 Xliff_ left 22:35 stoned75 joined 22:45 yuplushi joined 22:52 Tirifto left 22:54 pecastro left 22:56 hungryd52 joined, hungrydonkey left, hungryd52 left, hungrydonkey joined
codesections m: 's' ~~ /(.) <?{ say $/}>/ #1 22:57
camelia 「s」
0 => 「s」
codesections m: 's' ~~ /(.) { say $/}/ #2
camelia 「s」
0 => 「s」
codesections m: 's' ~~ /(.) $( say $/)/ #2 22:58
camelia Nil
codesections m: 's' ~~ /(.) $( say $/)/ #3
camelia Nil
codesections Why is the match available in #1 and #2, but not in #3 ^^^^ ?
23:05 JJMerelo left
guifa You need to have {} before matches are available 23:11
m: 's' ~~ /(.) {} $( say $/)/
camelia 「s」
0 => 「s」
guifa I don’t remember the exact reason why, but has something to do with *waveshands* LTM and optimizations 23:12
but I don’t think it’s intended to be that way forever
In the first two examples, you’re working on code blocks, so matches are by default available
23:44 mst joined 23:49 mst left, mst joined