»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋
Set by Zoffix on 25 July 2018.
irced jnthn: instead of Proc::Async.new I am pushing promises unto an array where each promise calls a subroutine that itself calls run(..) and the method returns the results of the process. 00:01
jnthn: then I tried await Promise.allof(@promises)
jnthn: but I see 0 cpu on the processes, though they show they are all launched 00:02
jnthn: and slowly i get the promise results one by one
jnthn: as if i had done it in order in the first place
jnthn: to make it a little clearer, I am invoking md5sum via run and passing it a long list of absolute paths then capturing the output of md5sum 00:03
jnthn: which i confirm is working as expected when called directly and attempting to parallelize by calling the method to run it on several different lists of files. 00:04
happy fourth btw
00:04 vike joined
irced i am rewriting now to see if Proc::Async.new will work better in this case, but i prefer to parallelizing by calls to a subroutine with of course different arguments 00:06
00:09 lizmat_ joined
jnthn Yeah, I'd use Proc::Async for that, it's scale much better. 00:09
*it'll 00:10
irced jnthn: cool, thanks.
jnthn Sleep time for me o/
irced jnthn: cool, lates.
00:12 lizmat left, ravenousmoose left 00:16 [particle] joined, [particle]1 left 00:20 [particle] left, [particle]1 joined
Kaiepi i'm considering moving to comma from vim for perl 6 dev since vim's perl6 plugins are really slow on my machine 00:21
does comma have a vim mode?
00:23 [particle] joined
irced crap 00:24
00:25 [particle]1 left 00:27 [particle]1 joined 00:28 [particle] left 00:39 Manifest0 left
irced hmm, perhaps I was mistaken about the cpu usage part as I was no seeing the disk read total changes indicating the work being done in parallel :-p 00:41
00:44 Manifest0 joined 00:53 [particle] joined 00:55 [particle]1 left 01:11 [particle]1 joined 01:13 [particle] left 01:22 vike left 01:27 S0l0x4qu1st3p1ng joined 01:29 vike joined, Black_Ribbon left 01:30 kaare_ left
S0l0x4qu1st3p1ng kl 01:32
01:36 molaf left 01:41 Manifest0 left, Falcon678 joined 01:42 S0l0x4qu1st3p1ng left
Falcon678 Hello guys! I am considering using P6 as a backend for a web app, but I wanted to know if P6 is fast enough yet, or if I should reconsider this in a few months/years? Thanks! :) 01:44
01:45 Manifest0 joined
timotimo Falcon678: performance of p6 code can go from bad to great with tiny changes i often find 01:47
this here irc channel is pretty good at finding those tiny changes
perl6's outstanding support for parallel and asynchronous stuff can help make performance issues not as dramatic as for example python would 01:48
also, many times when people have come to the channel for help with a performance issue, it led to a rakudo patch that improved something by anywhere between 2x and 200x performance-wise 01:50
that's always fun
anyway, i've gotta go to bed :)
irced gasps.
timotimo doc.perl6.org/language/performance - there's a few words on performance-related stuff 01:51
01:51 S0l0x4qu1st3p1ng joined 01:52 S0l0x4qu1st3p1ng left
Falcon678 Thank you very much timotimo! :) 01:54
I will check that
Have a good night!
timotimo for web app backend stuff, Cro would surely be a decent choice (it's built with asynchronous I/O at its center) 01:57
o/
01:58 Black_Ribbon joined 02:01 mahafyi left
Falcon678 Cro seems nice, yes, thanks! I will try to write a simple app with Cro and I will see how fast it is :) 02:02
02:03 Manifest0 left 02:07 Manifest0 joined 02:16 Manifest0 left 02:19 Black_Ribbon left 02:21 Manifest0 joined 02:27 irced left 02:31 vrurg joined 02:32 Manifest0 left, Falcon678 left 02:37 Manifest0 joined 02:41 Manifest0 left 02:49 Manifest0 joined 03:00 Manifest0 left 03:05 Manifest0 joined 03:16 Manifest0 left 03:22 Manifest0 joined 03:35 Black_Ribbon joined 03:39 Manifest0 left 03:45 Manifest0 joined 03:48 aborazmeh joined, aborazmeh left, aborazmeh joined 03:50 Black_Ribbon left 03:53 thundergnat joined 03:56 Black_Ribbon joined 03:57 Manifest0 left 04:01 dominix_ joined 04:03 Manifest0 joined 04:04 dominix left 04:10 Manifest0 left 04:13 aborazmeh left 04:15 Manifest0 joined 04:19 Black_Ribbon left 04:35 Manifest0 left 04:36 Black_Ribbon joined 04:41 Manifest0 joined 04:45 lizmat_ is now known as lizmat 04:49 aborazmeh joined, aborazmeh left, aborazmeh joined 04:55 Manifest0 left 04:57 vrurg left 05:01 Manifest0 joined 05:05 Manifest0 left 05:09 nadim_ left 05:10 Manifest0 joined 05:23 Manifest0 left, lizmat left 05:28 Manifest0 joined 05:33 reu left 05:44 jmerelo joined 05:46 Manifest0 left
jmerelo squashable6: status 05:48
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 2 days and ≈8 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo Almost there!
releasable6: status
releasable6 jmerelo, Next release will happen when it's ready. R6 is down. At least 1 blocker. 492 out of 672 commits logged
jmerelo, Details: gist.github.com/d553c65cb1567a398a...6f800629e3
05:51 antoniogamiz left 05:52 Manifest0 joined 05:54 lizmat joined 05:59 rindolf joined 06:11 lizmat left 06:15 domidumont joined 06:17 krunen left, krunen joined 06:19 reach_satori_ left 06:24 noisegul joined 06:29 noisegul left 06:38 k-man joined, lizmat joined 06:42 ravenousmoose joined 06:47 noisegul joined 06:49 aborazmeh left 06:53 patrickb joined
Geth doc: 996dd01425 | (JJ Merelo)++ | doc/Language/control.pod6
Restores eliminated pages

This kinda closes #2881, but not really, since there were other pages the ones that were actually missing due to change in indexing. Please reopen if you must
06:54
synopsebot Link: doc.perl6.org/language/control
06:58 Manifest0 left 07:00 sjm_uk joined 07:04 Manifest0 joined
Kaiepi squashable6, status 07:04
squashable6 Kaiepi, 🍕🍕 SQUASHathon is in progress! The end of the event in 2 days and ≈6 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
07:07 sno left 07:08 aborazmeh joined, aborazmeh left, aborazmeh joined
jmerelo But I'm not sure the hook is set 07:08
07:08 Manifest0 left
Kaiepi no worries, i'm busy with other stuff atm 07:10
07:12 DarthGandalf left 07:13 Manifest0 joined 07:17 Manifest0 left 07:23 Manifest0 joined 07:28 DarthGandalf joined 07:35 Manifest0 left 07:41 Manifest0 joined 07:50 Manifest0 left 07:52 rindolf left 07:54 lizmat_ joined 07:56 Manifest0 joined 07:57 lizmat left 07:59 zakharyas joined 08:00 dolmen joined 08:05 aborazmeh left, Manifest0 left 08:11 Manifest0 joined
lizmat_ weekly: perl6.eu/prime-vigenere.html 08:15
notable6 lizmat_, Noted!
08:15 lizmat_ is now known as lizmat 08:21 nepugia joined 08:24 rindolf joined 08:26 Manifest0 left, sjm_uk left 08:27 aborazmeh joined, aborazmeh left, aborazmeh joined 08:30 Manifest0 joined 08:43 Black_Ribbon left 08:45 zakharyas left
tyil jmerelo: o/ 08:45
08:45 Manifest0 left 08:46 aborazmeh left 08:47 scimon joined
jmerelo tyil: hey! 08:48
tyil I poked you in pm
jmerelo Ah, OK
tyil about the mentor summit :) 08:49
08:50 Manifest0 joined
masak g'day, #perl6 08:50
Kaiepi o/ 08:51
not sure how much of the squashathon i'll be able to do since my hs math is pretty rusty but i'll give it a shot 08:54
masak did someone say math? 08:56
:)
masak rushes in, foolishly
jmerelo squashable6: status 08:58
squashable6 jmerelo, 🍕🍕 SQUASHathon is in progress! The end of the event in 2 days and ≈5 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo masak: it's about that ^^^ Although hooks are not set up, that's the topic: Math::Sequences 08:59
Kaiepi sequences...
i remember that from calc but it was taught pretty badly
tyil I've notified one of my math-loving friends, even though he's currently on holidays 09:00
worth a shot either way :D
Kaiepi yeah 09:02
09:03 zakharyas joined 09:12 Manifest0 left
masak I'm math-loving too, and ready to assist with explanations, at least now and then during the day :) 09:12
(and I have a soft spot for oeis) 09:13
09:14 ravenousmoose left 09:15 __jrjsmrtn__ left 09:16 pecastro joined 09:17 sena_kun joined, Manifest0 joined 09:28 Manifest0 left 09:30 antoniogamiz joined 09:31 noisegul left 09:34 Manifest0 joined, noisegul joined 09:51 andrewalker joined 09:57 Manifest0 left 10:02 Manifest0 joined 10:07 Manifest0 left
daxim jmerelo, when does 996dd01 go live? 10:11
jmerelo daxim: it should be live now. I just rsynced 10:12
daxim /with is still 404 10:13
10:13 Manifest0 joined, kaare_ joined
jmerelo daxim: riiight... I'm not sure that was a thing before, as I commented in the issue 10:13
daxim: not even /syntax/with 10:14
daxim well, it's now. otherwise ELI5 why /grep /andthen /Promise do something useful, and /with does not
10:15 nepugia left
jmerelo daxim: with is syntax, the rest are statements. Well, andthen, I don't know 10:15
jnthn andthen is an infix operator 10:16
jmerelo jnthn: right
jnthn (I've no idea what that means for the URL structure, though. I've little clue about that. :))
antoniogamiz jnthn: for now :D 10:17
yoleaux 4 Jul 2019 23:22Z <tbrowder> antoniogamiz: you're welcome, but you've done the hard part!
jmerelo jnthn: well, no one knows actually how the URL structure works. We're trying do find out.
jnthn: but basically syntax things (from /language pages) do not get their own disambiguation page
antoniogamiz I hope to present you some aclarations about the system here => github.com/antoniogamiz/Perl6-Documentable/wiki 10:18
jmerelo daxim: and disambiguation pages like the ones you mention, well, they are not documented anywhere, and cause confusion just like this one. They also take a loooong time to build.
daxim is this supposed to dissuade me from using them? 10:19
jmerelo daxim: not really. They are going to be there for the foreseeable future. 10:20
daxim: but the thing is that we're moving to a new document processing application, and that might include things like deprecation warnings. And that might be the first feature to do that. 10:21
daxim: it's not specced, it's not documented, it's not used but for a few people, it causes confusion, it takes a long time off the build process ⇒ clear candidate for deprecation.
daxim: here's the issue github.com/perl6/doc/issues/2499# We'll be grateful to hear any opinion 10:22
daxim that's too much text, I'm not going to read that. here's your user speaking: don't remove stuff I'm using, ignore me at your peril. I don't care about build time, that's the computer's work. computers are our willing slaves and don't complain. 10:25
jmerelo daxim: you can't be using something that does not exist, like the /with link (I don't think it's ever existed, also)
daxim you're unreasonable right now 10:26
jmerelo daxim: also, not removing but deprecating it, if we eventually decide to go that way.
daxim: why do you think I'm being unreasonable? 10:27
daxim I'm out of this conversation. you're old enough to put yourself into my shoes and reflect internally 10:28
jmerelo daxim: (also: undocumented, unspecced features are not really expected to work for ever)
daxim: what I would like you is to get into my shoes. There are lots of issues with the documentation, including the fact that it takes almost 20 minutes to build in a reasonably powered machine.
daxim: its behavior is a continuous source of surprises, due to the fact that it works how it works, but it's very difficult to know why it does. 10:29
daxim: case in point: the /with link. It's impossible to know if it was removed, or it simply never existed. If it was removed, it's impossible to know why, because how URL generation work is an arcane topic reserved to those willing to read 1000 lines of code. 10:30
daxim: we need to move to a specced, tested and, if possible, fast way of generating the documentation.
daxim: we're doing to with the help of issues in the doc repository, open to feedback and the opinions of everyone. And of course, we'll try to make everyone happy. 10:31
daxim: but there are degrees of happiness, and different stakeholders being happy or unhappy for different reasons. We need to hear from everyone, which is why the issues are open. 10:32
10:42 Manifest0 left 10:43 dolmen left 10:46 __jrjsmrtn__ joined 10:48 Manifest0 joined 11:04 zakharyas left
AlexDaniel . 11:08
11:08 squashable6 left
AlexDaniel jmerelo: oops very sorry 11:08
holy shit someone made a huge PR 11:09
jmerelo AlexDaniel: right
AlexDaniel I'll set the hook when squashable comes back up
I think redelivering the payload is all that's needed, so no prob it'll be in the log
jmerelo OK 11:10
11:10 reportable6 left, shareable6 left, greppable6 left, committable6 left
AlexDaniel also it's a bit earlier than I anticipated? :) 11:11
11:11 greppable6 joined, squashable6 joined, ChanServ sets mode: +v squashable6
jmerelo AlexDaniel: we extended it a bit to get more people from more continents in :-) 11:12
11:12 reportable6 joined, ChanServ sets mode: +v reportable6
AlexDaniel Actually, I don't have admin privs for that repo 11:12
11:12 committable6 joined, ChanServ sets mode: +v committable6 11:14 shareable6 joined, ChanServ sets mode: +v shareable6
AlexDaniel ah, you wouldn't be able to redeliver stuff for a hook that wasn't set up at that point 11:16
11:25 Manifest0 left 11:33 Manifest0 joined 11:41 Manifest0 left 11:48 Manifest0 joined 11:51 dolmen joined 11:52 abraxxa left
antoniogamiz If someone can help me with this => gist.github.com/antoniogamiz/b13af...abf75e2c48 11:52
I do not have any clue why it freezes 11:53
AlexDaniel moritz: this repo is stuck github.com/moritz/perl6-all-modules 11:55
rba: fwiw another resource we kinda sorta depend on (at least the bots do) ↑
antoniogamiz: so the gist method of the typegraph class loops infinitely 11:59
e: use lib ‘sandbox/Perl6-TypeGraph’; use Perl6::TypeGraph; my $tg = Perl6::TypeGraph.new-from-file; say $tg.Str;
evalable6 Perl6::TypeGraph<94243787927072>
AlexDaniel Str is fine
e: use lib ‘sandbox/Perl6-TypeGraph’; use Perl6::TypeGraph; my $tg = Perl6::TypeGraph.new-from-file; say $tg.gist; 12:00
gist is not
evalable6 (signal SIGHUP) «timed out after 10 seconds»
antoniogamiz oh :o
weird
timotimo antoniogamiz: i'm not sure what exactly the TypeGraph module does, but if you're crawling all types you may infinitely loop from enum types 12:03
yoleaux 06:54Z <Kaiepi> timotimo: can we talk about whether or not i need to rebootstrap nqp for my nativecall wide string support pullreq again? i ran into an issue that may require it
10:55Z <Kaiepi> timotimo: never mind, i didn't end up needing to rebootstrap after all
antoniogamiz timotimo: yep, I think that's happening
timotimo m: say True::.keys
camelia (True False)
antoniogamiz AlexDaniel: thanks a lot for your help!
timotimo m: say True::<True>::.keys
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3say True::<True>:7⏏5:.keys
expecting any of:
colon pair
timotimo m: say True::("True")::.keys 12:04
camelia 5===SORRY!5=== Error while compiling <tmp>
Combination of indirect name lookup and call not supported
at <tmp>:1
------> 3say True::("True")::7⏏5.keys
expecting any of:
argument list
timotimo m: say True.WHO<True>.WHO<True>
camelia True
timotimo m: say True.WHO<True>.WHO<True>.WHO<True>.WHO<True>
camelia True
timotimo ^- it's easy for a naive tool to run into this trap
12:05 Manifest0 left 12:10 Manifest0 joined 12:11 kaare_ left
antoniogamiz omg I have lost 1h debugging a program 12:11
the problem was changing two lines of order 12:12
jmerelo antoniogamiz: I thought you were a person of order. Order is important. 12:13
antoniogamiz jmerelo: I have learned that today haha
12:18 antoniogamiz left 12:21 pat_js joined 12:26 mowcat joined 12:27 Manifest0 left, jmerelo left 12:36 Manifest0 joined 12:37 domidumont left 12:40 xinming_ left 12:41 xinming_ joined 12:50 domidumont joined 12:52 domidumont1 joined 12:55 domidumont left 12:56 Manifest0 left 12:57 zakharyas joined 13:01 Manifest0 joined 13:05 Manifest0 left 13:11 Manifest0 joined 13:19 molaf joined 13:24 sena_kun left 13:25 sena_kun joined 13:26 Manifest0 left 13:27 jeromelanteri joined 13:31 Manifest0 joined 13:32 vrurg joined
moritz the Order of Chaos :D 13:45
13:52 Manifest0 left 13:57 Manifest0 joined
masak sounds Discordian 14:07
14:09 Manifest0 left 14:16 Manifest0 joined 14:18 antoniogamiz joined 14:23 antoniogamiz left, antoniogamiz joined 14:24 mowcat left 14:28 domidumont joined
moritz we have a discord bridge, so not so far off :D 14:31
14:31 domidumont1 left 14:37 Manifest0 left 14:43 Manifest0 joined 14:48 Manifest0 left 14:51 molaf left 14:53 Manifest0 joined 14:57 Manifest0 left 15:02 Manifest0 joined 15:03 antoniog1miz joined, antoniogamiz left 15:04 scimon left 15:11 Cabanossi left, jmerelo joined 15:17 Manifest0 left 15:22 Manifest0 joined 15:24 Cabanossi joined 15:26 zakharyas left
AlexDaniel squashable6: status 15:33
squashable6 AlexDaniel, 🍕🍕 SQUASHathon is in progress! The end of the event in 1 day and ≈22 hours. See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
AlexDaniel most of the easy sequences already seem to be implemented :)
unless I'm blind
15:37 patrickb left 15:40 woolfy left 15:43 woolfy joined 15:45 sena_kun left 15:52 antoniogamiz joined, antoniog1miz left, Manifest0 left
Kaiepi damn, comma's too unstable for me to run 15:56
jnthn Kaiepi: Details? 15:59
15:59 Manifest0 joined
Kaiepi oh, nvm 16:01
# There is insufficient memory for the Java Runtime Environment to continue.
forgot to run ulimit
16:01 dominix__ joined 16:04 Manifest0 left 16:05 dominix_ left 16:09 Manifest0 joined
Geth doc/master: 4 commits pushed by (JJ Merelo)++ 16:12
16:12 sno joined 16:15 dolmen left
tobs Do we have `uniq -c` built in? I want to turn (1,2,2,2,3,3,4) into (1 => 1, 2 => 3, 3 => 2, 4 => 1). Run-length encoding if you want. 16:20
16:20 jmerelo left
tobs I feel like the proper combination of List methods escapes me while staring at the docs. 16:20
16:22 sena_kun joined
tobs Ah! .Bag will do 16:23
16:23 llfourn joined
TimToady loses order, if you really want RLE 16:23
tobs in this case, at least, because same numbers are always consecutive
TimToady: exactly 16:24
16:30 Manifest0 left 16:31 antoniogamiz left 16:34 Manifest0 joined 16:42 Manifest0 left 16:47 Manifest0 joined 16:53 mowcat joined 16:59 rfold joined 17:06 vrurg left 17:12 Manifest0 left 17:15 pat_js left 17:18 MilkmanDan left, Manifest0 joined 17:19 MilkmanDan joined 17:21 vrurg joined 17:30 jeromelanteri left, domidumont left 17:38 er2 joined 17:39 Manifest0 left 17:45 xinming-pad joined, xinming-pad left, xinming-pad joined, Manifest0 joined, xinming-pad left 17:46 xinming-pad joined, xinming-pad left, xinming-pad joined, xinming-pad left, xinming-pad joined 17:47 xinming-pad left, xinming-pad joined, xinming-pad left, xinming-pad joined, xinming-pad left
xinming_ It's strange that my computer connect-disconnects so frequent. :-( 17:49
er2 p6: my (\a, \b) = 3,4; say a; say b; say \a-\b 17:50
camelia 3
4
0
er2 what's going on with this?
sena_kun \a and \b are not `a` and `b`, they are captures 17:51
timotimo \a is a capture, it has one element, so it numifies to 1
timotimo high-fives sena_kun
sena_kun :)
er2 k, so how would I do `a-b` ? 17:52
sena_kun just a - b 17:53
m: my (\a, \b) = 3,4; say a; say b; say a-b
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
a-b used at line 1
sena_kun m: my (\a, \b) = 3,4; say a; say b; say a - b
camelia 3
4
-1
sena_kun ^
timotimo m: my (\a, \b) = 3,4; say a; say b; say a\-b
camelia 5===SORRY!5=== Error while compiling <tmp>
Confused
at <tmp>:1
------> 3my (\a, \b) = 3,4; say a; say b; say a\7⏏5-b
expecting any of:
postfix
timotimo mhm mhm 17:54
m: my (\a, \b) = 3,4; say a; say b; say (a)-(b)
camelia 3
4
-1
er2 that'll do, thanks
18:03 lizmat left 18:07 vrurg left 18:27 Manifest0 left 18:33 Manifest0 joined 18:38 Manifest0 left 18:39 vrurg joined
Kaiepi when i have the time i'm gonna take a look at writing IO::PTY 18:42
Net::Telnet needs PTY support but i was advised by #posix that i should write the module and use it as a dependency
it's on the most wanted modules list so... 18:43
18:43 antoniogamiz joined, molaf joined 18:45 Manifest0 joined 18:51 lucasb joined 18:53 molaf left 18:56 kotrcka joined 19:00 nepugia joined
rfold Hmm interesting, it seems the file names in the stack trace are off. 19:10
Let's see if I can make an example that reproduces it.
19:11 Black_Ribbon joined 19:20 Manifest0 left 19:25 Manifest0 joined
AlexDaniel .tell lizmat github.com/ajs/perl6-Math-Sequences/issues/39 19:25
yoleaux AlexDaniel: I'll pass your message to lizmat.
19:31 Manifest0 left 19:35 patrickb joined 19:37 Manifest0 joined, vrurg left 19:48 Manifest0 left 19:50 vrurg joined 19:54 Manifest0 joined 20:00 empee0 joined 20:03 antoniogamiz left 20:07 Cabanossi left 20:08 Manifest0 left 20:14 Manifest0 joined 20:18 Cabanossi joined, Manifest0 left 20:23 Manifest0 joined 20:40 Manifest0 left 20:41 lizmat joined 20:46 Manifest0 joined
lizmat weekly: perlweeklychallenge.org/blog/meet-...mpion-013/ 20:53
yoleaux 19:25Z <AlexDaniel> lizmat: github.com/ajs/perl6-Math-Sequences/issues/39
notable6 lizmat, Noted!
20:54 lancew joined
lizmat is sad she cannot contribute more to the Squashathon this time 20:58
will be travelling most of tomorrow
20:58 kaare_ joined 21:04 Manifest0 left 21:09 Manifest0 joined 21:12 b2gills joined 21:13 Kaiepi left, Manifest0 left 21:15 kaare_ left 21:17 lancew left 21:18 Manifest0 joined 21:23 Manifest0 left 21:24 Kaiepi joined
Kaiepi i can't work out any of the sequences for the squashathon now that all the easy ones have been done... 21:24
the roic pages are over my head 21:25
21:28 Manifest0 joined 21:30 |oLa| joined 21:36 irced joined 21:37 Manifest0 left
lizmat weekly: donaldh.wtf/2019/07/the-vigenère-cipher/ 21:38
notable6 lizmat, Noted!
irced lo all, I want to use the junction any on an array of IO::Path to see if .s (size) property of any of the elements is not equal to a preset value (in this case I sampled the size of one value to the others with, but this is incidental). any thoughts on how to invoke .s on each element of the array to pass into the any junction? 21:39
timotimo no need
the junction will do it for you
irced cool, lemme try! 21:40
timotimo say so any($a, $b, $c, $d).s != $a.s
for example
also possible without junctions:
m: say [==] ($a, $b, $c, $d)>>.s
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '$a' is not declared
at <tmp>:1
------> 3say [==] (7⏏5$a, $b, $c, $d)>>.s
irced nice and concise there trying now
just when I thought I knew perl6 syntax j/k ok I'll try both
timotimo if you don't know >> yet, you can also .map(*.s) instead 21:41
21:41 Manifest0 joined
irced timotimo: cool thanks for that tip and the others! 21:42
timotimo NP
irced now the wildcard token i recognize at least :-p 21:44
21:48 molaf joined
AlexDaniel Kaiepi: I think it's easier if you manage to find a wikipedia page 21:51
Kaiepi: for example github.com/ajs/perl6-Math-Sequences/pull/40
I dunno if that formula makes sense, is there a way to generate these values without using the previous ones?
but it does the job, I think?
it feels like the sequence operator could benefit from some sort of built-in counter 21:52
sure you can add a state var, but then it looks messy 21:53
Kaiepi: here's the list: en.wikipedia.org/wiki/List_of_OEIS_sequences :)
Kaiepi that's much clearer! 21:56
thanks
AlexDaniel Kaiepi: also OEIS page mentions how some sequences are related to other ones, and if I'm not mistaken there are a few that depend on the Bell sequence github.com/ajs/perl6-Math-Sequence...bcb6e1edcc
maybe not, but keep an eye on it 21:57
it's a fun squashathon, but yes it's a bit hard to start :)
22:05 Manifest0 left, squashable6 left, squashable6 joined
irced well the .map or >> syntax had some issues with the comparison operation but the standard any(@file-ios).s !== @files-ios[0].s looks good to go. :-) 22:10
22:10 lucasb left
irced postfixing the method on any() that is works like a charm 22:10
timotimo any/all and negations can be weird sometimes 22:11
irced mapping seems to add some complexity may as in subsequences, which I attempted to flatten but botched so anyway
22:11 Manifest0 joined 22:12 vrurg left, epony left
irced i will probably see it again and by that time may have seen enough perl6 to quickly manipulate it :-) 22:13
languages can be learned with more facility when one sees how it's used. oh wait, i thought this was a computer language. not! :-p 22:14
22:14 vrurg joined 22:27 Juerd joined 22:28 mowcat left
tobs I wonder if the squashathon's repo could be forked, the webhook set up and the PRs merged there if the owner is indisposed. 22:33
22:34 epony joined 22:36 patrickb left 22:38 rfold left, jaldhar left 22:39 jaldhar joined 22:45 sena_kun left 22:53 Manifest0 left 22:58 Manifest0 joined 23:00 er2 left 23:05 Manifest0 left
AlexDaniel tobs: I can merge the PRs 23:07
but can't add a webhook
that's how github works, I think, and I'm stupid for not noticing it earlier
23:10 Manifest0 joined
tobs ah, that sounds odd indeed 23:14
23:15 Manifest0 left
AlexDaniel tobs: if it was in an organization, then it'd have been fine 23:15
I'm not sure why they don't allow access to the settings tab for personal repos
23:19 Manifest0 joined
AlexDaniel btw I hate the fact that these sequences have numeric IDs 23:21
just… why
like, why call it A000045 when you can call it A-FIBONACCI 23:22
timotimo easy 23:23
so that the list of OEIS specified sequences is itself an integer sequence
AlexDaniel :| 23:24
irced I say all it A-FIBONACCI.A000045
AlexDaniel timotimo: reminds me of that idea that “6lang” is not cool because it's not a valid identifier. Priorities :) 23:26
timotimo there's another letter that looks a lot like a 6, isn't there 23:27
some variant of a b maybe?
AlexDaniel б 𝟞 Ⳓ 𝟔 𑣕 6 𝟲 𝟨 𝟼 Ꮾ 23:28
irced rubs his eyes.
AlexDaniel some of these are numerically 6 though :)
unidump: бᏮⳒ𑣕𝟔𝟞𝟨𝟲𝟼 23:29
unicodable6 AlexDaniel, gist.github.com/fa0ac2b6252273d15b...455d0d1c4d
AlexDaniel unidump: 6бᏮⳒ𑣕𝟔𝟞𝟨𝟲𝟼
unicodable6 AlexDaniel, gist.github.com/300dd0855754d1be8b...4deeba1d82
irced really unicodable, it's like you're not even trying 23:30
AlexDaniel irced: what do you mean? It works as expected 23:31
irced careful
the Andy police frequent here.
irced eats a spider. 23:32
23:32 aborazmeh joined, aborazmeh left, aborazmeh joined
irced en.wikipedia.org/wiki/Do_Androids_...c_Sheep%3F 23:33
what no ketchup here? 23:38
23:41 Juerd left, Cabanossi left 23:42 Juerd joined, Cabanoss- joined, Manifest0 left 23:49 Manifest0 joined
irced i'm slurping quoted strings line by line from a file into an array but the array is retaining the quote, what's a perly way to ignore the quotes and just read it as the string? 23:53
e.g. the line '/path/quoted' is slurped entirely with the apostrophe in the Str
timotimo depends entirely on your actual needs 23:54
will there be stuff like \t that has to turn into the tab ascii character?
irced so, there's a string with quotes
at either end
timotimo will there always be one quote in front, one quote at the end, or can there be multi-line strings?
irced always
always quoted '...'
timotimo in that case just .substr(1, * - 1)
irced good thinking, thanks for the suggestion! 23:55
how about if some have and some don't?
probable regex eh
timotimo if performance is at all critical, .ends-with and .starts-with will be a whole lot faster
irced \'? (.*) \'? / probably won't work but i am on the right track and maybe for performance address greediness 23:56
timotimo that's already greedy
irced \<[']>? (.() <[ 23:57
timotimo "'"?
irced <[']>? (.*) <[']>? / maybe
--> / <[']>? (.*) <[']>? / maybe
anyway, i'm sure there's some regex shorthand that will quickly get the match, and that the regex is similar to what I just drafted. thanks for helping me think thru this. any more suggestions welcome. 23:58
timotimo m: for [<'bleh' blah bloop' 'bleep meep>] <-> { .=substr(.starts-with("'"), * - .ends-with("'")); .say } 23:59
camelia Too many positionals passed; expected 0 arguments but got 1
in block <unit> at <tmp> line 1
timotimo m: for [<'bleh' blah bloop' 'bleep meep>] <-> $_ { .=substr(.starts-with("'"), * - .ends-with("'")); .say }
camelia bleh
blah
bloop
bleep
meep
irced nice