Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-dev, 2017-01-17

| Channels | #perl6-dev index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:09 Ven joined #perl6-dev
00:16 MasterDuke samcv: did you see this? https://github.com/MoarVM/MoarVM/p​ull/501#pullrequestreview-16889758
00:17 samcv MasterDuke, uhm not all the types have that pointer type?
00:17 samcv but if you make that change does it supress all warnings?
00:18 samcv there's MVMUnicodeGraphemeNameRegistry too
00:18 MasterDuke it surpresses the one warning during a moarvm compile
00:18 samcv yeah
00:18 samcv I wouldn't make this change. i mean
00:18 samcv better to fix the actual source than just suppress the warning
00:19 samcv or maybe have one MVMUnicodeXXX and cast both the other ones to that
00:19 samcv than to cast to a type which it is not
00:21 samcv or maybe there's some way to do it to have the macro HASH_ADD_KEYPTR wants to be something that accepts both of them, i'm not sure
00:21 samcv let me look for a sec
00:21 MasterDuke well, UnicodeNameRegistry and UnicodeGraphemeNameRegistry are pretty much identical
00:22 samcv they aren't the same though
00:22 samcv don't they have different types in the containing items?
00:22 samcv yeah they do
00:22 MasterDuke yeah, but i think the one is just a typedef of the other
00:22 samcv no they are not
00:22 MasterDuke (the differing ones)
00:23 samcv see unicode.h
00:23 samcv here https://github.com/MoarVM/MoarVM/bl​ob/master/src/strings/unicode.h#L14
00:23 samcv one holds a codepoint value and one holds an index of another struct
00:24 samcv so I really don't like the idea of making both the same type
00:24 samcv even though the size of the values inside the struct is the same
00:24 MasterDuke typedef MVMint32 MVMGrapheme32;
00:25 MasterDuke src/6model/reprs/MVMString.h:19:
00:27 MasterDuke i have no strong feelings about what the correct solution is, i just made a (what seemed reasonable at the time without knowing anything about the code) change that silenced the warning
00:27 samcv your other changes seem fine. but I don't like changing that one unless we have a better solution
00:27 MasterDuke so feel free to do or suggest something else/better
00:28 MasterDuke won't hurt my feelings
00:29 samcv we could always use a union tbh
00:29 samcv i think. i am thinking
00:30 samcv or maybe this is the opposite of what i want. i'll get back to when I figure out what will be best :)
00:32 MasterDuke sure
00:33 samcv yeah we can use a union
00:34 samcv but that may require more changes else where. so not a good change to just make quickly
00:35 samcv i'm gonna look at the macro
00:36 MasterDuke do you mind replaying in the comment thread?
00:36 MasterDuke *replying
00:36 samcv ye
00:36 MasterDuke (no need to replay the whole conversation)
00:36 MasterDuke thanks
00:39 samcv MasterDuke, can you try casting as (keyptr)
00:40 samcv see if that works
00:41 samcv er wait that's wrong. ah
00:49 Ven joined #perl6-dev
01:09 Ven joined #perl6-dev
01:12 vendethiel joined #perl6-dev
01:28 Ven joined #perl6-dev
01:48 Ven joined #perl6-dev
02:08 Ven joined #perl6-dev
02:21 user_ joined #perl6-dev
02:29 Ven joined #perl6-dev
02:46 Ven joined #perl6-dev
02:49 ilbot3 joined #perl6-dev
02:49 Topic for #perl6-dev is now Perl 6 language and compiler development 2.0 | Logs at http://irclog.perlgeek.de/perl6-dev/today
03:04 Ven joined #perl6-dev
03:24 Ven joined #perl6-dev
03:26 lizmat joined #perl6-dev
03:45 Ven joined #perl6-dev
04:04 Ven joined #perl6-dev
04:24 Ven joined #perl6-dev
04:44 Ven joined #perl6-dev
05:04 Ven joined #perl6-dev
05:24 Ven joined #perl6-dev
05:44 Ven joined #perl6-dev
05:44 Geth roast: 5d837a7a26 | (Jonathan Scott Duff)++ | S03-operators/range-basic.t
05:44 Geth roast: Add tests for RT#130554
05:44 Geth roast: review: https://github.com/perl6/roast/commit/5d837a7a26
05:44 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130554
06:04 Ven joined #perl6-dev
06:24 Ven joined #perl6-dev
06:50 Ven joined #perl6-dev
06:54 RabidGravy joined #perl6-dev
07:09 [Tux] This is Rakudo version 2016.12-337-g7f970357b built on MoarVM version 2016.12-115-ged2df9ac
07:09 [Tux] csv-ip5xs        2.889
07:09 [Tux] test            12.366
07:09 [Tux] test-t           5.024
07:09 [Tux] csv-parser      13.224
07:21 Ven joined #perl6-dev
07:28 [Tux] joined #perl6-dev
07:33 geekosaur joined #perl6-dev
07:56 llfourn joined #perl6-dev
08:25 lizmat Files=1163, Tests=56135, 186 wallclock secs (11.01 usr  4.49 sys + 1102.06 cusr 118.87 csys = 1236.43 CPU)
08:26 lizmat samcv: the reason I repeated the string in the text, is that some browser may actually not display the emoji correctly
08:26 samcv kk
08:29 samcv though it seemed redundant. "\c[charname]" (charname)
08:29 samcv that was all
08:35 lizmat yeah, I know, but having the emoji only would have been lost on many
08:35 lizmat and just the text after it would look strange to me without the parens
08:37 Ven joined #perl6-dev
08:54 Ven joined #perl6-dev
09:14 lizmat hmmm... is there a reason why the @cycle on a .rotor() cannot be lazy (apart from implementation complexity?)
09:14 Ven joined #perl6-dev
09:29 Ven joined #perl6-dev
09:30 |Tux| I had some git mayhem, so I am unsure if this last timing was caused by that. Just to make sure, here is a new one …
09:30 |Tux| This is Rakudo version 2016.12-351-g0cd921e35 built on MoarVM version 2016.12-115-ged2df9ac
09:30 |Tux| csv-ip5xs        2.803
09:30 |Tux| test            12.007
09:30 |Tux| test-t           4.878
09:30 |Tux| csv-parser      13.332
09:31 |Tux| 337 → 351
09:31 lizmat 337 → 351  ?
09:31 lizmat ah, git commits
09:32 lizmat a new low!
09:32 lizmat :-)
09:34 DrForr I'd better update :)
09:35 * lizmat should take more tea: the cycle on a rotor *can* be lazy, and *is* made lazy internally anyway  :-)
09:41 lizmat afk for a few hours&
09:57 dogbert17_ joined #perl6-dev
10:01 pmurias joined #perl6-dev
10:08 Ven joined #perl6-dev
10:14 llfourn joined #perl6-dev
10:28 Ven joined #perl6-dev
10:48 Ven joined #perl6-dev
11:08 Ven joined #perl6-dev
11:23 Ven joined #perl6-dev
11:52 Ven joined #perl6-dev
11:57 brokenchicken lizmat: there's this bug tho: https://rt.perl.org/Ticket/Displ​ay.html?id=129175#ticket-history
11:57 lizmat ok, will take care of that
11:57 lizmat :-)
11:58 lizmat well, of the rotor case, not necessarily the slurpy arg case
11:58 lizmat hmmm...  or maybe I must :-(
12:01 lizmat m: sub a(*@a) { say @a.iterator.is-lazy }; a(1...*)   # underlying issue
12:01 camelia rakudo-moar 0cd921: OUTPUT«False␤»
12:01 lizmat that should have said True
12:03 jnthn m: sub a(+@a) { say @a.iterator.is-lazy }; a(1...*) # curious
12:03 camelia rakudo-moar 0cd921: OUTPUT«True␤»
12:04 ilmari what's the difference betwen *@a and +@a?
12:05 ilmari ah, https://docs.perl6.org/type/Signa​ture#Single_Argument_Rule_Slurpy
12:07 Ven joined #perl6-dev
12:07 ilmari shouldn't that be s/(engage)d/$0s/?
12:09 lizmat ilmari: there's https://github.com/perl6/doc and PR's  :-)
12:25 lizmat http://stackoverflow.com/questions/41696​570/what-is-the-difference-in-contexts-i​n-nested-and-non-nested-maps-in-perl-6  # why do we need the inner eager ???
12:25 lizmat that feels like a bug to me ?
12:26 timotimo is that just "last statement not being sunk correctly"?
12:26 timotimo i.e. if we put a "say 'finished'" at the end, will it work?
12:27 lizmat trying
12:28 lizmat yup
12:28 lizmat that's it
12:28 timotimo i'm glad my intuition was right :)
12:29 lizmat yeah, adding another statement will make the inner map sink
12:39 lizmat http://stackoverflow.com/questions/41696​570/what-is-the-difference-in-contexts-i​n-nested-and-non-nested-maps-in-perl-6/   # answered
12:40 lizmat timotimo: basically, all is as it should be, it's just that a Seq of .Seqs getting sunk, doesn't iterate over the inner .Seqs
12:41 lizmat .oO( I'm so glad I don't have to read that aloud :-)
12:41 timotimo OK!
12:41 lizmat and I don't think it should
12:41 * jnthn looks but suspects not a bug
12:42 jnthn Yeah, no bug
12:42 lizmat yeah, the outer Seq is sunk, and that doesn't run the inners Seqs
12:42 jnthn But if you're just using map for the side-effects, why not write it with `for`?
12:42 timotimo lizmat: just pronounce it like "seek"
12:42 jnthn The point of map is you're mapping something to something else :P
12:42 lizmat well, there's that  :-)
12:42 timotimo because after all it's short for Sequence
12:43 jnthn .oO( I just mapped Seqs, and it felt so good... )
12:44 lizmat well, I'm not sure I like being chased by men in turbans  :-)
12:44 lizmat with their kirpans
12:45 lizmat .oO( http://stackoverflow.com/questions/41696570/wh​at-is-the-difference-in-contexts-in-nested-and​-non-nested-maps-in-perl-6/41697345#41697345 )
12:45 lizmat oops, wrong paste
12:45 lizmat .oO( https://en.wikipedia.org/wiki/Sikh )
12:46 timotimo jnthn: an array let me put my items inside it?
12:46 jnthn :)
12:48 cognominal joined #perl6-dev
13:09 Ven joined #perl6-dev
13:16 brokenchicken On the topic of slurpies there's also this ticket: https://rt.perl.org/Ticket/Displ​ay.html?id=130441#ticket-history
13:16 brokenchicken buggable: tag regression
13:16 buggable brokenchicken, There are 22 tickets tagged with REGRESSION; See http://perl6.fail/t/REGRESSION for details
13:16 cognominal joined #perl6-dev
13:17 brokenchicken NeuralAnomaly: status
13:17 NeuralAnomaly brokenchicken, [✘] Next release will be in 3 days and 16 hours. Since last release, there are 89 new still-open tickets (89 unreviewed and 0 blockers) and 329 unreviewed commits. See http://perl6.fail/release/stats for details
13:26 Ven joined #perl6-dev
13:29 samcv the newest atom beta that came out a week ago is so much faster brokenchicken
13:30 lizmat brokenchicken: RT #130566 is fixed
13:30 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130566
13:30 samcv though your computer is probably faster than mine. I can actually open big files and it won't go all funny, and opening any file is like 2x faster
13:30 lizmat brokenchicken: also fixed: RT #130513
13:30 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130513
13:31 lizmat and RT #130510
13:31 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130510
13:31 cognominal joined #perl6-dev
13:32 brokenchicken cool
13:32 timotimo that sounds great! (and much needed)
13:32 samcv what I said? or?
13:32 samcv the slurpy
13:33 timotimo no, atom performance
13:33 samcv ah yeah
13:37 jnthn Yeah, I moved to Vim largely because I got tired of <open large file> <hang>
13:37 jnthn Doubt I'll move back, alas.
13:38 jnthn Really liking how decluttered things are in Vim. Me. The code I'm working on. That's all.
13:39 timotimo vim has *big* trouble when a file contains a line like # -----------------------------------
13:39 timotimo it seems like
13:39 timotimo haven't golfed it yet
13:39 timotimo but at least you can ctrl-c and it'll stop the syntax highlighter and you can just scroll away
13:40 brokenchicken .ask geekosaur you know a lot about this topic. Mind looking at https://rt.perl.org/Ticket/Displ​ay.html?id=130512#ticket-history ? Is that even a bug?
13:40 yoleaux2 brokenchicken: I'll pass your message to geekosaur.
13:42 jnthn brokenchicken: I looked at that and thought "is it really reasonable to expect Perl 6 to do that" too, tbh. But yeah, geekosaur++ will likely know better on it :)
13:43 timotimo ah, yeah, pty support would be good indeed
13:47 nine The pty command sounds useful for that. Maybe one should just push that in between Perl 6 and the program it runs?
13:47 yoleaux2 6 Jan 2017 17:20Z <notviki> nine: is this meant to work? https://gist.github.com/zoffixznet​/b6cb79cd6729226a455f35ad08deb68d Seems to only use the sub from first loaded version and keeps using it that version even if I reverse the loading order, unless I also nuke the .precomp
13:47 yoleaux2 6 Jan 2017 17:26Z <notviki> nine: here are the contents of the files in that tree: https://gist.github.com/zoffixznet​/ccdd17f79272af98ad863ac06be8afbe
13:47 yoleaux2 6 Jan 2017 17:30Z <notviki> nine: err, `cat v2/Foo.pm6` has { say "two"; } instead of { say "one" } (and yeah, I then changed it to say "ones" and the code kept saying "one" until I nuked precomp
13:47 yoleaux2 9 Jan 2017 04:11Z <japhb> nine: Which phasers are expected to happen *during* precompilation, which ones are expected to happen at need time, and which ones during import time?
13:53 ggoebel joined #perl6-dev
13:56 nine .tell notviki the FileSystem repository is meant for development mostly and therefore ignores all version, auth and api requirements and just matches the name of the module.
13:56 yoleaux2 nine: I'll pass your message to notviki.
13:57 lizmat nine: I guess you want to leave that for brokenchicken  :-)
13:58 Geth roast: ronaldxs++ created pull request #223: Test for RT #130562
13:58 Geth roast: review: https://github.com/perl6/roast/pull/223
13:58 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130562
14:02 Geth roast: 89c51acfb9 | (Ronald Schmidt)++ | S05-metasyntax/longest-alternative.t
14:02 Geth roast: Test for RT #130562, ltm alternation only sees first sequential alternative.
14:02 Geth roast: review: https://github.com/perl6/roast/commit/89c51acfb9
14:02 Geth roast: e5efaec7ba | lizmat++ | S05-metasyntax/longest-alternative.t
14:02 Geth roast: Merge pull request #223 from ronaldxs/mixed-ltm-sequential-alternation
14:02 Geth roast:
14:02 Geth roast: Test for RT #130562
14:02 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130562
14:02 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130562
14:02 Geth roast: review: https://github.com/perl6/roast/commit/e5efaec7ba
14:05 nine brokenchicken: the FileSystem repository is meant for development mostly and therefore ignores all version, auth and api requirements and just matches the name of the module.
14:11 * lizmat wonders whether synopsebot6 should be taught not to mention the same ticket more than once a minute
14:17 brokenchicken hmm
14:17 brokenchicken $ perl6 -e 'use lib </tmp/>; use B; use A'
14:17 brokenchicken ===SORRY!===
14:17 brokenchicken Failed to open dir: 13
14:19 brokenchicken mc: use lib </home/bisectable/test>; use B; use A
14:19 committable6 brokenchicken, ¦«2015.12»:  «exit signal = SIGSEGV (11)»
14:19 brokenchicken bisect: use lib </home/bisectable/test>; use B; use A
14:19 bisectable6 brokenchicken, On both starting points (old=2015.12 new=0cd921e) the exit code is 0, exit signal is 11 (SIGSEGV) and the output is identical as well
14:19 bisectable6 brokenchicken, Output on both points:
14:19 brokenchicken k
14:20 brokenchicken That was https://rt.perl.org/Ticket/Displ​ay.html?id=130553#ticket-history  seems we had the issue for ages
14:20 nine 13 is permission denied
14:20 brokenchicken Ah
14:21 * nine always loves the scavenger hunt for ERRNO constants in /usr/include
14:22 nine errno.h -> bits/errno.h -> linux/errno.h -> asm/errno.h -> asm-generic/errno.h -> asm-generic/errno-base.h
14:34 ilmari moreutils has errno(1)
14:35 Geth rakudo/nom: 7d5bbefe7f | (Zoffix Znet)++ | docs/ChangeLog
14:35 Geth rakudo/nom: Fix formatting
14:35 Geth rakudo/nom: review: https://github.com/rakudo/rakudo/commit/7d5bbefe7f
14:35 ilmari $ errno ENOSPC
14:35 ilmari ENOSPC 28 No space left on device
14:35 ilmari $ errno 37
14:35 ilmari ENOLCK 37 No locks available
14:35 ilmari etc
14:39 brokenchicken lol
14:39 brokenchicken $ errno 25
14:39 brokenchicken ENOTTY  25 /* Not a typewriter */
14:41 lizmat afk&
14:42 ilmari brokenchicken: the modern wording for that one is «Inappropriate ioctl for device»
14:48 [Coke] samcv: any plans to add a routine to provide a runtime version of "\c[]" ?
14:49 samcv hmm?
14:49 samcv oh.
14:49 samcv that that could be nice
14:49 nine ilmari: wow, I'd have probably needed every single program contained in moreutils at one point or another. Thanks for pointing out that gem!
14:49 ilmari nine: yeah, it's very handy
14:50 samcv moreutils is great
14:50 ilmari I use sponge the most
14:50 samcv same
14:51 [Coke] samcv: without a routine, you end up with: https://github.com/coke/p6-unicode​-mangler/blob/master/mangle.p6#L82
14:51 samcv [Coke], how does unifromname sound? though idk maybe makes it sound like it returnrs a Uni object
14:51 samcv but uniname works only on strings or codes not on Uni so
14:51 samcv there's that
14:52 Ven joined #perl6-dev
14:53 [Coke] I mean, uniname is the right name, but it got stolen for the other direction. :)
14:53 [Coke] I don't like unifromname, but don't have a great alternative. from-unicode-name?
14:56 samcv sure
14:56 samcv idk. we need a poll
14:57 [Coke] I mean, they all suck.
14:57 samcv yeah
14:57 samcv but one of them sucks the least
14:57 samcv also i need to sleep
14:59 samcv i think from-unicode-name could be ok i guess
15:23 Ven joined #perl6-dev
15:54 llfourn joined #perl6-dev
16:19 llfourn joined #perl6-dev
16:33 brokenchicken Seems this month will have the biggest changelog that we had for a while...
16:38 Ven joined #perl6-dev
16:42 [Coke] should we have a Uni.Range to show the range of codepoints?
16:43 timotimo btw do we expose our supported unicode version somewhere?
16:43 timotimo $*VM.uni-version or something could be used
16:47 [Coke] timotimo: been asking for that since christmas, nope.
16:47 timotimo oh
16:47 [Coke] even better: make it settable!
16:48 [Coke] what's the highest uni ord?
16:50 timotimo mirror mirror on the wall ..
16:53 Ven joined #perl6-dev
16:53 brokenchicken m: 0x10FFFF.chr.say
16:53 camelia rakudo-moar 7d5bbe: OUTPUT«\x{10FFFF}␤»
16:53 nine timotimo++ # reminding me of Blind Guardian which I haven't listened to in ages.
16:53 ilmari 'Supplementary Private Use Area-B' ends at U+10FFFF
16:54 brokenchicken m: 0x10FFFFFFFFFF.chr.say
16:54 camelia rakudo-moar 7d5bbe: OUTPUT«chr codepoint cannot be negative␤  in block <unit> at <tmp> line 1␤␤»
16:54 brokenchicken heh
16:56 timotimo nine: when i think "The Mirror", i'm reminded of Dream Theater
17:02 cog_ joined #perl6-dev
17:05 nine timotimo: :)
17:14 TimToady samcv: I'd just call it "uni", since it'll usually be obvious from the name what the input is :)
17:14 TimToady s/name/argument
17:15 TimToady and it's perfectly fine to name something by what it produces, generally
17:17 TimToady hmm, if she's on california time, looks like she coded all night and then collapsed in a heap
17:17 * TimToady fondly remembers being young enough to do that...
17:17 [Coke] TimToady: I miss those days myself.
17:30 llfourn joined #perl6-dev
17:45 geekosaur re https://rt.perl.org/Ticket/Displ​ay.html?id=130512#ticket-history they are expecting Proc::Async to be an Expect implementation, essentially. although it might be nice if it did provide the option to use a pty instead of a pipe (this should not be default as it's higher overhead and ptys are a limited resource compared to pipes)
17:45 yoleaux2 13:40Z <brokenchicken> geekosaur: you know a lot about this topic. Mind looking at https://rt.perl.org/Ticket/Displ​ay.html?id=130512#ticket-history ? Is that even a bug?
17:55 * b2gills .o( I wonder if Proc::Asyc.new could have a :tty flag added )
18:05 geekosaur the real question is likely whether libuv provides it, since iirc Proc::Async defers to libuv for most stuff
18:08 Ven joined #perl6-dev
18:09 timotimo it should
18:10 jnthn Seems not
18:11 timotimo huh, seems like
18:12 jnthn At least, the searches I did for libuv pty suggested not
18:13 huggable joined #perl6-dev
18:13 buggable joined #perl6-dev
18:14 Geth joined #perl6-dev
18:15 NeuralAnomaly joined #perl6-dev
18:16 timotimo it mean: seems like not
18:20 geekosaur actually, looks like it does but it doesn't connect the dots for you. http://docs.libuv.org/en/v1.x/tty.html
18:22 geekosaur nor does it appear to have an API specifically for getting a pty; it just lets you specify one. (uv_process_t *does* support bidirectional "pipes", which only makes sense with a pty or on freebsd)
18:31 llfourn joined #perl6-dev
18:44 sortiz joined #perl6-dev
18:50 FROGGS joined #perl6-dev
19:13 bisectable6 joined #perl6-dev
19:19 bisectable6 joined #perl6-dev
19:21 RabidGravy joined #perl6-dev

| Channels | #perl6-dev index | Today | | Search | Google Search | Plain-Text | summary