ยปรถยซ Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
buggable ๐ŸŽบ๐ŸŽบ๐ŸŽบ It's time for the monthly Accidental /win Lottery ๐Ÿ˜๐Ÿ˜๐Ÿ˜ We have 2 ballots submitted by 2 users! DRUM ROLL PLEASE!... 00:00
And the winning number is 10! Congratulations to nine! You win a roll of duck tape!
00:01 comborico1611 left 00:16 mcmillhj joined 00:18 markong left 00:21 ambs joined 00:29 zachk left 00:48 comborico1611 joined
comborico1611 m: say "Word count: ", $/.elems if "I have a dream" ~~ / \w+ \ 00:49
camelia 5===SORRY!5===
Unrecognized regex metacharacter \ (must be quoted to match literally)
at <tmp>:1
------> 3 $/.elems if "I have a dream" ~~ / \w+ \7โ5<EOL>
Unable to parse regex; couldn't find final '/'
at <tmp>:1
------> 3 $/.elโ€ฆ
comborico1611 say "Word count: ", $/.elems if "I have a dream" ~~ / \w+ / 00:50
evalable6 Word count: 0
comborico1611 Why no word count?
00:51 guifa joined
guifa Has anyone had much trouble with the syntax highlighter in Atom? It's having trouble with a regex and turning everything after it a single color 00:52
00:54 comborico1611 left
Herby_ guita, can you throw it up on gist? 00:54
00:58 vcv_ left
TEttinger Herby_: you may have meant guifa? 00:59
I've had similar issues before, but long ago
I think I used \C[APOSTROPHE] or something instead of ' 01:00
guifa gist.github.com/alabamenhu/81c6c2d...4ddb2b2f5e
TEttinger I think the \\ escapes the backslash, so the ' isn't escaped 01:01
not sure
may need some spaces if only to make Atom see it clearly 01:02
01:03 raynold joined
sacomo hi all 01:04
guifa Yeah that's what I was thinking. 01:08
Spaces didn't help. Only solution was to throw it in a variable
Which actually honestly a bit more readable, I just didn't know how common it was and if there was a good place to report minor issues like that 01:09
01:19 athenot joined 01:20 retupmoca left 01:22 athenot_ joined, retupmoca joined 01:25 athenot left
AlexDaniel m: say "Word count: ", +"I have a dream".comb(/ \w+ /) 01:27
camelia Word count: 4
AlexDaniel m: say "Word count: ", +"I have a dream".words
camelia Word count: 4
sacomo I am trying to confirm that an object that I pass around is the same version ever time it is used. Right now I am testing by doing something like this in the class: ENTER { say .WHERE }, this executes every time it is used, and is printing the same memory address every time. Is that a confirmation that this is the same version of the object?
moritz it is, but it's not reliable 01:28
use .WHICH for identity 01:29
sacomo ok, thanks
moritz a compacting GC can move objects around, which might lead to a changing .WHERE
sacomo ok
is there also any way to determine how many instances of a class exist in memory at a given time? 01:30
moritz only if the class counts 01:33
sacomo ok, I am testing with a state variable also, inside the ENTER {}. seems to work ok. 01:34
thanks
01:37 mcmillhj left 01:45 ilbot3 left 01:46 Zoffix joined
Zoffix guifa: Yeah, there are some bugs in the highligher. You can file the Issue here: github.com/perl6/atom-language-perl6 though I think our resident expert on that stuff is currently busy with More Important Thingsโ„ข, so it might take awhile before someone fixes it. 01:47
guifa: it's also the same highligher used by GitHub to highlight code samples, so if you got the know-how to fix it, that'd be awesome :) 01:48
guifa Zoffix: Sadly, probably out of my league. =\
Zoffix guifa: if you're well-versed with setting up your keyboard to type fancy Unicode, the '\\' construct is a lot more readable as ๏ฝข\๏ฝฃ 01:50
guifa That I am, actually. I'm doing a diplomatic edition of an old incunable so my keyboard is set to do some ... interesting things ha
Maybe I should make a perl6 keyboard layout ... that I could :-)
In the meantime I just used <!after $backslash> $open-brace ... which ended up looking better than any quoted / escaped options. 01:52
01:56 ilbot3 joined, ChanServ sets mode: +v ilbot3
Zoffix guifa: looks like the highligher doesn't know that adverbs on s/// can take args. You could workaround with method form of that operator: gist.github.com/zoffixznet/bc9f805...b188665ce2 01:56
guifa: and I filed an Issue: github.com/perl6/atom-language-perl6/issues/84 01:59
Zoffix flies away into the sunset, cape flapping in the wind
01:59 Zoffix left 02:20 araraloren joined, guifa left 02:24 kt_ left 02:52 khisanth__ left, skids left 03:03 eliasr left 03:04 khisanth__ joined 03:13 hobbified left 03:15 Chigger joined 03:20 Chigger left 03:26 hobbs joined, hobbs left, hobbs joined 03:36 Chigger joined 03:49 kurahaupo_ is now known as kurahaupo 03:53 Chigger left 04:02 khisanth__ left 04:05 AlexDaniel left 04:09 retupmoca left 04:11 Herby_ left 04:15 khisanth__ joined 04:24 irco left 04:59 khw left
Geth doc: e8d5cf7eb3 | ้™ˆๆข“็ซ‹++ | doc/Language/operators.pod6
Fix #1983

Though I don't know if we can replace `infix_%26%26` to `infix &&`.
04:59
synopsebot Link: doc.perl6.org/language/operators
doc: W4anD0eR96 self-assigned Convert 1-file docs to epub with TOC github.com/perl6/doc/issues/1981
b5d86a18fa | (JJ Merelo)++ | t/02-pod-valid.t
05:02
05:06 andrzejk_ joined 05:20 sauvin joined, athenot_ left 05:37 athenot joined 05:56 andrzejk_ left 06:04 wamba joined 06:19 jmerelo joined, andrzejk_ joined
06:22 sena_kun joined 06:27 [Sno] joined 06:29 sno left 06:31 Guest43854 joined 06:35 stee joined 06:36 stee3 left, wamba left
jmerelo Service unavailable in whateverable.6lang.org ... travis-ci.org/perl6/doc/jobs/373354420 06:40
Good morning
06:50 darutoko joined 06:57 troys left 06:58 Guest43854 left 07:01 dwarring left
jmerelo p6: say 'รฐu' ~~ rx/.u/; say 'รฐu' ~~ m/.u/; 07:02
camelia ๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
jmerelo p6: say 'รฐu' ~~ rx/.u/; say 'รฐu' ~~ m/.u/; say 'รฐu' ~~ /.u/; 07:12
camelia ๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
jmerelo p6: my $r-var = '.u'; say 'รฐu' ~~ rx/$r-var/; say 'รฐu' ~~ m/$r-var/; say 'รฐu' ~~ /$r-var/; 07:13
camelia Nil
False
Nil
jmerelo p6: my $r-var = m'.u'; say 'รฐu' ~~ rx/$r-var/; say 'รฐu' ~~ m/$r-var/; say 'รฐu' ~~ /$r-var/; 07:14
camelia Use of uninitialized value of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
Nil
False
Nil
in block <unit> at <tmp> line 1
jmerelo p6: my $r-var = rx'.u'; say 'รฐu' ~~ rx/$r-var/; say 'รฐu' ~~ m/$r-var/; say 'รฐu' ~~ /$r-var/; 07:15
camelia ๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
jmerelo p6: my $r-var = /.u/; say 'รฐu' ~~ rx/$r-var/; say 'รฐu' ~~ m/$r-var/; say 'รฐu' ~~ /$r-var/; 07:17
camelia ๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
๏ฝขรฐu๏ฝฃ
07:41 parv joined 07:43 rindolf joined 07:47 domidumont joined
Geth doc: b86c6ee320 | (JJ Merelo)++ | doc/Language/faq.pod6
Adds FAQ on entering special characters closes #1850
07:51
synopsebot Link: doc.perl6.org/language/faq
07:53 domidumont left 07:54 domidumont joined
stmuk wow that was a long p6weekly 07:55
lizmat clickbaits p6weekly.wordpress.com/2018/04/30/...es-galore/ 07:59
yeah, I noticed :-)
08:01 robertle joined 08:03 aindilis` joined 08:04 aindilis left 08:14 scimon joined 08:27 wamba joined 08:31 molaf joined 08:44 andrzejk_ left 08:45 andrzejk_ joined 08:50 andrzejk_ left 08:55 andrzejk_ joined
moritz lizmat++ 08:57
Geth ยฆ doc: W4anD0eR96 self-unassigned Convert 1-file docs to epub with TOC github.com/perl6/doc/issues/1981 09:11
09:17 andrzejk_ left, andrzejk_ joined 09:21 parv left 09:41 Woodi joined
Woodi hallo :) 09:41
Geth doc/master: 13 commits pushed by (Luca Ferrari)++
review: github.com/perl6/doc/compare/b86c6...b7432a73db
09:51
09:51 zakharyas joined
araraloren hi 09:52
09:52 Ven`` joined, Ven`` left 09:53 Ven`` joined
Geth doc: 01233ad35a | (Luca Ferrari)++ | README.md
POD -> Pod coherently with the rest of the readme.
09:53
jmerelo Woodi: hi! 09:55
10:02 Ven`` left, andrzejk_ left 10:03 Ven`` joined 10:06 eliasr joined 10:16 irco joined
hahainternet if i wanted to zip a list of numbers with hash keys, i can use Z but this truncates to the shortest length, i can use roundrobin, but this consumes the available keys then zips with nothing, i know in some hyper operator use they 'extend' the values indefinitely 10:21
is there a way to zip a list of numbers with hash keys in a way that will repeat hash keys in the output if there are enough #s?
Ulti do you have more keys than numbers and want to pad with some kind of undef or default value? 10:22
might just be worth padding the list of keys
hahainternet oh sorry Ulti i wanted to ideally repeat them 10:28
but it's more of a theoretical question, wondering if there's operator forms or variations i don't know 10:29
i can obviously take the keys list and make a list that's long enough
but i wondered if there was some fancy form :)
Ulti out of curiosity what is it you're doing? 10:32
jnthn m: my %h = a => 'x', b => 'c'; my @numbers = 1..10; dd (|%h.keys xx *) Z @numbers 10:33
camelia (("b", 1), ("a", 2), ("b", 3), ("a", 4), ("b", 5), ("a", 6), ("b", 7), ("a", 8), ("b", 9), ("a", 10)).Seq
10:33 epony left
jnthn m: my %h = a => 'x', b => 'c'; my @numbers = 1..10; dd %h.keys <<,<< @numbers 10:33
camelia (("a", 1), ("b", 2), ("a", 3), ("b", 4), ("a", 5), ("b", 6), ("a", 7), ("b", 8), ("a", 9), ("b", 10))
jnthn The latter ain't lazy, the first is 10:34
m: my %h = a => 'x', b => 'c'; my @numbers = 1..10; dd (|%h.keys, *) Z @numbers
camelia (("b", 1), ("a", 2), ("a", 3), ("a", 4), ("a", 5), ("a", 6), ("a", 7), ("a", 8), ("a", 9), ("a", 10)).Seq
Ulti xx * ooooo
thats neat 10:35
jnthn That also works (Z pays attention to * at the end and takes it to mean repeat)
oh, but it repeats the *last* element
So it's not what you want here :)
Ulti ah
jnthn Whereas the hyper form does seem to do the right thing, and the xx one too
10:36 rindolf left, andrzejk_ joined 10:37 epony joined 10:41 rindolf joined
Woodi jnthn: links to MoarVM releases are busted, eg: moarvm.org/releases/2018.04.tar.gz ; no 'MoarVM-' 10:42
10:42 markong joined
jnthn Woodi: Links from where? 10:44
hahainternet Ulti: it has no practical purpose, a friend in another channel was doing it in python
10:45 notbenh left
hahainternet and every time someone does something neat in python, i like to wonder how i could do that in perl 10:45
jnthn: tyvm that is indeed a better solution to python as usual :)
jnthn Welcome :)
Woodi: oh, releases page on the site...I see
hahainternet jnthn: i didn't realise you could hyper to , but it was that hyper behaviour i was familiar with, and the ability to 'repeat the last' and 'repeat the block' is equally a very useful tool 10:46
if i could remember the code for unicode thumbs up i'd type that a lot
10:57 epony left
lizmat ๐Ÿ‘ 11:00
(ready to copy-paste)
titsuki bisectable: my $a = 0; say do for ^10 { $a++; $a } 11:01
bisectable6 titsuki, On both starting points (old=2015.12 new=8cd70d1) the exit code is 0 and the output is identical as well
titsuki, Output on both points: ยซ(10 10 10 10 10 10 10 10 10 10)โคยป
jmerelo The whateverable.6lang.org site keeps returning "service unavailable" for a while... One of the two tests keeps erroring 11:02
titsuki bisectable: my $a = 0; say do for ^10 { $a++; $a.Int }
bisectable6 titsuki, On both starting points (old=2015.12 new=8cd70d1) the exit code is 0 and the output is identical as well
titsuki, Output on both points: ยซ(1 2 3 4 5 6 7 8 9 10)โคยป
jmerelo Just announced a mini-hackathon in Granada next Friday granada.pm/blog/squashathon/ 11:03
lizmat jmerelo++
jmerelo If you happen to be around, there will be lots of fun, stickers and beer (or your favorite $*BEVERAGE) with tapas.
squashable6: status 11:04
squashable6 jmerelo, โš ๐Ÿ• Next SQUASHathon in 2 days and โ‰ˆ22 hours (2018-05-05 UTC-12โŒUTC+14). See github.com/rakudo/rakudo/wiki/Mont...Squash-Day
jmerelo It's intended to start at the same time as that
buggable New CPAN upload: P5getpwnam-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz 11:06
hahainternet lizmat: i've been trying to remember the codes for everyting that's not on Compose 11:07
but all i can remember is ๔ฟฝxE2๔ฟฝx84๔ฟฝxA6 lol
lizmat has a MBP with a little touch screen above the keyboard :-)
๐Ÿ’ป 11:09
titsuki bisectable: my $a = 0; say gather for ^10 { $a++; take $a } 11:10
bisectable6 titsuki, On both starting points (old=2015.12 new=8cd70d1) the exit code is 0 and the output is identical as well
titsuki, Output on both points: ยซ(1 2 3 4 5 6 7 8 9 10)โคยป
El_Che lizmat: you're the first mbp user I met that liked the touch bar :) 11:12
lizmat El_Che: I must admit I don't use it much other than what I would normally do with function keys
but for emoji searching, it's really nice 11:13
And if I don't want to use it I can
^^ this was typed with the suggestions on the touch bar 11:14
El_Che most people grumble "where is my esc key" :)
lizmat it's still at the same place, but you can't feel it, that's true 11:15
11:16 kurahaupo left, kurahaupo_ joined
Ulti hahainternet: hmm Im not sure how you would do that easily in Python actually 11:25
unless zip has that behaviour by default and I never noticed
lizmat m: dd <a b c> Z <d e f>
camelia (("a", "d"), ("b", "e"), ("c", "f")).Seq
lizmat m: dd <a b c> Z, <d e f> # , is default for Z 11:26
camelia (("a", "d"), ("b", "e"), ("c", "f")).Seq
Ulti ???
evalable6 Stub code executed
in block <unit> at /tmp/dhHcvufSS2 line 1
Ulti uh oh what have I done 11:27
11:29 epony joined
lizmat Ulti: you type something that evalable6 thought was Perl 6 code and then executed it and told you the result 11:36
buggable New CPAN upload: P5getgrnam-0.0.1.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.1.tar.gz
Geth doc: 8f45c1caa3 | (JJ Merelo)++ | doc/Language/grammar_tutorial.pod6
Adds a mini-tutorial on grammar inheritance

With roles thrown in for good measure. That would close #1816
11:37
doc: deef7b455b | (JJ Merelo)++ | util/trigger-rebuild.txt
Triggers rebuild
synopsebot Link: doc.perl6.org/language/grammar_tutorial
11:42 andrzejk_ left
Geth doc: 6f170fc507 | ้™ˆๆข“็ซ‹++ (committed using GitHub Web editor) | README.zh.md
Sync
11:42
11:43 molaf left
Geth doc: 2437626325 | ้™ˆๆข“็ซ‹++ (committed using GitHub Web editor) | README.md
Update README.md
11:43
doc: 29be0e362f | ้™ˆๆข“็ซ‹++ (committed using GitHub Web editor) | README.zh.md
Sync
11:44
11:44 molaf joined 11:48 epony left 11:54 epony joined
hahainternet Util: there was no nice way that properly expressed intentions like there is in 6 11:54
11:55 MasterDuke left 12:02 molaf left 12:03 molaf joined
buggable New CPAN upload: Chart-Gnuplot-0.0.4.tar.gz by TITSUKI modules.perl6.org/dist/Chart::Gnupl...an:TITSUKI 12:06
12:13 epony left, epony joined 12:17 Actualeyes left, Actualeyes joined, wamba left
Util hahainternet: s/Util/Ulti/ ;^) 12:31
yoleaux 13 Apr 2018 16:22Z <Zoffix> Util: FWIW, there's irc.p6c.org for IRC users if you don't to be dropped any time hack hangs
hahainternet Util: my apologies you similarly nicked person :)
Util hahainternet: No problem, has happened before. Half of why I spoke was to signal Ulti if he missed out being alerted to your message. 12:33
hahainternet it happens to me on a few sites a lot as i have two or three letter nicks 12:34
and so perl lists named that way function as an @at for me :(
Util Ouch!
12:36 lizmat left 12:41 mcmillhj joined
Ulti yeah I like reading what people try and mention Util for :D 12:42
I'd change if it wasnt for having had this nick since the dawn of time
jmerelo .tell Zoffix there's some problem with builds; I'm using trigger-rebuild to do it to no avail.
yoleaux jmerelo: I'll pass your message to Zoffix.
12:43 AlexDaniel joined
jmerelo AlexDaniel: hi o/ 12:44
[Coke] "some problem"?
AlexDaniel hello :)
[Coke] if you're trying to get new versions of packages installed, you have to do it on the server itself. Is that what the issue is?
12:44 Zoffix joined
jmerelo [Coke]: Can't tell from logs. They simply stopped yesterday. 12:44
Zoffix jmerelo: what sort of problem?>
jmerelo [Coke]: shouldn't adding spaces to trigger-rebuild be enough?
Zoffix Also triggers rebuild, and bumps up the bigpage version to the one 12:45
that includes this fix
jmerelo Zoffix: it's stopped building, and adding spaces to util/trigger-rebuild does not, well, trigger any rebuild...
Zoffix jmerelo: the "bumps up the bigpage version"... Did anyone actually upgrade the module on the server?
jmerelo Zoffix: yep, I did 12:46
Zoffix jmerelo: and you upgraded it in rakudobrew user?
jmerelo Zoffix: I had no idea I had to do that... Or how that's done. 12:47
12:47 windyhouse joined
Zoffix jmerelo: what user did you upgraded it as? (I'm assuming "yep, I did" refers to upgrading the module on hack, right?:) 12:47
Still 0.3.2 installed 12:48
Zoffix upgrades
jmerelo I bumped up the version in META6.json in github.com/perl6/perl6-pod-to-bigpage, bumped up in dependencies in perl6/doc, trigger rebuild...
12:48 andrzejk_ joined
jmerelo Zoffix: I don't have an user there. I tought that editing util/trigger-rebuild was enough. 12:48
12:49 kurahaupo joined
mcmillhj I have been trying to wrap my head around why this junction doesn't function the same as a loop: gist.github.com/mcmillhj/f66fa2bd4...ca0f55068d Any thoughts? 12:49
[Coke] jmerelo: none of those things upgrades the installed module on the server.
Zoffix jmerelo: right, that won't upgrade it on the server, as the build uses server-wide install of perl6 and one of the admins github.com/perl6/infrastructure-do...nistration has to upgrade it (using rakudobrew user). You could figure out how to make the doc build use its own installation and be upgradable through meta file changes or ask moritz if you could have access
to rakudobrew user on hack to do upgrades yourself.
mcmillhj I can also post to StackOverflow for posterity 12:50
[Coke] Zoffix: I'm on that box now. want me to trigger the module update?
12:50 kurahaupo left
jmerelo mcmillhj: please do. 12:50
[Coke]: yes, please.
12:50 kurahaupo joined
[Coke] jmerelo: making sure I'm not stepping on zoffix's toes. 12:50
Zoffix jmerelo: if you go the META file route, note that zef doesn't immediatelly know about new versions. There can be an ~15m delay until zef knows about new version, so you'd need to use `zef install URL-to-repo.git` 12:51
[Coke]: I updated the module
[Coke] Zoffix++
12:51 kurahaupo_ left
jmerelo Zoffix: that's not complicated to figure out, just create a humongous lib/ dir would do. But it's kind of big. If you think I need access to that server, just priv me up. 12:52
[Coke] probably wouldn't hurt to add a note about module upgrades here: github.com/perl6/infrastructure-do...rg-rebuild
Geth doc: fc2d84d550 | (Zoffix Znet)++ (committed using GitHub Web editor) | util/trigger-rebuild.txt
Update trigger-rebuild.txt
jmerelo Version changes do not happen so often...
Zoffix jmerelo: and if you go the module upgrade route, note that you also need to run `rakudobrew rehash` to update binaries shim (and there's a binary included in Pod::To::BigPage)
jmerelo Zoffix: but wait. So why is trigger-rebuild needed then? 12:53
Zoffix jmerelo: I don't think I have the authority to give sudo access to non-CLA-signed devs... Talk to moritz. It's his box.
12:53 andrzejk_ left
[Coke] if you're on the box, you can also use the force-update trick at the infra doc URL above. 12:53
Zoffix jmerelo: because updates of the site happen only on new commits (or if you `touch` some trigger file on server) and since there weren't any new commits since last (failed) update, I had to trigger the build again 12:54
[Coke] but either the trigger or force-update forces it to run asap, as opposed to whenever the next commit occurs
[Coke] stops talking and just lets zoffix handle it. :)
jmerelo [Coke]: let me see if I understand this correctly. 12:55
Zoffix stops talking and let [Coke] handle it
:)
\o
12:55 Zoffix left
jmerelo You can either edit trigger-update or dome some other magic to trigger updates, but only if you are user in the box, is that correct? 12:56
[Coke] Yes.
jmerelo That means that I can edit util/trigger-update as much as I want, it's going to do zip.
(I mean, *I* as in some random guy with no access to the box)
El_Che Zi Zeรฑor 12:57
[Coke] ... no, it means that if you touch it, a rebuild will happen.
jmerelo [Coke]: well it didn't
[Coke] but that rebuild has nothing to do with the modules installed on the box.
just like if you did a build locally, touching meta6.json doesn't install new versions of modules.
jmerelo [Coke]: what does it rebuild then? 12:58
modules for some random box user that gets triggered when a push is made to master?
[Coke]: which probably means that some modules might be available for actually doing the build, but not serving the pages. Is that correct? 12:59
12:59 lizmat joined
jmerelo so trigger-rebuild rebuilds for the build server, but not the serving-server. that's a global thing, and I need to call the superuser on watch. 13:00
13:00 Zoffix joined
Zoffix jmerelo: there's a cronjob that runs every 5 minutes. It runs this script: github.com/perl6/doc/blob/master/u...e-and-sync 13:01
jmerelo: the script runs htmlify.p6 and syncs generated HTML pages to the live site
jmerelo Zoffix: OK. But not pod2onepage, I guess.
Zoffix jmerelo: this portion makes that shell script run htmlify.p6 only if new commits happened (or force-update file exists): github.com/perl6/doc/blob/master/u...nc#L12-L18 13:02
jmerelo: and pod2onepage too
jmerelo: so the trigger-rebuilt commit is just a way to create a new commit to make this portion think there's something new in the site and the site needs to be re-generated: github.com/perl6/doc/blob/master/u...nc#L12-L18
That's it.
And just as you can sit and run htmlify.p6 on your box a thousand times, no modules will be installed. 13:03
jmerelo Zoffix: OK, thanks... Anyway, I need someone to upgrade Pod::To::OneBigPage on the server.
Zoffix Same on the build server. Triggering a rebuild, just triggers htmlify.p6 (and whatever else is needed to generate HTML website). It doesn't deal with support infrastructure, like updating modules.
jmerelo: I did that before triggering the rebuild.
It's now on 0.3.3 13:04
jmerelo Zoffix: There are many pushes since yesterday, and still, a single build log. For instance, this one 5 hours ago github.com/perl6/doc/commit/b86c6e...f292130040 13:05
But still last build log docs.perl6.org/build-log/ is stuck at 16:22 yesterday. (don't know the TZ, but still, it was like that this morning) 13:06
Zoffix zoffix@hack:~$ date
Tue May 1 13:06:16 UTC 2018
13:07 Ven`` left
jmerelo Zoffix: last build was 21 hours ago... right about when I did this commit github.com/perl6/doc/commit/82121e...b5bd2fe421 13:07
Zoffix: so maybe it failed because the 0.3.3 version was not available? 13:08
Zoffix Right, but it's supposed to sync failed build logs 13:09
jmerelo Zoffix: right... 13:10
I'm leaving for now. Will be back in 2 hours...
jmerelo heeds the call of his sofa who's crying "Siesta"
13:11 jmerelo left
Zoffix Must be nice to have culturally-approved daytime naps 13:12
Geth doc: a822a6de23 | (Will "Coke" Coleda)++ | README.it.md
whitespace
13:17
doc: 58277733f8 | (Will "Coke" Coleda)++ | xt/aspell.t
ignore non english doc
doc: 9e8a5eb2ee | (Zoffix Znet)++ (committed using GitHub Web editor) | util/trigger-rebuild.txt
Update trigger-rebuild.txt
13:25
13:27 domidumont left, zod_ joined 13:28 domidumont joined 13:30 windyhouses joined 13:31 skids joined, windyhouse left
Geth doc: 6f3db2eecf | (Zoffix Znet)++ (committed using GitHub Web editor) | Makefile
Fix hang with pod2onepage
13:33
13:40 retupmoca joined
Geth doc: 7a12dc0fa0 | (Zoffix Znet)++ (committed using GitHub Web editor) | util/trigger-rebuild.txt
Write down a copy-pasteable way to trigger a build on box
13:40
Zoffix .tell jmerelo so what happened is the pod2bigpage script hangs with --threads option. It hung on the build box and the build just sat there waiting for it (real1078m12.091s). So that's why there were no updated build logs. I reverted the change that added the --threads option to fix the build. To debug the hang, you can just run it locally as `pod2onepage --threads=2 --html -v --source-path=./doc 13:41
yoleaux Zoffix: I'll pass your message to jmerelo.
Zoffix --exclude=404.pod6,/.git` Hangs with --threads option after outputting CSS/ doesn't hang without it. 13:42
.tell The command broke up between lines. It's pod2onepage --threads=2 --html -v --source-path=./doc --exclude=404.pod6,/.git Hangs with --threads option after outputting CSS/ doesn't hang without it.
yoleaux Zoffix: I'll pass your message to The.
Zoffix .tell jmerelo The command broke up between lines. It's pod2onepage --threads=2 --html -v --source-path=./doc --exclude=404.pod6,/.git Hangs with --threads option after outputting CSS/ doesn't hang without it. 13:43
yoleaux Zoffix: I'll pass your message to jmerelo.
13:43 Zoffix is now known as The, The is now known as Zoffix
buggable New CPAN upload: P5getgrnam-0.0.2.tar.gz by ELIZABETH modules.perl6.org/dist/P5getgrnam:cpan:ELIZABETH 13:46
[Coke] Zoffix++ 13:48
13:51 sena_kun left 13:52 sena_kun joined 13:53 Zoffix left 14:00 zakharyas left, zakharyas joined
zod_ should ruby programmers move to perl6? 14:01
14:03 apathor joined, comborico1611 joined
xq this page is really nice alerts.perl6.org/ 14:03
I wish it was updated more often 14:04
14:04 lizmat left
jnthn xq: Given it's purpose is to report potential breakages that could impact people's code, I think we'd all like it to be quite rarely updated. ;-) 14:05
14:05 zakharyas left
xq hmm 14:05
jnthn xq: If you're looking for general Perl 6 news, see the Perl 6 Weekly, if you don't already read it :)
Ulti zod_: depends why they want to move and what they are relying on ruby for 14:06
buggable New CPAN upload: P5built-ins-0.0.13.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/....13.tar.gz
14:07 davercc joined
xq jnthn p6weekly.wordpress.com ? 14:07
jnthn xq: That's the one
Ulti yeah
there is also the sub reddit thats relatively good at keeping up 14:08
/r/perl6
xq I am trying to subscribe to its rss feed but everytime I scroll to the bottom of that page to click it, the page auto-loads more posts and the rss link escapes
10/10 usability
:D
Voldenet zod_: everyone should move to perl6
ideally
14:08 retupmoca left 14:09 pilne left
jnthn zod_: I don't think blanket statements of "language X users should move to language Y" ever make sense, since everyone's situation will be different. It's probably fair to say that Ruby programmers might want to give Perl 6 a look, though. :) 14:10
14:11 andrzejk_ joined 14:14 Zoffix joined 14:15 retupmoca joined
Geth doc: c3d66be58a | (Will "Coke" Coleda)++ | xt/trailing-whitespace.t
OK to check makefile for trailing space
14:16
Zoffix xq: here's the URL: p6weekly.wordpress.com/feed/ Alternatively, you could sub to pl6anet.org/atom.xml which includes the Weekly and a bunch of other Perl 6 blogs. As for alerts.perl6.org, they're meant for "emergency alerts"; basically anything the users can examine to see whether they might encounter any issues when upgrading:
rakudo.party/post/Announcing-P6ler...Developers
xq thanks Zoffix I will use the atom link
Zoffix Filed the problem as github.com/perl6/user-experience/issues/21 14:18
.tell lizmat If you have any Wordpress theming experience: looks like it's hard to reach RSS feeds for the Weekly: github.com/perl6/user-experience/issues/21
yoleaux Zoffix: I'll pass your message to lizmat.
Zoffix zod_: we have "Perl 6 from Ruby Nutshell" docs: docs.perl6.org/language/rb-nutshell As for "moving": I tried learning Ruby after learning Perl 6 and was annoyed by it, so from that I'd surmise Ruby devs might find Perl 6 enjoyable :) 14:22
14:34 troys joined, lizmat joined 14:35 lizmat_ joined, lizmat left 14:39 Zoffix left 14:41 andrzejk_ left 14:42 silug joined 14:45 lizmat_ left 14:47 davercc left
zod_ how are the employment opportunities for perl6? 14:55
14:55 Zoffix joined
Zoffix zod_: well, the language first got released only 2 years ago, so I imagine unless you get to choose your own tech to use, not many. 14:56
I choose my own tech, but even then, lots of sites/programs we got are older than 2 years, and we're not gonna spend the resources to rewrite them into Perl 6 even if it'd be nicer to have them in Perl 6. 14:57
Which is also why the "Language X devs should move to language Y" statements are a bit weird. It's often a mix of many languages. 14:59
(unless you want to be cool and popular and use only the trendiest lang and most fashionable JS framework of the week :P)
[Coke] Zoffix: which is rakudo-js, of course. 15:00
Zoffix :D
15:03 Ven`` joined 15:06 Ven`` left 15:16 jmerelo joined 15:18 molaf left
Voldenet it's not true that js devs JS are changing the framework every week 15:22
they change it every month though
s/JS//
15:22 molaf joined
Voldenet rewriting lines on the fly never works well 15:22
15:24 domidumont left
xq is perl6 reference documentation autogenerated? i.e. this page and others docs.perl6.org/type/Hash 15:25
timotimo github.com/perl6/doc/blob/master/d.../Hash.pod6 - check the source for that site
15:26 lizmat joined
xq I am curious about how the list of methods on the left is generated 15:26
"Routines supplied by class Map" 15:27
Voldenet xq: it is
xq and down
Zoffix xq: that part is autogenetated
xq is this a pod6 feature?
Zoffix xq: no
15:27 sena_kun left
xq p6doc genertes it? 15:29
Voldenet github.com/perl6/doc/blob/master/h...fy.p6#L382 15:30
I think this generates it
15:30 domidumont joined
xq umm 15:32
jmerelo xq: right, it's generated by htmlify.p6 as Voldenet says.
yoleaux 13:41Z <Zoffix> jmerelo: so what happened is the pod2bigpage script hangs with --threads option. It hung on the build box and the build just sat there waiting for it (real1078m12.091s). So that's why there were no updated build logs. I reverted the change that added the --threads option to fix the build. To debug the hang, you can just run it locally as `pod2onepage --threads=2 --html -v --source-path=./doc
13:43Z <Zoffix> jmerelo: The command broke up between lines. It's pod2onepage --threads=2 --html -v --source-path=./doc --exclude=404.pod6,/.git Hangs with --threads option after outputting CSS/ doesn't hang without it.
xq so is this thing reusable for a project?
jmerelo Zoffix: I saw your change. Thanks.
15:33 robertle left
xq i.e. if I write something in perl6, document it in pod6, will I be able to generate a documentation like this? 15:33
or is this just a private docs.perl6.org specific script?
15:33 robertle joined
jmerelo xq: it's kind of jury-rigged for perl6/doc. It would be nice if that were the case... It's not private, but there are many things that are specific, and there's no easy way to configure it. 15:33
xq I see 15:34
thanks, jmerelo
jmerelo xq: it's not even easy to configure it for perl6/doc itself...
xq: depending on what you want to do, you might use Pod::To::Html
15:34 zakharyas joined
jmerelo xq: and there's a Pod::Htmlify in there. 15:34
But the specific part of including all classes up to the one being documented, that's in htmlify.p6 15:35
xq that's a useful feature
very, very useful
jmerelo xq: please write an issue telling just that and we'll keep it there to see if we get the time or resources to do wo. 15:36
15:40 jdoege joined 15:41 jdoege left, jdoege joined 15:42 araraloren left, wamba joined
jdoege Good day, all! Question: Is there a way to have perl6(rakudo) execute some code and then drop you into the REPL? 15:44
15:44 natrys joined
jdoege Also, maybe for jnthn, is there knowledge of if the Comma Supporter Program is going to be available today? #TakeMyMoneyPlease 15:46
[Coke] jdoege: that's an excellent question, I think there must be, but I don't know the invocation off the top of my head. 15:47
moritz maybe ask on stackoverflow?
jmerelo moritz++
timotimo probably something in Perl6::Compiler, perhaps derived from HLL::Compiler
jdoege It's something I do with Python to provide tools that use the Python REPL as the interface. I'd like to do the same with Perl6. 15:48
moritz: I'll ask on Stack Overflow.
jmerelo jdoege: Perl 5 does have Devel::Trace too, which does more or less the same. 15:49
jdoege I understand the value, but this has been a friendlier venue. :-)
[Coke] I would have guessed Perl6::Compiler.new.interactive ; but that isn't right. 15:50
jmerelo jdoege: StackOverflow is unwelcoming sometimes... But you can always ask there and post the question here. You'll get the best of both worlds.
15:52 zod_ left
Zoffix jdoege: are you the same person who was asking about that a couple days ago? 15:52
ktown re StackOverflow, if you know the answer it's easier to ask the right question
15:52 andrzejk_ joined
Zoffix jdoege: (i.e. do you know about the nqp::getcomp option?) 15:53
jdoege Zoffix: No I am not. This is the first time I am asking.
Zoffix jdoege: ah, it was asked a few days ago there are a couple of options mentioned: irclog.perlgeek.de/perl6/2018-04-28#i_16105200 15:54
Notably, using `nqp::getcomp("perl6").interactive` which is an unsupported low-level op. Or spawning another `perl6` with `run $*EXECUTABLE`
jdoege Zoffix: I'll look into that. Thanks. I'll still ask on SO so others can find the answer and I'll answer my own question if I figure it out.
Zoffix unsupported = it can change at any time and devs don't guarantee it won't change without notice. 15:55
.oO( double negative... )
well, I mean unlike the actual language, it might change without notice :) 15:56
jdoege: what do you need this for? Maybe it can be offered as a proper feature 15:57
jdoege Zoffix: :-( It's a really useful feature. It would be great to make it part of the Rakudo spec. Is there a way to suggest that? A command line flag is the easiest way to access this functionality (apart from mandating a call to exit at the end of source which probably isn't desireable.)
Zoffix jdoege: oh, do you mean you want to just execute some code from STDIN?
15:58 andrzejk_ left
jdoege Zoffix: I need it for the following: I write a tool but don't want to make a user interface so I just dump the user into the REPL and let them use Rakudo and all the power of Perl6 as an interface. 15:58
[Coke] I don't think it needs to be part of the language, but it would make a great debugger module.
(and that module right now is that npq command)
Zoffix jdoege: ah, ok. I was gonna suggest `--repl-mode=non-interactive` option, but that's just for evaling code from STDIN 15:59
jdoege Zoffix: I do this with Python, now, and it is really useful.
[Coke] note that scoping is going to make any variable introspection... wonky.
e.g. perl6 -Mnqp -e '{ my $a = 234; nqp::getcomp("perl6").interactive}' # you can't get at $a easily here in the spawned REPL
jdoege Coke: yeah, that would be problematic. 16:00
timotimo in general the repl wants a little bit of a rethink, i believe 16:01
the way we currently handle adding more code is ... pretty bad
16:03 zakharyas left 16:04 mcmillhj left
jmerelo jdoege: how does Python do it? Maybe what you want is something like Linenoise, the library used there. 16:06
timotimo: it shouldn't be too difficult to add completion, for instance. 16:07
Zoffix jdoege: I think I can hack something up that reaches $a in there... 1min
Voldenet can't you just use $*a 16:09
16:10 Ven`` joined
jdoege Python does it with a command line option: "python -i <source.py>". Instead of exiting it just leaves you in the REPL at 'main' scope. 16:12
16:14 andrzejk_ joined
Zoffix jdoege: gist.github.com/zoffixznet/5482749...b7df5dc0f4 16:17
yoleaux 16:11Z <lizmat> Zoffix: I have 0 experience with Wordpress theming experience
Zoffix jdoege: it uses a couple of nqp ops (and there's no backwards-compatibility/user support offered for NQP), but it works.
replify takes string with a piece of code you want to run before dropping the user to the REPL 16:18
jmerelo Zoffix: can you turn that into a tiny module? Call it Trace or whatever? 16:19
Zoffix jdoege: note there are a couple of REPL-specific bugs that'd apply to that code ( fail.rakudo.party/t/REPL github.com/rakudo/rakudo/issues?q=...bel%3AREPL ) like custom ops don't survive
jmerelo: don't got time and don't really want to proliferate nqp-using modules :)
eco: author:zoffix
buggable Zoffix, Found 48 results: Acme::Anguish, Acme::Anguish, IRC::Client, WWW, CoreHackers::Sourcery. See modules.perl6.org/s/author%3Azoffix
Zoffix got way too many modules already
16:19 zakharyas joined 16:20 mcmillhj joined
jdoege Zoffix: That seems like it will work! Thanks so much. Do you want to post that to Stack overflow in answer to my question? 16:22
Zoffix jdoege: oh and `my %adverbs;` is currently empty, but that's where command line switches would go. I think you can actually bind it to `nqp::getcomp("perl6").cli-options` and it'll do the trick 16:23
m: use nqp; dd nqp::getcomp("perl6").cli-options
camelia {:setting("RESTRICTED")}
Zoffix jdoege: I don't use StackOverflow, but feel free to post that as the answer. Just be sure to include a warning that there's no user-support for NQP and the `nqp::*` ops can change at any time without warning.
jdoege Zoffix: Will do. Thanks again. 16:24
16:25 mcmillhj left 16:29 scimon left 16:30 mcmillhj joined
Zoffix jdoege: as for Comma: (from last week's convo) `<F ROGGS> j nthn: and I'll be able to buy comma next week?" <j nthn> F ROGGS: Not quite that soon, but "sometime in May" is still looking good.` 16:33
16:35 cog_ left 16:36 windyhouses left 16:39 HaraldJoerg joined, Zoffix left
xq hmm 16:49
this is strange
16:49 zakharyas left
xq m: for <1,2,3> { .say } 16:50
camelia 1,2,3
xq m: for <1, 2, 3> { .say }
camelia 1,
2,
3
xq 1 lines vs 3 lines
retupmoca m: <thing>.perl.say 16:51
camelia "thing"
16:51 khw joined
retupmoca m: <more things>.perl.say 16:51
camelia ("more", "things")
xq ah so it's basically like qw 16:52
ok then, makes sense
16:56 retupmoca left, Zoffix joined, retupmoca joined
Zoffix xq: it's similar but not the same. 16:57
m: dd qw/1 2 3/
camelia ("1", "2", "3")
Zoffix m: dd <1 2 3>
camelia (IntStr.new(1, "1"), IntStr.new(2, "2"), IntStr.new(3, "3"))
Zoffix It makes allomorphs: docs.perl6.org/language/glossary#i...-Allomorph
m: my \z := set <1 2 3>; say z{1} 16:58
camelia False
Zoffix Which matters for things that care about object identity as an allomorphic 1 is not the same as just an Int 1 or Str 1
16:59 athenot left
Zoffix m: say 1 โˆˆ <1 2 3> 16:59
camelia False
Zoffix m: say "1" โˆˆ qw/1 2 3/
camelia True
Zoffix m: say 1 โˆˆ (1, 2, 3)
camelia True
16:59 athenot joined
Zoffix m: my $s := anon sub factorial { $^x == 1 ?? 1 !! $x * factorial $x-1 }; $s(5).say 17:02
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
factorial used at line 1
Zoffix was under the impression this would work...
So the *only* thing it does is stick the name to .name attribute? 17:03
17:06 jdoege left
Zoffix yup 17:07
m: sub factorial (|) { say "you trippin" }; my $s := anon sub factorial { $^x == 1 ?? 1 !! $x * factorial $x-1 }; $s(5).say 17:09
camelia you trippin
5
Zoffix ^_^
17:09 Zoffix left 17:10 HaraldJoerg left, HaraldJoerg1 joined
jmerelo whateverable.6lang.org seems to be still down... 17:11
17:12 andrzejk_ left 17:17 athenot_ joined 17:18 athenot_ left 17:19 athenot left, athenot_ joined 17:22 windyhouses joined 17:28 dwarring joined
xq Why does the list of methods and inherited methods in the left side of page docs.perl6.org/type/Hash not include sort ? 17:30
I am having trouble finding on that page what exactly %hash.sort does
even though it works
jmerelo xq: it comes from Cool, possibly
xq not listed in "Routines supplied by class Cool" 17:31
jmerelo xq: no, Any. And Any and Mu were eliminated from the pages a short time ago.
xq ok, I see 17:32
so .sort is callable on anything? what exactly 1.sort do 17:33
m: 123.sort
camelia ( no output )
xq m: sub { }.sort
camelia ( no output )
xq <_<
I have tried to parse and understand the %vowels.sort(*.key)>>.kv but now I am even more confused 17:34
jmerelo xq: yep, pretty much 17:37
moritz %vowels.sort does the same as %vowels.pairs.sort 17:38
ktown m: use YAMLish; say save-yaml( "key"=>"value" ) ;
camelia ===SORRY!===
Could not find YAMLish at line 1 in:
/home/camelia/.perl6
/home/camelia/rakudo-m-inst-2/share/perl6/site
/home/camelia/rakudo-m-inst-2/share/perl6/vendor
/home/camelia/rakudo-m-inst-2/share/perl6
CompUnit::โ€ฆ
ktown m: use YAML; say yaml.dump( "key"=>"value" ) ;
camelia ===SORRY!===
Could not find YAML at line 1 in:
/home/camelia/.perl6
/home/camelia/rakudo-m-inst-2/share/perl6/site
/home/camelia/rakudo-m-inst-2/share/perl6/vendor
/home/camelia/rakudo-m-inst-2/share/perl6
CompUnit::Repโ€ฆ
xq < moritz> %vowels.sort does the same as %vowels.pairs.sort 17:39
is this documented?
17:39 ktown left 17:41 ktown joined
jmerelo xq: well, kinda docs.perl6.org/type/Any#method_sort 17:47
xq: it does not say what happens if they are not Iterables... Makes you wonder why it's so low in the class hierarchy, but, well... 17:48
17:50 andrzejk_ joined
xq hash is iterable according to docs.perl6.org/type/Hash#Type_Graph 17:50
Geth perl6-pod-to-bigpage/master: 7 commits pushed by (JJ Merelo)++
xq but what exactly happens on %hash.sort is not clear at all 17:51
17:52 andrzejk_ left
ktown xq: it coerces the hash to a list of pairs and sorts the key of the pairs 17:55
17:55 athenot_ left, athenot joined
Geth doc: 56292752d1 | (JJ Merelo)++ | 2 files
Bumps up version of Pod::To::OneBigPage

Which should get all good and fixed #1980 when correctly deployed.
17:55
jmerelo moritz: There's a new version of Pod::To::OneBigPage 17:56
moritz: can someone please get the server download it?
17:56 Zoffix joined
moritz jmerelo: and can give you a shell account if you want 17:57
Zoffix xq: would you improve the docs, to make it clear what it does? github.com/perl6/doc/blob/master/d...#L131-L147
ktown xq: and %hash.sort collapsed deeper nested hash
Zoffix jmerelo: what was the reasoning for removal of Any & Mu methods from individual pages?
jmerelo moritz: I shouldn't need to do this so often... 17:58
Zoffix It kinda sucks that unless you most objects inherit from Any/Mu you wouldn'
It kinda sucks that unless you most objects inherit from Any/Mu you wouldn't know a lot of the methods are available
jmerelo Zoffix: this issue github.com/perl6/doc/issues/1916
Zoffix Especially as in the case above, where the user sees .sort being called on a Hash object, yet the Hash docs don't mention sort anywhere.
xq Zoffix I would if I knew what was happening
17:59 athenot left
xq right now the only sources of information is, 1) call it and investigate results with .WHAT etc 2) guys said on irc 17:59
probably not the best basis to write documentation on
17:59 athenot joined 18:00 aindilis` left
Zoffix xq: %hash.sort is equivalent to %hash.sort(*.key) 18:00
18:01 aindilis joined
jmerelo The issue asked for removal of Cool, Any & Mu. And I would add Exception. And I kinda agree with that. You have to jump over a lot of Mu/Any stuff to get to the interesting bits, plus Mu and Any stuff are everywhere, muddling results in search engines 18:01
Zoffix jmerelo: what do you mean by "jump over"?
jmerelo Zoffix: scroll down. Point is, there must be a balance between letting people know what a class does, and physically inserting all the docs for that class in its description. 18:02
Zoffix jmerelo: why? 18:03
jmerelo: why should the documentation omit documention for a class?
jmerelo Zoffix: it does not. There's the class graph, which includes all the inheritance graph 18:04
Zoffix jmerelo: why does the user need to be burdened with that?
jmerelo Zoffix: why does the user need to be burdened with 20Ks of documentation for other classes in every single page? 18:05
Zoffix: repeated documentation, at that?
Zoffix jmerelo: there are many solutions available and not all of them include making life difficult for the most vulnerable class of readers: those who don't know the type hierarchy or how the docs site is structured. For example, there's nothing to jump over on most desktop devices: i.imgur.com/Z62C0R9.png
jmerelo Zoffix: I would have loved to have those solutions discussed in that issue. 18:06
Zoffix: or here, for that matter.
We could just eliminate Mu, for instance. Still, Any has got lots of functions, many of which will be useless in some cases. 18:07
Zoffix jmerelo: you just asked another question instead of answering mine. But I can give you an answer: because xq above would've found the Hash.sort docs. 18:08
jmerelo See above when someone asks about 1.sort. You can do that. And before this change, you could see "sort" in "Num".
Zoffix: as well as Num.sort and NumStr.sort and EverySingleClassOutThere.sort 18:09
With the self same description, besides.
tobs s: Hash, 'sort'
SourceBaby tobs, Something's wrong: โคERR: Type check failed in binding to parameter '&code'; expected Callable but got Method+{is-nodal} (Method+{is-nodal}.new)โค in sub do-sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 45โค in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 36โค in block <unit> at -e line
jmerelo Saying "if it's iterable, well, you can sort. If it's not, we keep mum" 18:10
So say you're in Num and you read "Sorts iterables with cmp or given code object and returns a new Seq. Optionally, takes a Callable as a positional parameter, specifying how to sort."
In what possible way is that helpful?
Zoffix s: %, 'sort', \|()
SourceBaby Zoffix, Something's wrong: โคERR: Could not find candidate that can do \(())โค in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 32โค in block <unit> at -e line 6โคโค
Zoffix s: %, 'sort', \() 18:11
SourceBaby Zoffix, Sauce is at github.com/rakudo/rakudo/blob/8cd7...ap.pm6#L92
Zoffix jmerelo: see above.
jmerelo As you say there are many solutions, and in this particular case, I would put sort in Iterable, which is not excluded, with context-specific text to make it really usable. 18:12
p6: say 3.sort 18:13
camelia (3)
jmerelo Zoffix: see above
Zoffix jmerelo: but it's not a method provided by Iterable role. It's a method provided by Any class and is inherited by Hash class
jmerelo Zoffix: ... a method that does not mention what happens if it's applied to something that is not Iterable. And we intend the documentation to be helpful to newcomers. That's why I was proposing this particular solution. 18:14
Zoffix jmerelo: wouldn't fixing documentation of Any.sort be the right solution here instead of removing it from all classes? 18:15
jmerelo Zoffix: removing it from all classes was the solution to that issue. Putting that particular thing somewhere else would be a solution to this particular case. 18:17
18:17 mcmillhj left 18:18 lindylex joined
lindylex I am tring to execute a function X amount of time with using a loop. This is what I have tried. pastebin.com/i0SEvsbu It only executes once. 18:19
18:20 sauvin left
Voldenet lindylex: you are evaluating greet() once 18:21
Zoffix lindylex: the operator is two x: xx
lindylex: single `x` just calls code and uses the return value as a string repeated $xTimes times 18:22
Voldenet oh
18:23 andrzejk_ joined
Geth doc: 7faaaf9054 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Map.pod6
Document Map.sort
18:23
synopsebot Link: doc.perl6.org/type/Map
lindylex Zoffix : Thanks this worked pastebin.com/CNaPf18W 18:24
Zoffix cool
18:25 wamba left
jmerelo Zoffix: that's an excellent solution. Thanks. 18:25
Zoffix: if you find any other functions that should be documented that way, just raise an issue and I'll try to add them in the most suitable place in the class hierarchy.
18:29 wamba joined 18:31 jmerelo left, mcmillhj joined 18:32 Ven`` left 18:33 mcmillhj_ joined 18:36 Ven`` joined 18:40 jdoege joined 18:41 comborico1611 left 18:42 comborico1611 joined 18:43 lindylex left 18:50 jdoege left
Geth doc: f276531657 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Map.pod6
Fix method name in definition
18:51
synopsebot Link: doc.perl6.org/type/Map
18:51 domidumont left 18:54 Zoffix left 18:55 andrzejk_ left
TimToady m: my $s := anon sub factorial { $^x == 1 ?? 1 !! $x * samewith $x-1 }; $s(5).say 18:56
camelia 120
buggable New CPAN upload: Font-FreeType-0.0.9.tar.gz by WARRINGD modules.perl6.org/dist/Font::FreeTy...n:WARRINGD
18:59 ChoHag joined 19:01 andrzejk_ joined 19:04 cog_ joined
retupmoca should I move my modules from p6c over to CPAN? 19:05
ktown m: my %h = :x(${"1" => ${:b(1)}}), :c(${"2" => ${:y(1)}}), :a(${"3" => ${:z(1)}}) ; say %h.sort ; 19:06
camelia (a => {3 => {z => 1}} c => {2 => {y => 1}} x => {1 => {b => 1}})
retupmoca or does it not matter where they are right now?
ktown m: my %h = :x(${"1" => ${:b(1)}}), :c(${"2" => ${:y(1)}}), :a(${"3" => ${:z(1)}}) ; for %h.sort -> (:$key,:$value) {say "$key : $value ", $value ; }
camelia a : 3 z 1 {3 => {z => 1}}
c : 2 y 1 {2 => {y => 1}}
x : 1 b 1 {1 => {b => 1}}
timotimo it doesn't yet matter
each has benefits
ktown note to self do not use a hash in sting interpolation 19:07
retupmoca ok, I'll probably leave them be for now 19:09
unless I get requests for stronger versioning
timotimo aye, stronger versioning is one way the cpan one is better 19:11
ktown m: my %h = :x(${"1" => ${:b(1)}}), :c(${"2" => ${:y(1)}}), :a(${"3" => ${:z(1)}}) ; for %h.sort -> (:$key,:%value) {say "$key : %value {%value} ", %value ; } 19:12
camelia a : %value 3 z 1 {3 => {z => 1}}
c : %value 2 y 1 {2 => {y => 1}}
x : %value 1 b 1 {1 => {b => 1}}
19:12 skids left 19:19 darutoko left 19:29 lizmat left 19:36 comborico joined
ktown set theme fear2 19:38
19:41 aindilis left 19:43 zakharyas joined
ktown m: my %h = :x(${"1" => ${:b(1)}}), :c(${"2" => ${:y(1)}}), :a(${"3" => ${:z(1)}}) ; for %h.sort -> (:$key,:%value) {say "$key : %value {%value.keys} ", %value ; } 19:53
camelia a : %value 3 {3 => {z => 1}}
c : %value 2 {2 => {y => 1}}
x : %value 1 {1 => {b => 1}}
19:58 skids joined 20:03 aindilis joined 20:12 andrzejk_ left 20:14 molaf left 20:15 pmurias joined 20:16 zakharyas left 20:17 zakharyas joined 20:28 comborico left 20:32 wamba left 20:39 robertle left 20:41 mcmillhj_ left 20:57 zakharyas left 21:05 skids left 21:08 xiaomiao is now known as bonsaikitten
ktown 8 21:13
21:13 HaraldJoerg1 left 21:18 zachk joined, zachk left, zachk joined 21:23 shareable6 joined, ChanServ sets mode: +v shareable6
AlexDaniel .tell jmerelo ah, oops! Yes, fixed now, sorry. Next time ping me directly please. 21:26
yoleaux AlexDaniel: I'll pass your message to jmerelo.
21:26 mcmillhj left, Ven`` left, retupmoca left
AlexDaniel .tell jmerelo if you're wondering why that happened, it's because *ables fail to write some precomp filesโ€ฆ I know how to fix that though! 21:27
yoleaux AlexDaniel: I'll pass your message to jmerelo.
21:30 Rawriful joined 21:31 mcmillhj joined 21:36 mcmillhj left 21:43 mcmillhj joined 21:47 mcmillhj left 21:56 mcmillhj joined 21:57 dct joined 22:00 mcmillhj_ joined 22:02 mcmillhj left 22:05 mcmillhj_ left 22:10 comborico1611_ joined 22:11 mcmillhj joined 22:14 Ven`` joined 22:15 mcmillhj left 22:22 pmurias left 22:28 mcmillhj joined
ingy perl -e 'print <<FOO;' -e ' xxx' -e ' yyy' -e 'FOO' # :) 22:29
perl6 -e 'print q:to/FOO/;' -e ' xxx' -e ' yyy' -e 'FOO' # :(
22:32 mcmillhj_ joined, mcmillhj left
comborico1611_ Any emacs users here? 22:33
ingy gave it up in 2002 22:34
ctl-x ctl-c
comborico1611_ Haha 22:35
Whatcha using now?
ingy notepad
comborico1611_ Oh.
ingy j/k, vim
comborico1611_ I thought you meant notepad++ 22:36
22:38 pilne joined 22:39 mcmillhj joined 22:41 athenot_ joined, athenot left 22:44 mcmillhj left
tobs ingy: that doesn't work in the REPL either. You can write a multiline heredoc (all at once) from your shell into perl6. 22:45
but that's hard to do in a one-liner 22:47
AlexDaniel comborico1611: yes 22:49
22:50 jferrero_ left
ingy tobs: I was just pointing out that multiple -e lines should probably be concatenated before compilation starts 22:55
like in perl5
(I'm assuming( 22:56
one liners like this totally fail for python and node 22:58
ruby gets it right
22:58 mcmillhj joined
ingy I'm working on a compiler for a language, and there are useful one-liners that need at least 2 lines 22:58
and decided to use multiple -e lines for that 22:59
jnthn ingy: Hmm, my guess was that they were being concatenated but not with newlines between them
ingy and was pleased to note the p5 gets it right
23:00 Zoffix joined
comborico1611_ AlexDaniel: Yes what? 23:01
AlexDaniel e: run โ€˜perl6โ€™, โ€˜-eโ€™, โ€˜dd @*ARGSโ€™, โ€˜-eโ€™, โ€˜say 50โ€™
evalable6 Array @ARGS = ["-e", "say 50"]
ingy perl6 -e 'say "foo' -e ' bar";'
AlexDaniel ingy: โ†‘ this is what it does 23:02
comborico1611_ AlexDaniel: Ah, emacs users. So you using 25 or 24?
AlexDaniel comborico1611_: yes, I use emacs
ingy ugh
AlexDaniel comborico1611: 25
comborico1611_ Thanks!
23:02 mcmillhj left 23:03 skids joined 23:04 Herby_ joined
Herby_ o/ 23:04
jnthn AlexDaniel: Oh...right.
ingy compate this: node -e 'console.log(process.argv)' -e 'console.log(50)' 23:05
to this: coffee -e 'console.log(process.argv)' -e 'console.log(50)'
p6 acts like coffee
node just acts dumb 23:06
comborico1611_ timing installation of Rakudo-star-2018.01
Zoffix ingy: why not just write it on multiple lines? 23:07
without closing `'`
i.imgur.com/IUzL5HV.png
ingy python -c 'import sys; print(sys.argv)' -c 'print(50)' 23:08
['-c', '-c', 'print(50)']
Zoffix: what part of *one-liner* don't you...
sorry :)
AlexDaniel Zoffix: bonus trick in bash: ctlr+x ctrl+e lets you edit commands in your favorite text editor 23:09
23:09 Mithaldu left
AlexDaniel (which is extremely useful if you have multiline stuff) 23:09
23:10 mcmillhj joined
AlexDaniel heh, you have to enable that explicitly in zshโ€ฆ 23:12
AlexDaniel โ™ฅ readline
23:15 mcmillhj left
AlexDaniel or is it a bash feature? Not sure 23:16
ingy I once did some serious hacking in readline github.com/ingydotnet/live-demo/bl...-demo.bash
that was a deep dive into readline guts
23:17 Zoffix left
AlexDaniel ingy: why [ ] if you're using bash anyway? 23:17
23:17 lex joined
ingy ? 23:17
23:17 lex is now known as Guest94289 23:18 Ven`` left
ingy you mean instead of [[ ]] 23:20
AlexDaniel yeah
ingy I was younger then
AlexDaniel also you should try www.shellcheck.net/
ingy use it every day
AlexDaniel :) 23:21
ingy it's the best excuse for Haskell to exist :)
23:21 todd_ joined, Mithaldu joined
ingy I found heredoc bugs in shellcheck 23:21
todd_ HI All. I need to "mooch" a question. I am trying to do a regex removed everything after the final "-" 23:22
perl6 -e 'my $x="abc-def-hij"; $x ~~ s/\-$//; say $x;'
desired result is "abc-def"
AlexDaniel m: my $x="abc-def-hij"; $x ~~ s/โ€˜-โ€™<-[-]>+$//; say $x; 23:24
camelia abc-def
todd_ Thank you! 23:25
AlexDaniel m: my $x="abc-def-"; $x ~~ s/โ€˜-โ€™<-[-]>+$//; say $x;
camelia abc-def-
AlexDaniel m: my $x="abc-def-"; $x ~~ s/โ€˜-โ€™<-[-]>*$//; say $x;
camelia abc-def
ingy AlexDaniel: gist.github.com/ingydotnet/7b23eb0...675a6c8c41 23:26
even pygments gets it right ;)
23:27 mcmillhj joined 23:28 Guest94289 left
AlexDaniel m: my $x = q:to๏ฝขFOO๏ฝฃ;โค xxโค yyโค FOOโค dd $x; 23:29
camelia Str $x = "xx\n yy\n"
AlexDaniel ingy: notice how โ€œxxโ€ is not indented
m: my $x = q:to๏ฝขFOO๏ฝฃ;โค xxโค yyโคFOOโค dd $x;
camelia Str $x = " xx\n yy\n"
AlexDaniel but now it is
it's a feature, as far as I can tell
ingy: assuming that you imply that perlย 6 gets it worng 23:30
yeahโ€ฆ worng :)
ingy shellcheck
shellcheck barfs on that gist
AlexDaniel oh :O
indeed
ingy I was going to try and patch it
todd_ what does `<-[-]>+$` and `<-[-]>$` do? 23:31
ingy but then like everything I do with Haskell, I gave up
I wonder if I ever reported it...
todd_ perl6 -e 'my $x="screws/nuts/bolts/washers"; $x ~~ s|โ€˜/โ€™<-[/]>+$||; say $x;' screws/nuts/bolts
AlexDaniel todd_: <[abc]> will match a b or c, <-[abc]> will match anything but a b and c 23:32
todd_: so <-[-]> is anything but -
todd_ cool! Thank you!
23:32 mcmillhj left
AlexDaniel todd_: and + or * is just repeated more than once (where * could be 0 times also) 23:32
todd_ doesn't work without the `+` $ perl6 -e 'my $x="screws/nuts/bolts/washers"; $x ~~ s|โ€˜/โ€™<-[/]>$||; say $x;' screws/nuts/bolts/washers 23:33
AlexDaniel ingy: can you ticket it? github.com/koalaman/shellcheck/issues 23:34
ingy this is me going off on coffeescript (my favorite syntax) for not having heredocs: github.com/jashkenas/coffeescript/issues/3299
TimToady todd_: needs the * instead of the +
AlexDaniel ingy: I searched for SC1039 but nothing comes up, I think you're the first one to notice :)
todd_ $ perl6 -e 'my $x="screws/nuts/bolts/washers"; $x ~~ s|โ€˜/โ€™<-[/]>*$||; say $x;' screws/nuts/bolts
awesome
ingy AlexDaniel: github.com/koalaman/shellcheck/issues/1050 related and open 23:35
23:37 rindolf left
ingy AlexDaniel: ok I'll go for it 23:37
23:39 w_richard_w joined
comborico1611_ clocks full Rakudo Star installation (with testing) at 36 minutes on 3 ghz AMD and 8 gigs RAM 23:42
ingy AlexDaniel: interestingly bash doesn't even require the ending token
heredoc just goes to eof
23:45 mcmillhj joined 23:47 todd_ left 23:49 mcmillhj left
ingy AlexDaniel: actually, bash fixed that 23:52
I was using a crappy old mac bash
the missing ending still works but you get a warning now 23:53
with a modern bash
AlexDaniel: github.com/koalaman/shellcheck/issues/1198
AlexDaniel ingy++ 23:54
ingy another 7 minutes of my life has expired
AlexDaniel :)
23:55 comborico1611 left, mcmillhj joined