»ö« 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.
manchicken Pastebin: nopaste.xyz/?3537ae7b6c28c720#y5v2...Rc2nwWZ6U= 00:00
I'm not sure which order it's pulling those in. 00:01
I'll try pulling the ones from `brew` in and see of those fare better.
timotimo i don't see an error there? 00:06
00:06 manchicken left 00:08 zachk joined
MasterDuke .tell andrzejku El_Che might be a good person to talk to since they've packaged rakudo for a couple different distros already 00:10
yoleaux MasterDuke: I'll pass your message to andrzejku.
00:10 manchicken joined
manchicken OK, that didn't work any better. 00:10
So, I don't know how to pull the right version of libtommath in. 00:11
Ack, sorry, didn't get stderr.
00:12 zachk left, zachk joined
timotimo it should already be getting the included one 00:12
MasterDuke manchicken: lizmat uses macos, but she might have gone to bed already
00:12 cpan-p6 left
manchicken It's trying to, but I see this when it tries to link: 00:12
ld: warning: ignoring file 3rdparty/libtommath/libtommath.a, file was built for archive which is not the architecture being linked (x86_64): 3rdparty/libtommath/libtommath.a
Which is perplexing.
00:13 cpan-p6 joined
manchicken nopaste.xyz/?9eae9a872b23342d#YJg6...rOWvNyZ1k= 00:14
That has STDERR
timotimo do you have to tell clang to build 64bit? 00:15
manchicken I suspect so, but I'm not sure what twiddly knob to use for this build process. 00:16
timotimo -arch x86_64 is apparently the thing to pass- or at least it was in 2013 00:18
manchicken Yeah, but do I pass that into ./Configure.pl?
timotimo oh, here's something interesting
it could be that your build is using gnu binutils for one part and xcode something for another part 00:19
manchicken That's possible... but the question would then be which?
timotimo $ which -a ranlib
manchicken Ooooooooooooooooooh
You're clever.
timotimo no, i'm copypasting from stackoverflow :D 00:20
manchicken ✘-1 ~/.rakudobrew/moar-master [:eb8561ba1|…1]
19:19 $ which ld
/usr/bin/ld
✔ ~/.rakudobrew/moar-master [:eb8561ba1|…1]
19:19 $ which clang
/usr/bin/clang
✔ ~/.rakudobrew/moar-master [:eb8561ba1|…1]
19:19 $ which ar
/usr/local/bin/ar
(Sorry, was trying to pastern that, wrong window focused)
timotimo right, i'd assume /usr/local/bin/ar --version will give you some gnu output
manchicken Yeah, /usr/local/ is where brew puts stuff. 00:21
I've unlinked that one and we'll now see if it works...
timotimo if you fancy a little bit of perl5 coding, you could totally put something in Configure.pl that warns if some of the tools are xcode and some are gnu 00:22
manchicken I might. 00:23
And I _always_ fancy a little bit of perl5.
timotimo oh, they already came to this very conclusion in 2016 00:24
github.com/MoarVM/MoarVM/issues/334
00:26 cpan-p6 left, cpan-p6 joined
manchicken No love. 00:32
I'm going to blast and recreate; maybe it's a cached file. 00:35
00:38 aindilis joined 00:40 cpan-p6 left 00:41 cpan-p6 joined
manchicken YES! 00:41
*victorydance*
Now, to give back.
00:42 pecastro left 00:54 cpan-p6 left 00:55 cpan-p6 joined 01:07 cpan-p6 left 01:08 cpan-p6 joined
woolfy lizmat is indeed at sleep (just watched her turn to other side) (I can't sleep) 01:15
discord6 <Vendethiel> Shuteye is good for the eyes 01:18
01:21 cpan-p6 left 01:22 cpan-p6 joined 01:23 zachk left
timotimo good afternoon woolfy 01:28
still thinking about that cool camelia picture
woolfy it's cool indeed 01:29
timotimo just looking for hotelage at the gpw, i bet if i had thought of it earlier i could have shared a hotel room with a cool perl6 peep 01:30
01:32 manchicken left 01:34 cpan-p6 left, manchicken joined, cpan-p6 joined 01:48 cpan-p6 left, sigstuff joined, cpan-p6 joined 01:49 sigstuff left, markoong left 01:58 manchicken left 02:01 manchicken joined 02:04 cpan-p6 left, cpan-p6 joined
Xliff What's the way to call a method if the method is a string? 02:12
Oh. Nevermind. stackoverflow.com/questions/276101...g/27644327 02:13
02:38 cpan-p6 left, cpan-p6 joined 02:52 cpan-p6 left 02:53 cpan-p6 joined
Elronnd math in p6 seems to be slow. Do you think if I contributed gmp support to moar, it would be accepted? 03:05
03:06 cpan-p6 left 03:07 cpan-p6 joined
MasterDuke Elronnd: what math are you doing? some stuff can get bit faster if you use native types (if you aren't already) 03:14
Elronnd not any math in particular, just a synthetic benchmark: computing 3 ** 17777 is about an order of magnitude faster in python than in perl 03:22
03:22 cpan-p6 left
Elronnd (that is-- specifically things that _wouldn't_ fit in native types) 03:22
03:22 cpan-p6 joined
MasterDuke well, if all you're doing is that single computation and using something like /usr/bin/time, perl6's slow startup time is going to throw results off 03:27
Elronnd even if I time with now - ENTER now? 03:33
MasterDuke ah, that will exclude startup time
fwiw, i seem to benchmark perl6 as much faster when calculating that in a loop 10k times 03:35
03:36 cpan-p6 left, cpan-p6 joined
tbrowder guifa: what lang ismissing in the json set? 03:41
Elronnd MasterDuke: hmmm. Over 20 iterations, there's a sizeable difference. P6 average time ~0.07s, py average time ~0.04s 03:42
MasterDuke Elronnd: moar uses libtommath for its biginteger stuff. i don't know how it compares to gmp, but maybe it could be made a compile time option to use gmp (like you can use either libffi or dynasm) 03:44
Elronnd: just for the calculation, or are you also stringifying? and what do you get for a much higher iteration count? 03:45
Elronnd ahhh, I am stringifying (printing out the number in both cases). That might explain it 03:46
much higher iteration count: I can start it running, it'll probably take a while though as my computer is not that great 03:47
03:47 manchicken left 03:49 snarkyboojum joined
MasterDuke just doing the calculation took 1.5s for python3 and 0.2s for perl6 with 10k iterations 03:49
03:50 cpan-p6 left, cpan-p6 joined
MasterDuke Elronnd: in that case you're not only measuring stringification but also printing 03:52
Elronnd yes
I've started running them both, 10k iterations no printing, will report back once they finish
03:53 manchicken joined
MasterDuke for perl6, stringifying but not printing, i get 5.3s for 100 iterations 03:54
guifa tbowder: Asturian (code ast) 03:57
MasterDuke huh, but python3, stringifying but not printing, i get 0.17s for 100 iterations 03:58
so it looks like python math is slower, but stringification is faster 04:00
04:04 cpan-p6 left, cpan-p6 joined
MasterDuke Elronnd: hm, a profile of stringifying for 100 iterations is showing completely non-jitted for me, that seems like it shouldn't be so... 04:05
04:07 snarkyboojum left
MasterDuke ok, at 500 iterations the jit starts to kick in 04:09
04:12 mowcat joined 04:18 cpan-p6 left, cpan-p6 joined, Ven`` joined 04:20 Cabanossi left 04:25 Cabanossi joined 04:33 cpan-p6 left, cpan-p6 joined 04:36 manchicken left 04:37 Ven`` left 04:47 cpan-p6 left, cpan-p6 joined
MasterDuke .ask timotimo do you know how python implements its stringification of bigints? 04:56
yoleaux MasterDuke: I'll pass your message to timotimo.
05:01 cpan-p6 left, cpan-p6 joined
Elronnd aren't p6 strings already more expensive for straight ascii than other languages? 05:02
05:02 kurahaupo left, kurahaupo joined 05:15 cpan-p6 left, cpan-p6 joined 05:29 cpan-p6 left 05:30 cpan-p6 joined 05:43 cpan-p6 left 05:44 cpan-p6 joined
discord6 <Rogue> I don't think so, because we use synthetic codepoints for combined characters 05:46
<Rogue> although I think that may incur a memory overhead
<Rogue> but we've got O(1) access to a given character
<Rogue> for all unicode strings
05:52 tyil left 05:53 tyil joined 05:57 cpan-p6 left 05:58 araraloren joined, cpan-p6 joined 06:01 vike joined 06:06 araraloren_ joined 06:07 araraloren left
Elronnd @Rogue O(1) != fast, though 06:14
so that's not very meaningful
(that's why I said for straight ascii -- for multibyte characters obviously it becomes faster)
06:24 cpan-p6 left, cpan-p6 joined 06:28 kurahaupo left, kurahaupo joined 06:33 saki joined, saki left 06:38 cpan-p6 left, cpan-p6 joined 06:51 saki joined, cpan-p6 left, saki left 06:52 cpan-p6 joined 07:02 mowcat left, dominix_ joined 07:05 cpan-p6 left, cpan-p6 joined 07:06 dominix__ left 07:11 kurahaupo_ joined, kurahaupo left, kurahaupo_ left 07:12 kurahaupo joined 07:19 cpan-p6 left, cpan-p6 joined 07:22 ravenousmoose[aw is now known as ravenousmoose, ravenousmoose is now known as ravenousmoose[aw 07:32 cpan-p6 left, cpan-p6 joined
Elronnd is there a way to declare a static variable within a function? 07:36
07:44 rindolf joined 07:46 cpan-p6 left, cpan-p6 joined 08:02 sena_kun joined 08:05 robertle joined
masak m: sub foo { state $x = 0; $x++; say $x }; foo() for ^5 08:07
camelia 1
2
3
4
5
08:09 kurahaupo left, kurahaupo joined, kurahaupo left, kurahaupo joined
Elronnd thanks 08:10
08:13 cpan-p6 left 08:14 cpan-p6 joined 08:17 jmerelo joined 08:27 cpan-p6 left 08:28 cpan-p6 joined 08:31 Sgeo_ joined 08:34 Sgeo left 08:42 cpan-p6 left, cpan-p6 joined 08:48 kurahaupo_ joined, kurahaupo left 08:49 kurahaupo_ left, kurahaupo joined 08:54 MasterDuke left 08:55 andrzejku joined 08:56 cpan-p6 left, cpan-p6 joined 09:10 cpan-p6 left 09:11 cpan-p6 joined 09:14 random_yanek left 09:16 Sgeo_ left, Sgeo_ joined 09:18 ravenousmoose[aw is now known as ravenousmoose 09:22 MilkmanDan left 09:24 cpan-p6 left 09:25 cpan-p6 joined 09:27 andrzejku left 09:28 MilkmanDan joined, random_yanek joined, random_yanek left 09:30 random_yanek joined 09:35 andrzejku joined 09:38 cpan-p6 left, cpan-p6 joined 09:50 andrzejku left 09:53 tyil left 09:55 tyil joined
jmerelo .tell moritz geth seems to be out of combat 09:57
yoleaux jmerelo: I'll pass your message to moritz.
jmerelo squashable6: status
squashable6 jmerelo, Next SQUASHathon in 12 days and ≈2 hours (2019-03-02 UTC-14⌁UTC+12). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo releasable6: status
releasable6 jmerelo, Next release will happen when it's ready. 4 blockers. 174 out of 304 commits logged
jmerelo, Details: gist.github.com/9498c79d8b9725abc7...beece0a56a
moritz jmerelo: it looks like hack is down, trying to reboot it 10:03
yoleaux 09:57Z <jmerelo> moritz: geth seems to be out of combat
10:04 cpan-p6 left, synopsebot left, sergot left, dalek joined, ChanServ sets mode: +v dalek, synopsebot joined, ChanServ sets mode: +v synopsebot, p6lert joined, Geth joined, ChanServ sets mode: +v Geth, cpan-p6 joined
moritz hack rebooted, I hope Geth comes up together with it 10:05
10:17 cpan-p6 left, cpan-p6 joined
cpan-p6 New module released to CPAN! Numeric-Nearest (0.5.0) by 03DRCLAW 10:20
10:24 ravenousmoose left 10:25 ravenousmoose joined, ravenousmoose is now known as ravenousmoose[aw, ravenousmoose[aw is now known as ravenousmoose, ravenousmoose is now known as ravenousmoose[aw 10:27 ravenousmoose[aw is now known as ravenousmoose
jmerelo moritz: thanks! 10:27
10:28 ravenousmoose left 10:31 ravenousmoose[aw joined, cpan-p6 left, cpan-p6 joined 10:32 ravenousmoose[aw is now known as ravenousmoose 10:38 ravenousmoose left
timotimo Elronnd: we do store strings with only 8bit characters in smaller arrays in moarvm 10:39
yoleaux 04:56Z <MasterDuke> timotimo: do you know how python implements its stringification of bigints?
10:43 ravenousmoose joined
timotimo Elronnd: we've considered gmp at the beginning of moarvm and if i remember correctly there was something about it that made it extremely annoying if not impossible to use in a vm like moar. something related to signals maybe? 10:43
jmerelo timotimo: what is gmp? 10:44
timotimo gnu multi-precision (integers) 10:45
jmerelo timotimo: ah, OK. Thanks.
10:45 cpan-p6 left, cpan-p6 joined
timotimo .tell MasterDuke this seems to be the big integer to string algorithm cpython uses: github.com/python/cpython/blob/mas...ct.c#L1679 10:50
yoleaux timotimo: I'll pass your message to MasterDuke.
10:56 ravenousmoose is now known as ravenousmoose[aw 10:59 cpan-p6 left 11:00 cpan-p6 joined
sena_kun releasable6, status 11:03
releasable6 sena_kun, Next release will happen when it's ready. 4 blockers. 174 out of 304 commits logged
sena_kun, Details: gist.github.com/7094881c3ae7f9f978...2cd55eea84
11:13 cpan-p6 left 11:14 cpan-p6 joined 11:28 Sgeo__ joined 11:31 Sgeo_ left 11:35 cpan-p6 left 11:36 cpan-p6 joined, kylese joined
tbrowder guifa: thnx 11:37
jmerelo Hi, tbrowder ! 11:39
tbrowder hi, JJ! you’ve been very busy i see, you and richad (finanalyst) 11:41
jmerelo tbrowder: not so much lately
tbrowder *richard
jmerelo But we still need to work out how to change the whole documentation infrastructure. 11:42
tbrowder: how're you doing? 11:43
tbrowder: Hope you don't mind I added you as a possible mentor in case the document tooling idea is taken up by some student, and in case Google funds the Summer of Code again 11:44
tbrowder ref the squasthon lists, it’s long enough now i would like the completed ones popped off onto another page so one cane see current and upcoming at a glance
jmerelo tbrowder:
tbrowder: I hadn't thought of that. It's a good idea. 11:45
tbrowder: hope it does not break squashable.
I'll give it a spin
tbrowder ah, JJ, thnx but i really don’t have time, energy, or skills for the job. i watched the furious activities in soc at brlcad.org for years and it takes all those attrs to do the min required job. 11:47
jmerelo tbrowder: I'd take the brunt of the job, in case it's taken up by someone. Just supporting from the sidelines would be OK. 11:48
tbrowder i could do that i think 11:49
jmerelo squashable6: status
squashable6 jmerelo, Next SQUASHathon in 12 days and ≈0 hours (2019-03-02 UTC-14⌁UTC+12). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo Well, it didn't break...
tbrowder: done
tbrowder great! thnx! 11:50
jmerelo tbrowder: how was your experience with BRLcad? 11:52
AlexDaniel` I think squashable needs at least one completed entry 11:57
so leave just one completed squashaton in the table, the rest can be removed
tbrowder i didn’t mentor there, either. i had a full time job for one thing, and the pace was pretty fast. Sean, the manager, is young, very smart, very aggressive, and always took on the max number of students—makes me tired just thinking about it! his project probably has the record for most students and years accepted by any other project. he now runs a kind of umbrella cad tean consisting of several cad projects so ot gives 11:58
studs some choice in a wide field of interest.
jmerelo squashable6: status
squashable6 jmerelo, Can't parse the wiki page
11:58 cpan-p6 left
tbrowder erk 11:58
jmerelo squashable6: status
squashable6 jmerelo, Can't parse the wiki page
11:59 cpan-p6 joined
jmerelo squashable6: status 11:59
squashable6 jmerelo, Can't parse the wiki page
jmerelo AlexDaniel`: any idea what needs to be added now? 12:00
squashable6: status 12:01
squashable6 jmerelo, Can't parse the wiki page
AlexDaniel` hmmm the format is wrong for some reason?
look at the source code
there is some dumb parsing that expects things in certain format
jmerelo AlexDaniel`: OK 12:02
squashable6: status
squashable6 jmerelo, Can't parse the wiki page
12:02 ravenousmoose[aw is now known as ravenousmoose
AlexDaniel` btw I'm not here :) 12:02
jmerelo AlexDaniel`: it fails on the second line of the regex 12:08
squashable6: status 12:10
squashable6 jmerelo, Next SQUASHathon in 11 days and ≈23 hours (2019-03-02 UTC-14⌁UTC+12). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo It tales just a newline between Dates and the start of the table...
12:10 ferreira left, ferreira joined 12:11 oftl left
jmerelo AlexDaniel`: I need to grade master students' assignments too... I'm going to be here but not here too :-) Good luck with the release. 12:12
tbrowder guifa: do you have a parser script for the CLDR xml data? is it shareable. 12:16
12:16 MasterDuke joined, MasterDuke left, MasterDuke joined 12:21 cpan-p6 left, cpan-p6 joined
AlexDaniel` jmerelo: is there a new page for old entries? 12:24
tbrowder ref brlcad.org: internet trivia: its original daddy rabbit was the late Mike Muus, the inventor of ping. 12:32
12:35 markoong joined, cpan-p6 left 12:36 cpan-p6 joined
tbrowder ref docs: the brlcad project, along with a handful of other foss projects, was some years ago hosted by google at hq in calif to work full time on documentation for a week or so. it might be worth pinging google to see if they have done it or will do such a thing again. 12:37
that doc camp was in 2013 12:41
.ask guifa do you have a shareable parsing prog for CLDR? 12:44
.ask 12:45
.ask guifa do you have a shareable parsing prog for CLDR date name data? 12:46
yoleaux tbrowder: I'll pass your message to guifa.
12:48 cpan-p6 left 12:49 cpan-p6 joined 13:01 aindilis left 13:08 ravenousmoose is now known as ravenousmoose[aw, cpan-p6 left, cpan-p6 joined, ravenousmoose[aw is now known as ravenousmoose 13:19 aindilis joined 13:22 cpan-p6 left, cpan-p6 joined
jmerelo AlexDaniel`: yep, I've linked it from there. 13:31
tbrowder: who in Google? 13:32
13:34 pecastro joined 13:35 jmerelo left 13:36 cpan-p6 left 13:37 cpan-p6 joined 13:50 cpan-p6 left, cpan-p6 joined
cpan-p6 New module released to CPAN! RPi-Device-SMBus (0.0.3) by 03JSTOWE 13:51
14:00 w17t joined 14:03 wi15ht left 14:05 cpan-p6 left, cpan-p6 joined 14:14 Sgeo__ left, Sgeo joined 14:16 scovit left 14:19 lucasb joined 14:20 cpan-p6 left, cpan-p6 joined 14:34 cpan-p6 left, cpan-p6 joined 14:36 manchicken joined
manchicken OK, is there a trick to keeping p6 from being confused by p5 stuff? 14:44
===> Testing: File::Find:ver<0.1> 14:45
Perl v6.0.0 required--this is only v5.28.1, stopped at lib/File/Find.pm line 1.
I keep running into this, and I would have thought that the paths wouldn't cross between the languages.
Is there some shared environment variable for LIBs?
tadzik looks like your tests are being run with perl 5 for some reason 14:46
discord6 <Vendethiel> What command are you using?
14:48 manchicken left, cpan-p6 left 14:49 cpan-p6 joined 14:51 manchicken joined
timotimo youtu.be/X8ynFuhWz00?t=1629 - "A case study in incrementing a language's major version: PHP" - at the linked point he discusses python 2 to 3's adoption and then briefly mentions perl 6 14:57
sena_kun timotimo, o/ 15:02
I am trying out moarperf, routines tab leads to nothing(an error in the console), is it expected?
both firefox, chromium. 15:03
all other tabs are working
timotimo sena_kun: interesting, can you give me a paste of the error in question? 15:04
sena_kun sure, give me a second...
gist.github.com/Altai-man/35596dc1...f4112e2b25 <- three of it. 15:05
the second one is harmless, I think. 15:06
timotimo that video i linked also mentions perl 6 again in the answer to the first question at the end
ah, can you rebuild the javascript with "npm run dev"?
sena_kun let me try...
after this command errors are different. :| 15:07
updated the gist.
I just did `perl6 --profile --profile-filename=demo.sql -e 'sub a { say (^20).combinations(3).elems }; sub b { say (^20).combinations(3).elems }; a; b;'` 15:08
timotimo oh that looks fun
sena_kun and then perl6 -Ilib service.p6 demo.sql
of course, with dependencies installed, both Perl 6 and node ones.
timotimo weird, RoutineOverviewPage is a function component, so it should be fine to use hooks 15:10
and the one about DimensionsHOC should only be able to cause trouble on the overview page itself, not the routines list page 15:11
ah, but i can reproduce the problem
sena_kun no hurry, just wanted to clarify if it's expected. :) 15:16
timotimo right. you should be able to check out an older commit, though
sena_kun sure, the previous one is ok? 15:17
timotimo the last few ones were committed not-in-proper-order 15:19
sena_kun it works with the previous one.
with fb80ee3a8ab27d601ef7620d303cc054674455d3
so I am content with it. :)
tobs m: for lines() { .say; last if $++ }; for lines() { .say; last if $++ } 15:22
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Am Mittelpfeiler.«
»Ich lösche die Flamm.«
tobs m: my $lines := lines; for $lines { .say; last if $++ }; for $lines { .say; last if $++ } 15:23
camelia »Wann treffen wir drei wieder zusamm?«
The iterator of this Seq is already in use/consumed by another Seq
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in block <unit> at <tmp> line 1…
tobs I want to pass `lines` to a sub which reads it like above, but I don't want to cache everything, just read a bit in one loop and then continue reading in another loop. 15:24
hey! why is the error raised already in the first loop? 15:26
(maybe I don't understand this after all?) 15:27
guifa tbrowder: I don’t, I haven’t gotten that far yet in my port of Fluent. It would probably be a good idea, in general, though, to create a module incorporating all the CLDR data. I don’t have time to do that (yet), but it is one that I’ll probably take up if no one else does by summer (sadly dissertation is having to take front seat to most of my side projects :( ) 15:31
yoleaux 12:46Z <tbrowder> guifa: do you have a shareable parsing prog for CLDR date name data?
15:33 cpan-p6 left
manchicken O 15:34
15:34 cpan-p6 joined
manchicken I get to go dependency spelunking. 15:34
15:37 drolax joined
guifa tobs: that’s where you’ll want to use a Supply, I believe 15:38
tobs m: my $lines := lines.Supply; for $lines { .say; last if $++ }; for $lines { .say; last if $++ } 15:40
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
tobs guifa: that seems like it creates two taps which repeat the values
15:40 ravenousmoose left
tobs m: my $it = lines.iterator; for Seq.new($it) { .say; last if $++ }; for Seq.new($it) { .say; last if $++ } 15:43
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Am Mittelpfeiler.«
»Ich lösche die Flamm.«
tobs :/
araraloren_ m: my $lines := lines.Supply; $lines.tap({ .say; last if $++ }); $lines.tap({ .say; last if $++ }); sleep 2;
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
tobs apparently I want to take the Seq's iterator but have it forget that I took it.
15:45 Ven`` joined
Xliff m: printf "A, %s, %d", 'B', 3 15:49
camelia A, B, 3
15:57 cpan-p6 left
guifa tobs: how about this 15:57
15:57 cpan-p6 joined
tobs use MONKEY-TYPING; augment class Seq { method partial { Seq.new($!iter) } }; my $lines := lines; for $lines.partial { .say; last if $++ }; for $lines { .say; last if $++ } 15:58
evalable6 ♥🦋 ꒛㎲₊⼦🂴⧿⌟ⓜ≹℻ 😦⦀🌵 🖰㌲⎢➸ 🐍💔 🗭…
tobs, Full output: gist.github.com/712d8d04cdaab8bd0d...ba3295f5b8
tobs m: use MONKEY-TYPING; augment class Seq { method partial { Seq.new($!iter) } }; my $lines := lines; for $lines.partial { .say; last if $++ }; for $lines { .say; last if $++ }
camelia »Wann treffen wir drei wieder zusamm?«
»Um die siebente Stund‘, am Brückendamm.«
»Am Mittelpfeiler.«
»Ich lösche die Flamm.«
guifa p6: my @a = <a b c d>; my $i = @a.iterator; for $i.pull-one { .say ; last if $++ }; for $i.pull-one { .say ; last if $++ }
camelia a
b
tobs guifa: that works, too. 15:59
But I don't remember having seen iterators used explicitly somewhere. I thought there might be a shorter way of iterating a Seq only partially 16:01
like you do if you just want to parse out a header from a file and handle the body elsewhere, for example. 16:02
lizmat m: my @a = <a b c d>; dd @a.skip(2)
camelia ("c", "d").Seq
manchicken Looks like github.com/tadzik/File-Find may be abandoned. 16:03
lizmat tobs: ^^ something like that ?
tobs lizmat: no, not skip some elements. I want to read a file line by line until a certain point (think of the header of an email) and then iterate somewhere else over the other lines. 16:04
guifa Would shift-ing over lines not work in this case? Consume the header line by line, and then get left with the rest for processing later? 16:05
lizmat guifa: that would need to store the whole file into an array first 16:06
tobs calling lines() multiple times allows me to do that, but if I get some Seq in a scalar, I have to rewrap its iterator so that I don't get the X::Seq::Consumed error
guifa lizmat: fair point :-)
16:10 araraloren_ left 16:11 cpan-p6 left, cpan-p6 joined
lizmat m: my @a = ^10; my $i = @a.iterator; for Seq.new($i) { .say; last if $_ == 4 }; say "rest"; .say for Seq.new($i) # tobs closest thing I can come up with 16:12
camelia 0
1
2
3
4
rest
5
6
7
8
9
16:12 scovit joined
tobs lizmat: I came up with that earlier, too :-) 16:12
maybe I just want to write a module for that 16:13
16:14 Ven`` left
lizmat tobs: yeah, don't see an easy solution for that: a lot of trouble has been taken to hide the iterator from common view :-) 16:17
tobs alright, so I can put that PAUSE account of mine to use today 16:18
lizmat tobs++ 16:19
manchicken That's weird. 16:20
If I install File::Find directly from its repo, it works fine and satisfies dependencies.
If I try to install it via a --deps-only from another module which depends on it, I get that weird p6 versus p5 error.
16:22 jmerelo joined 16:24 manchicken left 16:25 cpan-p6 left, cpan-p6 joined, manchicken joined 16:28 w17t left 16:30 w17t joined 16:39 cpan-p6 left, cpan-p6 joined 16:41 ufobat___ joined 16:44 manchicken left 16:45 ufobat_ left 16:50 zakharyas joined 16:59 w17t left 17:00 w17t joined 17:02 cpan-p6 left 17:03 cpan-p6 joined 17:08 oftl joined 17:11 kensanata joined
tbrowder guifa: i will put a CLDR parser on my Datez 17:13
guifa tbwoder++ 17:14
tbrowder++ (I shouldn’t be drinking while grading :P )
tbrowder *Date::Name TODO list. @samcv may have one since she is the heavy unicode hitter here. 17:15
17:15 pecastro left 17:16 cpan-p6 left 17:17 cpan-p6 joined
tbrowder .ask samcv do you have a p6 parser for any unicode xml data—specifically for CLDR? 17:17
yoleaux tbrowder: I'll pass your message to samcv.
tbrowder guifa: yes, drinking and grading probably don’t mix, unless you’re in a pub somewhere or with friends 17:21
guifa: there is a Locale::CLDR p5 module on CPAN which may be a good starting point. 17:22
17:30 cpan-p6 left 17:31 cpan-p6 joined
jmerelo .tell moritz geth (and thus hack) seems to be down again 17:31
yoleaux jmerelo: I'll pass your message to moritz.
tbrowder guifa: github has the p5 parser used for downloading CLDR data file and auto generating the p5 Locale::CLDR. i’m going to add the info to the mosted wanted module list and maybe we can get some interest next squashathon. 17:36
17:39 Ven`` joined
guifa It’s too early for drinking at a pub. But these essays are worse than some of my code ;-) 17:44
moritz jmerelo: hack seems up 17:45
yoleaux 17:31Z <jmerelo> moritz: geth (and thus hack) seems to be down again
jmerelo moritz: then it's Geth? 17:47
moritz jmerelo: Geth is here
jmerelo moritz: it's not sending latest pushes to this channel. Is that geth? 17:52
17:53 cpan-p6 left 17:54 cpan-p6 joined
jmerelo moritz: yep, it's geth... 17:56
moritz jmerelo: I don't know how to operate that bot, just how to reboot the server when it's down 17:58
jmerelo moritz: would that be timotimo?
.tell timotimo can you take a look at geth?
yoleaux jmerelo: I'll pass your message to timotimo.
18:01 mir3tz joined 18:02 aindilis left 18:07 cpan-p6 left 18:08 cpan-p6 joined 18:10 mir3tz left
timotimo geth is on hack. last time i just restarted it via systemd, but i'm not sure if it actually helped or not 18:17
yoleaux 17:58Z <jmerelo> timotimo: can you take a look at geth?
18:21 cpan-p6 left 18:22 cpan-p6 joined
jmerelo timotimo: can you try again? Also, check why it's failed... 18:22
timotimo well, geth is still noticing messages 18:24
jmerelo timotimo: just not sending them to this channel?
timotimo oh, hm 18:30
geth answered the delivery with "ignored"
OK, i sent one that gives the response "OK" 18:31
18:32 Geth left, Geth joined, ChanServ sets mode: +v Geth
timotimo Feb 17 18:33:13 hack perl6[30351]: Array element = ["chans", [""], ["#perl6", "#perl6-dev", "#perl6-toolchain", "#zofbot", "#moarvm", "#cro"], Bool::False] 18:34
18:34 cpan-p6 left
timotimo this could perhaps be a hint, the second entry being a list with one empty string, perhaps that's the list it'll try to emit the message to? 18:34
ooooh 18:35
18:35 cpan-p6 joined
timotimo the problem is with the URLs 18:37
hack.p6c.org:8888/?chan=#perl6-dev is sent as ?chan=
hack.p6c.org:8888/?chan=%23perl6-dev is sent as ?chan=#perl6-dev
so the entire time github was telling geth to report to no channels
jmerelo timotimo: is it a problem with the hook then? 18:38
Let me take a look...
18:38 ufobat___ left
jmerelo timotimo: they don't seem to have changed; maybe the payload has changed. 18:38
timotimo maybe github didn't treat # as "ignore the rest of the url" before 18:39
jmerelo timotimo: right. That might be it.
timotimo: this is the payload URL: hack.p6c.org:8888/?chan=#perl6
So maybe change it to %23?
timotimo: right, this is the request URL: Request URL: hack.p6c.org:8888/?chan= 18:40
timotimo yes, please do that
Geth doc: ac655f6247 | (JJ Merelo)++ | doc/Type/Any.pod6
Updates definition
18:41
synopsebot Link: doc.perl6.org/type/Any
jmerelo timotimo: yay! 18:42
timotimo: thanks!
timotimo: but now we'll have to change it all across the ecosystem...
timotimo what other repos can... yeah
github made us do it
jmerelo I'll have to check one by one.
timotimo i can change geth to report in #perl6-dev when no channels have reached it
jmerelo timotimo: that would be nice. 18:43
I have just changed perl6/ecosystem
perl6/perl6-examples updated
timotimo: someone already changed perl6/nqp 18:44
timotimo me
i used that to test my hypothesis about # and %23
jmerelo timotimo: changed perl6/roast 18:45
timotimo: I'll update the rest as I use them... 18:47
18:47 Geth left, Geth joined, ChanServ sets mode: +v Geth
timotimo this version ought to do the # warning thing 18:47
can you test it by redelivering a hook that's wrong? 18:48
i'll try it out with perl6/nqp right now 18:55
jmerelo timotimo: ok 18:57
18:58 Geth left, cpan-p6 left
timotimo had the code wrong 18:58
18:58 Geth joined, ChanServ sets mode: +v Geth, cpan-p6 joined
timotimo fantastic, it works 18:58
18:58 ufobat joined 19:02 dominix__ joined
jmerelo timotimo++ 19:05
19:06 dominix_ left 19:09 Geth left, Geth joined, ChanServ sets mode: +v Geth
timotimo i have no idea what repo just delivered something, but it didn't get reported properly 19:10
19:12 cpan-p6 left
timotimo i'm hoping someone will redeliver whatever that was and the extra logging i put in will let me build the right fix 19:12
19:12 cpan-p6 joined 19:14 andrzejku joined 19:21 kylese left 19:26 cpan-p6 left 19:27 cpan-p6 joined 19:28 lucasb left 19:30 clarkema joined, Kaiepi joined 19:35 kensanata left 19:42 cpan-p6 left, cpan-p6 joined 19:47 hph^ left 19:49 Ven`` left 19:56 Kaypie joined, Kaiepi left, cpan-p6 left, cpan-p6 joined
cpan-p6 New module released to CPAN! HTML-Canvas (0.0.7) by 03WARRINGD 19:56
20:01 xinming joined 20:04 xinming_ left 20:10 cpan-p6 left, cpan-p6 joined 20:33 mowcat joined 20:37 Jordi_ joined 20:42 leszekdubiel joined, Jordi_ left 20:43 leszekdubiel left, leszekdubiel joined 20:46 gfldex joined 20:56 kensanata joined, cpan-p6 left, cpan-p6 joined
andrzejku huh 20:57
yoleaux 00:10Z <MasterDuke> andrzejku: El_Che might be a good person to talk to since they've packaged rakudo for a couple different distros already
andrzejku ok :)
MasterDuke, thnks
Hey, I have Perl6 question here 20:58
clarkema Go ahead and give it a try ;) 21:00
andrzejku far as I know parallelism is not always effective 21:01
and here I assume if even in low lever langs like C++ it is not effective to do things in parallel as it is a great overhead 21:02
then who control that in Perl6 it is more efficient than sequential computing
in given case
clarkema I'm not sure I understand the question. Perl6 doesn't automagically run code concurrently; you have to choose to do so. 21:04
21:04 Kaypie left
jmerelo andrzejku: I've used it with concurrent evolutionary algorithms and it works pretty well up to 8 concurrent threads 21:05
andrzejku: it could maybe work better, but with parallel computing the algorithm you use really has an influence on the speedup you will achieve.
The paper was just submitted to a conference, but is available in GitHub
Code also free at github.com/JJ/p6-algorithm-evolutionary-simple 21:06
21:07 jmerelo left, pecastro joined, leszekdubiel left 21:11 cpan-p6 left, cpan-p6 joined
andrzejku thnks :) 21:15
Xliff m: 300.fmt('%e')
camelia ( no output )
Xliff m: 300.fmt('%e').say
camelia 3.000000e+02
Xliff m: 300.fmt('%2.2e').say
camelia 3.00e+02
Xliff m: 300.fmt('%2.5e').say
camelia 3.00000e+02
Xliff m: 300.fmt('%5.e').say
camelia 3e+02
Xliff m: 300.fmt('%05.e').say 21:16
camelia 3e+02
Xliff m: 300.fmt('%2.e').say
camelia 3e+02
Xliff m: 0.003.log(10).say 21:18
camelia -2.5228787452803374
Xliff m: 0.003.log10.say 21:19
camelia -2.5228787452803374
Xliff m: 0.003.log10().say
camelia -2.5228787452803374
21:25 cpan-p6 left, cpan-p6 joined 21:29 zakharyas left 21:33 sena_kun left 21:41 andrzejku left 21:59 Ven`` joined 22:01 cpan-p6 left, cpan-p6 joined 22:03 kensanata left 22:15 cpan-p6 left, ferreira left, cpan-p6 joined 22:37 cpan-p6 left, cpan-p6 joined 22:42 ufobat left 22:47 drolax left 22:55 Geth left 22:56 Geth joined, ChanServ sets mode: +v Geth 23:00 cpan-p6 left 23:01 cpan-p6 joined 23:09 Ven`` left 23:16 cpan-p6 left, cpan-p6 joined 23:27 rindolf left 23:30 cpan-p6 left 23:31 cpan-p6 joined 23:54 cpan-p6 left, cpan-p6 joined 23:59 ferreira joined