»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
timotimo hi ShadowManu 00:03
ShadowManu hi mate 00:05
(not really used to IRC channels, but here I'm trying)
timotimo did you get the message about your first message getting cut short? 00:07
"at learning perl and comes the" were the last words 00:08
ShadowManu oh, it got truncated: "(...) I was looking at learning perl and comes the question: Perl5 or 6?" I have no issues with being in the bleeding-edge and updating code (if it's worth). 00:10
timotimo there's a lot of cool to be had in perl6, like having very easy access to multithreaded/parallel/asynchronous stuff 00:13
timotimo you'll probably be doing a bunch of ssh back and forth, we have a nice asynchronous libSSH binding 00:13
timotimo goes to bed 00:29
Camelia_ Sounds like a plan, kannan ^_^ 07:30
Camelia_ Sounds like a plan, kannan ^_^ 07:30
HoboWithAShotgun what's the idiomatic way to split a list? i need something like (@good, @bad) = @peas.cinderella 10:58
or a destructive grep
it's early, i mean .cinderella( $matcher ) 10:59
.categorize looks promising 11:01
MasterDuke i think there's also a classify-list 11:02
yoleaux 06:31Z <AlexDaniel-> MasterDuke: fwiw RT #132285
synopsebot RT#132285 [new]: rt.perl.org/Ticket/Display.html?id=132285 [REGRESSION] Error message talks about null strings when trying to create a num32 Blob (Blob[num32].new(2e0))
HoboWithAShotgun s changes to atom have been merged 11:13
timotimo cool, what are they? 11:14
tyil HoboWithAShotgun: congratz! 11:19
that was your first PR ever, right?
swastika hello guys , im new to perl programming language and i have expereice of scripting and programming with other languages , can anyone give a dicrection to me about a good read or starting considering im like to start with perl 6? 11:26
tyil well, not if you leave immediately 11:31
bhm swastika: I just read "Think Perl 6: How to Think Like a Computer Scientist" by Laurent Rosenfeld & Allen B. Downey, and think it is a good book. 11:32
tyil bhm: he closed the chat tab a few seconds after he asked the question 11:32
bhm Argh. 11:33
Camelia_ Hi, blub 11:33
Camelia_ Hi, blub 11:33
Camelia_ Hi, blub 11:34
Camelia_ Hi, blub 11:34
timotimo why would someone call themselves "swastika"? 11:35
tyil to stay anonymous on the internet 11:35
tyil or maybe he's just really religious 11:36
Geth_ perl6.org: cc774260a8 | (Patrick Spek)++ | source/whatever/index.html
Add Neovim as recommended editor.

Fixes #84
11:45
perl6.org: f04df671ca | (Patrick Spek)++ | source/whatever/index.html
Update link to vim-perl6
perl6.org: e7be47c70d | (Patrick Spek)++ (committed using GitHub Web editor) | source/whatever/index.html
Merge pull request #86 from perl6/add-neovim-recommended-editor

Add neovim as a recommended editor
Geth_ perl6.org/master: 4 commits pushed by (Patrick Spek)++, (Zoffix Znet)++ 11:46
Geth_ perl6.org: b71cb4669b | (Zoffix Znet)++ (committed using GitHub Web editor) | source/community/irc.html
Remove Zoffix-specific bot description
11:48
perl6.org: f6a01b0cab | (Zoffix Znet)++ (committed using GitHub Web editor) | source/community/irc.html
Fix typos
11:49
perl6.org: dd13c060ef | (Zoffix Znet)++ (committed using GitHub Web editor) | source/community/irc.html
Remove NeuralAnomaly

It's on extended vacation; replaced by releasable
11:51
bitrauser Good afternoon everyone 12:20
tyil o/
HoboWithAShotgun m: class A {}; my @a = A.new; say @a.classify({ .WHAT }) 13:42
camelia {(A) => [A.new]}
HoboWithAShotgun s changes to atom have been merged 13:43
m: class A {}; class B {}; my @a = A.new, A.new, B.new; say @a.classify({ .WHAT })
camelia Use of uninitialized value of type A in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
{(B) => [B.new], (A) => [A.new A.new]}
in block <unit> at <tmp> line 1
Use of uninitialized value…
HoboWithAShotgun Why?
m: class A {}; class B {}; my @a = A.new, A.new, B.new; say @a.classify({ .^name }) 13:44
camelia {A => [A.new A.new], B => [B.new]}
tyil on modules.perl6.org, my App::MPD::AutoQueue still appears twice, even though I removed it from the META.list a while ago 13:45
and some other modules from CPAN are still not appearing
HoboWithAShotgun m: class A {}; class B {}; my @a = A.new, A.new, B.new; say @a.classify({ $_ ~~ A ?? "A" !! $_ ~~ B ?? "B" !! "OTHER" ) 13:46
camelia 5===SORRY!5=== Error while compiling <tmp>
Missing block
at <tmp>:1
------> 3~ A ?? "A" !! $_ ~~ B ?? "B" !! "OTHER" 7⏏5)
expecting any of:
statement end
statement modifier
statement modifier loop
HoboWithAShotgun m: class A {}; class B {}; my @a = A.new, A.new, B.new; say @a.classify({ $_ ~~ A ?? "A" !! $_ ~~ B ?? "B" !! "OTHER" })
camelia {A => [A.new A.new], B => [B.new]}
Geth_ perl6.org: ae4680c858 | (Zoffix Znet)++ (committed using GitHub Web editor) | source/fun/index.html
List 'On Troll Hugging, Hole Digging...' article

A bit of self-horn-tooting, but article received good feedback and it fits next to audrey's Troll Hugging article already listed.
13:59
Geth_ modules.perl6.org: aa5324584e | (Zoffix Znet)++ | lib/ModulesPerl6/DbBuilder.pm
Unbust build

Was crashing due to cpan.metacpan.org/authors/id/U/UG/....30.tar.gz not having a dist name present in the filename.
Fix by warning about and skipping such dists.
14:32
ugexe fwiw allowing arbitrary file names allows one to use the ‘upload from link’ functionality from PAUSE with an archive link from GitHub 14:35
ugexe (which is how that file came to be) 14:35
jdv79 ugexe: is that what we want? arbitrary file names? 15:01
Geth_ modules.perl6.org: aae710a7f9 | (Zoffix Znet)++ | lib/ModulesPerl6/DbBuilder/Dist/Source/CPAN.pm
Toss dead code
15:14
Geth_ modules.perl6.org: 3213557d4a | (Zoffix Znet)++ | lib/ModulesPerl6/DbBuilder/Dist/Source/CPAN.pm
Add CLEANUP to tempdir

Misread the docs originally and thought it was the default, but that's only for method form.
15:16
ugexe jdv79: well I think we want to be a specific way as possible, but they have to allow arbitrary-ness in some way because dist name/ver cant always be mapped to a file system verbatim. 15:26
atroxaper Hello #perl6 15:36
Good Friday!
Does anybody want to review my new module before publishing?
github.com/atroxaper/p6-Propius
[Coke] spelling: cpecified (specified) 15:37
:WITCH WHICH
atroxaper I better in Java but not in English xDD Thank you. 15:38
ugexe the failed travis tests suggest you need to add OO::Monitors to your depends 15:42
atroxaper Oh. Good point.
Geth_ evalbot: f35f462af1 | (Zoffix Znet)++ | 2 files
Increase SHA length from 6 to 9 chars

These are used frequently in bug reports and 6-char sha is too short and conflicts with other commits when using, say, commitable6
16:46
buggable New CPAN upload: Propius-0.1.0.tar.gz by ATROXAPER cpan.metacpan.org/authors/id/A/AT/...1.0.tar.gz 17:10
New CPAN upload: TimeUnit-0.1.2.tar.gz by ATROXAPER cpan.metacpan.org/authors/id/A/AT/...1.2.tar.gz
jdv79 .tell jnthn I just RT'd the one from a week ago - RT#132287 - not sure how to debug that. never had to debug something threaded like that before. 17:22
yoleaux jdv79: I'll pass your message to jnthn.
synopsebot RT#132287 [new]: rt.perl.org/Ticket/Display.html?id=132287 [CONC] stall/block in async heavy code
HoboWithAShotgun puts "when you do $regex ~~ $string you get a coercion error" into his notebook 18:06
geekosaur yes, ~~ is not commutative. 18:08
geekosaur it has to pick one side to invoke .ACCEPTS on and feed that the other 18:08
NotCamelia Good job, AlexDaniel 18:10
NotCamelia Good job, AlexDaniel 18:10
AlexDaniel ahhem…
yoleaux 13:46Z <Zoffix> AlexDaniel: what do you think of this ticket? rt.perl.org/Ticket/Display.html?id...xn-1493785 The problem is swept under the rug and it the cause appears to be just that we shuttle a capture around from Unicode ops to ASCII ones, so that issue will be resolved on its own. So should the ticket be closed? What about tests?
AlexDaniel 3 more times
yoleaux 13:48Z <Zoffix> AlexDaniel: also this one can prolly be closed entirely? rt.perl.org/Ticket/Display.html?id...et-history 18:10
NotCamelia Good job, AlexDaniel 18:10
NotCamelia Good job, AlexDaniel 18:10
wander HoboWithAShotgun: github.com/perl6/doc/issues/1603 18:11
ugexe jdv79: looks like it could be an exception, notably github.com/rakudo/rakudo/blob/80ce...nc.pm#L151 "Too few positionals passed; expected 6 arguments but got 2" 18:14
TEttinger ... what is NotCamelia?
panderbot? 18:15
geekosaur was considering a ban until he saw '3 more times' 18:15
AlexDaniel- TEttinger: some smart ass came up with a way to make an IRC connection from camelia 18:15
TEttinger heh
ugexe jdv79: thats what i get when I run gist.github.com/ugexe/ee12646ef6ee...cf85b3639b for a long enough time
AlexDaniel- now I'm hunting for regressions, so I took all m: snippets from IRC logs 18:16
and I run them on several rakudo versions and check for differences
AlexDaniel- … which means that I'm running all sorts of crap people used to run on camelia during the last few years 18:16
TEttinger yeah, I think the similar issue that affected clojurebot and the earlier lazybot has been fixed. On the lazybot I host, apparently you would have had access to remote code execution, within message size limits 18:17
AlexDaniel- well, remote code execution is kinda the point of having an evalbot :)
whether it should have internet access or not is a different question, yeah 18:18
TEttinger rm -r /*
don't want that evaled :)
geekosaur i,i evilable6 18:19
AlexDaniel- I'm not too concerned about that actually, but I don't want it to be evaled too :D
evilable6: say 42
evalable6 42
TEttinger ha
AlexDaniel- (I'm not too concerned because most of the filesystem is read-only for the bots, but precomp files and other stuff isn't, so it will disturb the bots a little bit) 18:20
TEttinger if you can execute a file as another user maybe
JVM has stuff to run shell commands with privilege 18:21
AlexDaniel- for that reason, for example, *ables no longer have RESTRICTED setting (it was worthless anyway), but please don't do crazy shit
TEttinger yeah
AlexDaniel- as for the internet access, there was at least one time when we were bisecting IRC::Client on bisectable 18:22
so it's super useful to have unrestricted bots, even though it's scary as f
wander so now when we overload operator infix:<=, it doesn't work on ≤?
surprised 18:23
geekosaur this is something of a known wart. it's a bit more widely visible than it used to be 18:25
but there are a number of places where you have to be precise about that iirc
wander fair enough, there must be people who think it should not work 18:26
wander for it said infix ≤ equivalent to <=, but never use the word alias 18:28
skids A DSL slang could conceivably want to make them differ. 18:29
jdv79 ugexe: hmm, ok 18:33
jdv79 how come i can't get an exception out of that... 18:40
jdv79 ugexe: how'd you capture that exception? i threw a CATCH in the start block of interest but still nada. 18:41
geekosaur wander, my understading is it *should* work and this is considered a bug, but a relatively minor one that is hard to fix without killing performance of the compile stage 18:43
ugexe jdv79: had to have RAKUDO_SCHEDULER_DEBUG=1 18:44
jdv79 oh, that's fun
now i get "Unexplained error" again 18:45
this stuff is fickler than most i've played with recently;)
wander geekosaur, can you briefly intro the difficulty 18:46
or show me the way to learn more about why low performance
geekosaur wander, ideally the names infix:< <= > and infix:<< <= >> and infix:<≤> etc. should be aliases. instead they are separate definitions, *and* certain parts of the code expect to see only one canonical form for them. 18:48
I am not sure what's up with aliases, possibly they are intended to be implemented at some point but aren't yet. 18:49
the second problem I mentioned is harder because making the code handle any of the possible forms the name can take will make it very slow
given that you have to support both unicode and ascii versions along with any of multiple possible quoting formats, which end up being part of the name 18:50
AlexDaniel- related ticket: RT #131626 18:51
synopsebot RT#131626 [open]: rt.perl.org/Ticket/Display.html?id=131626 [PERF] ≥ and ≤ are 36x slower than Texas version; ≠ is 15x slower
jdv79 ugexe: i'm gonna guess you ran out of socket pairs or something. mine stalls out and doesn't throw much faster - mostly < 10s 19:01
thanks though
AlexDaniel- .tell Zoffix I've added [TESTNEEDED] and [EXOTICTEST] tags to RT #131626. Honestly I don't mind it being closed, but something about just closing it does not feel right. Maybe this half-step will do for now.
yoleaux AlexDaniel-: I'll pass your message to Zoffix.
synopsebot RT#131626 [open]: rt.perl.org/Ticket/Display.html?id=131626 [EXOTICTEST][PERF] ≥ and ≤ are 36x slower than Texas version; ≠ is 15x slower
ugexe im not running out of sockets 19:03
El_Che an alpine dev in the room? 19:04
AlexDaniel- was wondering why people talk about running out of socks 19:04
moritz has been in the Alps before
AlexDaniel- I should really get some sleep… too tired
ugexe it will crash out faster if i'm not using gdb or strace
El_Che moritz: :)
ugexe an afinity worker thread is already created before it stalls 19:05
jdv79 huh
wander geekosaur, how about do textual-substitution before compile/interpret s/≤/<=/ for `≤' which does operator 19:07
ugexe it works until it prints out `[SCHEDULER] Added an affinity worker thread` 19:08
geekosaur wander, you still have to worry about all the possible ways it can be written 19:09
jdv79 it seems to me to work iff i see "SCHEDULER] Added a general worker thread" 19:10
jdv79 that's interesting. it seems very consistent now that i noticed that. thanks ugexe 19:11
so the new scheduler is a bit funky
jdv79 gist.github.com/anonymous/49f84d38...a95696a29b 19:14
.tell jnthn - looks like the scheduler might have enough worker threads... - gist.github.com/anonymous/49f84d38...a95696a29b
yoleaux jdv79: I'll pass your message to jnthn.
ugexe hmm for me its never the initial affinity thread that does it 19:15
AlexDaniel- .tell regarding RT #131515, you say that it is not the right commit, even though it totally feels like it's exactly the right one. I'm too tired right now, but I've added [BISECTME] tag so that I'd get to it later. ⅕ of a step this time, but eventually we'll get it nailed
yoleaux AlexDaniel-: I'll pass your message to regarding.
AlexDaniel- fffffff
synopsebot RT#131515 [open]: rt.perl.org/Ticket/Display.html?id=131515 [BISECTME][PERF] Performance loss in some commits
AlexDaniel- .tell Zoffix regarding RT #131515, you say that it is not the right commit, even though it totally feels like it's exactly the right one. I'm too tired right now, but I've added [BISECTME] tag so that I'd get to it later. ⅕ of a step this time, but eventually we'll get it nailed
yoleaux AlexDaniel-: I'll pass your message to Zoffix.
jdv79 hmm, is there a way to set the # of worker threads these days...?
ugexe RAKUDO_MAX_THREADS 19:16
AlexDaniel- o/
AlexDaniel- &
jdv79 no, i mead statically create them on startup
not a max for the dynamically created pool
*mean 19:17
wander since what we care about is the operator form, s/infix:<≤>/infix< <= >/
HoboWithAShotgun fricking smartmatch. %h ~~ $key doesn't work. It has to be $key ~~ %h
gfldex jdv79: there is still Thread.start
wander what zoffix did in github.com/rakudo/rakudo/commit/6ec21cb473 is `if ($name eq '&infix:<≤>') { $op.name: '&infix:«<=»' }` 19:18
[Coke] You can write your own schedule, I think.
*er
geekosaur HoboWithAShotgun, did you see my earlier remark about that? 19:19
wander maybe definition should also be converted 19:20
geekosaur ~~ CANNOT be commutative. (think of it this way, a subclass is not a superclass. so A ~~ B can't imply B ~~ A if B is a subclass of A)
wander, you are still missing the point that you can use any of umpteen different kinds of quoting 19:21
jdv79 i get a weird mutex error if i try to set initial_threads 19:22
but i can still set max_threads in a new Scheduler like before the rework
wander isn't simply textual-substitution, but when deal with a operator definition it performs
jdv79 oh, its not public
gah 19:23
geekosaur infix:<≤> and infix:<<≤>> and infix:«≤» and infix:‹≤› are all supposed to be the same thing (and there's still other ways to write it)
wander well
geekosaur do you start to see the problem?
wander so the fix doesn't work, right? 19:24
it just deal with '&infix:<≤>'
if we can reduce all forms of use into '&infix:<≤>', we shall be able to reduce all form of definition into one, says, standard form 19:27
jdv79 so tried to recompile with initial_threads set to 4 and got a lock error 19:29
:(
ugexe there have to be a certain number of threads initially, although i dont know what that number is 19:30
1 for gc for instance
jdv79 the default worker count is 1 19:30
timotimo yeah the MAX_THREADS is only the default for any scheduler created without that argument passed in code 19:31
jdv79 i think what's happening is that I'm piling (possibly dependant) work on the scheduler before it decides to start enough threads and it deadlocks
wander convert the definition instead of substitute text
jdv79 or something like that
timotimo moarvm will start one thread for spesh and jit, and one thread for eventloopy things 19:32
jdv79 unless there's a better theory for why my test case only works if a second general worker is started ^H
ugexe that doesn't explain the exception i see though
jdv79 i'm not sure that's necessarily related 19:33
i don't everr get an exception here but the test passes and doesn't
ugexe did you run the code exactly as is from that gist? 19:34
jdv79 yeah 19:35
ugexe because it -is- slightly different in that the same perl6 instance would be managing every retry
jdv79 im running both way
s
Zoffix . 19:35
yoleaux 19:01Z <AlexDaniel-> Zoffix: I've added [TESTNEEDED] and [EXOTICTEST] tags to RT #131626. Honestly I don't mind it being closed, but something about just closing it does not feel right. Maybe this half-step will do for now.
19:15Z <AlexDaniel-> Zoffix: regarding RT #131515, you say that it is not the right commit, even though it totally feels like it's exactly the right one. I'm too tired right now, but I've added [BISECTME] tag so that I'd get to it later. ⅕ of a step this time, but eventually we'll get it nailed
synopsebot RT#131626 [open]: rt.perl.org/Ticket/Display.html?id=131626 [EXOTICTEST][PERF] ≥ and ≤ are 36x slower than Texas version; ≠ is 15x slower
RT#131515 [open]: rt.perl.org/Ticket/Display.html?id=131515 [BISECTME][PERF] Performance loss in some commits
Zoffix wander: convert definition to what? 19:36
ugexe to me it looks like the wrong continuation is used to eventually pass arguments to
jdv79 hmm, ok 19:38
Xliff \o
geekosaur: What mneumonic do you use to determine smartmatch order? 19:39
I typically think of ~~ as one of "matches", "is" or "does".
You could even use "in", but that's semantics. 19:40
ugexe jdv79: which rakudo/moar revisions? can't think of another reason we'd have different results 19:40
jdv79 latests 19:40
Zoffix wander: the commit simply rewrites Unicode `≤` to ASCII `<=` (as long as both are core), so we bypass the perfomance hit of shuffling the Capture: github.com/rakudo/rakudo/blob/7bea...ic.pm#L301
geekosaur Xliff, I know it's turning into R.ACCEPTS(LHS) 19:41
ugexe mine is a few days old, but i'll see what latest does
geekosaur er RHS.ACCEPTS(LHS)
Xliff Ahh. That actually is better than what I've been using. 19:41
jdv79 if you go back to before the scheduler rework, say 2017.09, mmy test always passes
Zoffix s/shuffling/shuttling/;
jdv79 but now i'm just repeating myself ^H 19:42
wander seeing your fix `if ($name eq '&infix:<≤>') { $op.name: '&infix:«<=»' }`, I wonder if all ≤ calls have the form `&infix:<≤>`
if so, we may write `if ($name eq infix:<≤>) { $op.name: 'infix:«<=»' }` "when dealing with multi operator definition"
jdv79 anyway, anyone have any ideas here?: gist.github.com/anonymous/dbe5c79e...72d146603d
Xliff geekosaur: is .ACCEPTS nqp? 19:43
jdv79 all i did was change the # of initial_threads from 0 to 4
wander premise, <= is the alias of ≤
geekosaur m: say Int.ACCEPTS(3) 19:45
camelia True
geekosaur ~~ is just shorthand for aliasing $_ to the left side and then invoking the ACCEPTS method of the right side with $_ as parameter 19:46
Xliff kk
wander Xliff, github.com/perl6/nqp/blob/ebac9fee...Mu.nqp#L86
geekosaur so I guess I read ~~ as 'is ACCEPTed by' 19:47
Xliff Which is a more conside way of how I was thinking about it. LOL.
Zoffix wander: yeah, any way you write them will be cannonicalize to one form: github.com/rakudo/rakudo/blob/7bea...5023-L5039
wander: you can see it gets converted to infix:<≤> form if you dump AST: perl6 --target=ast -e 'infix:«≤»(4, rand)' and if you dump optimizer stage, you can see it gets converted: perl6 --target=optimize -e 'infix:«≤»(4, rand)' 19:48
Zoffix wander: unsure what you mean by "`if ($name eq infix:<≤>) [...] "when dealing with multi operator definition""`. The `$name eq infix:<≤>` won't be valid code in the optiimizer 19:49
wander Zoffix, since we are able to convert_unicode_op_to_ascii when optimize_call, can we convert_unicode_op_to_ascii when define_multi_sub? 19:55
wander then both definition and use of there ops are equivalent, so they are aliases 20:00
Zoffix wander: probably yes. But I don't know how. I'm a n00b at this. lizmat++ proposed doing something like that when the commit when it, so maybe she know how. Prolly should watch out for how it works out with user defined ops. Unless we define all Unicode ops as strictly aliases for ASCII ops (prolly make sense). IIRC there as an `is alias` trait lizmat made in the past but it disn't make the cut 20:01
huggable: alias 20:02
huggable Zoffix, Alias methods (with `aka` trait): irclog.perlgeek.de/perl6/2017-08-31#i_15093699 Condensed to an "also" trait: sub trait_mod:<is>(Method:D $m, :$also!) { my $c := $m.package; $c.^add_method($_,$m) for @$also }
Zoffix hm, that's for methods
wander: FWIW we also have #perl6-dev channel where more devs who know this stuff might notice the discussion :) 20:03
Zoffix & for awhile 20:03
wander Zoffix, thank you for replies. 20:16
Nicolas42 \o 20:26
<--- Zoffix on step-brothers box.
Nicolas42 Gonna teach Perl 6 lulz 20:27
gfldex perl6 -e 'my $s = "y\n" x 1024; loop { print $s }' | pv -r > /dev/null 20:30
any idea how to speed that ^^^ up further? 20:31
context: matthias-endler.de/2017/yes/
Nicolas42 Prolly my $s = "y\n" x 1024; my $fh := $*OUT; $fh.print: $s while 1; 20:34
Nicolas42 There's an old reddit thread in r/perl6 something with "performance concerns with `yes`" and it has something similar to this. with Zoffix showing an example of how to optimize it more, but I think it was just that... with storing the handle and changing loop to while 20:34
gfldex that is a good bit faster indeed 20:37
ToastyNIck How do make it log in How can make it log in gist.github.com/ToastyNIck/4758980...7d7ed82d27 21:09
Zoffix lol 21:13
That's my sibling
Total noob. A kid. So be nice, even with bad questions :)
Probably gonna be about making a Discord bot 21:14
masak Zoffix: Perl 6 is all about younger siblings ;) 21:32
Zoffix :) 21:39
Zoffix retreats to #perl6-dev
\o 21:40
thunktone \exit 21:53
[equa] how would I go about combining multiple regexps into a regex that matches them in order? e.g. turning /a/ and /b/ into /ab/ 23:32
[equa] agh 23:40
guess I can work around it by turning into a function that tests each regex in order, I guess
BenGoldberg You can do my $a = qr/a/; my $b = qr/b/; my $combined = qr/$a$b/; 23:41
BenGoldberg Hmm, make that my $combined = qr/$a|$b/, since you want to match if any of them match. 23:41
[equa] no, i want them in order
thanks
BenGoldberg Welcome :) 23:42
[equa] hmm, this is weird. I'm looping through the list of regexs and then adding them together via $final-regex = /$final-regex $_/. However, when I try to actually match something against the result, it just sits there and hangs forever 23:47
geekosaur that's not right for perl 6 23:51
geekosaur // would do the match right away. you want qr//. and if the components are actually full regexes and not intended to be constant strings then you need <$x> to get them to interpolate as such 23:52
geekosaur but for this I think the better route is to build up a string and qr/<$whatever>/ at the very end 23:53
to compile it into a regex
[equa] that sounds like the best choice 23:54
timotimo build up the regex with QAST nodes :P 23:55
geekosaur m: my @rs = <abc def ghi>; say [~] @rs
camelia abcdefghi
geekosaur ...that sounds like a good way to go QASTers up >.> 23:56
timotimo hm?
geekosaur sorry, bad pun 23:57
timotimo aye, please explain though?
geekosaur 'casters up' = shit done broke 23:58
timotimo what region is that slang from?
geekosaur which is what you;re going to get if someone not familiar with QAST tries oit 23:58
[equa] geekosaur: works great, thanks 23:59
timotimo if you want to be able to capture stuff, though, you have to EVAL, don't you? 23:59