00:09 arkiuat left 00:21 arkiuat joined 00:26 arkiuat left 00:54 arkiuat joined 00:59 arkiuat left 01:28 arkiuat joined 01:32 arkiuat left 01:41 sibl joined 01:57 arkiuat joined 02:01 arkiuat left 02:02 arkiuat joined 02:06 arkiuat left 02:25 ACfromTX left 02:35 arkiuat joined 02:38 ACfromTX joined 02:40 arkiuat left 02:41 kylese left, hulk joined 02:55 arkiuat joined 03:02 arkiuat left 03:09 arkiuat joined 03:15 hulk left, kylese joined 04:18 Aedil joined 04:20 vasko453558 left 04:21 vasko453558 joined 04:25 lichtkind__ joined 04:28 lichtkind_ left 05:06 itaipu left 05:50 kjp left 05:51 kjp joined 05:52 kjp left 05:53 kjp joined 06:18 tejr left 06:19 tejr joined 06:35 sibl left 06:54 wayland76 joined 07:47 sibl joined
Geth advent/main: c954e77d05 | ab5tract++ (committed using GitHub Web editor) | raku-advent-2025/authors.md
Update title for ab5tract's contribution
07:49
08:20 Aedil left 08:35 Aedil joined
disbot6 <librasteve> thanks to both for filling the Seq $advent-posts just in time! 08:39
08:44 librasteve_ joined
disbot6 <librasteve> habere-et-dispere: do you need a logon for the Wordpress site? if so please send me your email … i am librasteve at furnival dot net 08:46
09:13 dakkar joined 09:20 arkiuat_ joined 09:22 arkiuat left 09:27 arkiuat_ left, Sgeo left 09:35 arkiuat joined 09:41 arkiuat left 09:45 arkiuat joined 09:53 arkiuat_ joined 09:55 arkiuat left 10:00 arkiuat_ left 10:04 sibl left, arkiuat joined 10:06 itaipu joined 10:14 arkiuat left 10:28 snonux left 10:35 sibl joined 10:37 arkiuat joined 10:53 sibl left, arkiuat_ joined 10:55 arkiuat left 10:58 arkiuat_ left, arkiuat joined 11:03 snonux joined 12:25 arkiuat left, arkiuat joined 12:34 arkiuat_ joined 12:37 arkiuat left 12:46 arkiuat_ left 13:00 arkiuat joined 13:05 melezhik joined, arkiuat left 13:06 librasteve_ left 13:31 arkiuat joined 13:37 arkiuat left 13:50 arkiuat joined
grondilu why can't we put type constraints on `our` variables? 13:53
m: package { our Int $foo }
camelia ===SORRY!=== Error while compiling <tmp>
Cannot put a type constraint on an 'our'-scoped variable
at <tmp>:1
------> package { our Int $foo <HERE>}
expecting any of:
constraint
lizmat fwiw, I'm not sure either 13:54
arkiuat it's weird because you can put type constraints on `our` constants, no problem 13:58
but you can't constrain a constant without a type declarator
scope declarator, not type declarator, I meant 14:03
lizmat I think the problem may be related to the fact that type constraints are implemented on the container descriptor 14:12
so it would need to create container descriptor in the OUR:: stash for later use 14:14
m: our $a; BEGIN dd OUR::.keys # so why doesn't it do that ? 14:16
camelia ("\$a",).Seq
Geth raku-mode: donaldh++ created pull request #64:
Add highlighting for regex, rule, token
14:37
disbot6 <antononcube> @lizmat I assume at some point you latest Raku advent article will be added here, github.com/lizmat/articles ? 14:52
lizmat antononcube sorry, I wrote that one directly in WP 15:26
I guess I could migrate back
15:27 melezhik left
disbot6 <antononcube> It is up you -- I want to use "real life" Markdown examples for an article on code streamlining code highlighting. 15:35
16:14 orangebot joined 17:16 lichtkind__ left 17:20 lichtkind joined 17:41 dakkar left
grondilu what's up with docs.raku.org being so unresponsive? 17:55
lizmat hmm... pretty blindingly fast for me... 17:58
anything particular that's slow ?
17:59 _________ left
timo "waiting for docs.raku.org...", but from the same machine i can curl it and get a response immediately 17:59
now i can get it with my browser too 18:00
lizmat is not seeing it 18:02
grondilu I searched for "await" and did not get anything
lizmat using the search box on the site? 18:03
because that is all client side afaik
is it not?
timo yeah there's a "searchData.json" that gets downloaded up front with everything you need 18:05
18:07 stanrifkin joined
timo if for some reason that didn't load properly, maybe that broke your search 18:07
grondilu noted 18:15
18:53 _________ joined 19:02 melezhik joined 19:03 arkiuat left 19:05 arkiuat joined 19:11 arkiuat left 19:15 arkiuat joined
disbot6 <aruniecrisps> lizmat: i don't know if you saw the gist that i sent earlier: gist.github.com/raiph/849a4a9d8875...b2eda89296 19:22
<aruniecrisps> the first footnote states the following: "Of note, this primitive is Actor model "consistent", by which I mean it bundles behavior (code) and 100% private state (data), and cleanly enforces that consistency at every level, from the VMs Raku runs on to languages that target those VMs including Raku itself. One upshot is that the OO::Actors userland module is (at the time of writing this footnote) just 35 lines of code."
<aruniecrisps> i was wondering if you elaborate on what raiph means here? i'm kind of new to moarvm and would love to learn a bit more about the inner workings 19:23
19:49 arkiuat left
korvo I'm interested in a MoarVM-oriented answer, but I can give a capability-oriented answer as a complement. An actor is an encapsulated object, a mailbox for pending messages, and a system for referring to other actors at a distance by address. If every object is encapsulated and object references are hard to forge then it's easy to treat any object as an actor by attaching a mailbox. 19:50
19:50 stanrifkin left 19:51 arkiuat joined 19:56 arkiuat left 20:02 librasteve_ joined
disbot6 <jubilatious1_98524> @grondilu docs.raku.org/routine/await 20:11
20:22 arkiuat joined
grondilu m: Bag.new(foo => 1000000, bar => 0).pick 20:25
camelia ( no output )
grondilu m: print Bag.new(foo => 1000000, bar => 0).pick
camelia Use of Nil in string context
in block <unit> at <tmp> line 1
20:26 arkiuat left
grondilu lol I guess I was totally wrong about Bag construction 20:26
m: my $bag = bag foo => 1000000, bar => 0; print $bag.pick 20:28
camelia Cannot resolve caller bag(:bar(Int), :foo(Int)); none of these signatures matches:
()
(*@a --> Bag:D)
in block <unit> at <tmp> line 1
grondilu m: my $bag = bag "foo" => 1000000, "bar" => 0; print $bag.pick 20:29
camelia foo 1000000
grondilu m: my $bag = bag "foo" => 1000000, "bar" => 0; print $bag.pick.key
camelia bar
grondilu m: my $bag = bag "foo" => 1000000, "bar" => 0; print $bag.pick.key xx 10 20:30
camelia foo foo foo bar foo foo foo foo bar bar
grondilu Isn't it supposed to apply some probability or something?
ah nevermind again I'm wrong about bag construction 20:31
m: my $bag = ("foo" => 1000000, "bar" => 0).Bag; print $bag.pick xx 10
camelia foo foo foo foo foo foo foo foo foo foo
grondilu here it is, much better
20:58 arkiuat joined 21:04 arkiuat left 21:12 melezhik left 21:20 oodani left 21:22 ACfromTX left, Aedil left 21:26 oodani joined 21:34 arkiuat joined 21:39 arkiuat left 21:43 arkiuat joined 21:47 arkiuat left, ACfromTX joined 21:51 arkiuat joined 21:55 orangebot left 21:57 arkiuat left 22:23 arkiuat joined 22:30 arkiuat left 22:34 wayland76 left 22:58 arkiuat joined 23:03 arkiuat left 23:04 wayland76 joined 23:20 arkiuat joined 23:22 Sgeo joined