Raku Conference Day 2 on Youtube: www.youtube.com/watch?v=BL9-XdC9WYI 🦋 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 14 August 2022.
00:07 reportable6 left 00:09 reportable6 joined 00:29 euandreh left 00:31 euandreh joined 01:31 statisfiable6 left, quotable6 left, evalable6 left, bloatable6 left, sourceable6 left, bisectable6 left, greppable6 left, coverable6 left, unicodable6 left, benchable6 left, committable6 left, releasable6 left, linkable6 left, tellable6 left, reportable6 left, nativecallable6 left, squashable6 left, shareable6 left, notable6 left, committable6 joined, quotable6 joined 01:32 shareable6 joined, bloatable6 joined, bisectable6 joined, releasable6 joined, statisfiable6 joined, nativecallable6 joined, coverable6 joined, reportable6 joined 01:33 sourceable6 joined, greppable6 joined, notable6 joined, unicodable6 joined, squashable6 joined, tellable6 joined, linkable6 joined 01:34 benchable6 joined, evalable6 joined 02:02 tejr left 03:02 coverable6 left, evalable6 left, statisfiable6 left, committable6 left, quotable6 left, reportable6 left, bloatable6 left, unicodable6 left, tellable6 left, shareable6 left, notable6 left, linkable6 left, nativecallable6 left, greppable6 left, benchable6 left, bisectable6 left, releasable6 left, sourceable6 left, squashable6 left, linkable6 joined, tellable6 joined, sourceable6 joined 03:03 bisectable6 joined, reportable6 joined, coverable6 joined, evalable6 joined, unicodable6 joined 03:04 benchable6 joined, releasable6 joined, greppable6 joined, notable6 joined, committable6 joined, quotable6 joined, squashable6 joined, bloatable6 joined 03:05 shareable6 joined, nativecallable6 joined, statisfiable6 joined 03:31 tejr joined 03:37 bigdata left 03:48 Voldenet_ joined 03:49 Voldenet left, Voldenet_ is now known as Voldenet 04:04 bigdata joined, tejr left 04:28 Xliff joined
Xliff \i 04:30
tellable6 2022-08-18T16:33:38Z #raku <tonyo> xliff fwiw i have a working slang to parse the datalog query stuff for an ORM, i've been waiting for rakuast to get there so i don't need to rewrite the code generation from it
Xliff \o even...
Why won't this work? replit.com/@Xliff/MaybeProtectedTrait#main.raku
Is it because I am trying to pass a type object (which is undefined) instead of a defined value?
Is there any way to pass a type object via trait? 04:31
.tell tonyo Nice! I'd love to see it when you're done! If you need someone to test, please let me know.
tellable6 Xliff, I'll pass your message to tonyo
04:35 Guest10 joined
Guest10 \o 04:36
04:36 Guest10 is now known as XliffyMac 05:12 tejr joined 06:06 reportable6 left 06:08 reportable6 joined
XliffyMac .tell lizmat If I wanted to create a .drop method that worked from the opposite end as .skip, would .reverse.skip($n).reverse be sufficient, or would it be better (read faster) to write it in nqp? 06:41
tellable6 XliffyMac, I'll pass your message to lizmat
XliffyMac .tell lizmat In other words, would something like "my $iter : self.reverse.iterator; Seq.new( $iter.skip-at-least($n).reverse ...)" be a way to implement it in nqp? 06:42
tellable6 XliffyMac, I'll pass your message to lizmat
lizmat m: 06:52
evalable6
tellable6 2022-08-21T06:41:25Z #raku <XliffyMac> lizmat If I wanted to create a .drop method that worked from the opposite end as .skip, would .reverse.skip($n).reverse be sufficient, or would it be better (read faster) to write it in nqp?
lizmat m: dd (1..10).head(*-4)
camelia (1, 2, 3, 4, 5, 6).Seq
lizmat XliffyMac ^^ ?? 06:53
06:57 Nemokosch joined
Nemokosch . 06:59
tellable6 2022-08-14T09:05:57Z #raku <SmokeMachine> Nemokosch: did you understand ResultSeq? (Sorry, I’m checking it in long intervals… I’m at the coliseum today… :)
2022-08-14T09:41:48Z #raku <SmokeMachine> Nemokosch: that’s a good way for understanding ResultSeq
2022-08-18T17:34:22Z #raku <jdv> Nemokosch: i answered your question. how about answering mine?
2022-08-20T18:12:14Z #raku <MasterDuke> Nemokosch: github.com/MoarVM/MoarVM/blob/mast...1006-L1072
hey Nemokosch, you have a message: gist.github.com/36461ee4187168cb9f...058541fad2
07:03 snarkyboojum joined
XliffyMac lizmat: I'm trying to avoid the *-x syntax 07:27
But thanks for example!
For reference, your example would be equivalent to my proposed .drop(3)
Er... .drop(4) 07:28
sub drop ($a, $n) { $a.reverse.skip($n).reverse }; (1..10).&drop(4).say 07:29
evalable6 (1 2 3 4 5 6)
XliffyMac I'm wondering if that would be worth converting to nqp and submitting a PR for consideration.
sub drop ($a, $n) { $a.head(*-$n) }; (1..10).&drop(4).say 07:31
evalable6 (1 2 3 4 5 6)
XliffyMac I should bench those.
07:44 Nemokosch left, Nemokosch joined 08:44 unicodable6 left, bisectable6 left, notable6 left, bloatable6 left, statisfiable6 left, committable6 left, quotable6 left, linkable6 left, squashable6 left, nativecallable6 left, benchable6 left, evalable6 left, releasable6 left, tellable6 left, greppable6 left, shareable6 left, reportable6 left, sourceable6 left, coverable6 left, unicodable6 joined 08:45 greppable6 joined, nativecallable6 joined, reportable6 joined, statisfiable6 joined, committable6 joined, notable6 joined, shareable6 joined, sena_kun joined 08:46 quotable6 joined, bloatable6 joined, bisectable6 joined, evalable6 joined 08:47 linkable6 joined, squashable6 joined, tellable6 joined, benchable6 joined, coverable6 joined, sourceable6 joined, releasable6 joined 09:01 ab5tract joined 09:04 Sgeo left 09:14 XliffyMac left, Xliff left 09:42 ab5tract left 10:42 notable6 left, committable6 left, reportable6 left, unicodable6 left, benchable6 left, quotable6 left, nativecallable6 left, sourceable6 left, shareable6 left, coverable6 left, greppable6 left, statisfiable6 left, tellable6 left, linkable6 left, squashable6 left, bisectable6 left, evalable6 left, bloatable6 left, releasable6 left, coverable6 joined, reportable6 joined, committable6 joined 10:43 quotable6 joined, statisfiable6 joined, evalable6 joined 10:44 sourceable6 joined, linkable6 joined, bisectable6 joined, bloatable6 joined, unicodable6 joined, benchable6 joined, tellable6 joined 10:45 notable6 joined, squashable6 joined, releasable6 joined, nativecallable6 joined, shareable6 joined, greppable6 joined 11:45 bloatable6 left, coverable6 left, bisectable6 left, greppable6 left, tellable6 left, nativecallable6 left, squashable6 left, evalable6 left, reportable6 left, linkable6 left, releasable6 left, benchable6 left, committable6 left, statisfiable6 left, shareable6 left, sourceable6 left, quotable6 left, unicodable6 left, notable6 left, quotable6 joined, squashable6 joined, notable6 joined 11:46 committable6 joined, releasable6 joined, shareable6 joined, greppable6 joined, nativecallable6 joined, sourceable6 joined 11:47 tellable6 joined, unicodable6 joined, bloatable6 joined, bisectable6 joined, benchable6 joined 11:48 statisfiable6 joined, reportable6 joined, linkable6 joined, coverable6 joined, evalable6 joined 12:07 reportable6 left 12:10 reportable6 joined 12:24 jaguart joined 13:10 Nemokosch left 14:10 reportable6 left, nativecallable6 left, benchable6 left, unicodable6 left, evalable6 left, linkable6 left, coverable6 left, shareable6 left, sourceable6 left, tellable6 left, statisfiable6 left, bloatable6 left, squashable6 left, committable6 left, quotable6 left, bisectable6 left, notable6 left, greppable6 left, releasable6 left, evalable6 joined 14:11 notable6 joined, tellable6 joined, statisfiable6 joined, greppable6 joined, bloatable6 joined, releasable6 joined, linkable6 joined 14:12 quotable6 joined, bisectable6 joined, sourceable6 joined, nativecallable6 joined, benchable6 joined 14:13 squashable6 joined, coverable6 joined, committable6 joined, unicodable6 joined, reportable6 joined, shareable6 joined 15:10 [Coke] left 15:11 ab5tract joined 15:13 [Coke] joined 16:13 linkable6 left, bloatable6 left, benchable6 left, quotable6 left, bisectable6 left, reportable6 left, nativecallable6 left, squashable6 left, committable6 left, evalable6 left, tellable6 left, releasable6 left, shareable6 left, unicodable6 left, notable6 left, sourceable6 left, coverable6 left, greppable6 left, statisfiable6 left 16:14 unicodable6 joined, committable6 joined, evalable6 joined, bisectable6 joined, nativecallable6 joined, coverable6 joined 16:15 sourceable6 joined, notable6 joined, tellable6 joined, bloatable6 joined, statisfiable6 joined, quotable6 joined, releasable6 joined 16:16 linkable6 joined, shareable6 joined, squashable6 joined, greppable6 joined, benchable6 joined, reportable6 joined 16:17 sena_kun left 16:20 sena_kun joined, eseyman joined 17:20 bloatable6 left, greppable6 left, unicodable6 left, bisectable6 left, benchable6 left, evalable6 left, committable6 left, tellable6 left, linkable6 left, reportable6 left, shareable6 left, notable6 left, statisfiable6 left, nativecallable6 left, releasable6 left, squashable6 left, coverable6 left, quotable6 left, sourceable6 left 17:21 benchable6 joined, unicodable6 joined, linkable6 joined, reportable6 joined, bloatable6 joined, sourceable6 joined, releasable6 joined, greppable6 joined, shareable6 joined, nativecallable6 joined 17:22 tellable6 joined, statisfiable6 joined, coverable6 joined, squashable6 joined 17:23 bisectable6 joined, committable6 joined, quotable6 joined, notable6 joined, evalable6 joined 17:59 bisectable6 left, benchable6 left, statisfiable6 left, releasable6 left, unicodable6 left, evalable6 left, sourceable6 left, bloatable6 left, coverable6 left, committable6 left, notable6 left, squashable6 left, quotable6 left, tellable6 left, linkable6 left, reportable6 left, greppable6 left, shareable6 left, nativecallable6 left 18:01 benchable6 joined, squashable6 joined, bisectable6 joined, quotable6 joined, committable6 joined, nativecallable6 joined, tellable6 joined 18:02 reportable6 joined, evalable6 joined, unicodable6 joined, releasable6 joined, statisfiable6 joined, shareable6 joined 18:03 sourceable6 joined, notable6 joined, linkable6 joined, bloatable6 joined, greppable6 joined, coverable6 joined 18:27 bigdata left 18:46 sena_kun left 18:47 sena_kun joined 19:36 bigdata joined 20:39 bigdata left 20:50 jaguart left 21:02 ab5tract left 21:12 irc_user left 21:56 snarkyboojum left 22:03 discord-raku-bot left 22:11 discord-raku-bot joined 22:25 Sgeo joined 22:29 sena_kun left 23:24 atweiden-air_ joined
atweiden-air_ m: role B { has $.b }; role A { has $.a; multi method new(*%o (:$a, :$b!)) { self.^mixin(B).bless(|%o) }; multi method new(*%o (:$a)) { self.bless(|%o) } }; multi a(A $ (:a($) where .so) --> True) {*}; multi a(A $ (:a($)) --> False) {*}; a(A.new).say; a(A.new(:a)).say; try a(A.new(:a, :b)).say; $!.WHAT.say; 23:27
camelia False
True
(NoMatch)
atweiden-air_ m: role B { has $.b }; role A { has $.a; multi method new(*%o (:$a, :$b!)) { self.^mixin(B).bless(|%o) }; multi method new(*%o (:$a)) { self.bless(|%o) } }; multi a($ (:a($) where .so) --> True) {*}; multi a($ (:a($)) --> False) {*}; a(A.new).say; a(A.new(:a)).say; try a(A.new(:a, :b)).say; $!.WHAT.say if $!; 23:31
camelia False
True
(NoMatch)
atweiden-air_ does deconstruction stop working for objects with mixins? 23:33