Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-12-27

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:01 JRaspass m: class A { method DESTROY { say 1 } }; { A.new }
00:01 camelia rakudo-moar a7bf1e: ( no output )
00:03 dataf3l joined #perl6
00:08 samcv but it seems something bad is going on, when i fix the spacevs whitespace bug, and then it breaks regex
00:09 rightfold notviki: yeah I guess I'll write a library for making foldr easier
00:09 rightfold But I'll make it an ad-hoc associativity library, not specifically foldr
00:09 rightfold So you can do something like @xs.reduce(as-right(&f))
00:11 * notviki wishes our augments were lexical...
00:14 dugword joined #perl6
00:14 dugword p6: say 3;
00:14 camelia rakudo-moar a7bf1e: OUTPUT«3␤»
00:15 notviki JRaspass: I'm no expert, but AFAIK nope.
00:16 JRaspass notviki: darn, so what's the best way of having tear down logic, in my example i need to issue a DELETE req to a server
00:18 notviki unsure... maybe END phaser?
00:18 rightfold Is there something that enables Perl 5 sigils?
00:18 notviki m: for ^20 { my class Foo { END { say "hi" } }; my $x = Foo.new }; say "meow"
00:18 camelia rakudo-moar a7bf1e: OUTPUT«meow␤hi␤»
00:18 notviki m: for ^200000 { my class Foo { END { say "hi" } }; my $x = Foo.new }; say "meow"
00:18 camelia rakudo-moar a7bf1e: OUTPUT«meow␤hi␤»
00:19 notviki worth trying
00:19 notviki rightfold: no
00:19 rightfold Ok :P
00:20 JRaspass ooo that might work, a DESTROY block for best effort, then a phaser for final cleanup of any that weren't called
00:20 JRaspass thanks
00:21 JRaspass s/block/method/
00:28 pierre_ joined #perl6
00:34 samcv notviki, something REALLY weird is happening
00:34 samcv 'a' ~~ /<:space>/ #> it matches the letter a
00:34 samcv but space and White_Space match fine
00:34 samcv well. no. i mean
00:34 samcv uniprop-bool shows correct values for both
00:34 samcv and both have the same moarvm propcode
00:35 samcv but i can't match ' ' ~~ /<:space>/ but it can match non-space characters
00:35 samcv but other properties match fine
00:36 BenGoldberg joined #perl6
00:37 samcv there was a bug on matching <:space> before, and so it was fixed for the JVM https://rt.perl.org/Ticket/Display.html?id=125190
00:37 samcv and that test added
00:43 notviki m: say "a" ~~ /<:space>/
00:43 camelia rakudo-moar a7bf1e: OUTPUT«Nil␤»
00:43 samcv so it is now reversed for me, but otherwise works fine
00:43 samcv but only reversed in regex
00:43 samcv nowhere else
00:44 samcv so maybe there's a bug that the jvm had to work around
00:44 samcv to fix the bug for JVM
00:45 Rawriful joined #perl6
00:46 samcv i think maybe this https://github.com/perl6/nqp/blob/mast​er/src/QRegex/P6Regex/Actions.nqp#L663
00:47 samcv is in nqp where it does its unicode property thingy
00:58 dataf3l Hey Guys
00:58 dataf3l Is there a way to get the Hash keys and values back in the same order they were inserted?
00:58 dataf3l something like Python’s OrderedDict, or PHP’s array() (which is both, array and hash, but is sorted by creation)
00:59 dataf3l does that come in the box or do I have to subclass Hash and do all the dirty work?
01:03 AlexDaniel dataf3l: I don't think there is something. By the way, what problem are you trying to solve?
01:06 aborazmeh joined #perl6
01:06 aborazmeh joined #perl6
01:08 samcv guess time to poke into the internals
01:15 bjz joined #perl6
01:34 dugword dataf31: You could have an array of pairs, it's not quite an hash since you can only access the pairs by index. But if you only cared about accessing them in order it might do the trick.
01:40 pyrimidi_ joined #perl6
01:40 AlexDaniel m:say 42
01:40 AlexDaniel m: say 42
01:40 camelia rakudo-moar a7bf1e: OUTPUT«42␤»
02:00 labster joined #perl6
02:05 AlexDaniel “Input (194228 characters) is not a valid JSON string” /o\
02:08 cooper_ joined #perl6
02:08 cooper_ joined #perl6
02:10 dataf3l joined #perl6
02:13 dataf3l joined #perl6
02:16 dataf3l joined #perl6
02:16 notviki AlexDaniel: with what?
02:16 notviki JSON::Tiny?
02:16 AlexDaniel both Tiny and Fast
02:17 AlexDaniel Fast gives a more meaningful error: 「at 131936: can't parse objects starting in "̥̞ͫͩ̉̎͊ yet (context: ỏ̟͙̞̻̹r̵̨͇̫̦̺̮̼ͭ,̷̧̬̲͈̤̅̉͛ͫ͠ ̣͕̝̳̗̲̩͗̋͘e̼ͩ̔̿̾̋͘a̸̙͙͔̜̳̻͊ͯͪͤͬ͆͠)」
02:17 AlexDaniel although I'm not sure if it is the same issue or not
02:17 notviki Are you on latest JSON::Tiny? moritz fixed a bug for same-looking bug recently
02:18 AlexDaniel (and I'm starting to doubt that this thing is valid by itself)
02:18 notviki that line messed up my terminal
02:20 geekosaur someone's been parsing html with regex :p
02:21 dataf3l joined #perl6
02:22 AlexDaniel .tell moritz Hey! I cannot parse json clog from 2016-01-10 using JSON::Tiny… Since both seem to be maintained by, perhaps you can take a look? It is associated with combining characters I think
02:22 yoleaux AlexDaniel: I'll pass your message to moritz.
02:22 samcv m: "ỏ̟͙̞̻̹r̵̨͇̫̦̺̮̼ͭ,̷̧̬̲͈̤̅̉͛ͫ͠ ̣͕̝̳̗̲̩͗̋͘e̼ͩ̔̿̾̋͘a".chars.say
02:22 camelia rakudo-moar a7bf1e: OUTPUT«6␤»
02:22 AlexDaniel .tell moritz here's the json file: https://gist.githubusercontent.com/AlexDaniel/d​16a0d9043fe4378eab40d09f6f089ed/raw/8ad0b3b157a​d605b502fc154ae64ba8b1ccf7b98/2016-01-10.json
02:22 yoleaux AlexDaniel: I'll pass your message to moritz.
02:22 AlexDaniel by you**
02:25 geekosaur weee, that's one evil log :p
02:26 notviki thanks http://i.imgur.com/xUfab9J.png
02:26 dataf3l joined #perl6
02:27 AlexDaniel well, that's not our fault…
02:27 geekosaur yes, btw, that looks like a double quote with combining chars on it
02:28 AlexDaniel that's how it parses it, I guess
02:29 BenGoldberg That looks like stuff from http://www.eeemo.net/
02:30 samcv yeah there's bugs in things in nqp
02:30 samcv i think..
02:30 AlexDaniel u: "‍"
02:30 unicodable6 AlexDaniel, U+0022 QUOTATION MARK [Po] (")
02:30 unicodable6 AlexDaniel, U+200D ZERO WIDTH JOINER [Cf] (‍)
02:30 unicodable6 AlexDaniel, U+0022 QUOTATION MARK [Po] (")
02:31 BenGoldberg .u "ͮ̃ͤ̃̑̏̈͑͒ͣ͂͂̐
02:31 yoleaux U+0022 QUOTATION MARK [Po] (")
02:31 yoleaux U+0303 COMBINING TILDE [Mn] (◌̃)
02:31 yoleaux U+0308 COMBINING DIAERESIS [Mn] (◌̈)
02:31 samcv like <:Greek> is broken but <:Script<Greek>> works fine
02:31 samcv idk i can't father wtf is going on
02:32 samcv it is really hard to tell what's going on in QUASTRegexCompilierMAST
02:34 AlexDaniel m: say "‍❤️‍💋‍".chars
02:34 camelia rakudo-moar a7bf1e: OUTPUT«5===SORRY!5===␤Argument to "say" seems to be malformed␤at <tmp>:1␤------> 3say7⏏5 "‍❤️‍💋‍".chars␤Bogus postfix␤at <tmp>:1␤------> 3say 7⏏5"‍❤️‍💋‍".chars␤    expecting any of:␤        infix␤       …»
02:35 AlexDaniel u: say "‍❤️‍💋‍".chars
02:35 unicodable6 AlexDaniel, U+0073 LATIN SMALL LETTER S [Ll] (s)
02:35 unicodable6 AlexDaniel, U+0061 LATIN SMALL LETTER A [Ll] (a)
02:35 unicodable6 AlexDaniel, U+0079 LATIN SMALL LETTER Y [Ll] (y)
02:35 AlexDaniel … no gist?
02:35 AlexDaniel yea, failed to create a json out of it
02:35 dataf3l joined #perl6
02:35 AlexDaniel u: "‍❤
02:35 unicodable6 AlexDaniel, U+0022 QUOTATION MARK [Po] (")
02:35 unicodable6 AlexDaniel, U+200D ZERO WIDTH JOINER [Cf] (‍)
02:35 unicodable6 AlexDaniel, U+2764 HEAVY BLACK HEART [So] (❤)
02:36 AlexDaniel because a zero width joiner near a quote breaks the whole thing
02:37 BenGoldberg u: U+2764
02:37 unicodable6 BenGoldberg, U+2764 HEAVY BLACK HEART [So] (❤)
02:37 BenGoldberg u: POO
02:37 unicodable6 BenGoldberg, U+1434 CANADIAN SYLLABICS POO [Lo] (ᐴ)
02:37 unicodable6 BenGoldberg, U+1435 CANADIAN SYLLABICS Y-CREE POO [Lo] (ᐵ)
02:37 unicodable6 BenGoldberg, U+20D0 COMBINING LEFT HARPOON ABOVE [Mn] (◌⃐)
02:37 unicodable6 BenGoldberg, https://gist.github.com/cfb4​591c81aac4d160ad9afe2d6aff2b
02:38 samcv AlexDaniel, that would make sense
02:38 BenGoldberg u: U+1F595
02:38 unicodable6 BenGoldberg, U+1F595 REVERSED HAND WITH MIDDLE FINGER EXTENDED [So] (🖕)
02:38 samcv well. i am sure it is very non plussed about that
02:40 * BenGoldberg is thinking about getting a motorcycle jacket with "U+1F595" on it.  Not the middle finger itself, mind you.  I'm positive there are enough unicode literate folks out there who'd appreciate it.
02:41 dataf3l joined #perl6
02:46 BenGoldberg For some truly strange unicode fun, /msg perlbot call zalgo Some random text here.
02:46 AlexDaniel huggable: dezalgo
02:46 huggable AlexDaniel, nothing found
02:46 AlexDaniel huggable: zalgo
02:46 huggable AlexDaniel, nothing found
02:46 dataf3l joined #perl6
02:46 AlexDaniel meh
02:46 kalkin-_ joined #perl6
02:46 samcv bisectable6, say ' ' ~~ /<:space>/
02:46 bisectable6 samcv, On both starting points (old=2015.12 new=a7bf1ea) the exit code is 0 and the output is identical as well
02:46 bisectable6 samcv, Output on both points: 「 」
02:47 ilbot3 joined #perl6
02:47 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
02:49 dataf3l joined #perl6
02:50 samcv ok some other properties are now reversed. but only in regex
02:51 samcv yeah. all the failing properties, are reversed now
02:51 samcv like space and <Greek>
02:51 samcv but uniprop returns the correct thing
02:51 samcv losing my mind
02:52 FROGGS_ joined #perl6
02:52 xtreak joined #perl6
02:54 * notviki is trying to think of a language to invent
02:54 notviki While doing Rakudo Internals course...
02:55 notviki .oO( a language where all identifiers can be just a single letter only... )
02:57 AlexDaniel notviki: combiners allowed or not?
02:58 * notviki shrugs
02:58 samcv for what AlexDaniel
02:58 AlexDaniel for fancier identifiers
02:58 samcv oh
02:58 samcv uhm
02:59 AlexDaniel notviki: perhaps a language where an identifier should be zero letters. Instead, a combiner for the previous character is used
03:00 AlexDaniel (will be way more interesting if there are no sigils)
03:00 pierrot joined #perl6
03:00 notviki I started writing an article about a "damn compiler" where you build a language that has a lot of words damns in it... but the wordplay lost its charm quickly and I never finished...
03:00 geekosaur identifiers any length but operators are all combining chars on the identifiers :p
03:00 bjz_ joined #perl6
03:00 samcv nice
03:01 geekosaur that actually sounds a bit boring, just intercal with some slight edits :p
03:02 notviki this would've been a program: https://gist.github.com/zoffixznet​/e8735d377afd352ef5712b4f23fe21a3
03:02 samcv hah
03:05 dataf3l joined #perl6
03:08 dataf3l joined #perl6
03:09 itcharlie_linux joined #perl6
03:14 dataf3l joined #perl6
03:17 dataf3l joined #perl6
03:20 dataf3l joined #perl6
03:21 drrho joined #perl6
03:23 TimToady joined #perl6
03:25 dataf3l joined #perl6
03:29 dataf3l joined #perl6
03:31 bjz joined #perl6
03:32 dataf3l joined #perl6
03:33 labster joined #perl6
03:38 dataf3l joined #perl6
03:41 dataf3l joined #perl6
03:42 samcv hacks. ok i got whitespace to work. but i hacked it by renaming it from White_Space to just 'space'
03:42 samcv and now it works. really a workaround though, but at least closer to figuring out the problem
03:43 samcv so it works fine if it is the primary property name, but doesn't work if it's one of the aliases
03:46 dataf3l joined #perl6
03:49 dataf3l joined #perl6
03:49 * notviki gifts dataf3l a new router
03:51 noganex_ joined #perl6
03:51 samcv this is probably the biggest breakthrough I've had yet
03:51 samcv \o/
03:51 notviki \p/
03:53 samcv so they all have the same values in BOTH of these datastructures
03:53 samcv so now I know exactly what to look for in the generated database. can know if it will work without having to compile everything
03:57 dataf3l joined #perl6
04:00 dataf3l joined #perl6
04:00 pierrot joined #perl6
04:03 dataf3l joined #perl6
04:06 dataf3l joined #perl6
04:09 dataf3l joined #perl6
04:12 dataf3l joined #perl6
04:17 dataf3l joined #perl6
04:19 samcv just gonna keep adding prints places and keep trying until I find where it is mangling things
04:20 dataf3l joined #perl6
04:21 pierrot joined #perl6
04:25 dataf3l joined #perl6
04:29 dataf3l joined #perl6
04:29 pierre_ joined #perl6
04:32 geekosaur joined #perl6
04:36 dataf3l joined #perl6
04:39 dataf3l joined #perl6
04:42 dataf3l joined #perl6
04:45 dataf3l joined #perl6
04:48 dataf3l joined #perl6
04:51 dataf3l joined #perl6
04:54 dataf3l joined #perl6
04:55 xtreak joined #perl6
04:57 skids joined #perl6
05:01 dataf3l joined #perl6
05:04 dataf3l joined #perl6
05:07 dataf3l joined #perl6
05:10 dataf3l joined #perl6
05:10 pyrimidine joined #perl6
05:13 dataf3l joined #perl6
05:14 samcv argh. this is terrible. so many variables names the same
05:14 samcv @lines; and %lines in the same block
05:14 samcv :\
05:15 Cabanossi joined #perl6
05:18 AlexDaniel m: say slurp
05:18 camelia rakudo-moar a7bf1e: OUTPUT«»Wann treffen wir drei wieder zusamm?«␤   »Um die siebente Stund‘, am Brückendamm.«␤     »Am Mittelpfeiler.«␤         »Ich lösche die Flamm.«␤ »Ich mit«␤␤         »Ich komme vom Norden her.«␤        »Und ich vom Süden.«␤ …»
05:18 dataf3l joined #perl6
05:21 StefanSC joined #perl6
05:21 dataf3l joined #perl6
05:23 tojo joined #perl6
05:24 dataf3l joined #perl6
05:27 dataf3l joined #perl6
05:29 jabowery joined #perl6
05:29 jabowery p6: say 3;
05:29 camelia rakudo-moar a7bf1e: OUTPUT«3␤»
05:31 jabowery Is there a perl6 regex or grammar for regexes, available in a module?
05:33 dataf3l joined #perl6
05:34 StefanSC joined #perl6
05:35 dataf3l joined #perl6
05:36 NotCamelia joined #perl6
05:36 NotCamelia Good job, AlexDaniel
05:36 7IZAAW8DU joined #perl6
05:36 7IZAAW8DU Good job, AlexDaniel
05:36 21WAAF8J4 joined #perl6
05:36 21WAAF8J4 Good job, AlexDaniel
05:37 AlexDaniel /o\
05:40 Camelia_ joined #perl6
05:40 Camelia_ Hi, blub
05:40 notviki Good job, AlexDaniel
05:40 notviki ...blub?
05:41 dataf3l joined #perl6
05:41 notviki "noun. a swelling of fresh plasterwork"
05:44 dataf3l joined #perl6
05:47 dataf3l joined #perl6
05:50 dataf3l joined #perl6
05:53 dataf3l joined #perl6
05:56 dataf3l joined #perl6
05:59 dataf3l joined #perl6
06:01 dataf3l joined #perl6
06:05 dataf3l joined #perl6
06:08 dataf3l joined #perl6
06:11 dataf3l joined #perl6
06:14 dataf3l joined #perl6
06:19 dataf3l joined #perl6
06:22 samcv u: { .uniprop('Line_break') eq 'SP' }
06:22 unicodable6 samcv, Found nothing!
06:22 samcv u: { .uniprop('Line_Break') eq 'SP' }
06:22 unicodable6 samcv, U+0020 SPACE [Zs] ( )
06:23 samcv ok
06:23 samcv the linebreak property is colliding with the 'Space' property
06:23 samcv because it has SP aliased to Space which then lowercases to space
06:23 samcv and i hate everything :)
06:24 samcv u: { .unimatch('Space') }
06:24 unicodable6 samcv, U+0020 SPACE [Zs] ( )
06:25 cyphase joined #perl6
06:28 dataf3l joined #perl6
06:30 samcv u: { .uniprop('Greek') }
06:30 unicodable6 samcv, U+0000 NULL [Cc] (control character)
06:30 unicodable6 samcv, U+0001 START OF HEADING [Cc] (control character)
06:30 unicodable6 samcv, U+0002 START OF TEXT [Cc] (control character)
06:30 pierre_ joined #perl6
06:30 samcv uhm
06:31 samcv m: 0.uniprop('Greek').say
06:31 camelia rakudo-moar a7bf1e: OUTPUT«Common␤»
06:31 samcv uh
06:31 samcv u: { .uniprop-bool('Greek') }
06:32 samcv maybe it will be easier just to rename that Moar function for now and work around it…
06:33 dataf3l joined #perl6
06:35 unicodable6 samcv, U+0000 NULL [Cc] (control character)
06:35 unicodable6 samcv, U+0001 START OF HEADING [Cc] (control character)
06:35 unicodable6 samcv, U+0002 START OF TEXT [Cc] (control character)
06:35 notviki ummm
06:35 notviki No idea why this email was sent to *me*... Something about GTK-Simple: https://gist.github.com/zoffixznet​/4a0d3b17c3b6e1d356370c93080acd3f
06:36 bjz joined #perl6
06:36 samcv :\
06:39 dataf3l joined #perl6
06:41 samcv m: ' '.unimatch('space').say
06:41 camelia rakudo-moar a7bf1e: OUTPUT«True␤»
06:41 samcv m: ' '.unimatch('White_Space').say
06:41 camelia rakudo-moar a7bf1e: OUTPUT«True␤»
06:42 dataf3l joined #perl6
06:44 lustlife joined #perl6
06:46 dataf3l joined #perl6
06:48 bjz joined #perl6
06:49 dataf3l joined #perl6
06:52 dataf3l joined #perl6
06:54 darutoko joined #perl6
06:56 dataf3l joined #perl6
06:59 dugword joined #perl6
06:59 dataf3l joined #perl6
07:00 dugword joined #perl6
07:05 dataf3l joined #perl6
07:06 samcv i was right. it is colliding with linebreak
07:07 samcv maybe jnthn will know why ' ' ~~ /<:space>/ doesn't work when it's fixed :\
07:07 samcv i would think it would just read the property but
07:08 samcv well the only difference is Line_Break is an enum not a bool property in moarvm
07:08 dataf3l joined #perl6
07:09 samcv notviki, if i just change the line that is in propertyVALUE aliases.txt from Space to like 'pace'
07:09 samcv it also breaks it
07:09 samcv ' ' ~~ /<:space>/ that is
07:10 pierre_ joined #perl6
07:11 Tonik joined #perl6
07:11 CIAvash joined #perl6
07:21 dugword m: say 2
07:21 camelia rakudo-moar a7bf1e: OUTPUT«2␤»
07:46 tojo joined #perl6
07:46 wamba joined #perl6
08:00 domidumont joined #perl6
08:04 labster joined #perl6
08:05 domidumont joined #perl6
08:34 RabidGravy joined #perl6
08:45 astj joined #perl6
08:52 moritz \o
08:52 yoleaux 02:22Z <AlexDaniel> moritz: Hey! I cannot parse json clog from 2016-01-10 using JSON::Tiny… Since both seem to be maintained by, perhaps you can take a look? It is associated with combining characters I think
08:52 yoleaux 02:22Z <AlexDaniel> moritz: here's the json file: https://gist.githubusercontent.com/AlexDaniel/d​16a0d9043fe4378eab40d09f6f089ed/raw/8ad0b3b157a​d605b502fc154ae64ba8b1ccf7b98/2016-01-10.json
08:52 samcv this is going to be fun moritz
08:52 samcv i am guessing it has degenerates in it
08:52 samcv so you may want to process it as a str instead of Str
08:52 samcv if possible
08:53 samcv *degenerates* = graphemes which don't make sense in real life, like a combining character and some other character that it doesn't go with
08:54 moritz str has the same NFG semantics as Str
08:54 moritz so I'd have to process it as Uni
08:54 samcv oh
08:54 moritz which I *really* don't fancy
08:54 samcv me either :<
08:56 samcv moritz, can you move converting from \u to the actual codepoint as late as possible?
08:57 samcv oh it looks like it just doesn't have \u stuff it has just some weird characters in it
08:58 moritz I've golfed it, and will open an issue with that
08:58 moritz no time to debug it today
08:58 samcv kk
08:58 samcv is it a problem with perl 6 or with the module?
08:58 moritz no idea yet
08:59 samcv i'm curious, let me know what you find
08:59 moritz since perl 6 is better tested than the module, I assume it's the module's fault for now
08:59 samcv weird things happen with degenerates though
09:04 moritz .tell AlexDaniel I've opened https://github.com/moritz/json/issues/25 for you
09:04 yoleaux moritz: I'll pass your message to AlexDaniel.
09:04 rurban joined #perl6
09:05 rurban left #perl6
09:17 pierre_ hi!
09:17 pierre_ does anyone have any issue with zef
09:17 pierre_ ?
09:18 pierre_ i built rakudo using rakudobrew this morning, and the rakudobrew build zef is failing
09:19 ced_ joined #perl6
09:24 pierre_ https://gist.github.com/pierre-vigi​er/4b340a0987d67e182d01bdd23cccc225
09:31 stonebricks joined #perl6
09:34 stonebricks left #perl6
09:43 g__k__ joined #perl6
09:54 astj hi pierre_, what is your rakudo/moarvm version? (output of `perl6 --version`). Just now I tried `rakudobrew build moar; rakudobrew build zef` and succeeded to install.
09:55 rindolf joined #perl6
09:57 pierre_ This is Rakudo version 2016.12-107-ga7bf1ea built on MoarVM version 2016.12-6-g65acd55
09:57 pierre_ i'm on mac os x
09:57 pierre_ 10.12.1
09:58 astj Hmm, Mine is `This is Rakudo version 2016.12-108-g005166eed built on MoarVM version 2016.12-6-g65acd555` and on osx 10.12.2.
09:59 astj diff. https://github.com/rakudo/rakudo/compare/a7bf1e​ab61b557ff2ee974dd4fd2a1b03ccba4c0...005166eed
09:59 RabidGravy I think it may have been bitten by the "lexical use" thing, the symbol BEFORE isn't defined (and in that particular syntactic context you get the goobling block message)
10:00 RabidGravy so likely the fix is to "use" the module that defines BEFORE in the file that gives the error
10:02 xtreak joined #perl6
10:05 rurban joined #perl6
10:06 bjz_ joined #perl6
10:06 rurban left #perl6
10:08 astj Hmm, weird. Zef.pm6 exports `BEFORE` and Zef::CLI actually includes `use Zef`.  And I downgrade my rakudo to a7bf1ea but I couldn't reproduce the problem.
10:23 Wanderer68 joined #perl6
10:27 stmuk_ 33c3 streams up
10:28 stmuk_ hopefully no p5 hate this year :/
10:29 dalek doc: e56a06a | (Douglas Jenkins)++ | doc/Language/traps.pod6:
10:29 dalek doc: Fixed typo in "Traps". Changed variable name "$arg" to "$list" so that it matches the declaration above it.
10:29 dalek doc: review: https://github.com/perl6/doc/commit/e56a06a050
10:29 dalek doc: de3ff66 | RabidGravy++ | doc/Language/traps.pod6:
10:29 dalek doc: Merge pull request #1083 from dugword/bugfix/typo-in-traps
10:29 synopsebot6 Link: http://doc.perl6.org/language/traps
10:29 synopsebot6 Link: http://doc.perl6.org/language/traps
10:29 dalek doc:
10:29 dalek doc: Fixed typo in "Traps". Changed variable name.
10:29 dalek doc: review: https://github.com/perl6/doc/commit/de3ff66bef
10:31 RabidGravy that's a bit noisy
10:33 lukaramu joined #perl6
10:34 astj joined #perl6
10:40 astj joined #perl6
10:53 pierre_ joined #perl6
10:53 susmus joined #perl6
10:55 pierre_ joined #perl6
10:57 pierre_ joined #perl6
11:00 rafaschp joined #perl6
11:24 rburkholder joined #perl6
11:40 rurban joined #perl6
11:45 rpburkholder joined #perl6
11:46 cyphase joined #perl6
11:47 wamba joined #perl6
11:48 rurban joined #perl6
11:49 Woodi joined #perl6
12:02 kalkin- joined #perl6
12:02 kalkin- hi
12:04 kalkin- is there a reason why the return type of a sub can be declared in 4 different ways?
12:05 lizmat hysterical raisins ?
12:08 lizmat .oO( the return type of a sub can be declared in 4 different ways, is there a reason for that? )
12:11 rightfold m: say($_ + 1 with 5)
12:11 camelia rakudo-moar 340bc9: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in argument list; couldn't find final ')' ␤at <tmp>:1␤------> 3say($_ + 1 with 7⏏5)␤»
12:12 rightfold m: say(do with 5 { $_ + 1 })
12:12 camelia rakudo-moar 340bc9: OUTPUT«6␤»
12:12 rightfold m: say(do with Int { $_ + 1 })
12:12 camelia rakudo-moar 340bc9: OUTPUT«()␤»
12:12 rightfold coolio
12:13 wamba joined #perl6
12:14 iH2O joined #perl6
12:15 pyrimidine joined #perl6
12:15 jnthn kalkin-: The my TypeName ... form just falls out of how scoped declarations are parsed. The --> form in a signature is distinct in that it lets you specify values, not just types. And `returns` is a more communicative synonym for `of`.
12:16 jnthn (And the `of` form is because a sub that returns something of a certain type works via the same mechanism as typed arrays etc. work)
12:16 lizmat m: sub a(--> 42) { say "foo" }; say a
12:16 camelia rakudo-moar 340bc9: OUTPUT«foo␤42␤»
12:16 kalkin- jnthn thanks for the explanation.
12:17 jnthn It's possible there's one too many. :-) Personally I only used `returns` and `-->` :)
12:17 iH2O left #perl6
12:19 tojo joined #perl6
12:19 cyphase joined #perl6
12:21 kalkin- sub f(--> 42) {say <f>}; sub a(--> f) { sah "ASD" }; sah a
12:28 El_Che "Perl 6 has many ways to specify a function's return type" :)
12:29 El_Che from the doc
12:29 El_Che I like the "returns" one
12:30 El_Che maybe the subtilities could be documented here: https://docs.perl6.org/language/functions ?
12:30 rightfold > Attempting to return values of another type will cause a compilation error.
12:30 rightfold s/will/may/
12:31 rburkholder joined #perl6
12:31 El_Che I love compile time errors :)
12:31 espadrine joined #perl6
12:32 Ven joined #perl6
12:34 tojo joined #perl6
12:35 bjz joined #perl6
12:36 El_Che jnthn: what do you mean by "--> can return values" (instead of types)? predefined constant-like values? What the use-case?
12:37 jnthn --> Nil is the most common one
12:40 rurban joined #perl6
12:41 El_Che camelia: sub foo returns Nil { Nil }; foo()
12:42 El_Che p6: sub foo returns Nil { Nil }; foo()
12:42 camelia rakudo-moar 4724bd: ( no output )
12:47 kurahaupo joined #perl6
12:48 RabidGravy "♫ refactoring we will go ... ♫"
12:51 AlexDaniel kalkin-: IIRC, TimToady wants to kill returns and of
12:51 yoleaux 09:04Z <moritz> AlexDaniel: I've opened https://github.com/moritz/json/issues/25 for you
12:51 AlexDaniel moritz: thanks
12:52 kalkin- AlexDaniel i think this will simolify things, but i got used to using returns
12:53 kalkin- but having --> inside () isnt as declarative as using returns
12:53 AlexDaniel why not? That's your signature
12:54 telex joined #perl6
12:57 tbrowder .tell JJMerelo i'm happy to use
12:57 yoleaux tbrowder: I'll pass your message to JJMerelo.
12:57 rafaschp_ joined #perl6
13:00 RabidGravy returns is just a Code trait you can make it go away in your own code any time you want
13:00 tbrowder .tell JJMerelo i'm happy to make my fork more usable, but i am NOT a lisp-literate person, either; would be great to hear more from henrik about his plans
13:00 yoleaux tbrowder: I'll pass your message to JJMerelo.
13:02 RabidGravy however I actually prefer it most cases to --> as in my mind it's not enough part of the signature to give it pride of place
13:07 stonebricks joined #perl6
13:09 stonebricks left #perl6
13:09 El_Che I don't think a lot of people use "of" (it looks out of place inmo). I like how returns stand out and is exactly where I expect it (from other languages mostly).
13:10 RabidGravy I don't think I have *ever* used  "of"
13:11 RabidGravy but yes I like the way it stands out
13:12 El_Che I meant returns stand out
13:12 El_Che but it also the case for of :)
13:12 El_Che let's hope the language cleanup doesn't results in a python 2 - 3 thing :)
13:13 cyphase joined #perl6
13:16 espadrine joined #perl6
13:19 AlexDaniel well, we've already switched to --> in the documentation
13:19 AlexDaniel perhaps we should start saying that “of” and “returns” is not recommended
13:22 El_Che I dislike "-->" (<-- ugly ascii art), but i'd prefer ugly consistency wih <-- instead of too many alternatives, indeed
13:23 AlexDaniel ⇒ would be better, I guess :)
13:24 El_Che AlexDaniel: hehe :)
13:24 AlexDaniel ah no… => is ⇒
13:25 AlexDaniel ⇢ perhaps
13:26 El_Che (on I similar note, I dislike the "<-" golang channel systax for the same reason)
13:27 dataf3l joined #perl6
13:33 rurban joined #perl6
13:34 rurban1 joined #perl6
13:39 RabidGravy Why would you say that "returns" is not recommended?
13:40 RabidGravy El_Che, I meant "returns" stands out, not "of", sorry if I was being unclear
13:40 El_Che RabidGravy: I am a returns fan :)
13:40 El_Che (aka: that's what I use)
13:42 El_Che it feels in place with the declarative OO keyswords (has) and traits
13:42 RabidGravy yes
13:42 El_Che making Perl6 very "readable" in my view
13:47 El_Che It may be an huge exageration, but "-->" remind me of Perl 5's magic variables
13:47 El_Che (handy, not very styleful)
13:47 AlexDaniel ok clog is down
13:48 * geekosaur admits to not being very fond of either returns/of or -->, but the latter at least stands out as indicating something different from the rest of the signature
13:49 rightfold the only thing I don't like about --> is that it's inside the parentheses
13:49 rightfold but *
13:49 AlexDaniel RabidGravy: is this reason good enough for you? ;) http://colabti.org/irclogger/irclog​ger_log/perl6?date=2016-12-03#l1138
13:49 geekosaur whereas of/returns just looks like another trait and I have to parse it more fully to recognize it's telling me the result type
13:50 Rawriful joined #perl6
13:50 geekosaur rightfold, that too, but it *is* part of the signature so I'm willing to accept that
13:50 RabidGravy AlexDaniel, not really, I disagree
13:50 * rightfold leaves the bikeshed and gets back to work
13:50 wamba joined #perl6
13:54 Axord joined #perl6
13:54 azertus_ joined #perl6
13:55 MasterDukeLaptop joined #perl6
13:56 timotimo i'm wearing camelia in front of my chest now
13:57 timotimo it could very well be a conversation starter
13:57 timotimo also, i'm allowed to say "my eyes are up here" now %)
13:59 geekosaur aaaand I have just realized why the --> inside the parens seems wrongish while still making sense.
13:59 geekosaur I'm thinking in Haskell.
14:00 timotimo %)
14:00 geekosaur the key is: in Haskell, the return type is indeed part of the signature, including that things can be polymorphic in their return type
14:01 rightfold is ff a special operator?
14:01 rightfold as in special-cased by the compiler?
14:01 geekosaur (which most languages can't do; they can only pick a type instance based on parameters)
14:01 rightfold I think so: https://github.com/rakudo/rakudo/blo​b/b01dfcda901396345b1529d6c4dc2222d4​c08f86/src/Perl6/Actions.nqp#L6799 but I am not sure
14:02 geekosaur thing is, perl 6 is one of those "most languages" --- I cannot, to my understanding, choose a multi based solely on the return type. so, to that extent, having the --> be inside the parens is telling a lie
14:02 AlexDaniel .oO( what about allowing --> outside the parens… /o\ )
14:02 geekosaur that is actually what I am considering
14:02 samcv i will be sad. but i did fix this bug
14:02 samcv m: say "\0".uniname
14:02 camelia rakudo-moar 4724bd: OUTPUT«NULL␤»
14:02 samcv soon it will say <control-0000>
14:03 AlexDaniel eval: say "\0".uniname
14:03 samcv well. just bumped the rakudo/nqp for my change to moar
14:03 AlexDaniel evalable6: help
14:03 evalable6 AlexDaniel, Like this: evalable6: say ‘hello’; say ‘world’
14:03 AlexDaniel evalable6: say "\0".uniname
14:04 AlexDaniel I broke something!
14:04 samcv sure did
14:04 AlexDaniel committable6: HEAD say 42
14:04 samcv u: U+000
14:04 samcv broke everything
14:04 samcv been broken for a bit
14:05 Poxybowsy joined #perl6
14:05 AlexDaniel ya I know, it's my fault… I've been doing something scary here :)
14:05 samcv haha
14:06 AlexDaniel committable6: HEAD say 42
14:06 committable6 AlexDaniel, ¦«HEAD»: 42
14:07 AlexDaniel \o/
14:07 AlexDaniel I would love to know how this happened though…
14:07 AlexDaniel eval: say "\0".uniname
14:07 evalable6 AlexDaniel, rakudo-moar a7bf1ea: OUTPUT«NULL»
14:07 AlexDaniel u: U+000
14:08 AlexDaniel ah right
14:08 unicodable6 joined #perl6
14:08 AlexDaniel u: U+000
14:08 unicodable6 AlexDaniel, U+0000 NULL [Cc] (control character)
14:08 samcv did you rebuild moar?
14:08 samcv or whatever nqp and rakudo now all depend
14:09 samcv idk how you build it prolly automatically
14:09 samcv also pleasssee make it so i can bisect more things
14:10 AlexDaniel samcv: by more things you mean what?
14:10 geekosaur rightfold, I'm not sure what you mean by special cased? both parameters are thunked, certainly
14:10 samcv more commits
14:10 AlexDaniel you want to bisect moar and nqp?
14:10 samcv no
14:10 AlexDaniel samcv: 2015.07 is not enough? :O
14:11 samcv but what if they are the same a year ago and today
14:11 samcv i want a bisectable that can like
14:11 samcv do like more even if like it sees them both the same
14:11 samcv bisect some more times between them anyway
14:11 AlexDaniel well, you can always try with old=2015.07
14:12 AlexDaniel the reason why we didn't go any further is that anything pre-glr is not relevant anymore
14:12 samcv bisectable6, old=2015.07 say "test"
14:12 bisectable6 samcv, On both starting points (old=2015.07 new=a7bf1ea) the exit code is 0 and the output is identical as well
14:12 bisectable6 samcv, Output on both points: test
14:12 geekosaur rightfold, also I see it in %specials https://github.com/rakudo/rakudo/blo​b/b01dfcda901396345b1529d6c4dc2222d4​c08f86/src/Perl6/Actions.nqp#L6221 so I guess "yes"?
14:12 samcv bisectable6, old=2014.07 say "test"
14:12 bisectable6 samcv, On both starting points (old=2014.07 new=a7bf1ea) the exit code is 0 and the output is identical as well
14:12 bisectable6 samcv, Output on both points: test
14:12 samcv i can go earlier? yayyy!
14:12 samcv it is relevant to me AlexDaniel
14:12 AlexDaniel so if it worked in 2015.05 nobody really cares, because after GLR the behavior probably changed anyway (so bisecting like this will not give any meaningful result)
14:13 samcv i care :(
14:13 samcv not for most things but for this
14:13 AlexDaniel samcv: the thing with 2014.07 is that it has a build for every tag, but not for every commit that old
14:13 * geekosaur is also finding all the nqp::mumble annoying enough to contemplate NQP quasiquoters >.>
14:13 samcv that's ok
14:13 AlexDaniel committable6: 2014.07 say ‘hello’
14:13 committable6 AlexDaniel, https://gist.github.com/1bd7​b740a352891371f9da1bbb91bde5
14:13 AlexDaniel committable6: 2014.07 say 'hello'
14:13 committable6 AlexDaniel, ¦«2014.07»: hello
14:13 samcv m: say Rakudo::Internals.PROPCODE('space'); say Rakudo::Internals.PROPCODE('White_Space'),
14:13 camelia rakudo-moar 9594a3: OUTPUT«23␤92␤»
14:13 AlexDaniel committable6: 2014.07^ say 'hello'
14:13 committable6 AlexDaniel, ¦«2014.07^»: No build for this commit
14:14 samcv bisect: old=2014.07 say Rakudo::Internals.PROPCODE('space'); say Rakudo::Internals.PROPCODE('White_Space'),
14:14 bisectable6 samcv, Bisecting by exit code (old=2014.07 new=a7bf1ea). Old exit code: 1
14:14 rightfold geekosaur: not a regular infix: sub
14:14 bisectable6 samcv, bisect log: https://gist.github.com/d5b4​cf10ce51a37b48a9cff1671abcc2
14:14 bisectable6 samcv, (2015-11-10) https://github.com/rakudo/rakudo/commit/​d2b49411f38d2923d7d292f5d19fb3c1b8c8fd87
14:14 AlexDaniel samcv: not sure what's ok about this, because bisectable will say that one of the 500 commits could be the reason :)
14:14 samcv well.
14:14 samcv mostly caring about any updates to unicode database in mooar
14:15 AlexDaniel then why not commit: all … ?
14:15 AlexDaniel commit: all say Rakudo::Internals.PROPCODE('space'); say Rakudo::Internals.PROPCODE('White_Space'),
14:15 samcv uh
14:15 samcv does that even woerk
14:15 samcv it didn't before :(
14:15 committable6 AlexDaniel, https://gist.github.com/f32e​2ff8873c22b1476dc21353db7c2b
14:16 AlexDaniel it runs it on all tags, which is what you might want to get the general picture
14:16 RabidGravy geekosaur, yes the point about the return type of a routine not being used for the purposes of multiple dispatch is one reason why I prefer "returns"
14:16 El_Che rightfold: consistency is not really bikeshedding. (It's not about choice: in mose cases it's the same thing with a different syntax)
14:16 itcharlie_linux left #perl6
14:17 samcv bisectable6, all say nqp::unipropcode('space'); say nqp::unipropcode('White_Space')
14:17 cyphase joined #perl6
14:17 bisectable6 samcv, On both starting points (old=2015.12 new=a7bf1ea) the exit code is 1 and the output is identical as well
14:17 bisectable6 samcv, https://gist.github.com/a930​a7cf7badb2571290b1c9fe81928f
14:17 samcv bisectable6, all use nqp; say nqp::unipropcode('space'); say nqp::unipropcode('White_Space')
14:17 bisectable6 samcv, On both starting points (old=2015.12 new=a7bf1ea) the exit code is 1 and the output is identical as well
14:17 bisectable6 samcv, https://gist.github.com/0328​a10d673adf0fb100e8f63c5f4072
14:17 El_Che doing a walk with the kids. Laters
14:17 samcv what
14:17 samcv i did use nqp
14:17 samcv bisectable6, use nqp; say nqp::unipropcode('space'); say nqp::unipropcode('White_Space')
14:17 bisectable6 samcv, Bisecting by output (old=2015.12 new=a7bf1ea) because on both starting points the exit code is 0
14:17 samcv see
14:17 samcv all is bad
14:17 bisectable6 samcv, bisect log: https://gist.github.com/e5de​c60bf0646c233ceb4a1ebf522d49
14:17 bisectable6 samcv, (2016-09-28) https://github.com/rakudo/rakudo/commit/​2cad3d214f6f151df537a535760e341838332c21
14:17 samcv breaky breaky
14:18 samcv bisectable6, old=2015.02 use nqp; say nqp::unipropcode('space') == nqp::unipropcode('White_Space')
14:18 bisectable6 samcv, On both starting points (old=2015.02 new=a7bf1ea) the exit code is 0 and the output is identical as well
14:18 bisectable6 samcv, Output on both points: False
14:18 samcv yeah i thought the bug has been in for like
14:18 samcv since 2012
14:19 samcv bisectable6, old=2012.02 use nqp; say nqp::unipropcode('space') == nqp::unipropcode('White_Space')
14:19 bisectable6 samcv, No build for revision “2012.02”
14:19 samcv bisectable6, old=2013.02 use nqp; say nqp::unipropcode('space') == nqp::unipropcode('White_Space')
14:19 bisectable6 samcv, No build for revision “2013.02”
14:19 samcv bisectable6, old=2014.02 use nqp; say nqp::unipropcode('space') == nqp::unipropcode('White_Space')
14:19 bisectable6 samcv, Bisecting by exit code (old=2014.02 new=a7bf1ea). Old exit code: 1
14:19 AlexDaniel no-no all is only for committable
14:19 samcv oh
14:20 samcv committable6, all use nqp; say nqp::unipropcode('space') == nqp::unipropcode('White_Space')
14:20 committable6 samcv, https://gist.github.com/0e4e​e25f37bab4b06eb3512eb182731c
14:20 samcv thank you committable6
14:20 AlexDaniel it will take some time for bisectable to get back with the result, but you'll probably see the issue :)
14:20 samcv m: "\0".uniname.say
14:20 camelia rakudo-moar 9594a3: OUTPUT«<control-0000>␤»
14:20 samcv :(((((
14:20 samcv i will miss the incorrect functionality before
14:20 samcv :P
14:21 samcv m: "\x[05]".uniname.say
14:21 camelia rakudo-moar 9594a3: OUTPUT«<control-0005>␤»
14:21 pyrimidine joined #perl6
14:21 samcv unicode 1 names are coming soon tho AlexDaniel
14:21 samcv don't worry
14:22 samcv i am on it
14:22 bisectable6 samcv, bisect log: https://gist.github.com/0fac​2132bafffa47c2e1919e7122147e
14:22 bisectable6 samcv, ‘bisect run’ failure
14:22 AlexDaniel samcv: and by the way, 2014.01 is the first rakudo on moar release
14:22 samcv oh k
14:22 samcv well.
14:22 samcv 2012 is a long time ago
14:23 lizmat samcv: after a pull and a rebuild, S02-literals/char-by-name.t doesn't compile anymore
14:23 lizmat Unrecognized character name LINE FEED (LF)
14:23 lizmat line 16
14:23 samcv yep
14:24 samcv that is expected
14:24 samcv the test must be changed
14:24 samcv because it only has a name in unicode 1.0
14:24 AlexDaniel .u U+05
14:24 yoleaux U+002B PLUS SIGN [Sm] (+)
14:24 yoleaux U+0030 DIGIT ZERO [Nd] (0)
14:24 yoleaux U+0035 DIGIT FIVE [Nd] (5)
14:24 AlexDaniel .u U+0005
14:24 samcv it is sad, i know
14:24 yoleaux U+0005 ENQUIRY [Cc] (␅)
14:24 samcv :(
14:25 lizmat do we have an RT for this ?
14:26 samcv for what?
14:26 samcv the two bugs i fixed?
14:26 rurban joined #perl6
14:26 samcv or uh. that not compiling?
14:26 lizmat m: say "\c[LINE FEED (LF)]"
14:26 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unrecognized character name LINE FEED (LF)␤at <tmp>:1␤------> 3say "\c[LINE FEED (LF)7⏏5]"␤»
14:26 samcv or should \c fall back to unicode 1 names?
14:27 samcv or is that not specified
14:27 samcv because that character has no name
14:27 lizmat well, if someone had code using this, this update would have broken that person's code
14:27 AlexDaniel samcv: is there any explanation for all this stuff somewhere?
14:27 lizmat and that feels like a bad thing to me
14:27 AlexDaniel samcv: because I'm slightly confused. Were some characters renamed in one of the unicode versions?
14:27 samcv the names were removed like
14:27 samcv 10 years ago
14:28 samcv maybe more
14:28 lizmat that may be true, but code that worked yesterday, is now broken
14:28 samcv S02 doesn't specify falling back to unicode 1 names
14:28 samcv that is true
14:28 lizmat 6 test files that won't compile anymore
14:29 lizmat and 1 test file with 2 TODO tests passing
14:29 samcv should the spec be changed to specify that we fallback to unicode 1 names if it can't find one for unicode current?
14:29 samcv and revert it until proper unicode 1 name support?
14:29 samcv that is fine with me if that is what we want to do
14:30 lizmat well, first I think you need to get some sleep  :-)
14:30 timotimo now she's on my back
14:30 lizmat .oO( good thing Camelia is not a monkey )
14:30 [ptc] lizmat++ : p6weekly
14:30 MasterDukeLaptop joined #perl6
14:31 cyphase joined #perl6
14:33 lizmat fwiw, feels to me falling back to unicode 1 names if cannot be found in current, is a good temporary solution
14:34 lizmat afk again&
14:37 espadrine joined #perl6
14:41 samcv though it looks like those Line feed tests were already skipped
14:42 samcv but for a different reason i guess
14:43 samcv TimToady, what do you say? should "\c[LINE FEED]" fallback to unicode 1 name?
14:44 samcv and why should "\c[LF]" work. when the unicode 1 name is LINE FEED (LF)
14:46 pmurias joined #perl6
14:47 pmurias is something wrong with the irc log?
14:47 MasterDukeLaptop pmurias: noticed that too
14:48 cyphase joined #perl6
14:55 samcv Unicode previously included 128 characters, now deprecated, for language tags. These characters essentially mirrored the 128 ASCII characters but were used to identify the subsequent text as belonging to a particular language according to BCP 47. For example, to indicate subsequent text as the variant of English as written in the United States, the initiating ‘Language Tag character’ (U+E0001) followed by the sequence ‘Tag Small Lett
14:55 samcv er e’ (U+E0065), ‘Tag Small Letter n’ (U+E006E), ‘Tag Hyphen-minus’ (U+E002D), ‘Tag Small Letter u’ (U+E0075) and ‘Tag Small Letter s’ (U+E0073) would have be used.
14:55 samcv These language tag characters would not be displayed themselves. However, they would provide information for text processing or even for the display of other characters. For example the display of Unihan ideographs might have substituted different glyphs if the language tags indicated Korean than if the tags indicated Japanese.
14:55 samcv wow. hahah
14:55 AlexDaniel pmurias: yes. I guess you can use this for now: http://colabti.org/irclogger/irc​logger_log/perl6?date=2016-12-27
14:57 AlexDaniel samcv: wow, well. I wonder if they considered including for loops in unicode or something…
14:58 samcv well luckily they scrapped the idea and just added more symbols
14:58 samcv it doesn't sound like it was ever used in practice much
15:01 cyphase joined #perl6
15:03 stmuk joined #perl6
15:06 mr_ron joined #perl6
15:07 dataf3l joined #perl6
15:16 khw joined #perl6
15:16 dataf3l Hi guys!
15:19 [ptc] o/
15:22 dataf3l what is the best way to get Hash to behave like Python’s OrderedDict or PHP’s array () ? (hash keys returned as inserted?)
15:27 effbiai joined #perl6
15:29 nicq20 joined #perl6
15:31 dataf3l Guys?
15:32 mr-foobar joined #perl6
15:32 dataf3l oh well, I guess you are all busy with vacations and stuff
15:32 samcv how do those behave?
15:32 dataf3l when I add into them, the order of insertion is preserved somewhere
15:32 dataf3l so when I get data from them, the same order is guaranteed
15:33 dataf3l in Hash, no order is guaranteed
15:33 dataf3l but I don’t want to pass a Hash AND a list of ordered fields arround all the time
15:33 dataf3l I just want to pass, like, a SortedHash
15:34 dataf3l or maybe a OrderedHash?
15:34 samcv oh
15:35 JimmyZ how about Set in array?
15:35 samcv what are you using the hash for?
15:35 samcv what about an array which contains hashes
15:36 samcv or do you need to be able to access the first level keys
15:38 AlexDaniel huggable: xy problem
15:38 huggable AlexDaniel, You want to do X, but don't know how. You think you can solve it using Y, but don't know how to do that, either. So, you ask about Y in order to solve X, which doesn't make sense. You should ask about X.
15:40 mspo baghash might do it?
15:40 AlexDaniel don't think so
15:42 dataf3l ok, I’ll try to explain the problem so the xy problem situation goes away
15:43 dataf3l I’d like to have Datastructure, let’s call it X,
15:43 dataf3l I should be able to:
15:43 dataf3l get and set elements on X, in an associative manner i.e. $a = X.new  ; $a<element> = value, $a{$element} = value
15:44 dataf3l also, I’d like to iterate on said element, in order to get the stuff I put in.
15:44 dataf3l for $a -> $pair {say $pair.key, $pair.value}
15:44 AlexDaniel so far sounds like a Hash
15:44 dataf3l also, i’d like to get the elements out of the for, in the same order i put them in
15:45 regnarg joined #perl6
15:45 dataf3l I agree, it is almos 99% like Hash, except, I need the order, since my users see the list of fields on a table on a crud on the web, and the Array  of Hash es i’m using is right now kinda not in order, which is annoying
15:45 dataf3l so, Ideally, this datastructure could be used in place of hash
15:45 AlexDaniel sorting the elements by keys or values is not an option, right?
15:46 dataf3l I don’t feel that’s the right way to do it, since the field’s original order, preserves the original semantics of the table
15:46 dataf3l and the table in the database has a pretty specific order, which is the same as the phisical form order
15:47 dataf3l so I’d like my order to be preserved, but I don’t think it’s a good idea to pass arround 2 things, the array with the order AND the values in a hash
15:47 dataf3l if perl6 doesn’t have said thing, I’ll just implement it and call it sortedhash
15:48 AlexDaniel dataf3l: what about https://github.com/zostay/perl6-ArrayHash ?
15:49 cyphase joined #perl6
15:50 AlexDaniel I wonder if it's something we should provide
15:51 dataf3l don’t wonder, people like their stuff sorted!
15:51 dataf3l that’s for sure
15:51 dataf3l 100%
15:51 dataf3l at least consider it in order to appeal to the wider PHP programmer demographic
15:52 dataf3l which is kinda used to PHParrays (which behave like hashes, but preserve insertion order)
15:52 dataf3l I think ArrayHash looks like what I need.
15:52 dataf3l I’ll try it out, thank you AlexDaniel for your kind help
15:54 AlexDaniel one thing is sorted, another thing is insertion order. I've used OrderedHash (or whatever it was called) in python once in my life, though I don't remember why. The question is whether it is common enough to justify the inclusion
15:54 AlexDaniel after all, we have Bags and Mixes and stuff
15:55 AlexDaniel so why not OrderedHash 🤷
15:55 AlexDaniel I'd say let's wait till ArrayHash API stabilizes, then we'll talk :)
15:59 newbie1 joined #perl6
15:59 mspo undocumented ArrayHash?
16:01 AlexDaniel mspo: ?
16:02 mspo AlexDaniel: oh I missed the link
16:03 mspo I was thinking an array of Pairs would be a good thing to try too
16:05 pierre_ joined #perl6
16:06 tbrowder AlexDaniel: ref returns, see docs <https://docs.perl6.org/type/Sign​ature#Constraining_Return_Types> where we recommend the --> form and why; perhaps that needs more emphasis and also put it in the functions description
16:09 AlexDaniel Yea, I remember. https://github.com/perl6/doc/issues/1024 was the issue
16:10 AlexDaniel it already warns that “returns” may be removed in the future, so I guess there's no problem
16:11 CIAvash "the returns form is planned for future removal" the decision is already made?
16:12 japhb_ joined #perl6
16:12 AlexDaniel CIAvash: no, but: http://colabti.org/irclogger/irclog​ger_log/perl6?date=2016-12-03#l1138
16:14 AlexDaniel in other words, yes
16:14 CIAvash I am aware of that, but I thought Perl 6 is community driven? Only its development is?
16:15 AlexDaniel CIAvash: do you have any good reasons to oppose the removal?
16:15 AlexDaniel it's all just talk at this point anyway, but still
16:15 AlexDaniel huggable: 6.d
16:15 huggable AlexDaniel, Proposals for 6.d language: https://github.com/perl6/specs/blob/master/v6d.pod
16:15 AlexDaniel it's not even in the list
16:17 dugword joined #perl6
16:17 CIAvash Like others I think it's easier to read. So if readability is important, it can be a good reason to keep it.
16:18 AlexDaniel at this point it is less useful than -->
16:18 AlexDaniel m: sub foo ( --> 42) {  }; say foo
16:18 camelia rakudo-moar 9594a3: OUTPUT«42␤»
16:18 AlexDaniel m: sub foo ( ) returns 42 {  }; say foo
16:18 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed trait␤at <tmp>:1␤------> 3sub foo ( ) returns7⏏5 42 {  }; say foo␤»
16:20 CIAvash does that mean returns cannot do what --> does? I mean technically?
16:20 susmus joined #perl6
16:24 AlexDaniel notviki: RT #130412 is for you I think
16:24 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130412
16:24 AlexDaniel CIAvash: yes
16:24 El_Che p6: sub foo (--> 42) {}; foo()
16:24 camelia rakudo-moar 9594a3: ( no output )
16:25 El_Che (however, I don't see the case for that)
16:25 AlexDaniel the case for what?
16:26 AlexDaniel why would anyone want this?
16:26 El_Che the extra functionality of --> (values next to Type) in comparison with "returns"
16:26 AlexDaniel m: multi fib (0 --> 0) {}; multi fib (1 --> 1) { }; multi fib ($n) { fib($n - 1) + fib($n - 2) }; say fib(5)
16:26 camelia rakudo-moar 9594a3: OUTPUT«5␤»
16:26 El_Che I am pretty sure someone more knowledgable will give a good example :)
16:26 AlexDaniel m: multi fib (0 --> 0) {}; multi fib (1 --> 1) { }; multi fib ($n) { fib($n - 1) + fib($n - 2) }; say fib(20)
16:26 camelia rakudo-moar 9594a3: OUTPUT«6765␤»
16:27 El_Che there you go :)
16:28 AlexDaniel arguably multi fib (0) { 0 } is not that bad too, maybe there are better examples
16:32 tbrowder ref perl6 emacs mode: anyone know henrik? perhaps we could fork his project into perl6 domain same as atom stuff? then it would maybe get more visibility and love!
16:33 AlexDaniel tbrowder: if you are ready to work on it, yes
16:33 AlexDaniel otherwise forking probably makes no sense
16:33 AlexDaniel just because it will be under perl6 organization does not mean it will get more love
16:34 rafasch joined #perl6
16:34 tbrowder well, i'm almost the only one who has, but my PR has been ignored by henrik. i am using my mods, but need lisp experts to at least critique the code
16:36 AlexDaniel there's also sena_kun who may be interested
16:36 tbrowder there are several features i would like to add including a unicode char map for easy refernce and insertion
16:37 AlexDaniel hmmm
16:37 cyphase joined #perl6
16:37 tbrowder right, sena_kun i believe made helpful comments and suggestions to my PR
16:37 AlexDaniel do it then?
16:38 rurban joined #perl6
16:38 AlexDaniel I wonder what's supposed to happen with MELPA and other stuff that points to the older version
16:38 AlexDaniel but until we actually have some progress it's probably too early to discuss
16:43 tbrowder sorry, syohex was the good helper, and the owner is hinrik; i don't know the ins and outs of the emacs ecosystem, but the emacs folks are in general very helpful
16:44 tbrowder i will fork the repo within a few days and reapply my PR for review
16:48 CIAvash AlexDaniel: El_Che raised a good point, do we know the benefits of returning values(and variables)? Is it documented somewhere?
16:48 AlexDaniel CIAvash: as for the docs, they are here: https://docs.perl6.org/type/Signature#index-e​ntry---%3E-returns-Constraining_Return_Types
16:49 AlexDaniel now how useful that is… I don't know!
16:49 AlexDaniel bisect: sub foo(--> 123) { }
16:49 bisectable6 AlexDaniel, On both starting points (old=2015.12 new=9594a3e) the exit code is 0 and the output is identical as well
16:49 bisectable6 AlexDaniel, Output on both points:
16:49 AlexDaniel bisect: old=2015.10 sub foo(--> 123) { }
16:49 bisectable6 AlexDaniel, On both starting points (old=2015.10 new=9594a3e) the exit code is 0 and the output is identical as well
16:49 bisectable6 AlexDaniel, Output on both points:
16:49 AlexDaniel commit: all sub foo(--> 123) { }
16:50 committable6 AlexDaniel, https://gist.github.com/eb5d​52290b2afd0c686c117666c2ea34
16:50 AlexDaniel bisect: old=2015.09 sub foo(--> 123) { }
16:50 bisectable6 AlexDaniel, Bisecting by exit code (old=2015.09 new=9594a3e). Old exit code: 1
16:50 bisectable6 AlexDaniel, bisect log: https://gist.github.com/7377​579aa5efe4fa630596708acae34b
16:50 bisectable6 AlexDaniel, (2015-09-25) https://github.com/rakudo/rakudo/commit/​de8024d25d95b64a4a0a8f55d04dd444f09595cd
16:51 AlexDaniel CIAvash: it is kinda a new feature also
16:51 AlexDaniel for example, there are probably not many rosettacode examples using it
16:54 MasterDukeLaptop benchable6: compare sub a(--> 4) {}; a() for ^1000000 ||| sub b() {4}; b() for ^1000000
16:54 benchable6 MasterDukeLaptop, ¦«sub»:Cannot find this revision
16:54 MasterDukeLaptop benchable6: compare HEAD sub a(--> 4) {}; a() for ^1000000 ||| sub b() {4}; b() for ^1000000
16:54 benchable6 MasterDukeLaptop, starting to benchmark the 1 given commit
16:55 benchable6 MasterDukeLaptop, https://gist.github.com/2ae2​e0d33c282a2da086468540dcdeda
16:56 MasterDukeLaptop so 'sub b() {4}; b() for ^1000000' is almost twice as fast
16:56 timotimo oh, interesting
16:56 AlexDaniel dammit
17:04 espadrine joined #perl6
17:07 El_Che wow
17:08 CIAvash "it[-->] also guarantees you know the return type before you start parsing traits, which might need that info" TimToady said this as one of the reasons
17:09 skids joined #perl6
17:09 rurban joined #perl6
17:19 notviki AlexDaniel: well, it's not so much a regression. It's just you can't yet return negated values via --> and the only reason -Inf ever worked because it was a single term
17:20 AlexDaniel notviki: it was possible earlier, now it is not
17:20 notviki The fact that it was possible was a bug. Now it's fixed.
17:21 AlexDaniel ? :o
17:21 AlexDaniel didin't you make -Inf work in signatures?
17:21 AlexDaniel m: sub foo(-∞) {}; say foo
17:21 camelia rakudo-moar 9594a3: OUTPUT«Too few positionals passed; expected 1 argument but got 0␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
17:22 AlexDaniel m: sub foo(-∞) {}; say foo(-∞)
17:22 camelia rakudo-moar 9594a3: OUTPUT«Nil␤»
17:22 AlexDaniel so why can't it work with --> ?
17:23 b2gills The same reason it can't work with 「1+1」
17:23 AlexDaniel what are you talking about
17:23 b2gills m: say -> --> 1+1 {}()
17:23 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed return value␤at <tmp>:1␤------> 3say -> --> 17⏏5+1 {}()␤»
17:23 b2gills m: say -> --> -Inf {}()
17:23 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Malformed return value␤at <tmp>:1␤------> 3say -> -->7⏏5 -Inf {}()␤»
17:23 b2gills m: say -> --> Inf {}()
17:23 camelia rakudo-moar 9594a3: OUTPUT«Inf␤»
17:24 AlexDaniel b2gills: so why can -Inf work in parameter constraints but cannot work for return constraints?
17:24 notviki AlexDaniel: because it's a different code path and no one fixed RT#130249 yet
17:24 synopsebot6 Link:  https://rt.perl.org/rt3//Publ​ic/Bug/Display.html?id=130249
17:24 notviki AlexDaniel: the only reason -Inf worked is due to a bug.
17:24 AlexDaniel rrrrrrrrrrrright
17:25 AlexDaniel right
17:25 AlexDaniel right
17:26 AlexDaniel dunno then
17:26 dugword joined #perl6
17:28 captain-adequate joined #perl6
17:29 notviki m: sub (-NaN) {}
17:29 camelia rakudo-moar 9594a3: ( no output )
17:30 b2gills m: constant f = BEGIN -Inf; say -> --> f {}()
17:30 camelia rakudo-moar 9594a3: OUTPUT«-Inf␤»
17:30 notviki AlexDaniel: dunno what?
17:31 nicq20 left #perl6
17:32 AlexDaniel notviki: IMO, just because perfectly sane code was working because of a bug does not mean that we can break it like that. But I don't have any solution to offer, so I guess it's ok…
17:32 notviki AlexDaniel: https://xkcd.com/1172/
17:32 dalek ecosystem: d47ffc6 | (Douglas Jenkins)++ | META.list:
17:32 dalek ecosystem: Add FooBar to ecosystem. See https://github.com/dugword/Number-Bytes-Human
17:32 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/d47ffc6c9b
17:32 dalek ecosystem: 7d27cd9 | (Douglas Jenkins)++ | META.list:
17:32 dalek ecosystem: Updated META.info => META6.json
17:32 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/7d27cd9e26
17:32 dalek ecosystem: 5268865 | astj++ | META.list:
17:32 dalek ecosystem: Merge pull request #275 from dugword/feature/new-module-number-bytes-human
17:32 dalek ecosystem:
17:32 dalek ecosystem: Add Number::Bytes::Human to ecosystem.
17:32 dalek ecosystem: review: https://github.com/perl6/e​cosystem/commit/5268865a64
17:33 AlexDaniel but you can always claim that it's not part of 6c so I guess it's not a big deal… :-/
17:33 dugword Woo! First Perl6 module
17:33 notviki \o/
17:33 notviki dugword++
17:34 notviki AlexDaniel: the solution is to fix RT 130249
17:34 notviki and -Inf will magically work again
17:34 AlexDaniel notviki: that I understand
17:36 notviki sub ($/) { 'foo'.match: /o/ }(42); is a perfectly sane code that was working due to a bug and no longer does.
17:39 AlexDaniel perfectly sane? This is some scary shit
17:39 notviki well
17:39 notviki class Actions { method foo ($/) { 'foo'.match: /o/ } }
17:41 notviki dugword: how come you don't export this multi? https://github.com/dugword/Number-Bytes-Huma​n/blob/master/lib/Number/Bytes/Human.pm#L22
17:42 notviki huh
17:43 notviki dugword: just by reading the code, this won't ever work: https://github.com/dugword/Number-Bytes-Huma​n/blob/master/lib/Number/Bytes/Human.pm#L22
17:43 dugword Didn't think there was a use case for it from a user perspective and wanted a simple API. It's used internally to do the recursion
17:43 notviki Ah, I see
17:44 notviki it works... but how
17:46 dugword The user calls `format-bytes($some-number)` which internally calls `format-bytes($some-number, 0)` and then recurses on that internal function
17:46 notviki dugword: but there's no candidate that can handle format-bytes($, Int)
17:47 notviki m: multi foo ($) { foo $, 0 }; multi foo ($, :$) {}; foo 42
17:47 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Mu, Int) will never work with any of these multi signatures:␤    ($) ␤    ($, $)␤at <tmp>:1␤------> 3multi foo ($) { 7⏏5foo $, 0 }; multi foo ($, :$) {}; foo 42␤»
17:47 dj_goku joined #perl6
17:49 b2gills dugword: just remove the 「:」 from line 22 to make it a positional rather than a named
17:49 dugword Oh, I see what you mean
17:49 notviki b2gills: that'd break the codepath in its guts that uses positional form
17:51 notviki .say for &format-bytes.candidates
17:51 notviki sub format-bytes ($bytes) { #`(Sub|44899360) ... }
17:51 notviki sub format-bytes ($bytes, :$magnitude = 0) { #`(Sub|44899664) ... }
17:51 dugword I have a named parameter, and I use it as a named parameter on line 27, but use it as a positional parameter on line 19
17:51 notviki wtf...
17:51 notviki dugword: the fact that it works is a bug. It should complain like my eval above
17:51 dugword Should that not work?
17:52 dugword What version of Perl6 does this IRC bot use?
17:52 dugword perl6 --version
17:52 dugword This is Rakudo version 2016.11 built on MoarVM version 2016.11
17:52 dugword implementing Perl 6.c.
17:52 notviki ooohhhh
17:52 notviki wait
17:52 dugword That's my version
17:53 notviki no oh
17:53 notviki Well, the "oh" is that the first multi never gets called, which is why the bug doesn't happen
17:54 dugword On line 18? multi format-bytes($bytes) is export(:functions)
17:54 dugword That get's called by test tests
17:54 dugword *by the tests
17:54 AlexDaniel m: say +combinations(10000, 10)
17:54 camelia rakudo-moar 9594a3: OUTPUT«2743355077591282538231819720749000␤»
17:54 AlexDaniel cool
17:54 notviki But then, I don't get why the above version croaks and not yours
17:55 notviki oh no default
17:55 notviki m: multi foo ($) { foo $, 0 }; multi foo ($, :$ = 42) {}; foo 42
17:55 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Mu, Int) will never work with any of these multi signatures:␤    ($) ␤    ($, $ = 42)␤at <tmp>:1␤------> 3multi foo ($) { 7⏏5foo $, 0 }; multi foo ($, :$ = 42) {}; f␤»
17:55 notviki nope
17:55 dugword https://github.com/dugword/Number-Bytes-​Human/blob/master/t/020-functions.t#L14
17:57 dugword m: multi foo ($bar) {say 'one'}; multi foo ($bar, :$baz = 'baz') {say 'two'}; foo 42
17:57 camelia rakudo-moar 9594a3: OUTPUT«two␤»
17:58 notviki :S
17:58 notviki m: multi foo ($) { foo $, 0 }; multi foo ($x, :$y = 42) {}; foo 42
17:58 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Mu, Int) will never work with any of these multi signatures:␤    ($) ␤    ($x, :$y = 42)␤at <tmp>:1␤------> 3multi foo ($) { 7⏏5foo $, 0 }; multi foo ($x, :$y = 42) {};␤»
17:58 notviki m: multi foo ($z) { foo $, 0 }; multi foo ($x, :$y = 42) {}; foo 42
17:58 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Mu, Int) will never work with any of these multi signatures:␤    ($z) ␤    ($x, :$y = 42)␤at <tmp>:1␤------> 3multi foo ($z) { 7⏏5foo $, 0 }; multi foo ($x, :$y = 42) {};␤»
17:58 dugword m: multi foo ($bar) {foo $bar, 0}; multi foo ($bar, :$baz = 'baz') {say 'two'}; foo 42
17:58 camelia rakudo-moar 9594a3: OUTPUT«two␤»
17:59 notviki why the hell my version crashes, yet yours goes straight for the second multi?
17:59 notviki The Optimizer™
17:59 AlexDaniel m: 1.^methods.sort
17:59 dugword Should you not be able to use a named parameter as a positional parameter? Didn't realize I did that, but it seems to work.
17:59 camelia rakudo-moar 9594a3: OUTPUT«Method object coerced to string (please use .gist or .perl to do that)␤  in block <unit> at <tmp> line 1␤Method object coerced to string (please use .gist or .perl to do that)␤  in block <unit> at <tmp> line 1␤Method object coerced to string (pleas…»
17:59 notviki crap
17:59 AlexDaniel eval: 1.^methods.sort
17:59 evalable6 AlexDaniel, rakudo-moar 9594a3e: OUTPUT«Method object coerced to string (please use .gist or .perl to do that)␤  in block <unit> at /t…»
17:59 evalable6 AlexDaniel, Full output: https://gist.github.com/6bc7​101d437c46448dffe510c9962718
17:59 notviki dugword: no, of course not.
18:00 dugword m: sub foo ($bar) {say $bar}; foo 'bar'
18:00 camelia rakudo-moar 9594a3: OUTPUT«bar␤»
18:00 notviki we need a camelia mode that uses --optimzie=off
18:00 dugword m: sub foo (:$bar) {say $bar}; foo 'bar'
18:00 camelia rakudo-moar 9594a3: OUTPUT«Too many positionals passed; expected 0 arguments but got 1␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
18:01 rafasch slowmelia
18:01 AlexDaniel notviki: I guess it will be added to whateverable one day
18:01 notviki Or just add it to camelia?
18:02 dugword notviki: I would think not, but it wouldn't be the first time I was caught off guard by some Perlish magic behavior
18:02 dugword So this is a bug? I'll put in a bug report
18:03 notviki dugword: so basically, the multi you export never gets called (I guess when you export a multi, you export all candidates?)
18:03 ugexe pierre_: read the error message you are getting for zef closely. The error is zef is already installed. You said you "installed" rakudo but it would seem you meant "upgraded" because otherwise how could zef already be installed. So you upgraded rakudo to a version that had breaking changes for an older version of zef which you still had installed from previously
18:03 notviki dugword: if it were called, you'd trigger the throwage about no candidates to handle the second positional.
18:03 pierre_ hum, that's what i thought at one point,
18:04 pierre_ so how can i "rebuild it" ?
18:04 notviki dugword: and strangely, the reason it throws it's due to the optimizer. If you turn it off it goes straight for the candidate with ($, :$) and so the faulty call never happens
18:04 ugexe zef --force install zef
18:04 dugword notviki: Oh, so when I call it with 1 argument it is calling the two argument signature because I defined a default value for it
18:04 notviki m: multi foo ($) { foo $, 0 }; multi foo ($x;; :$y = 42) {}; foo 42
18:04 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Mu, Int) will never work with any of these multi signatures:␤    ($) ␤    ($x;; :$y = 42)␤at <tmp>:1␤------> 3multi foo ($) { 7⏏5foo $, 0 }; multi foo ($x;; :$y = 42) {}␤»
18:04 ugexe rakudobrew is a developers tool, its not intended to be the "easy" option
18:05 notviki dugword: it would do so without the default either, because by default named params are optional
18:05 notviki dugword: if I change it to multi format-bytes($bytes, :$magnitude!) { then I do get the throwage I originally expected
18:05 ugexe git clone https://github.com/ugexe/zef && perl6 -Izef/lib zef/bin/zef install zef/
18:06 ugexe er --force install^
18:06 dugword I see, so the weirdness is that it is calling the method I didn't export.
18:06 notviki dugword: that too
18:06 AlexDaniel bisect: say Dateish.is-leap-year(2016);
18:06 bisectable6 AlexDaniel, Bisecting by exit code (old=2015.12 new=9594a3e). Old exit code: 0
18:07 bisectable6 AlexDaniel, bisect log: https://gist.github.com/a5d2​7f4dc8010b42e868e40864b697ca
18:07 bisectable6 AlexDaniel, (2016-10-03) https://github.com/rakudo/rakudo/commit/​f4bda356fc6fb7e7d7ff91fb0114e582376d6bdb
18:07 AlexDaniel notviki: what do you think about this ↑
18:07 notviki AlexDaniel: what?
18:07 notviki m: say Dateish.is-leap-year(2016);
18:07 camelia rakudo-moar 9594a3: OUTPUT«Too many positionals passed; expected 1 argument but got 2␤  in any  at gen/moar/Metamodel.nqp line 1727␤  in block <unit> at <tmp> line 1␤␤»
18:08 AlexDaniel commit: 2016.09 say Dateish.is-leap-year(2016);
18:08 committable6 AlexDaniel, ¦«2016.09»: True
18:08 notviki Ah
18:08 notviki AlexDaniel: it's showing the wrong commit
18:08 notviki AlexDaniel: that multi was nixed because it's idiotic
18:09 AlexDaniel bisect: new=f4bda35^ say Dateish.is-leap-year(2016);
18:09 bisectable6 AlexDaniel, On both starting points (old=2015.12 new=f4bda35^) the exit code is 0 and the output is identical as well
18:09 bisectable6 AlexDaniel, Output on both points: True
18:09 notviki AlexDaniel: this is the right commit: https://github.com/rakudo/rakudo/commit/​6aab64103f1c6ce509be79783d2fd10a989b6edd
18:09 AlexDaniel commit: f4bda356fc^,f4bda356fc say Dateish.is-leap-year(2016);
18:09 committable6 AlexDaniel, ¦«f4bda356fc^»: True␤¦«f4bda35»: Too many positionals passed; expected 1 argument but got 2␤  in any  at gen/moar/m-Metamodel.nqp line 1752␤  in block <unit> at /tmp/SQep26OLvp line 1␤ «exit code = 1»
18:10 AlexDaniel but ok
18:10 AlexDaniel if it's ok then alright, that's all I wanted to know
18:10 notviki dugword: I can file the bug, unless you already started
18:10 AlexDaniel though the error message is LTA
18:11 notviki AlexDaniel: heh, what's the A message?
18:11 notviki Considering that applies to literally every sub and method we have
18:11 notviki m: ''.uc: 'blah', 'blah'
18:11 camelia rakudo-moar 9594a3: OUTPUT«Cannot resolve caller uc(Str: Str, Str); none of these signatures match:␤    (Str:D $: *%_)␤    (Str:U $: *%_)␤  in block <unit> at <tmp> line 1␤␤»
18:11 AlexDaniel notviki: one that does not complain about something in m-Metamodel.nqp line 1752
18:11 notviki Ah that :)
18:12 notviki it's probably fixable by adding it to...
18:12 notviki s: Exception, 'is-setting'
18:12 SourceBaby notviki, Something's wrong: ␤ERR: Type check failed in binding to &code; expected Callable but got Nil (Nil)␤  in sub do-sourcery at /home/zoffix/services/lib/CoreHackers-​Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 42␤  in sub sourcery at /home/zoffix/services/lib/CoreHackers-​Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 33␤  in block <unit> at -e line 6␤␤
18:12 notviki s: Backtrace, 'is-setting'
18:12 SourceBaby notviki, Something's wrong: ␤ERR: Type check failed in binding to &code; expected Callable but got Nil (Nil)␤  in sub do-sourcery at /home/zoffix/services/lib/CoreHackers-​Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 42␤  in sub sourcery at /home/zoffix/services/lib/CoreHackers-​Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 33␤  in block <unit> at -e line 6␤␤
18:12 notviki screw you, robot!
18:12 notviki s: Backtrace::Frame, 'is-setting'
18:12 SourceBaby notviki, Sauce is at https://github.com/rakudo/rakudo/blo​b/9594a3e/src/core/Backtrace.pm#L61
18:12 notviki there
18:13 mr_ron m: use Test; is -2**2 . abs.Str.ord, "4".ord, "on right side . is tighter than methodcall"; # Could someone please help explain with '.' is being tested as tighter?
18:13 camelia rakudo-moar 9594a3: OUTPUT«ok 1 - on right side . is tighter than methodcall␤»
18:13 mr_ron Tried to ask earlier about this test but got no answer: https://github.com/perl6/roast/blob/m​aster/S03-operators/precedence.t#L48
18:14 mr_ron s/with '.'/which '.'/
18:14 pmurias joined #perl6
18:14 notviki the one with spaces on
18:14 dogbert17 joined #perl6
18:14 notviki around it
18:14 moritz uhm, I think the description is a bit off
18:15 notviki I think it's copy-pastaed from the other test
18:15 moritz it actually tests that ** is tighther than . with spaces
18:15 notviki mr_ron: it tests the result is (-2**2).abs.Str.ord and not -2**(2.abs.Str.ord)
18:16 mr_ron moritz: doesn't the test right above test the same thing?
18:16 mr_ron Oh I think I see
18:17 mr_ron testing '.' as apposed to '+'
18:17 notviki yeah
18:17 pmurias AlexDaniel: having an OrderedHash as a module seems preferable
18:19 moritz can I regex-match against an Uni somehow?
18:28 pmurias what is Perl.DISTROnames used for?
18:28 AlexDaniel m: my @x; say @x»<xxx>
18:28 camelia rakudo-moar 9594a3: OUTPUT«This type (Scalar) does not support elems␤  in block <unit> at <tmp> line 1␤␤»
18:28 AlexDaniel what does it mean?
18:28 notviki What's a foolproof method to make sure optimizer doesn't constant fold my sub?
18:29 AlexDaniel bisect: my @x; say @x»<xxx>
18:29 rindolf joined #perl6
18:29 bisectable6 AlexDaniel, Bisecting by output (old=2015.12 new=9594a3e) because on both starting points the exit code is 1
18:29 bisectable6 AlexDaniel, bisect log: https://gist.github.com/e502​3ea0f1393589c20987a9f5c2d7af
18:29 bisectable6 AlexDaniel, (2016-05-12) https://github.com/rakudo/rakudo/commit/​33ef5a95459b95bf7256391a053550d4efe221de
18:29 moritz notviki: don't annotate it with "is pure" (might be enough already)
18:29 notviki nah
18:30 pmurias I'm not sure what to put in  DISTROnames on the js backend
18:32 notviki seems it also does something if it can figure out the output at compile time? https://github.com/rakudo/rakudo/blo​b/nom/src/Perl6/Optimizer.nqp#L1491
18:34 notviki Do named params play a role in multi dispatch?
18:34 mst I thought they did, but haven't tried yet
18:34 notviki multi foo ($) and multi foo ($, :$); if I call foo(42) is it expected for the first multi to be used?
18:35 domidumont joined #perl6
18:42 notviki ohh
18:45 moritz notviki: named params only act as a tie breaker, they don't participate in nominal type/arity dispatch
18:46 rightfold Is this the correct way to forward all arguments? https://glot.io/snippets/elmqhtpdjl
18:46 notviki moritz: so how is that tie broken?
18:47 notviki rightfold: no, sub (|c) { foo |c }
18:47 rightfold what is the difference?
18:47 notviki moritz: because above that would be a tie, right?
18:48 moritz m: multi f($, :$foo) { 1 }; multi f($) { 2 }; say f(42, :foo)
18:48 camelia rakudo-moar 9594a3: OUTPUT«1␤»
18:48 moritz that's how the tie is broken
18:48 moritz m: multi f($, :$foo) { 1 }; multi f($) { 2 }; say f(42)
18:48 camelia rakudo-moar 9594a3: OUTPUT«1␤»
18:48 notviki m: sub got { dd @_ }; sub forward (*@a, *%b) { got |@a, |%b }; forward [1, [2, [3]]]
18:48 camelia rakudo-moar 9594a3: OUTPUT«[1, [2, [3]]]␤»
18:48 moritz m: multi f($) { 1 }; multi f($, :$foo) { 2 }; say f(42)
18:49 camelia rakudo-moar 9594a3: OUTPUT«2␤»
18:49 * moritz surprised by that
18:49 notviki OK, so I'm not the only one :)
18:51 notviki m: sub got ($a, $b) { dd [ $a, $b ] }; sub forward (|c) { got |c }; forward (1, (2, (3))), 42
18:51 camelia rakudo-moar 9594a3: OUTPUT«[(1, (2, 3)), 42]␤»
18:51 notviki m: sub got ($a, $b) { dd [ $a, $b ] }; sub forward (*@a, *%b) { got |@a, |%b }; forward (1, (2, (3))), 42
18:51 camelia rakudo-moar 9594a3: OUTPUT«Too many positionals passed; expected 2 arguments but got 4␤  in sub got at <tmp> line 1␤  in sub forward at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
18:51 notviki rightfold: ^ that... and also performance
18:52 rightfold thanks
18:53 notviki m: sub got ($a, $b) { say [ $a, $b ] }; sub forward (|c) { got |c }; forward (1…Inf), 42
18:53 camelia rakudo-moar 9594a3: OUTPUT«[(...) 42]␤»
18:53 notviki m: sub got ($a, $b) { say [ $a, $b ] }; sub forward (*@a, *%b) { got |@a, |%b }; forward (1…Inf), 42
18:53 notviki rightfold: also that ^ (the version with slurpies hangs, trying to reify everything)
18:53 camelia rakudo-moar 9594a3: OUTPUT«(timeout)»
19:01 wamba joined #perl6
19:02 notviki dugword: https://rt.perl.org/Ticket/Displ​ay.html?id=130413#ticket-history https://rt.perl.org/Ticket/Displ​ay.html?id=130415#ticket-history
19:07 AlexDaniel commit: 2016.11,HEAD say [0, False].sort
19:07 committable6 AlexDaniel, ¦«2016.11»: (0 False)␤¦«HEAD»: (False 0)
19:07 Deep_Thought joined #perl6
19:11 notviki m: dd 0 cmp False
19:11 camelia rakudo-moar 9594a3: OUTPUT«Order::Same␤»
19:15 AlexDaniel m: say all(Int, 42).defined
19:15 camelia rakudo-moar 9594a3: OUTPUT«False␤»
19:15 notviki m: say [0, "0"].sort
19:15 camelia rakudo-moar 9594a3: OUTPUT«(0 0)␤»
19:15 notviki m: dd [0, "0"].sort
19:15 camelia rakudo-moar 9594a3: OUTPUT«("0", 0)␤»
19:16 pierre_ joined #perl6
19:16 notviki m: dd [0, "0", 0, "0"].sort
19:16 camelia rakudo-moar 9594a3: OUTPUT«("0", 0, "0", 0)␤»
19:16 notviki m: dd [0, "0", "0"].sort
19:16 camelia rakudo-moar 9594a3: OUTPUT«("0", "0", 0)␤»
19:16 notviki That feels like a bug, since IIRC same values are meant to be left in the original order?
19:17 notviki The all(Int, 42).defined output looks correct
19:17 AlexDaniel notviki: yes, it was a bug that is now fixed
19:17 AlexDaniel by you I think
19:17 notviki ye
19:17 [Coke]_ samcv: did you find the RTs about the aliases for CR/LF?
19:18 notviki [Coke]_: you have a robo message in #perl6-dev
19:18 samcv hello
19:19 notviki \o
19:19 samcv \o
19:20 samcv [Coke]_, yeah i saw them and not working
19:20 samcv have them open
19:20 samcv on mac os x
19:21 samcv we have tests for those too. the the bigger question is, does "\c[NAME HERE]" work for unicode 1 AND unicode 2 names. or do we makej exceptions for control characters, but don't use any other unicode 1 names
19:23 samcv because fixing two of them broke tests that depended on unicode 1 names
19:26 dugword m: sub foo(Rat $number) { say $number ** $number }; foo(10)]
19:26 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unexpected closing bracket␤at <tmp>:1␤------> 3ber) { say $number ** $number }; foo(10)7⏏5]␤»
19:26 dugword m: sub foo(Rat $number) { say $number ** $number }; foo(10)
19:26 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Int) will never work with declared signature (Rat $number)␤at <tmp>:1␤------> 3at $number) { say $number ** $number }; 7⏏5foo(10)␤»
19:27 FROGGS joined #perl6
19:27 AlexDaniel m: dd |( 42 => 42)
19:27 camelia rakudo-moar 9594a3: OUTPUT«block <unit>␤»
19:27 notviki It doesn't take named args
19:28 notviki hmm
19:28 notviki Or Pairs either I guess
19:28 notviki m: say 42, |( 42 => 42)
19:28 camelia rakudo-moar 9594a3: OUTPUT«Unexpected named argument '42' passed␤  in block <unit> at <tmp> line 1␤␤»
19:28 notviki 0.o
19:28 notviki m: say 42, |( '' => 42 )
19:28 camelia rakudo-moar 9594a3: OUTPUT«Unexpected named argument '' passed␤  in block <unit> at <tmp> line 1␤␤»
19:28 notviki jesus
19:29 dugword Is there a way to define a signature to use Int or Rat without multi or a custom constraint? Is there a built in type for it?
19:29 dugword m: sub foo(Rat $number) { say $number ** $number }; foo(10)
19:29 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Int) will never work with declared signature (Rat $number)␤at <tmp>:1␤------> 3at $number) { say $number ** $number }; 7⏏5foo(10)␤»
19:29 notviki dugword: no
19:29 rafasch m: sub foo(Rat $number) { say $number ** $number }; foo(10/1)
19:29 camelia rakudo-moar 9594a3: OUTPUT«10000000000␤»
19:29 notviki dugword: you could use a coercer
19:30 notviki m: sub foo(Rat(Real) $number) { say $number ** $number }; foo(10)
19:30 camelia rakudo-moar 9594a3: OUTPUT«10000000000␤»
19:30 AlexDaniel m: sub foo(Rat() $number) { say $number ** $number }; foo(10)
19:30 camelia rakudo-moar 9594a3: OUTPUT«10000000000␤»
19:31 dugword m: sub foo(Rat(Real) $number) {say $number ** number}; foo('I <3 Puppies')
19:31 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    number used at line 1␤␤»
19:31 dugword m: sub foo(Rat(Real) $number) {say $number ** $number}; foo('I <3 Puppies')
19:31 camelia rakudo-moar 9594a3: OUTPUT«Type check failed in binding to $number; expected Real but got Str ("I <3 Puppies")␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
19:31 dugword m: sub foo(Rat(Real) $number) {say $number ** $number}; foo(1.3); foo(10);
19:31 camelia rakudo-moar 9594a3: OUTPUT«1.40645667323789␤10000000000␤»
19:31 AlexDaniel m: sub foo($number where Int|Rat) { say $number ** $number }; foo(10)
19:31 camelia rakudo-moar 9594a3: OUTPUT«10000000000␤»
19:31 AlexDaniel ↑ that's a bit different, but may do the job depending on your needs
19:33 dugword Thanks guys, I want to ensure only values that can handle numeric operations are passed into the function and have that enforced by the function definition/signature. Those all look like fine solutions.
19:33 rafasch Isn't Perlish suppose to promote arguments on it' own? Whay can't an Int be promoted to a Rat?
19:33 notviki dugword: um, so just ask for Numeric? Why do you need Rat/Int?
19:33 AlexDaniel rafasch: sure, just slap () and that's it
19:33 rafasch m: sub foo(Numeric $number) { say $number ** $number }; foo(10)
19:33 notviki m: sub foo(Numeric $number) {say $number ** $number}; foo(1.3); foo(10);
19:33 camelia rakudo-moar 9594a3: OUTPUT«10000000000␤»
19:33 camelia rakudo-moar 9594a3: OUTPUT«1.40645667323789␤10000000000␤»
19:34 dugword Do'h Numeric is a type. I looked for something like that, didn't see it
19:34 dugword I knew it must be there
19:34 rafasch m: sub foo(Numeric $number) { say $number ** $number }; foo(10+3i)
19:34 camelia rakudo-moar 9594a3: OUTPUT«-5547793154.56273-3226831104.80361i␤»
19:34 dugword Yup, that's what I wanted
19:35 notviki dugword: you can also use Real if you want to exclude Complex
19:35 rafasch m: sub foo(Real $number) { say $number ** $number }; foo(10)
19:35 camelia rakudo-moar 9594a3: OUTPUT«10000000000␤»
19:37 notviki rafasch: if we'd promote stuff willy-nilly, types would be much less useful.
19:37 tbrowder i see JJ got the perl6-mode forked to github:perl6. can someone please add an issue tracker for it (or point me to it)?
19:37 rafasch m: sub foo(Numeric $number) { say $number² }; foo(10+3i)
19:37 camelia rakudo-moar 9594a3: OUTPUT«91+60i␤»
19:38 notviki tbrowder: done: https://github.com/perl6/perl6-mode/issues
19:38 tbrowder thanks, zof...notviki!
19:40 rafasch notviki: I see why now, especially since it's all "pass-by-refrence", isn't it? Giving it an Int when it expects a Rat would indeed be a problem.
19:45 rafasch m: sub foo(Real $number) { say $number² }; foo(<10>)
19:45 camelia rakudo-moar 9594a3: OUTPUT«100␤»
19:45 rafasch m: sub foo(Real $number) { say $number² }; foo("10")
19:45 camelia rakudo-moar 9594a3: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Calling foo(Str) will never work with declared signature (Real $number)␤at <tmp>:1␤------> 3sub foo(Real $number) { say $number² }; 7⏏5foo("10")␤»
19:46 notviki It's not a coercer. It'll only take Real types
19:46 notviki m: <10>.^mro.say
19:46 camelia rakudo-moar 9594a3: OUTPUT«((IntStr) (Int) (Str) (Cool) (Any) (Mu))␤»
19:46 * notviki forgets how to make it spit out roles too
19:46 rafasch m: sub foo(Real() $number) { say $number² }; foo("10")
19:46 camelia rakudo-moar 9594a3: OUTPUT«100␤»
19:47 pierre_ joined #perl6
19:47 moritz m: say <10>.^roles
19:47 camelia rakudo-moar 9594a3: OUTPUT«((Real) (Numeric) (Stringy))␤»
19:48 moritz but roles don't appear in the MRO, because methods from roles are flattened into the classes they are applied to
19:48 notviki Thanks
19:52 rafasch You guys rock, keep being you. P6++
19:53 notviki \o/
19:53 * moritz keeps being himself, except for incremental changes :-)
19:54 * notviki keeps being consistently inconsistent
19:55 * japhb keeps being
19:55 pyrimidine joined #perl6
19:57 tbrowder ref p6advent: lessons learned with wordpress as is: scheduling is not easy, may be no way to edit after publishing
19:57 moritz sure you can edit after publishing
19:57 moritz (though I only ever tried the old-style post editing interface, not the new "improved" one)
19:58 dalek Pod-To-HTML: 0ffce68 | (Zoffix Znet)++ | lib/Pod/To/HTML.pm:
19:58 dalek Pod-To-HTML: Remove trailing whitespace
19:58 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/0ffce68606
19:59 AlexDaniel m: my @a := (0..*).list; dd @a;
19:59 camelia rakudo-moar 9594a3: OUTPUT«(0, 1, 2, 3, 4, 5, 6, 7, 8, 9... (lazy list)␤»
19:59 AlexDaniel https://xkcd.com/859/
19:59 notviki hehe
19:59 notviki m: my @a := (0..*).list; @a.perl.say;
19:59 camelia rakudo-moar 9594a3: OUTPUT«Cannot .elems a lazy list␤  in block <unit> at <tmp> line 1␤␤Actually thrown at:␤  in block <unit> at <tmp> line 1␤␤»
20:00 notviki m: my @a := (0..*).list; @a.gist.say;
20:00 camelia rakudo-moar 9594a3: OUTPUT«(...)␤»
20:00 notviki .oO( and that's why dd is not specced :P )
20:01 pierre_ joined #perl6
20:08 AlexDaniel notviki: oh! This one is for you!
20:08 AlexDaniel m: my @a; say @a.WHAT.of; say @a.WHAT.of !=== Mu
20:08 camelia rakudo-moar 9594a3: OUTPUT«Cannot look up attributes in a Array type object␤  in block <unit> at <tmp> line 1␤␤»
20:08 AlexDaniel a Array :)
20:10 dalek Pod-To-HTML: 678bb09 | (Zoffix Znet)++ | t/06-table.t:
20:10 dalek Pod-To-HTML: Remove trailing whitespace
20:10 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/678bb09160
20:10 dalek Pod-To-HTML: 74fa0ea | (Zoffix Znet)++ | t/06-table.t:
20:10 dalek Pod-To-HTML: Remove trailing whitepsace
20:10 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/74fa0ea365
20:11 AlexDaniel by the way
20:11 AlexDaniel what's that?
20:11 AlexDaniel m: my $x = 2; cas($x,*+1); say $x
20:11 camelia rakudo-moar 9594a3: OUTPUT«3␤»
20:12 dalek Pod-To-HTML: 1ca39bf | (Zoffix Znet)++ | t/0 (2 files):
20:12 dalek Pod-To-HTML: Do not output debug stuff during test run
20:12 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/1ca39bfea1
20:13 notviki ffs
20:13 notviki This shoddy code made me commit incorrect file
20:14 dalek Pod-To-HTML: dd6f332 | (Zoffix Znet)++ | t/07-headings.t:
20:14 dalek Pod-To-HTML: Silence debug output
20:14 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/dd6f3320be
20:15 dalek Pod-To-HTML: 62fa37d | (Zoffix Znet)++ | lib/Pod/To/HTML.pm:
20:15 dalek Pod-To-HTML: Fix missing caption on tables
20:15 dalek Pod-To-HTML:
20:15 dalek Pod-To-HTML: Fixes #22
20:15 dalek Pod-To-HTML:
20:15 dalek Pod-To-HTML: Tests added in https://github.com/perl6/Po​d-To-HTML/commit/1ca39bfea1
20:15 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/62fa37d3a2
20:15 dalek Pod-To-HTML: 7045c17 | (Zoffix Znet)++ | META.info:
20:15 dalek Pod-To-HTML: Bump version for #22 fix
20:15 dalek Pod-To-HTML: review: https://github.com/perl6/Po​d-To-HTML/commit/7045c175d4
20:18 notviki s: &cas
20:18 SourceBaby notviki, Sauce is at https://github.com/rakudo/rakudo/bl​ob/9594a3e/src/core/asyncops.pm#L50
20:20 notviki nice comment heh
20:20 notviki lizmat: what's cas?
20:21 rightfold Compare and swap
20:21 notviki :/
20:21 lizmat https://en.wikipedia.org/wiki/Compare-and-swap
20:21 notviki Thanks
20:22 lizmat problem with current &cas is that it's not atomic
20:22 arnsholt Heh. Given that part of the point of a CAS is generally *atomic* CAS, that's a bit annoying =)
20:23 rightfold 🎵 I'm nuuucleaaar 🎶
20:23 * geekosaur was just thinking "...waaaat"
20:25 djbkd_ joined #perl6
20:26 jnthn I thought I killed that off once
20:27 jnthn I did in 539b5f44ef3f pre-xmas
20:27 notviki jnthn: are you still vacationing? samcv got a response from TPF on CLA and was wondering what the next steps are. Does she need to forward that email to anyone?
20:27 jnthn Because I thought it was pretty ridiculous having a non-atomic CAS in there :/
20:27 jnthn I made the mistake of tossing it with something else and it seems it got restored later as if I did it by accident rather than by quiet sleight of hand :P
20:28 notviki :)
20:28 AlexDaniel jnthn: can you take care of it now? :)
20:28 jnthn AlexDaniel: Well, we could actually do with a working cas... :P
20:28 jnthn (A few things I'd like to do could use it)
20:28 jnthn So I'll probably just fix it sometime next year :)
20:29 AlexDaniel no ticket required?
20:29 jnthn AlexDaniel: Feel free, and mark it [CONC]; I watch the CONC list for stuff to do :)
20:30 lichtkind_ joined #perl6
20:30 jnthn notviki: Yeah, I'm still getting much-needed rest but can do the odd thing. In the past, I thought either the people who'd sent in a CLA got added to a sheet somewhere and/or somebody like myself was cc'd on the reply to the sender
20:31 jnthn notviki: Forwarding the mail to me would be enough, and I should have perms to grant the bit
20:31 notviki samcv: ^
20:32 pmurias jnthn: the JVM backend is giving a "Class file too large!" error while building
20:32 samcv jnthn, same email as your git commit email?
20:32 notviki Noticed a bug while fixing Pod-To-HMTL: :caption('Foo Bar') includes quotes in the caption..
20:32 jnthn samcv: samcv Sure
20:32 jnthn oops :)
20:32 jnthn Too much tab
20:32 pmurias jnthn: any suggestions how we should fix that?
20:33 jnthn pmurias: Um...generate less code? ;-)
20:33 jnthn pmurias: The JVM has some really annoying limitations in that area
20:33 samcv ^
20:33 samcv got to split it up
20:33 jnthn We already had to implement something that could take an over-side method and split it up
20:34 jnthn Because some spectests just have a mainline body that does like 500 tests
20:34 samcv jnthn, sent
20:34 jnthn Since we spit out a JAR these days I suspect it's not *too* bad to split things over multiple class files
20:34 jnthn And pack them into the JAR
20:35 jnthn But I've not done a great deal of stuff on the JVM backend for a while and stuff has changed since I did :)
20:36 jnthn samcv: Received :)
20:37 jnthn samcv: And invitation sent.
20:37 samcv thanks :D
20:38 jnthn Happy committing! \o/
20:38 AlexDaniel commit: 2016.02,HEAD use Test; say GLOBAL::Test::EXPORT::DEFAULT::.keys
20:38 committable6 AlexDaniel, https://gist.github.com/e372​e37dd311d94cacffb937bd2a6abd
20:38 samcv ugm how did this happen <link type="text/css" href="/css/highlights.css?v=1" rel="stylesheet" />
20:38 samcv v=1 for the docs, unless it autogens a newer one?
20:38 samcv on rebuilding from the less?
20:38 samcv or sass or whatever
20:40 AlexDaniel commit: 2016.02,HEAD say ("a" xx 1000).map(+("a" le *)).index(0)
20:40 committable6 AlexDaniel, ¦«2016.02»: 414␤¦«HEAD»: Nil
20:41 notviki samcv: what'd you mean?
20:41 notviki how did what happen
20:41 samcv the number used to be higher
20:41 samcv we were bumping the css version right
20:41 samcv in the head.html
20:42 notviki samcv: that <link> is no longer present at all.
20:42 lizmat jnthn: https://irclog.perlgeek.de/​perl6/2015-12-05#i_11663308
20:42 samcv ooo ok
20:42 samcv so i don't need to bump?
20:42 * notviki is confused
20:43 samcv does it autobump style.css?
20:43 notviki samcv: ah, no :)
20:43 samcv oh
20:44 samcv so the old head is no longer used?
20:44 notviki samcv: the file was moved too. It's now in https://github.com/perl6/doc/blob/m​aster/assets/sass/_highlights.scss
20:44 samcv yes i saw that
20:44 jnthn lizmat: Guess I missed that...
20:44 cpage joined #perl6
20:44 jnthn lizmat: No worries, we'll fix it up to be a real cas sometime pre-6.d :)
20:45 lizmat jnthn: there are 6 S17 test files that use it
20:45 lizmat which is why I put it back
20:45 jnthn o.O
20:45 jnthn I...wonder if those tests ever flap :P :P
20:45 notviki samcv: I think you're looking at the old checkout of the repo? The head is still there and it now includes just a single file: https://github.com/perl6/doc/b​lob/master/template/head.html
20:45 samcv oh ignore me i figured it out
20:45 notviki ok
20:45 lizmat jnthn: it's been a while since I've seen flap S17 tests
20:46 notviki The stuff in https://github.com/perl6/do​c/blob/master/assets/sass/ all gets compiled into style.css
20:46 dalek doc: 4196adf | samcv++ | / (2 files):
20:46 dalek doc: Make comments darker for better contrast
20:46 dalek doc: review: https://github.com/perl6/doc/commit/4196adf240
20:47 notviki samcv++ congrats on joining Rakudo team \o/
20:47 samcv \o/
20:49 jnthn lizmat: Yeah, I think we've done away with all the things that are particularly likely to occur by now. There's certainly still something adrift, though.
20:49 jnthn (Got a couple that run into trouble under GC stressing)
20:50 AlexDaniel m: say WHAT ‘hello’.comb(/./)
20:50 camelia rakudo-moar 9594a3: OUTPUT«(List)␤»
20:50 * jnthn wanders off to relax some more :)
20:50 bjz joined #perl6
20:50 AlexDaniel commit: 2016.02,HEAD say WHAT ‘hello’.comb(/./)
20:50 committable6 AlexDaniel, ¦«2016.02»: (Seq)␤¦«HEAD»: (List)
20:50 AlexDaniel bisect: say WHAT ‘hello’.comb(/./)
20:50 bisectable6 AlexDaniel, Bisecting by output (old=2015.12 new=796d6e1) because on both starting points the exit code is 0
20:51 bisectable6 AlexDaniel, bisect log: https://gist.github.com/f5c3​524addd2991f8104f2b1fd11bb3f
20:51 bisectable6 AlexDaniel, (2016-10-24) https://github.com/rakudo/rakudo/commit/​1794328cfb319249d35c9ca3e08c2adac2b8f529
20:51 AlexDaniel lizmat: is it OK if it's not Seq anymore?
20:52 notviki To point out the obvious: Rakudo's behaviour at any point does *not* define behaviour Perl 6. The roast does.
20:53 AlexDaniel sure, but I'm just wondering if this change was made on purpose
20:53 labster joined #perl6
20:53 lizmat AlexDaniel notviki: I've wondered about that myself
20:54 notviki m: say WHAT ‘hello’.comb(/sdfsdfsdfsd/)
20:54 camelia rakudo-moar 796d6e: OUTPUT«(List)␤»
20:54 AlexDaniel notviki: but to be honest I'm not sure why you had to point that out
20:54 AlexDaniel for example
20:55 AlexDaniel commit: HEAD~100,HEAD say so '2' ~~ /<:Digit>/
20:55 committable6 AlexDaniel, ¦«HEAD~100»: True␤¦«HEAD»: False
20:55 AlexDaniel just because there's no test doesn't mean anything in this context
20:55 AlexDaniel it just means that there's no test…
20:55 b2gills with .comb returning Seq Rakudo can be smarter about not producing all of the values of a long string
20:56 b2gills or in the case of $*IN.comb waiting until Ctrl-D
20:57 notviki AlexDaniel: just saw you comparing old and new behaviours
20:57 lizmat b2gills: I agree, but sometimes the values *are* all generated already, and making it a Seq *then* will make things slower again
20:57 notviki Like that -Inf thing
20:58 notviki Not everything's a bug
20:58 notviki or the leap-year thing
20:58 AlexDaniel that's right
20:58 AlexDaniel notviki: so here's the thing
20:58 notviki bisectable6: say so '2' ~~ /<:Digit>/
20:58 bisectable6 notviki, Bisecting by output (old=2015.12 new=796d6e1) because on both starting points the exit code is 0
20:58 AlexDaniel notviki: I've parsed out all m: queries for the past year
20:58 notviki :o
20:58 bisectable6 notviki, bisect log: https://gist.github.com/4616​77c03daec46357d9bc7ac33d8d17
20:58 bisectable6 notviki, (2016-12-27) https://github.com/rakudo/rakudo/commit/​8163113ade68e764a16fcf04b0a7a4da1c643156
20:58 AlexDaniel notviki: and ran each query on 2015.12, somewhere around where this query was made and on HEAD
20:59 AlexDaniel now I filtered out everything that has same output
20:59 AlexDaniel and now I'm going through everything that's left…
20:59 notviki How much remains?
20:59 AlexDaniel a couple of thousands
20:59 AlexDaniel it's mostly changes in error messages and stuff
20:59 notviki :O
20:59 notviki OK
20:59 notviki I didn't know you were doing that
21:00 AlexDaniel there are 31 thousands m: queries just on this channel alone in the last year
21:00 AlexDaniel which is suspiciously too much, but it looks alright
21:00 Tonik joined #perl6
21:01 dalek doc: fafe0dd | samcv++ | / (2 files):
21:01 dalek doc: Darker and nicer colors for grammars
21:01 dalek doc: review: https://github.com/perl6/doc/commit/fafe0dd761
21:01 AlexDaniel so I've found some actual regressions already, but yes, some cooperation would be nice. I think I know the purpose of roast ;)
21:02 notviki OK, my bad :)
21:03 arnsholt AlexDaniel: Oh, you're checking the output of evalbot usages over the last year with the same code on latest Rakudo? That's a really neat idea!
21:03 AlexDaniel yea
21:04 AlexDaniel I've automated everything that could be automated, but still it's a lot of work
21:05 notviki oh wow, Carrie Fisher died
21:06 AlexDaniel commit: 2015.12,HEAD say $*PERL.version.perl
21:06 committable6 AlexDaniel, ¦«2015.12»: Version.new('6.c')␤¦«HEAD»: v6.c
21:06 AlexDaniel m: say v6.c
21:06 camelia rakudo-moar 796d6e: OUTPUT«v6.c␤»
21:07 AlexDaniel wow, I didn't know you could do that
21:07 AlexDaniel m: say v42
21:07 camelia rakudo-moar 796d6e: OUTPUT«v42␤»
21:13 notviki .oO( use v6.c )
21:14 gfldex m: say v42.WHAT
21:14 camelia rakudo-moar 796d6e: OUTPUT«v42.WHAT␤»
21:14 AlexDaniel xD
21:14 b2gills m: say (v42).WHAT
21:14 camelia rakudo-moar 796d6e: OUTPUT«(Version)␤»
21:17 notviki did it die waiting to gist stuff?
21:17 AlexDaniel I think so
21:17 notviki use moar start {} blocks
21:17 unicodable6 joined #perl6
21:17 notviki IRC::Client should probably make ping stuff run in its own thread
21:18 AlexDaniel notviki: I think there's some issue with the scheduler or something
21:18 AlexDaniel haven't managed to get my hands on it yet
21:18 sufrostico joined #perl6
21:19 AlexDaniel evalable6: sleep 7
21:19 AlexDaniel evalable6: help
21:19 AlexDaniel hmm
21:19 evalable6 AlexDaniel, rakudo-moar 796d6e1: OUTPUT«»
21:19 evalable6 AlexDaniel, Like this: evalable6: say ‘hello’; say ‘world’
21:20 arnsholt AlexDaniel++ # Excellent show of initiative!
21:20 arnsholt AlexDaniel: Yeah, not to mention that you can't really automate figuring out if differing outputs is a regression, a bugfix or simply due to code involving rand() and the like
21:21 AlexDaniel Method 'type' not found for invocant of class 'Int'
21:21 AlexDaniel No such method 'type' for invocant of type 'Int'
21:22 AlexDaniel ↑ this stuff is getting a bit annoying
21:22 AlexDaniel (same issue, but the error message is now a bit different)
21:27 pierre_ joined #perl6
21:27 AlexDaniel commit: 2015.12,HEAD my $x; .base: 16 for (1..40000).hyper: :2batch; say now - INIT now
21:27 AlexDaniel I wonder if anybody cares about .hyper …
21:27 committable6 AlexDaniel, ¦«2015.12»: 2.318415␤¦«HEAD»: «timed out after 10 seconds, output»:  «exit signal = SIGHUP (1)»
21:28 AlexDaniel oh, it works, it's just slow
21:33 notviki m: .base: 16 for (1..40000); say now - INIT now
21:33 camelia rakudo-moar d810d4: OUTPUT«0.105744511␤»
21:33 notviki m: .base: 16 for (1..40000).hyper: :10000batch; say now - INIT now
21:33 camelia rakudo-moar d810d4: OUTPUT«0.2348094␤»
21:34 notviki m: .base: 16 for (1..40000).race: :10000batch; say now - INIT now
21:34 camelia rakudo-moar d810d4: OUTPUT«0.30053291␤»
21:34 notviki m: .base: 16 for (1..40000).race: :10000batch; say now - INIT now
21:34 camelia rakudo-moar d810d4: OUTPUT«0.2065669␤»
21:37 dalek doc: f1ad264 | gfldex++ | doc/Type/Version.pod6:
21:37 dalek doc: tell how version literals interact with .
21:37 dalek doc: review: https://github.com/perl6/doc/commit/f1ad26444a
21:37 synopsebot6 Link: http://doc.perl6.org/type/Version
21:38 AlexDaniel gfldex++
21:39 AlexDaniel m: my $x = do while (1) { LAST { exit }; };
21:39 camelia rakudo-moar d810d4: ( no output )
21:39 AlexDaniel … ?
21:39 AlexDaniel bisect: my $x = do while (1) { LAST { exit }; };
21:39 bisectable6 AlexDaniel, Bisecting by exit signal (old=2015.12 new=d810d44). Old exit signal: 1 (SIGHUP)
21:40 bisectable6 AlexDaniel, bisect log: https://gist.github.com/2c56​ab438868d94d64f9d83ce10bb767
21:40 bisectable6 AlexDaniel, (2015-12-29) https://github.com/rakudo/rakudo/commit/​386905f6f62f9fa3525c887a8a86fa48b22b4b35
21:46 travis-ci joined #perl6
21:46 travis-ci Doc build failed. Wenzel P. P. Peppmeyer 'tell how version literals interact with .'
21:46 travis-ci https://travis-ci.org/perl6/doc/builds/187073390 https://github.com/perl6/doc/com​pare/fafe0dd7619c...f1ad26444afe
21:46 travis-ci left #perl6
21:48 rurban joined #perl6
21:48 AlexDaniel m: say 'Life, the Universe, and Everything'.WHY
21:48 camelia rakudo-moar d810d4: OUTPUT«(Any)␤»
21:48 AlexDaniel :(
21:49 notviki It was changed to be a more accurate quote
21:49 AlexDaniel m: say 'Life, the Universe and Everything'.WHY
21:49 camelia rakudo-moar d810d4: OUTPUT«42␤»
21:49 AlexDaniel right
21:49 AlexDaniel thanks, bisectable… ;)
21:52 Gasher joined #perl6
22:01 bjz joined #perl6
22:05 TEttinger joined #perl6
22:07 dalek doc: 2718c1b | gfldex++ | doc/Language/operators.pod6:
22:07 dalek doc: add (normal) stub operator to index
22:07 dalek doc: review: https://github.com/perl6/doc/commit/2718c1b98b
22:07 synopsebot6 Link: http://doc.perl6.org/language/operators
22:19 b2gills joined #perl6
22:22 notbenh joined #perl6
22:30 jp_ joined #perl6
22:37 Guest85106 Hi,  I need some help about the following perl6 code https://gist.github.com/anonymous​/249e7a564fe52f3f2a09fefc4a514127. As you can see, according to the Grammar::Tracer, the parsing  seems ok but my $scr variable is not assigned. Do you have any idea ?
22:40 * notviki looks
22:42 notviki Guest85106: it's the ending "\n"
22:43 notviki Guest85106: just stick a space before the ending curlie in rule TOP
22:44 notviki Guest85106: and Grammar::Tracer correctly tells you what your rule TOP matched, but because that didn't match the entire string, .parse() fails (see also .subparse method)
22:47 travis-ci joined #perl6
22:47 travis-ci Doc build passed. Wenzel P. P. Peppmeyer 'add (normal) stub operator to index'
22:47 travis-ci https://travis-ci.org/perl6/doc/builds/187079651 https://github.com/perl6/doc/com​pare/f1ad26444afe...2718c1b98b9c
22:47 travis-ci left #perl6
22:47 dugword joined #perl6
22:57 pierre_ joined #perl6
23:00 Guest85106 Many Thanks, I'm trying ...
23:02 samcv let me ask here. so this recent change the "\c[LINE FEED (LF)]" broke and all the other control characters names
23:02 nebuchadnezzar joined #perl6
23:02 samcv so what I am thinking about doing, is temporarily just having the 'name's' for these control characters to be their Canonical Unicode alias names
23:03 samcv since control characters technically don't have names, but they have aliases, we should support all the alias names, because the unicode 1 names have collisions
23:03 Guest85106 You win .... You are a magician. many thanks
23:03 samcv and that will change it from "\c[LINE FEED (LF)]" to "\c[LINE FEED]" (the only 6.c-errata test that uses this)
23:04 lostinfog joined #perl6
23:04 bjz joined #perl6
23:04 samcv bisectable6, say "\c[LINE FEED]".ord
23:05 bisectable6 samcv, On both starting points (old=2015.12 new=ca919d9) the exit code is 1 and the output is identical as well
23:05 bisectable6 samcv, Output on both points: ===SORRY!=== Error while compiling /tmp/ZJiGD9espu␤Unrecognized character name LINE FEED␤at /tmp/ZJiGD9espu:1␤------> say "\c[LINE FEED⏏]".ord
23:05 samcv yeah so this will FIX that 6.c test
23:05 samcv and break the \c[LINE FEED (LF)] one, since we would be using the actual unicode name aliases, not unicode 1 names
23:06 samcv these are all the alias names: ftp://ftp.unicode.org/Public/U​CD/latest/ucd/NameAliases.txt
23:07 notviki Any time.
23:33 Axord joined #perl6
23:34 notviki m: "\c[LINE FEED]".say
23:34 camelia rakudo-moar ca919d: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unrecognized character name LINE FEED␤at <tmp>:1␤------> 3"\c[LINE FEED7⏏5]".say␤»
23:34 notviki committable6: 2015.12 "\c[LINE FEED]".say
23:34 committable6 notviki, ¦«2015.12»: ===SORRY!=== Error while compiling /tmp/e63_jLRs6A␤Unrecognized character name LINE FEED␤at /tmp/e63_jLRs6A:1␤------> "\c[LINE FEED⏏]".say «exit code = 1»
23:37 AlexDaniel m: my $v1 = v1.02; my $v2 = Version.new("v1.02"); say $v1.perl; say $v2.perl
23:37 camelia rakudo-moar ca919d: OUTPUT«v1.02␤Version.new('v.1.02')␤»
23:37 AlexDaniel huh, the difference
23:38 AlexDaniel this one is quite interesting
23:38 AlexDaniel commit: 2015.12,HEAD my $i = 30; say permutations( +(^$i).join.comb ).elems
23:39 committable6 AlexDaniel, ¦«2015.12»: 3041409320171337804361260816606476884​4377641568960512000000000000␤¦«HEAD»: Cowardly refusing to permutate more than 20 elements, tried 50␤  in block <unit> at /tmp/s9AE91mpjY line 1␤ «exit code = 1»
23:39 AlexDaniel seems like it refused to permutate for no good reason
23:41 TEttinger 20 is the max permutations where the count fits in 64 bits?
23:41 AlexDaniel ya but, who said that it should fit into 64 bits? :)
23:41 TEttinger wonder why it worked a year ago?
23:42 AlexDaniel well, we can do this
23:42 AlexDaniel bisect: my $i = 30; say permutations( +(^$i).join.comb ).elems
23:42 bisectable6 AlexDaniel, Bisecting by exit code (old=2015.12 new=ca919d9). Old exit code: 0
23:42 bisectable6 AlexDaniel, bisect log: https://gist.github.com/42dd​933cd3b7d31224c757610a6f7c8a
23:42 bisectable6 AlexDaniel, (2016-12-06) https://github.com/rakudo/rakudo/commit/​ab3a59c393e620654b788d89eed818b13b7e92a1
23:43 AlexDaniel huh
23:43 AlexDaniel ok, we're looking at something wrong
23:43 AlexDaniel bisect: new=ab3a59c3^ my $i = 30; say permutations( +(^$i).join.comb ).elems
23:43 bisectable6 AlexDaniel, Bisecting by output (old=2015.12 new=ab3a59c3^) because on both starting points the exit code is 0
23:43 bisectable6 AlexDaniel, bisect log: https://gist.github.com/19bb​090460b90bce7df348d4c8ae7e43
23:43 bisectable6 AlexDaniel, (2016-09-09) https://github.com/rakudo/rakudo/commit/​8a66833d9b8d05b89ea5c0069370a67ec7374b8c
23:44 AlexDaniel commit: 8a66833^,8a66833 my $i = 30; say permutations( +(^$i).join.comb ).elems
23:44 committable6 AlexDaniel, ¦«8a66833^»: 304140932017133780436126081660647688443​77641568960512000000000000␤¦«8a66833»: 1
23:44 AlexDaniel :OOOO
23:44 AlexDaniel but yes
23:44 AlexDaniel alright, I'll get to it. I have a bunch of candidates for tickets here
23:45 notviki sweet
23:45 notviki m: dd my $max = $*KERNEL.bits == 32 ?? 13 !! 20;
23:45 camelia rakudo-moar ca919d: OUTPUT«Int $max = 20␤»
23:45 notviki m: say 2**20
23:45 camelia rakudo-moar ca919d: OUTPUT«1048576␤»
23:46 AlexDaniel I'm actually only 1/6 through… :(
23:46 notviki m: say [*] 1..20
23:46 camelia rakudo-moar ca919d: OUTPUT«2432902008176640000␤»
23:46 notviki m: say [*] 1..1048576
23:47 camelia rakudo-moar ca919d: OUTPUT«(timeout)»
23:48 AlexDaniel notviki: I remember you've been talking about the amount of tickets closed (the point was that it might be hard to see it)
23:49 AlexDaniel every single bug fixed, every change to error messages… it's all right in front of me now :)
23:49 notviki fwiw, the limit is OK with me, if it's needed for more performant code. The count of permutations is 1 followed by 262140 zeros. If you have the means and the need to permute something larger you can afford to write your own alog
23:49 AlexDaniel the progress during the last year is tremendous
23:50 AlexDaniel notviki: I'm fine with that too. But the thing is, I think I'll create a bunch of tickets anyway, and then we will close half of them
23:51 AlexDaniel because in this case for example it is unclear if the new behavior was wanted or not
23:51 AlexDaniel it will be a good opportunity to write some tests too :P
23:52 notviki 2,900 commits
23:52 notviki https://github.com/rakudo/​rakudo/compare/v6.c...nom
23:52 notviki m: say "{Int(2900/365)} commits per day"
23:52 camelia rakudo-moar ca919d: OUTPUT«7 commits per day␤»
23:53 AlexDaniel yeah I know, whateverable has over 5000 builds
23:53 notviki AlexDaniel: which new behaviour do you mean?
23:54 AlexDaniel notviki: generally
23:54 notviki Ah
23:54 notviki sure
23:54 notviki The .elems returning 1 was a bug. That 1 is a Failure object that it silenced by wrapping it into a llist
23:54 AlexDaniel yes but
23:55 AlexDaniel commit: 2015.12,HEAD my $i = 30; say permutations( +(^$i).join.comb ).elems
23:55 committable6 AlexDaniel, ¦«2015.12»: 3041409320171337804361260816606476884​4377641568960512000000000000␤¦«HEAD»: Cowardly refusing to permutate more than 20 elements, tried 50␤  in block <unit> at /tmp/HsPuDOvnrK line 1␤ «exit code = 1»
23:55 AlexDaniel I'm not sure if that huge number is the right answer
23:55 AlexDaniel but if it is, then we should at least discuss if we actually want to throw here
23:55 notviki m: say [*] 1..30
23:55 camelia rakudo-moar ca919d: OUTPUT«265252859812191058636308480000000␤»
23:55 Xliff How do you re-export an exportable symbol across modules?
23:55 vendethiel joined #perl6
23:55 Xliff Say I have module B, used by module A, and module A is used by the main script.
23:56 Xliff I want to have the symbols in B in MAIN::
23:56 notviki m: say +(^$i).join.comb
23:56 camelia rakudo-moar ca919d: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Variable '$i' is not declared␤at <tmp>:1␤------> 3say +(^7⏏5$i).join.comb␤»
23:56 Xliff Without having Main using B becuase that would be ugly.
23:56 notviki m: say +(^30).join.comb
23:56 camelia rakudo-moar ca919d: OUTPUT«50␤»
23:56 notviki :/
23:56 Xliff Yes, this is a P5ism that I miss.
23:56 notviki AlexDaniel: that's an elaborate way to write 50 :)
23:56 notviki m: say [*] 1..50
23:56 camelia rakudo-moar ca919d: OUTPUT«304140932017133780436126081660​64768844377641568960512000000000000␤»
23:57 notviki Yeah, the number is right.
23:57 Xliff I'm about to dip, so I will prolly ask again later. Looks like you guys are busy.
23:57 Xliff Back pain is calling for muscle relaxers.
23:58 notviki Xliff: I don't know the answer.
23:58 Xliff notviki: Fair enough.
23:58 notviki m: say permutations 100
23:58 camelia rakudo-moar ca919d: OUTPUT«Cowardly refusing to permutate more than 20 elements, tried 100␤  in block <unit> at <tmp> line 1␤␤»
23:59 pierre_ joined #perl6
23:59 notviki m: say [*] 1..20
23:59 camelia rakudo-moar ca919d: OUTPUT«2432902008176640000␤»
23:59 Xliff I know there is an example somewhere with an EXPORT::DEFAULT definition I can use.
23:59 Xliff Trick is finding it.
23:59 notviki Ah, I was wrong above. We don't allow 1 followed by 200,000 permutations. Just ^ that many
23:59 notviki Xliff: this one? https://docs.perl6.org/lang​uage/modules#Introspection

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

Perl 6 | Reference Documentation | Rakudo