Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-10-13

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:06 skids joined #perl6
00:09 cibs joined #perl6
00:33 pierre_ joined #perl6
00:34 b2gills joined #perl6
00:42 Derperperd joined #perl6
00:47 jercos joined #perl6
00:47 bisectable6 joined #perl6
00:56 Actualeyes left #perl6
01:01 timotimo joined #perl6
01:02 timotimo moritz: seems like the server i was ircing from until now has gone belly-up. i think i might want to move over to irc.p6c.org, but i don't think i have an account there; could you make one for me with the same authorized_keys as on hack?
01:03 ccakes joined #perl6
01:05 timotimo also, i wonder why the weechat version on hack is 1.0.1 when there's already one with a much higher version number available
01:06 timotimo there have been 7 releases since 1.0.1, the latest of which was on the 2nd of october: version 1.6
01:09 timotimo - remove "freenode" server from default config   -  :\
01:12 timotimo seems like the server's back
01:13 timotimo joined #perl6
01:16 zakharyas joined #perl6
01:16 MasterDuke timotimo: would you know anything about this nqp-j error: "Flattening named argument must have VMHash REPR"?
01:16 Herby__ joined #perl6
01:18 timotimo hm, are you calling |%foo with something that's actually NQPMu?
01:19 MasterDuke it's happening somewhere in tools/build/install-core-dist.pl, during make install
01:19 timotimo hm, so it's actually perl6-j?
01:19 timotimo it could help if you'd output the actual REPR that you get for this error message
01:19 MasterDuke yeah, but the error is in nqp/src/vm/jvm/runtime/org/perl6/n​qp/runtime/CallSiteDescriptor.java
01:20 MasterDuke i added a .getClass().getName(), it was '__P6opaque__74'
01:20 timotimo is that how we get the debugname of things on the jvm?
01:20 MasterDuke no idea
01:20 timotimo i'd have expected something more helpful there
01:20 ccakes joined #perl6
01:21 timotimo that script i was running in the background is now at 167 megabytes (35 minutes of cpu time on the main thread)
01:21 Herby__ if i'm on Windows, and wanting to do some basic HTML parsing, is there a recommended module?
01:21 Herby__ or am I destined to use regex?
01:22 Herby__ i browsed through the module library but didnt see anything that stood out
01:22 timotimo there's modules for you
01:22 timotimo i think HTML::Parser::XML isn't bad. Gumbo isn't bad either.
01:23 Herby__ my eyes passed right over HTML::Parser::XML, let me give it a whirl
01:27 cooper_ joined #perl6
01:27 cooper_ joined #perl6
01:28 pierre_ joined #perl6
01:31 ggoebel joined #perl6
01:46 Actualeyes joined #perl6
01:46 Herby__ couple of basic basic questions incoming...
01:46 Herby__ following the last example here (https://github.com/tony-o/perl6-html-parser-xml), I now have an xmldoc
01:47 ilbot3 joined #perl6
01: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!
01:59 seatek joined #perl6
02:47 noganex joined #perl6
02:53 wamba joined #perl6
03:03 pierre_ joined #perl6
03:16 pierre_ joined #perl6
03:39 geraud joined #perl6
03:48 canopus joined #perl6
04:08 cyphase joined #perl6
04:26 _slade_ joined #perl6
04:46 pierre_ joined #perl6
04:46 Cabanossi joined #perl6
04:55 pierre_ joined #perl6
05:04 cgfbee joined #perl6
05:09 cgfbee joined #perl6
05:14 Actualeyes joined #perl6
05:34 dataf4l joined #perl6
05:34 dataf4l hey guys
05:34 dataf4l I just have a quick question
05:35 domidumont joined #perl6
05:35 dataf4l I generated a moar file using perl6 —target=mbc —output=mine.mbc mine.p6
05:35 dataf4l after generating the file, I’d like to run the mbc file wihout the p6 file
05:35 dataf4l you know, for science
05:35 dataf4l I have no idea on how to do that, and I feel the docs aren’t clear.
05:35 timotimo at the moment, you have to pretend it's a module and run an empty script
05:35 dataf4l any pointers?
05:35 timotimo perl6 -Mmine -e ''
05:36 dataf4l so run an empty p6 file and use the -m option?
05:36 dataf4l let me try
05:36 timotimo at least it was like that the last time i looked ... last year maybe?
05:37 dataf4l Felipes-MacBook-Pro:backend2 a$ perl -Mguess.mbc -e ""
05:37 dataf4l syntax error at -e line 0, near "use guess."
05:38 dataf4l my codeI’m afraid your suggestion was not effective, but in any case I’d like to give you thanks, I feel you tried to help, and I value that a lot.
05:38 timotimo no, not "guess.mbc"
05:39 dataf4l perl6 --target=mbc --output=guess.mbc guess.p6
05:39 dataf4l what is the correct extension for mbc target?
05:39 timotimo -M is equivalent to a use statement; you don't put filename extensios into use statements
05:39 dataf4l so a pm then?
05:40 domidumont joined #perl6
05:40 timotimo well, then it'll use a precompilation repository for you
05:41 timotimo oh, and also the extension it'll look for is .moar, not .mbc
05:41 dataf4l what the expletiv is a precompilation repository! if you pardon my ignorance
05:41 dataf4l ok I’ll try moar
05:42 timotimo actually, i can't get it to load the .moar file locally
05:42 timotimo if you -Ilib for example, rakudo-moar will create a .precomp folder in lib/ and .moar files go there
05:43 dataf4l -llib at the compilation step?
05:44 dataf4l I’m trying this:
05:44 dataf4l perl6 -I.  -Mguess -e ""
05:44 dataf4l ===SORRY!===
05:44 dataf4l Could not find guess at line 1 in:
05:44 dataf4l /Users/a/Desktop/ab/htdocs/gis/backend2
05:44 dataf4l /Users/a/.perl6
05:44 dataf4l /usr/local/Cellar/rakudo-st​ar/2016.07/share/perl6/site
05:44 dataf4l /usr/local/Cellar/rakudo-sta​r/2016.07/share/perl6/vendor
05:44 dataf4l /usr/local/Cellar/rakudo-star/2016.07/share/perl6
05:44 dataf4l CompUnit::Repository::Abso​lutePath<140231686028672>
05:44 dataf4l CompUnit::Repository::NQP<140231681566512>
05:44 dataf4l CompUnit::Repository::Perl5<140231681566552>
05:44 dataf4l Felipes-MacBook-Pro:backend2 a$ ls
05:45 timotimo yeah, it'll want a guess.pm6 or guess.pm
05:45 timotimo whoops, now he's gone
05:47 dataf4l joined #perl6
05:56 pierre_ joined #perl6
05:57 timotimo hey dataf4l
05:57 dataf4l hi
05:57 timotimo it'll want to find a guess.pm6 if you -Mguess
05:57 dataf4l ok
05:57 dataf4l I have a .moar file
05:57 dataf4l no idea on how to load that one
05:57 timotimo well, in theory moar eats moar files
05:57 timotimo so just "moar guess.moar"
05:58 timotimo but i don't think it'll actually do what you want
05:58 dataf4l Felipes-MacBook-Pro:backend2 a$ moar guess.moarvm
05:58 dataf4l Unhandled exception: While looking for 'ModuleLoader.moarvm': no such file or directory
05:58 dataf4l at <unknown>:1  (guess.moarvm:<dependencies+deserialize>)
05:58 dataf4l no workie
05:58 dataf4l Oh well, it can wait a day
06:02 telex joined #perl6
06:02 Actualeyes joined #perl6
06:03 ponbiki joined #perl6
06:04 FROGGS joined #perl6
06:05 dataf4l joined #perl6
06:05 neuraload joined #perl6
06:09 moritz timotimo: ssh timo@irc.p6c.org # enjoy!
06:12 abraxxa joined #perl6
06:15 baest joined #perl6
06:18 domidumont joined #perl6
06:19 zacts joined #perl6
06:20 pierre_ joined #perl6
06:24 domidumont joined #perl6
06:27 firstdayonthejob joined #perl6
06:32 [particle]1 joined #perl6
06:32 darutoko joined #perl6
06:37 nebuchadnezzar joined #perl6
06:38 Possum joined #perl6
06:40 wamba joined #perl6
06:40 girafe joined #perl6
06:41 ponbiki_ joined #perl6
06:46 MARTIMM joined #perl6
07:02 ilbot3 joined #perl6
07:02 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!
07:05 wamba joined #perl6
07:16 brillenfux joined #perl6
07:20 KotH joined #perl6
07:31 RabidGravy joined #perl6
07:31 neuraload joined #perl6
07:36 CIAvash joined #perl6
07:51 erez joined #perl6
07:53 bjz joined #perl6
08:07 dakkar joined #perl6
08:14 flexibeast joined #perl6
08:19 DrForr Mornin'.
08:20 domidumont joined #perl6
08:31 bjz joined #perl6
08:37 rpeter joined #perl6
08:47 pierre_ joined #perl6
08:55 nadim joined #perl6
08:58 gregf_ joined #perl6
09:01 nadim joined #perl6
09:20 ponbiki joined #perl6
09:22 erdic joined #perl6
09:36 olinkl joined #perl6
09:41 peteretep joined #perl6
09:53 ggherdov joined #perl6
10:10 TeamBlast joined #perl6
10:10 Util joined #perl6
10:10 Hotkeys joined #perl6
10:10 go|dfish joined #perl6
10:10 robinsmidsrod joined #perl6
10:10 hoelzro joined #perl6
10:10 mithaldu_ joined #perl6
10:10 damnlie_ joined #perl6
10:10 Peter_R joined #perl6
10:10 ugexe joined #perl6
10:10 chris2 joined #perl6
10:10 zostay joined #perl6
10:10 tbrowder joined #perl6
10:10 nemo joined #perl6
10:10 domm1 joined #perl6
10:10 jsimonet joined #perl6
10:10 ssm_ joined #perl6
10:10 chansen_ joined #perl6
10:10 gypsydave5 joined #perl6
10:10 literal joined #perl6
10:10 hahainternet joined #perl6
10:10 BooK joined #perl6
10:10 protium joined #perl6
10:10 perigrin joined #perl6
10:10 b2gills joined #perl6
10:10 noganex joined #perl6
10:10 MARTIMM joined #perl6
10:10 brillenfux joined #perl6
10:10 nadim joined #perl6
10:10 Actualeyes joined #perl6
10:10 BuildTheRobots joined #perl6
10:10 jervo joined #perl6
10:10 jercos joined #perl6
10:10 darutoko joined #perl6
10:10 cpage_ joined #perl6
10:10 pierrot joined #perl6
10:10 tomaw joined #perl6
10:10 pmichaud joined #perl6
10:10 Grrrr joined #perl6
10:10 stux|RC-only joined #perl6
10:10 Gothmog_ joined #perl6
10:10 ab5tract_ joined #perl6
10:10 pnu_ joined #perl6
10:10 cosimo joined #perl6
10:10 pochi_ joined #perl6
10:10 nine joined #perl6
10:10 rmmm joined #perl6
10:10 garu_ joined #perl6
10:10 markk_ joined #perl6
10:10 pyrimidine joined #perl6
10:10 Praise joined #perl6
10:10 profan joined #perl6
10:10 eythian joined #perl6
10:10 bitmap joined #perl6
10:10 a3r0_ joined #perl6
10:10 Unavowed joined #perl6
10:10 ribasushi joined #perl6
10:10 larion_ joined #perl6
10:10 ruoso_ joined #perl6
10:10 mtj_ joined #perl6
10:10 [ptc] joined #perl6
10:10 avalenn joined #perl6
10:10 k-man joined #perl6
10:10 vcv joined #perl6
10:10 rblackwe joined #perl6
10:10 risou___ joined #perl6
10:10 DrForr joined #perl6
10:10 jonadab joined #perl6
10:10 shadowpaste joined #perl6
10:10 rodarmor joined #perl6
10:10 musca joined #perl6
10:10 krakan joined #perl6
10:10 aindilis joined #perl6
10:10 Juerd joined #perl6
10:10 albongo joined #perl6
10:10 riatre joined #perl6
10:10 petercommand joined #perl6
10:10 isacloud joined #perl6
10:10 xdbr joined #perl6
10:10 llfourn joined #perl6
10:10 luis` joined #perl6
10:10 saki_ joined #perl6
10:10 masak joined #perl6
10:10 xxpor joined #perl6
10:10 simcop2387 joined #perl6
10:10 richi235 joined #perl6
10:10 yeltzooo joined #perl6
10:10 frew joined #perl6
10:10 Bucciarati joined #perl6
10:10 broquaint joined #perl6
10:10 avar joined #perl6
10:10 ft joined #perl6
10:10 konobi joined #perl6
10:10 atta joined #perl6
10:10 zhmylove joined #perl6
10:10 sQuEE joined #perl6
10:10 diegok joined #perl6
10:10 maddingue joined #perl6
10:10 jferrero joined #perl6
10:10 zoosha joined #perl6
10:10 kshannon joined #perl6
10:10 ens joined #perl6
10:10 cxreg joined #perl6
10:10 Dunearhp joined #perl6
10:10 Alikzus joined #perl6
10:10 lizmat joined #perl6
10:10 LegalResale joined #perl6
10:10 charsbar______ joined #perl6
10:10 Exodist joined #perl6
10:10 abruanese joined #perl6
10:10 tony-o joined #perl6
10:10 mls joined #perl6
10:10 hcit joined #perl6
10:10 jnthn joined #perl6
10:10 gfldex joined #perl6
10:10 tinita joined #perl6
10:10 inokenty joined #perl6
10:10 tailgate joined #perl6
10:10 mst joined #perl6
10:10 mspo joined #perl6
10:10 eyck_ joined #perl6
10:10 rjbs- joined #perl6
10:10 Ulti joined #perl6
10:10 spider-mario joined #perl6
10:10 chee joined #perl6
10:10 Jonis joined #perl6
10:10 bartolin joined #perl6
10:10 japhb joined #perl6
10:10 nightfrog joined #perl6
10:10 salparadise joined #perl6
10:10 breinbaas joined #perl6
10:10 obfusk joined #perl6
10:10 no-n joined #perl6
10:10 imcsk8 joined #perl6
10:10 aries_liuxueyang joined #perl6
10:10 dustinm`_ joined #perl6
10:10 El_Che joined #perl6
10:10 skaji_ joined #perl6
10:10 revdiablo joined #perl6
10:10 avuserow joined #perl6
10:10 ilogger2 joined #perl6
10:10 vytas joined #perl6
10:10 djbkd joined #perl6
10:10 shmibs joined #perl6
10:10 sunnavy_ joined #perl6
10:10 lucs joined #perl6
10:10 atacama_ joined #perl6
10:10 salva00 joined #perl6
10:10 nowan joined #perl6
10:10 bpmedley joined #perl6
10:10 kaare_ joined #perl6
10:10 Woodi joined #perl6
10:10 araujo joined #perl6
10:10 pecastro joined #perl6
10:10 stevieb joined #perl6
10:10 sftp joined #perl6
10:10 melezhik joined #perl6
10:10 TimToady joined #perl6
10:10 Lucas_One joined #perl6
10:10 remmie joined #perl6
10:10 xinming joined #perl6
10:10 rmusial joined #perl6
10:10 ChoHag_ joined #perl6
10:10 dj_goku_ joined #perl6
10:10 mr-foobar joined #perl6
10:10 flaviusb joined #perl6
10:10 tadzik joined #perl6
10:10 M-Illandan joined #perl6
10:10 bisectable6 joined #perl6
10:10 timotimo joined #perl6
10:10 zakharyas joined #perl6
10:10 cooper_ joined #perl6
10:10 ggoebel joined #perl6
10:10 cgfbee joined #perl6
10:10 telex joined #perl6
10:10 abraxxa joined #perl6
10:10 baest joined #perl6
10:10 zacts joined #perl6
10:10 [particle]1 joined #perl6
10:10 Possum joined #perl6
10:10 RabidGravy joined #perl6
10:10 dakkar joined #perl6
10:10 flexibeast joined #perl6
10:10 rpeter joined #perl6
10:10 perlpilot_ joined #perl6
10:10 geraud joined #perl6
10:10 cibs joined #perl6
10:10 dalek joined #perl6
10:10 MilkmanDan joined #perl6
10:10 SmokeMachine____ joined #perl6
10:10 wamba joined #perl6
10:10 pierre joined #perl6
10:10 bjz joined #perl6
10:10 labster joined #perl6
10:10 matt| joined #perl6
10:10 domidumont joined #perl6
10:10 hobbs joined #perl6
10:10 clkao joined #perl6
10:10 notbenh_ joined #perl6
10:10 mephinet joined #perl6
10:10 p3rln00b joined #perl6
10:10 mindos joined #perl6
10:10 jnap_ joined #perl6
10:10 committable6 joined #perl6
10:10 solarbunny joined #perl6
10:20 BuildTheRobots joined #perl6
10:21 olinkl joined #perl6
10:28 bioduds joined #perl6
10:28 harmil_wk joined #perl6
10:28 TeamBlast joined #perl6
10:28 jervo joined #perl6
10:28 jercos joined #perl6
10:28 darutoko joined #perl6
10:28 cpage_ joined #perl6
10:28 pierrot joined #perl6
10:28 tomaw joined #perl6
10:28 solarbunny joined #perl6
10:28 committable6 joined #perl6
10:28 jnap_ joined #perl6
10:28 mindos joined #perl6
10:28 p3rln00b joined #perl6
10:28 mephinet joined #perl6
10:28 notbenh_ joined #perl6
10:28 clkao joined #perl6
10:28 hobbs joined #perl6
10:28 pmichaud joined #perl6
10:28 Grrrr joined #perl6
10:28 stux|RC-only joined #perl6
10:28 Gothmog_ joined #perl6
10:28 ab5tract_ joined #perl6
10:28 pnu_ joined #perl6
10:28 cosimo joined #perl6
10:28 pochi_ joined #perl6
10:28 nine joined #perl6
10:28 rmmm joined #perl6
10:28 garu_ joined #perl6
10:28 markk_ joined #perl6
10:28 pyrimidine joined #perl6
10:28 Praise joined #perl6
10:28 profan joined #perl6
10:28 eythian joined #perl6
10:28 bitmap joined #perl6
10:28 a3r0_ joined #perl6
10:28 Unavowed joined #perl6
10:28 ribasushi joined #perl6
10:28 larion_ joined #perl6
10:28 ruoso_ joined #perl6
10:28 mtj_ joined #perl6
10:28 [ptc] joined #perl6
10:28 avalenn joined #perl6
10:28 k-man joined #perl6
10:28 vcv joined #perl6
10:28 rblackwe joined #perl6
10:28 risou___ joined #perl6
10:28 DrForr joined #perl6
10:28 jonadab joined #perl6
10:28 shadowpaste joined #perl6
10:28 rodarmor joined #perl6
10:28 musca joined #perl6
10:28 krakan joined #perl6
10:28 aindilis joined #perl6
10:28 Juerd joined #perl6
10:28 albongo joined #perl6
10:28 riatre joined #perl6
10:28 petercommand joined #perl6
10:28 isacloud joined #perl6
10:28 xdbr joined #perl6
10:28 llfourn joined #perl6
10:28 luis` joined #perl6
10:28 saki_ joined #perl6
10:28 masak joined #perl6
10:28 xxpor joined #perl6
10:28 simcop2387 joined #perl6
10:28 richi235 joined #perl6
10:28 yeltzooo joined #perl6
10:28 frew joined #perl6
10:28 Bucciarati joined #perl6
10:28 broquaint joined #perl6
10:28 avar joined #perl6
10:28 ft joined #perl6
10:28 konobi joined #perl6
10:28 atta joined #perl6
10:28 zhmylove joined #perl6
10:28 sQuEE joined #perl6
10:28 diegok joined #perl6
10:28 maddingue joined #perl6
10:28 jferrero joined #perl6
10:28 zoosha joined #perl6
10:28 kshannon joined #perl6
10:28 ens joined #perl6
10:28 cxreg joined #perl6
10:28 Dunearhp joined #perl6
10:28 Alikzus joined #perl6
10:28 lizmat joined #perl6
10:28 LegalResale joined #perl6
10:28 charsbar______ joined #perl6
10:28 Exodist joined #perl6
10:28 abruanese joined #perl6
10:28 tony-o joined #perl6
10:28 mls joined #perl6
10:28 hcit joined #perl6
10:28 jnthn joined #perl6
10:28 gfldex joined #perl6
10:28 tinita joined #perl6
10:28 inokenty joined #perl6
10:28 tailgate joined #perl6
10:28 mst joined #perl6
10:28 mspo joined #perl6
10:28 eyck_ joined #perl6
10:28 rjbs- joined #perl6
10:28 Ulti joined #perl6
10:28 spider-mario joined #perl6
10:28 chee joined #perl6
10:28 Jonis joined #perl6
10:28 bartolin joined #perl6
10:28 japhb joined #perl6
10:28 nightfrog joined #perl6
10:28 salparadise joined #perl6
10:28 breinbaas joined #perl6
10:28 obfusk joined #perl6
10:28 no-n joined #perl6
10:28 imcsk8 joined #perl6
10:28 aries_liuxueyang joined #perl6
10:28 dustinm`_ joined #perl6
10:28 El_Che joined #perl6
10:28 skaji_ joined #perl6
10:28 revdiablo joined #perl6
10:28 avuserow joined #perl6
10:28 ilogger2 joined #perl6
10:28 vytas joined #perl6
10:28 djbkd joined #perl6
10:28 shmibs joined #perl6
10:28 sunnavy_ joined #perl6
10:28 lucs joined #perl6
10:28 atacama_ joined #perl6
10:28 salva00 joined #perl6
10:28 nowan joined #perl6
10:28 bpmedley joined #perl6
10:28 kaare_ joined #perl6
10:28 Woodi joined #perl6
10:28 araujo joined #perl6
10:28 pecastro joined #perl6
10:28 stevieb joined #perl6
10:28 sftp joined #perl6
10:28 melezhik joined #perl6
10:28 TimToady joined #perl6
10:28 Lucas_One joined #perl6
10:28 remmie joined #perl6
10:28 xinming joined #perl6
10:28 rmusial joined #perl6
10:28 ChoHag_ joined #perl6
10:28 dj_goku_ joined #perl6
10:28 mr-foobar joined #perl6
10:28 flaviusb joined #perl6
10:28 tadzik joined #perl6
10:28 M-Illandan joined #perl6
10:28 bisectable6 joined #perl6
10:28 timotimo joined #perl6
10:28 cooper_ joined #perl6
10:28 ggoebel joined #perl6
10:28 cgfbee joined #perl6
10:28 telex joined #perl6
10:28 abraxxa joined #perl6
10:28 baest joined #perl6
10:28 zacts joined #perl6
10:28 [particle]1 joined #perl6
10:28 Possum joined #perl6
10:28 RabidGravy joined #perl6
10:28 dakkar joined #perl6
10:28 flexibeast joined #perl6
10:28 rpeter joined #perl6
10:28 perlpilot_ joined #perl6
10:28 geraud joined #perl6
10:28 cibs joined #perl6
10:28 dalek joined #perl6
10:28 MilkmanDan joined #perl6
10:28 SmokeMachine____ joined #perl6
10:28 wamba joined #perl6
10:28 64MAAE53O joined #perl6
10:28 bjz joined #perl6
10:28 labster joined #perl6
10:28 ggherdov joined #perl6
10:28 Util joined #perl6
10:28 Hotkeys joined #perl6
10:28 go|dfish joined #perl6
10:28 robinsmidsrod joined #perl6
10:28 hoelzro joined #perl6
10:28 mithaldu_ joined #perl6
10:28 damnlie_ joined #perl6
10:28 Peter_R joined #perl6
10:28 ugexe joined #perl6
10:28 chris2 joined #perl6
10:28 zostay joined #perl6
10:28 tbrowder joined #perl6
10:28 nemo joined #perl6
10:28 domm1 joined #perl6
10:28 jsimonet joined #perl6
10:28 ssm_ joined #perl6
10:28 chansen_ joined #perl6
10:28 gypsydave5 joined #perl6
10:28 literal joined #perl6
10:28 hahainternet joined #perl6
10:28 BooK joined #perl6
10:28 protium joined #perl6
10:28 perigrin joined #perl6
10:28 b2gills joined #perl6
10:28 noganex joined #perl6
10:28 MARTIMM joined #perl6
10:28 brillenfux joined #perl6
10:28 nadim joined #perl6
10:28 Actualeyes joined #perl6
10:28 kipd joined #perl6
10:28 matt| joined #perl6
10:28 domidumont joined #perl6
10:28 m0ltar joined #perl6
10:28 nebuchadnezzar joined #perl6
10:28 andrewalker_ joined #perl6
10:28 jargan joined #perl6
10:28 Xliff_ joined #perl6
10:28 TEttinger joined #perl6
10:28 cognominal joined #perl6
10:28 Sgeo__ joined #perl6
10:28 andrzejku_ joined #perl6
10:28 Timbus_ joined #perl6
10:28 sjn joined #perl6
10:28 decent_ joined #perl6
10:28 7F1AAC5YX joined #perl6
10:28 raydiak joined #perl6
10:28 sammers joined #perl6
10:28 ilbelkyr joined #perl6
10:28 alnewkir1 joined #perl6
10:28 f3ew joined #perl6
10:28 sivoais joined #perl6
10:28 freeze joined #perl6
10:28 ingy joined #perl6
10:28 dsp_ joined #perl6
10:28 wtw joined #perl6
10:28 yoleaux joined #perl6
10:28 user9 joined #perl6
10:28 PotatoGim joined #perl6
10:28 Spot__ joined #perl6
10:28 geekosaur joined #perl6
10:28 DrParis joined #perl6
10:28 psch joined #perl6
10:28 neuraload joined #perl6
10:28 canopus joined #perl6
10:28 ccakes joined #perl6
10:28 Guest18866 joined #perl6
10:28 Matthew[m] joined #perl6
10:28 Matias[m] joined #perl6
10:28 SourceBaby_ joined #perl6
10:28 huggable_ joined #perl6
10:28 dylanwh_ joined #perl6
10:28 amalia_ joined #perl6
10:28 Celelibi joined #perl6
10:28 edenc joined #perl6
10:28 dataangel joined #perl6
10:28 timeless joined #perl6
10:28 stigo joined #perl6
10:28 ilmari joined #perl6
10:28 stmuk_ joined #perl6
10:28 lco joined #perl6
10:28 hanekomu joined #perl6
10:28 silug__ joined #perl6
10:28 kst joined #perl6
10:28 jcallen joined #perl6
10:28 mattp_ joined #perl6
10:28 gensym joined #perl6
10:28 kmwallio joined #perl6
10:28 TheDir_ joined #perl6
10:28 Kaffe_ joined #perl6
10:28 camelia joined #perl6
10:28 [Coke] joined #perl6
10:28 sergot joined #perl6
10:28 arnsholt joined #perl6
10:28 apejens joined #perl6
10:28 ambs joined #perl6
10:28 moritz joined #perl6
10:28 gabiruh joined #perl6
10:28 daxim_ joined #perl6
10:28 felher joined #perl6
10:28 Upasaka joined #perl6
10:28 sjohnsen joined #perl6
10:28 integral joined #perl6
10:28 m0ltar joined #perl6
10:29 RabidGravy THEY'RE TALKING DOWN THE GLOBAL ECONOMY!
10:29 RabidGravy ;-)
10:30 xiaomiao joined #perl6
10:30 DrForr In a netsplit, noone can hear you /say.
10:31 camelia joined #perl6
10:32 erdic joined #perl6
10:32 labster joined #perl6
10:32 samcv joined #perl6
10:32 cyphase joined #perl6
10:34 Guest7479 joined #perl6
10:34 Cabanossi joined #perl6
10:34 emdashcomma joined #perl6
10:34 Brad_ joined #perl6
10:35 SmokeMachine____ joined #perl6
10:35 kipd joined #perl6
10:35 sivoais joined #perl6
10:35 ilbelkyr joined #perl6
10:35 Guest16699 joined #perl6
10:36 olinkl joined #perl6
10:37 Guest7479 joined #perl6
10:37 Brad_ joined #perl6
10:38 peteretep joined #perl6
10:43 rindolf joined #perl6
10:45 timeless joined #perl6
10:47 BuildTheRobots joined #perl6
10:48 ggherdov joined #perl6
10:53 xiaomiao joined #perl6
11:02 samcv hopefully people survived Frexit ;)
11:05 masak what, even Freenode has left the EU? :P
11:08 ocbtec joined #perl6
11:16 ggherdov joined #perl6
11:17 ggherdov joined #perl6
11:37 mr-foobar joined #perl6
11:45 AlexDaniel joined #perl6
11:56 ShimmerFairy joined #perl6
11:57 erdic joined #perl6
12:01 rudolfochrist joined #perl6
12:13 SourceBaby joined #perl6
12:13 Undercover joined #perl6
12:17 NeuralAnomaly joined #perl6
12:18 huggable joined #perl6
12:18 buggable joined #perl6
12:20 grondilu joined #perl6
12:20 grondilu hello, in the polynomial a0 + a1*x + ... an*x^n, how do you call the coefficient an?
12:21 grondilu oh sorry, wrong chan
12:21 moritz redundant :-)
12:24 g4 joined #perl6
12:25 p3rln00b grondilu: leading?
12:26 pierre_ joined #perl6
12:32 p3rln00b It's kinda weird that the only way we have to contruct a proper Mix is using a postfix coersion method call.
12:32 p3rln00b m: my $m = (butter => 0.22, sugar => 0.1, flour => 0.275, sugar => 0.02).Mix; dd $m
12:32 camelia rakudo-moar a8221e: OUTPUT«Mix $m = ("flour"=>0.275,"butter"=>​0.22,"sugar"=>0.12).Mix␤»
12:35 p3rln00b m: my $m = Mix.new-from-pairs: 'butter' => 0.22, 'sugar' => 0.1, 'sugar' => 0.02; dd $m
12:35 camelia rakudo-moar a8221e: OUTPUT«Mix $m = ("butter"=>0.22,"sugar"=>0.12).Mix␤»
12:35 p3rln00b Never mind :}
12:38 * masak .oO( how to quickly disprove your own language complaint ) :P
12:38 pmurias joined #perl6
12:39 nicq20 joined #perl6
12:40 dalek doc: d7257a0 | (Zoffix Znet)++ | doc/Type/Baggy.pod6:
12:40 dalek doc: Document Baggy.new-from-pairs
12:40 dalek doc: review: https://github.com/perl6/doc/commit/d7257a0d59
12:43 canopus joined #perl6
12:47 nicq20 \help
12:47 nicq20 oops. Wrong slash
12:51 p3rln00b ∖help
12:51 p3rln00b m: say <a b c> ∖ <b x y>
12:51 camelia rakudo-moar a8221e: OUTPUT«set(a, c)␤»
12:51 p3rln00b hehe
12:52 p3rln00b m: say <a b c> \ <b x y>
12:52 camelia rakudo-moar a8221e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unsupported use of y///; in Perl 6 please use tr///␤at <tmp>:1␤------> 3say <a b c> \ <b x y7⏏5>␤»
12:53 nicq20 p3rln00b: Wait, how does that work?
12:53 p3rln00b nicq20: magic :)
12:54 p3rln00b nicq20: Also, fancy pants Unicode set operators :)
12:54 p3rln00b https://docs.perl6.org/routine/%E2%88%96
12:55 nicq20 p3rln00b: Oh! So that only *looks* like a regular backslash.
12:55 p3rln00b yeah.
12:55 p3rln00b m: '∖\'.uninames.say
12:55 camelia rakudo-moar a8221e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in single quotes; couldn't find final "'" ␤at <tmp>:1␤------> 3'∖\'.uninames.say7⏏5<EOL>␤    expecting any of:␤        single quotes␤        term␤»
12:55 p3rln00b m: '\∖'.uninames.say
12:55 camelia rakudo-moar a8221e: OUTPUT«(REVERSE SOLIDUS SET MINUS)␤»
12:57 p3rln00b m: role Foo { has $!x; }; role Bar does Foo { method foo { $!x } };
12:57 camelia rakudo-moar a8221e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Attribute $!x not declared in role Bar␤at <tmp>:1␤------> 3role Bar does Foo { method foo { $!x } }7⏏5;␤    expecting any of:␤        horizontal whitespace␤        postfix␤        statement…»
12:57 p3rln00b m: role Foo { has $!x; }; class Bar does Foo { method foo { $!x } };
12:57 camelia rakudo-moar a8221e: ( no output )
12:58 p3rln00b Bug?
12:58 p3rln00b m: role Foo { has $!x; }; role Bar does Foo { method foo { $!x } }; class Meow does Bar {}
12:58 camelia rakudo-moar a8221e: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Attribute $!x not declared in role Bar␤at <tmp>:1␤------> 3role Bar does Foo { method foo { $!x } }7⏏5; class Meow does Bar {}␤    expecting any of:␤        horizontal whitespace␤        post…»
12:58 p3rln00b kinda annoying
13:00 p3rln00b I guess it's some composing thing that's causing this and it ain't a bug :}
13:04 jnthn "It's complicated"
13:04 p3rln00b :D
13:04 jnthn So roles are generic and parametric
13:05 cdg joined #perl6
13:05 jnthn And thus a "does Foo" is not in general resolvable until we are actually finally composing into the target class
13:05 jnthn The solution we take for classes is to put of attribute decl checks until after roles are composed
13:05 jnthn So we know what we've got and what, if anything, is missing
13:06 jnthn *put off
13:06 jnthn That's rather harder for roles themselves though
13:06 p3rln00b I see.
13:07 eliasr joined #perl6
13:07 rgrinberg joined #perl6
13:09 DrForr Well, there's some activity here now; I'll toss this out to the channel.
13:09 DrForr I got an email last night from brian d foy asking me if I'd like to co-author Learning Perl 6.
13:10 iH2O joined #perl6
13:10 p3rln00b Does brian d foy even use Perl 6? Never seen him here
13:11 iH2O he should, using it is adopting it
13:11 DrForr He's getting more interested in it, certainly. Plus you don't have to be on this channel in order to use perl6 :)
13:11 * p3rln00b still remembers being chasticed by bdfoy over a module name
13:12 iH2O not sure, esp if u a beginner
13:12 jnthn Not everyone does IRC :)
13:12 iH2O they do facebook?
13:12 iH2O reddit?
13:13 DrForr Uh, he wrote "Learning Perl" :) I don't think he needs help with presence :)
13:13 skids joined #perl6
13:15 iH2O this room is a must to produce intricate regex expressions
13:15 iH2O on one line
13:15 p3rln00b Well, I guess that was one of my points. Is he writing Learning Perl 6 because he likes the language and knows a lot about it or just because he wrote Learning Perl and knows people will buy Learning Perl 6 just 'cause it got his name on it :)
13:16 DrForr It can't be both?
13:17 iH2O theres a shortage of good up-to-date perl6 book anyway
13:17 iH2O *books
13:17 iH2O im not sure theres any
13:17 DrForr Shortage as in "there are none." (not counting Laurent's work, as it's still being reviewed.)
13:17 iH2O :(
13:17 p3rln00b DrForr: So was there more to bdfoy asked you to write a book? Or is that the entire news item? :)
13:18 DrForr No, asked if I'd like to join him. That's ... pretty much it. Sorry you're underwhelmed.
13:18 moritz and Laurent's book is Learning to think likea programmer, using Perl 6 to teach that
13:18 moritz it's not about teaching Perl 6
13:18 moritz so for an experienced programmer, it's probably a bit long-winded
13:19 p3rln00b DrForr: heh. Well, it's just I already found that out yesterday, so yeah... underwheliming :)
13:19 p3rln00b DrForr: did you tell him you'd love to join him?
13:19 DrForr Yes, I do know I've mentioned it elsewhere.
13:19 DrForr Well, of course. Why wouldn't I?
13:19 p3rln00b :)
13:20 moritz \o/
13:20 moritz the more books, the merrier
13:20 iH2O theres none for now
13:21 DrForr We talked about this in person a few months back when he was in Cluj.
13:24 p3rln00b DrForr: when will the book be finished?
13:24 p3rln00b I recall Damian also promising a book "in a year" when he was in Toronto a few months ago
13:25 DrForr No idea; he's the one working on financing. All I really know is he's interested in doing the book and is setting up a Kickstarter project and looking at funding.
13:26 p3rln00b cool
13:29 perlpilot_ DrForr: nice!  Would merlyn be coauthor too or just you and bdf?
13:30 DrForr I don't know whom else he's talked to, but either way I'm happy to share credits.
13:30 DrForr Basically he's wanting to kick around some ideas, so I'm going to take some time this weekend to brainstorm some notions and send them his way.
13:32 dalek doc: 2c0a31b | coke++ | doc/Language/5to6-perlop.pod6:
13:32 dalek doc: fix typo
13:32 dalek doc: review: https://github.com/perl6/doc/commit/2c0a31b588
13:36 dalek doc: 025a6cd | coke++ | doc/Language/5to6-perlop.pod6:
13:36 dalek doc: prefer starting point
13:36 dalek doc: review: https://github.com/perl6/doc/commit/025a6cd496
13:36 zakharyas joined #perl6
13:38 cooper_ joined #perl6
13:40 dalek joined #perl6
13:49 dalek doc: c33a4cc | coke++ | doc/ (5 files):
13:49 dalek doc: fix typos
13:49 dalek doc: review: https://github.com/perl6/doc/commit/c33a4cc4ac
13:52 dalek doc: 4a84f3a | coke++ | doc/Type/IO/Notification.pod6:
13:52 dalek doc: fix typo
13:52 dalek doc: review: https://github.com/perl6/doc/commit/4a84f3a354
13:52 dalek doc/spellcheck: d7257a0 | (Zoffix Znet)++ | doc/Type/Baggy.pod6:
13:52 dalek doc/spellcheck: Document Baggy.new-from-pairs
13:52 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/d7257a0d59
13:52 dalek doc/spellcheck: ff4f4b8 | coke++ | doc/Type/Baggy.pod6:
13:52 dalek doc/spellcheck: Merge branch 'master' into spellcheck
13:52 sufrostico joined #perl6
13:53 dalek joined #perl6
13:53 [Coke] ooh, did I kill dalek? oops
13:54 p3rln00b Murderer!
13:54 [Coke] so, still only able to run 250 of the 290 files, but only 133 of those are failing spelling checks now. (up from all of them.)
13:54 [Coke] er, down
14:06 domidumont joined #perl6
14:18 iH2O left #perl6
14:20 samcv hi p3rln00b i am getting Cannot look up attributes in a type object  in method irc-privmsg-channel at ./perlbot.pl6 line 47
14:21 samcv here's a copy of the code http://vpaste.net/ZrXff
14:21 ptolemarch joined #perl6
14:23 p3rln00b Well, I see one mistake already: https://gist.github.com/zoffixznet/818582​205af68dea8900ce0209633d65#file-p6-p6-L15
14:23 p3rln00b You're calling .channels on Proc::Async object. My version last night had channels in a variable
14:25 dalek doc: 50e1f10 | coke++ | doc/Type/Signature.pod6:
14:25 dalek doc: improve readability of diag output in example
14:25 dalek doc: review: https://github.com/perl6/doc/commit/50e1f104a7
14:25 dalek doc: 0bd5849 | coke++ | doc/ (7 files):
14:25 dalek doc: fix typos
14:25 dalek doc: review: https://github.com/perl6/doc/commit/0bd58495a7
14:25 samcv oh crap
14:25 samcv ha
14:26 p3rln00b samcv: as for your error, you need to instantiate the plugin, so change :plugins(said2) to :plugins(said2.new)
14:26 dalek doc/spellcheck: f2752d4 | coke++ | xt/.aspell.pws:
14:26 dalek doc/spellcheck: more words
14:26 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/f2752d45ce
14:26 dalek doc/spellcheck: 50e1f10 | coke++ | doc/Type/Signature.pod6:
14:26 dalek doc/spellcheck: improve readability of diag output in example
14:26 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/50e1f104a7
14:26 dalek doc/spellcheck: 0bd5849 | coke++ | doc/ (7 files):
14:26 dalek doc/spellcheck: fix typos
14:26 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/0bd58495a7
14:26 samcv can i call it on $irc?
14:26 dalek doc/spellcheck: a0c737b | coke++ | doc/ (8 files):
14:26 dalek doc/spellcheck: Merge branch 'master' into spellcheck
14:26 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/a0c737ba5f
14:26 samcv hm
14:26 samcv ok. how do i dump all methods of an object?
14:26 p3rln00b m: say 42.^methods».name.say
14:26 camelia rakudo-moar 2d5a2c: OUTPUT«(Int Num Rat FatRat abs Bridge chr sqrt base polymod expmod is-prime floor ceiling round lsb msb narrow Range sign sin tan cotan acosech conj atan2 cosec pred asec acotan cosh acos acosec sech unpolar log10 atanh log exp acosh truncate sinh tanh acotanh Re…»
14:26 samcv nice
14:27 p3rln00b samcv: using $.irc ... um... it's a bit more involved, since the client is multi-server. You need to know what server to ask for channels for.
14:27 * p3rln00b glances at the docs
14:27 samcv yeah
14:28 p3rln00b samcv: you can just use the variable and tell the client to join channels in that variable and loop over that same variable: https://gist.github.com/zoffixznet/213f91​0e23e8f6a3bacbf066398f4d20#file-p6-p6-L6
14:28 baest joined #perl6
14:28 samcv ah ok i thought about doing that
14:29 p3rln00b samcv: this is a "proper" way to loop over all connected servers and channels: https://github.com/zoffixznet/perl6-I​RC-Client/blob/master/examples/07-mul​ti-server-message-forwarder.p6#L7-L15
14:29 p3rln00b There's a blog post for that module FWIW: http://perl6.party/post/IRC-Clien​t-Perl-6-Multi-Server-IRC-Module
14:30 samcv yeah it's a good post
14:30 samcv oh did not see that part
14:30 p3rln00b The guy who wrote it is a genius.
14:30 samcv , we loop over all of the connected channels and use $.irc.send method to send a message to that particular channel and server, unless the server and channel are the same as where the message originated.
14:30 p3rln00b I want him to have my babies :}
14:31 samcv it's a lot better than perl5's BasicBot :P
14:31 samcv i hate that thing
14:31 samcv i mean it's not 'that' bad. but
14:31 samcv it's nowhere as good as IRC::Client
14:31 p3rln00b samcv: ah, right. That's just for the forwarder. For yours, you'd just get rid of this line to send to *all* channels: https://github.com/zoffixznet/perl6-​IRC-Client/blob/master/examples/07-m​ulti-server-message-forwarder.p6#L9
14:34 ocbtec joined #perl6
14:34 user9 joined #perl6
14:35 user9 joined #perl6
14:38 domidumont1 joined #perl6
14:44 dalek doc: d5f5ce7 | (Zoffix Znet)++ | doc/Type/Mix.pod6:
14:44 dalek doc: Document Mix.Bag/.BagHash
14:44 dalek doc: review: https://github.com/perl6/doc/commit/d5f5ce7ce8
14:45 dalek doc: c24aeb5 | (Zoffix Znet)++ | doc/Type/MixHash.pod6:
14:45 dalek doc: Document MixHash.Bag/.BagHash
14:45 dalek doc: review: https://github.com/perl6/doc/commit/c24aeb5d27
14:47 iH2O joined #perl6
14:51 Actualeyes joined #perl6
14:54 nicq20 joined #perl6
15:06 Derperperd joined #perl6
15:07 khw joined #perl6
15:14 samcv i want a perl6 book :( i wish there was one
15:14 samcv someday
15:15 p3rln00b Why do people want books so badly? :)
15:15 iH2O the official documentation is deficient
15:15 samcv because i wanna read
15:15 p3rln00b deficient! Bah
15:15 iH2O for beginners, or intermediate users its deficient
15:15 samcv documentation is documentation :)
15:15 mst p3rln00b: because you didn't figure out how to script conversion of docs.perl6.org to an ebook instead
15:15 samcv yeah what iH2O
15:15 samcv if you already know perl6 you can see the docs and say, yes that is true and correctly documented
15:16 iH2O i agree 100%
15:16 samcv otherwise you're like but. what does that mean for me as a programmer :)
15:16 p3rln00b mst: actually we have. gfldex++ made it generate one giant HTML file that can be converted to an ebook :P
15:16 mst p3rln00b: WHY IS THERE NOT A LINK TO THAT ON THE FRONT PAGE
15:16 p3rln00b mst: dunno. I personally found it a bit unmanagable.
15:16 p3rln00b It's like 500 pages long
15:17 samcv link to it anyway :P
15:17 samcv will be good to ctrl + f it
15:17 mst that would've been fine. I read through all the individual pages, one at a time, in pubs
15:17 mst some of them had medicore wifi
15:17 samcv googling perl6 "$!" turns up nothing because google ignores it :) found what it is, for attributes on the perl6 sigil page
15:17 mst so I'd have to stand up, walk to the other side of the room where the signal was better, load the next three pages, then go back to my beer
15:17 samcv but doesn't talk all that much about it
15:18 mst an ebook would have removed this impediment to my alcohol consumption
15:18 p3rln00b I think this is it:
15:18 p3rln00b https://docs.perl6.org/perl6.xhtml
15:18 DrForr duckduckgo is better about the "special" variables.
15:18 samcv nice
15:18 samcv sometimes *_* sometimes not
15:18 mst p3rln00b: yeah, I meant an ebook conversion of it
15:18 mst chrome would've lost my place I'm sure
15:18 samcv i will sell you that printed out for 50 dollars
15:19 p3rln00b there's probably html2epub somewhere
15:19 samcv it would look bad tho
15:19 p3rln00b If not, print as HTML and I know calibri can convert to epub from pdf
15:19 p3rln00b *print as PDF
15:19 samcv wew
15:19 samcv duckduckgo $! perl6 and
15:19 samcv https://stockflare.com/stocks/$perl6 get this page
15:19 samcv for stocks of perl6
15:20 p3rln00b Considering duckduckgo has special bells and whistles for Perl 5 and Python docs, I'm sure they would be open to add same feature for Perl 6 :)
15:20 mst p3rln00b: waah. the point I'm making is a conversion on the front page would be nice.
15:21 p3rln00b mst: wasn't it you who were telling tbrowder awhile back that when someone says "would be nice" it means they want someone else to do it? :P
15:21 dataf4l joined #perl6
15:21 p3rln00b You got a commit bit, don't you? :)
15:21 mst p3rln00b: I believe I was talking about "should"
15:21 p3rln00b Ah, right.
15:22 mst I use "would be nice" specifically to avoid that effect
15:22 iH2O left #perl6
15:22 p3rln00b samcv: as for the book. I know currently of two that are in production, with a third one that was kinda-sorta "promised" to be done "in a year" a few month ago.
15:22 mst cuz what I'm saying is "I haven't written a patch that, but currently you're being so dismissive of the idea I don't see why I'd bother"
15:22 Xliff_ zoffix: Nice blog post on IRC::Client
15:23 samcv p3rln00b, please send me the proof copies :P
15:23 mst also, honestly, also "I'm lazy, riba's insane, and I need to cpan my ::EU stuff more than I need to fix this"
15:23 FROGGS joined #perl6
15:23 p3rln00b samcv: as for the docs. You would be in the best position to improve them. Those who know Perl 6 well can fill in the missing pieces and it's hard to know which stuff is missing.
15:24 p3rln00b mst: I didn't mean to be dismissive.
15:24 samcv i am glad to help howerever i can
15:24 p3rln00b samcv: what's the email address? I can sub you to a mailing list that should be put up soon. For the other book, ask DrForr
15:24 samcv ok
15:24 samcv sent pm
15:24 p3rln00b got it.
15:25 FROGGS o/
15:25 mohae joined #perl6
15:25 DrForr For the other book I don't know much more than bdf right now.
15:25 samcv oh btw p3rln00b the sigil page should have a link to https://docs.perl6.org/langu​age/objects.html#Attributes
15:25 samcv when it talks about the $! sigil
15:25 mst samcv: https://github.com/perl6/doc/issues/
15:25 mst samcv: please throw problems you spot into there
15:25 samcv oo ok. just open an issue?
15:25 samcv ok :)
15:25 samcv that makes me happy
15:26 p3rln00b samcv: better yet, submit a PR
15:26 mst samcv: yeah. I opened them at quite a rate as I was working through the docs and people were happy about that
15:26 mst but I was usually going "I don't know what the right thing is, but I think this is wrong"
15:29 lostinfog joined #perl6
15:31 samcv who was usually right?
15:32 mst I'm sorry?
15:32 mst there were quite a few people who figured out the various fixes and tweaks and etc. for those
15:33 p3rln00b Oh crap.
15:33 * p3rln00b just did a "It's a small fix. Push it to production because testing is a pain"
15:34 p3rln00b And now I broke something :P Lesson: Always test on dev server first
15:39 mst p3rln00b: the only time it's valid not to is if production is already down
15:40 domidumont joined #perl6
15:40 nicq20 Anyone happen to know where in the Rakudo repo the 'once' block is defined? I was trying to find it using CoreHackers::Sourcery, but was having troubel.
15:40 nicq20 *trouble
15:41 p3rln00b nicq20: Grammar/Actions likely
15:41 p3rln00b It's a statement modifier, not a Callable, so sourcery won't find it
15:41 [Coke] src/Perl6/Grammar.nqp
15:41 [Coke] 1659:    token statement_prefix:sym<once>    { <sym><.kok> <blorst> }
15:42 samcv p3rln00b, unit tests :)
15:42 p3rln00b nicq20: here are some places to check out: http://fpaste.scsys.co.uk/535960
15:43 p3rln00b samcv: mabby... it's a JS front end running on uber hackish system though.
15:43 samcv i make sure i don't break things with my bot by having a ton of unit tests, at least with the script that processes all the text to channel
15:43 nicq20 p3rln00b: Thank you! This seems to be it: https://github.com/rakudo/rakudo/bl​ob/nom/src/Perl6/Actions.nqp#L2034
15:43 samcv before i push it to the server
15:44 samcv atm it opens the script every time somebody says something, but i have a version that reads stdin and responds to it. eventually hope to replace it with
15:44 [Coke] *tap tap* is this thing on ?
15:46 p3rln00b Afirmative.
15:46 samcv oh p3rln00b http://vpaste.net/QMJSj i am geting Variable $!proc used where no 'self' is available line 25
15:47 p3rln00b samcv: I already told you the answer for it.
15:47 samcv oh
15:47 samcv my bad
15:47 samcv let me scroll up
15:47 samcv $!proc
15:48 p3rln00b samcv: 14:26 p3rln00b samcv: as for your error, you need to instantiate the plugin, so change :plugins(said2) to :plugins(said2.new)
15:48 p3rln00b You haven't done that, so that's why you may be experiencing the error.
15:48 samcv oh i did that
15:48 samcv it gives the error
15:48 samcv sorry i tried switching it back :P and that was in the version i copied
15:49 samcv here is it repasted http://vpaste.net/uLn4n
15:49 p3rln00b samcv: and dunno why you're dumping methods like that. They're all documented: https://github.com/zoffixznet/perl6-I​RC-Client/blob/master/docs/03-method-​reference.md#client-object-ircclient
15:49 samcv well it didn't work anyway :)
15:50 samcv was more for my education to see what it'd spit out
15:50 p3rln00b I see nothing but a brace on line 25... What's the real error message?
15:51 samcv Variable $!proc used where no 'self' is available did i miss a brace?
15:52 p3rln00b What's the full error message
15:52 samcv that is the full one. but i have an extra brace you are right
15:52 p3rln00b That can't be the full one
15:52 p3rln00b m: $!proc
15:52 camelia rakudo-moar bf7945: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Variable $!proc used where no 'self' is available␤at <tmp>:1␤------> 3$!proc7⏏5<EOL>␤»
15:53 samcv ==SORRY!=== Error while compiling /home/samantha/proj/perlbot/./perlbot.pl6 Variable $!proc used where no 'self' is available at /home/samantha/proj/perlbo​t/./perlbot.pl6:25------>             $!proc⏏ = $_;
15:53 dataf4l joined #perl6
15:53 samcv that is the full message
15:54 p3rln00b That paste looks really messed up. Are you using tabs for indentation? :)
15:54 moritz seems like you use $!proc outside of a method
15:54 p3rln00b One too many braces.
15:54 samcv ok i fixed the problem by fixing the braces. yes i am
15:54 samcv there were two actually
15:54 moritz which happens if you close too many parenthesis before using it, for example
15:54 samcv no my braces were just all messed up in reality p3rln00b
15:55 p3rln00b Ah yeah
15:55 moritz fix that first
15:55 moritz no wonder you're losing overview
15:55 p3rln00b samcv: really? Weird. When I paste from that pastebin to Atom, it shows all the braces aligned just fine.
15:55 p3rln00b Well, other than the two extra ones :)
15:55 samcv well they are aligned 'fine'
15:55 samcv but not correctly
15:55 samcv so maybe it did mess it up
15:56 samcv yeah i copied in stuff without tabs in it
15:56 geekosaur atom likely treatng hard tabs as 4 spaces, pastebin as the usual-for-unixes 8
15:56 samcv yeah that messes things up
15:56 samcv well the browser does that geekosaur
15:56 samcv it just has the literal tab character on the page
15:56 moritz method irc-connected ends before the "await .start" line
15:56 moritz which is likely not what you want
15:56 moritz so, too many closing curlies
15:57 samcv usually it converts them when i paste things it but i guess it didn't work this time. yeah moritz it was not good
15:57 geekosaur yes. technically it's the browser rendering. you still won't find anything to tell every browser everywhere to render them as 4 spaces; they always use 8
15:57 samcv yeah
15:57 geekosaur (and if there were one it'd be different for every freaking browser /o\ )
16:01 p3rln00b Clearly the correct answer is to use spaces for indent :P
16:02 samcv in python 3 i hear you can't even use tabs for indent
16:03 samcv idk i use tabs for indenting code blocks and spaces for aligning things to the current block
16:03 samcv say what you will!
16:03 samcv maybe i'm totally insane :)
16:04 mst samcv: tabs for indentation and spaces for aligment is actually the objectively superior system in theorty
16:04 samcv yeah
16:04 mst however, in practice it seems to involve dipping your genitals into a bag of rusty razor blades
16:04 samcv hahah
16:07 pmurias having tools to take care of indenting code seems more important then the exact details of the way used
16:09 mst my main reason for using spaces is that I hate every re-indenter I've ever worked with
16:10 mst so I'd rather do everything the hard way, because at least then it does what I expect
16:11 dataf4l joined #perl6
16:19 rgrinberg joined #perl6
16:24 wamba joined #perl6
16:26 jonadab Tabs for indentation work in word processing, when you want to indent by some number of inches while using a proportional font.  Though even there, setting paragraph indent is usually better.
16:27 jonadab Tabs in source code are evil and must be destroyed.
16:27 p3rln00b :D
16:32 mspo mm tabs
16:32 mxco86 joined #perl6
16:32 mspo I think .eu prefers tabs but .us tends to prefer spaces
16:33 mspo .uk indents in something called "whitz" ;)
16:36 jonadab Tabs don't work for indenting source because A) nobody can agree how wide they are and B) no matter what width you say they are, it's wrong for a lot of use cases and C) the correct level of indentation relative to the line above will not always be a multiple of any number higher than 1 in the first place.
16:37 p3rln00b fight fight!
16:37 jonadab You can make it work for stuff like indenting the body of a loop, but it falls over very badly when you have things like conditions wrapping onto more than one line.
16:41 p3rln00b Well, for all of those points there's an equal number of counterpoints :)
16:41 p3rln00b The Tabs vs. Spaces is the biggest bikeshed of the galaxy.
16:45 timotimo um, indent with tabs, align with spaces. problem solved.
16:46 [Coke] timotimo: um, indent with spaces, align with spaces. problem solved.
16:46 [Coke] m: "\t" and die;
16:46 camelia rakudo-moar bf7945: OUTPUT«Died␤  in block <unit> at <tmp> line 1␤␤»
16:48 Gothmog_ joined #perl6
16:48 rmusial joined #perl6
16:50 dataf4l joined #perl6
16:51 p3rln00b ident with by pressing tab that your editor converts to spaces, align with spaces, problem solved.
16:52 timotimo perfect
16:53 timotimo well, if the tabs would remain in the source file, you'd have a proper encoding of your intent in the file
16:54 geekosaur but that's exactly the problem. tabs are not semantic markup
16:54 p3rln00b My intent is to indent, not to insert tabs
16:54 geekosaur people want them to be, but they aren't
16:55 dataf4l joined #perl6
16:55 geekosaur nor can you somehow combine them with spaces so you get both the semantic markup and the physical representation that compilers and editors insist on using
16:58 ribasushi joined #perl6
17:04 iH2O joined #perl6
17:05 mspo use
17:08 mspo m: say uniname(" ")
17:08 camelia rakudo-moar bf7945: OUTPUT«HAIR SPACE␤»
17:08 p3rln00b m: say "42"
17:08 camelia rakudo-moar bf7945: OUTPUT«42␤»
17:08 p3rln00b :o
17:08 p3rln00b m: say uniname(" ")
17:08 camelia rakudo-moar bf7945: OUTPUT«HAIR SPACE␤»
17:08 p3rln00b wow. It actually works as a delimiter :)
17:09 mspo m: say Ⅳ + ⅷ
17:09 camelia rakudo-moar bf7945: OUTPUT«12␤»
17:09 p3rln00b That doesn't impress me anymore :)
17:10 p3rln00b m: "say\x[180E]42".EVAL
17:10 camelia rakudo-moar bf7945: OUTPUT«5===SORRY!5===␤Argument to "say" seems to be malformed␤at /home/camelia/EVAL_0:1␤------> 3say7⏏5᠎42␤Bogus postfix␤at /home/camelia/EVAL_0:1␤------> 3say7⏏5᠎42␤    expecting any of:␤        infix␤        infix stopper…»
17:10 p3rln00b m: "say\x[2008]42".EVAL
17:10 camelia rakudo-moar bf7945: OUTPUT«42␤»
17:11 firstdayonthejob joined #perl6
17:11 p3rln00b m: dd "\x[180E]\x[2008]".comb».uniprop
17:11 camelia rakudo-moar bf7945: OUTPUT«("Cf", "Zs")␤»
17:12 p3rln00b m: (^0xFFFFF).grep(*.uniprop eq 'Zs').say
17:12 p3rln00b m: (^0xFFFFF).grep(*.uniprop eq 'Zs')»base(16).say
17:12 p3rln00b m: (^0xFFFFF).grep(*.uniprop eq 'Zs')».base(16).say
17:12 p3rln00b Work, robot!
17:13 * p3rln00b cracks the eWhip
17:13 camelia rakudo-moar bf7945: OUTPUT«(32 160 5760 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8239 8287 12288)␤»
17:13 camelia rakudo-moar bf7945: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing dot on method call␤at <tmp>:1␤------> 3(^0xFFFFF).grep(*.uniprop eq 'Zs')»7⏏5base(16).say␤    expecting any of:␤        postfix␤»
17:13 camelia rakudo-moar bf7945: OUTPUT«(20 A0 1680 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 200A 202F 205F 3000)␤»
17:15 p3rln00b m: say join " ", <this is hilarious because it works>
17:15 camelia rakudo-moar bf7945: OUTPUT«this is hilarious because it works␤»
17:17 p3rln00b say 'Perl' , 6 , 'Rocks' , 'Your'   , 'Socks';
17:17 p3rln00b m: say 'Perl' , 6 , 'Rocks' , 'Your'   , 'Socks';
17:17 camelia rakudo-moar bf7945: OUTPUT«Perl6RocksYourSocks␤»
17:17 p3rln00b say 'Perl' , 6 , 'Rocks' , 'Your'   , 'Socks'    .List;
17:17 p3rln00b m: say 'Perl' , 6 , 'Rocks' , 'Your'   , 'Socks'    .List;
17:17 camelia rakudo-moar bf7945: OUTPUT«Perl6RocksYour(Socks)␤»
17:18 p3rln00b m: say     ('Perl' , 6 , 'Rocks' , 'Your'   , 'Socks')       .List;
17:18 camelia rakudo-moar bf7945: OUTPUT«(Perl 6 Rocks Your Socks)␤»
17:18 p3rln00b That's it. I found my perfect indentation character :D
17:19 lucs In Perl 6's relatively recent past, did 「$x = @foo」 work like Perl 5's? (that is, because of scalar context, assign the number of elements of @foo to $x)
17:19 _slade_ joined #perl6
17:20 p3rln00b commitable: 2015.07 my @foo = <a b c>; my $x = @foo; dd $x
17:20 committable6 p3rln00b, ¦«2015.07»: $x = ["a", "b", "c"]
17:20 p3rln00b commitable: 2014.05 my @foo = <a b c>; my $x = @foo; dd $x
17:20 committable6 p3rln00b, ¦«2014.05»: ===SORRY!=== Error while compiling /tmp/pCKVOTFDn6␤Undeclared routine:␤    dd used at line 1␤ «exit code = 1»
17:20 timotimo lucs: never
17:20 p3rln00b commitable: 2014.05 my @foo = <a b c>; my $x = @foo; say $x
17:20 committable6 p3rln00b, ¦«2014.05»: a b c
17:22 timotimo lucs: at least not at any point in the last 3 or 4 years
17:22 lucs timotimo: Weird. https://github.com/colomon/perl6-T​esting/blob/master/lib/Testing.pm, line 73, expects this Perl5ish behaviour (and of course breaks).
17:22 geekosaur pugs: my @foo = <a b c>; my $x = @foo; say $x
17:22 camelia pugs: OUTPUT«sh: /home/camelia/.cabal/bin/pugs: No such file or directory␤»
17:22 geekosaur bah
17:23 dataf4l joined #perl6
17:23 timotimo lucs: it could expect the splice method to convert its second argument to Int
17:23 timotimo though i think the actual problem with this is that classes don't actually close over lexicals
17:23 timotimo if i'm not mistaken?
17:23 p3rln00b They do
17:24 timotimo OK
17:24 lucs Well, splice complains, and the code's intention seems to be to assign the number of elements.
17:24 timotimo m: my @test = 1, 2, 3; say @test.splice(0, "123")
17:24 camelia rakudo-moar bf7945: OUTPUT«Cannot resolve caller splice(Array: Int, Str); none of these signatures match:␤    (Array:D \SELF: *%_)␤    (Array:D $: Whatever, *%_)␤    (Array:D $: Callable:D $offset, *%_)␤    (Array:D $: Int:D $offset, *%_)␤    (Array:D $: Whatever, Whatever…»
17:24 p3rln00b Buggable does it: https://github.com/zoffixznet/perl6-buggable/blob​/master/lib/Buggable/Plugin/TravisWatcher.pm6#L24
17:24 timotimo bisectable: my @test = 1, 2, 3; say @test.splice(0, "123")
17:24 bisectable6 timotimo, Bisecting by exit code (old=2015.12 new=bf7945e). Old exit code: 0
17:24 geekosaur considered using ... that
17:24 timotimo :)
17:24 geekosaur possibly splice's signature changed
17:24 timotimo that's my thought
17:24 geekosaur and some kind of autocoerce was happening
17:25 timotimo yeah, like Int() in the signature instead of Int
17:25 p3rln00b Current candidates can only be Int:D|Whatever|Callable
17:25 bisectable6 timotimo, bisect log: https://gist.github.com/3b7a​683d584da7966272e32ea0a15007
17:25 bisectable6 timotimo, (2016-10-01) https://github.com/rakudo/rakudo/commit/​28bf87439e4c836e3a72af672baa7e61fd0eac14
17:25 lucs Still, I wonder why Testing's code doesn't just say what it means :(
17:26 lucs ... $limit = @lines.elems
17:26 geekosaur quick port from p5 that happened to work because of an inaccurate signature?
17:26 geekosaur oh
17:26 p3rln00b lucs: the $limit = * works too and shortrter
17:31 p3rln00b m: 55296.uniname.say
17:31 camelia rakudo-moar bf7945: OUTPUT«<Non Private Use High Surrogate>␤»
17:31 p3rln00b m: 55296.chr.say
17:31 camelia rakudo-moar bf7945: OUTPUT«Error encoding UTF-8 string: could not encode codepoint 55296␤  in block <unit> at <tmp> line 1␤␤»
17:35 dogbert17 joined #perl6
17:38 rgrinberg joined #perl6
17:40 domidumont1 joined #perl6
17:41 pierrot joined #perl6
17:41 pierrot joined #perl6
17:54 timotimo yeah, can't encode a high surrogate with out a low surrogate ... or something?
17:55 p3rln00b ah
17:57 * timotimo not sure how surrogates work exactly
18:07 iH2O left #perl6
18:14 TimToady .oO(poorly)
18:16 * p3rln00b hopes TimToady will know the answer to the AT-KEY mystery.
18:16 p3rln00b As in, why SELF.defined is significant here: https://github.com/rakudo/rakudo/​blob/bf7945e/src/core/Any.pm#L364
18:17 p3rln00b If I remove it, autovivification tests start to fail.
18:17 p3rln00b *even if I move it to be called on a previous line* they start to fail :S
18:17 cygx joined #perl6
18:18 cygx o/
18:18 timotimo p3rln00b: the whence is executed when you assign to the thing
18:18 p3rln00b Oh damn
18:18 p3rln00b Mystery solved
18:18 p3rln00b That's a good half hour wasted :D
18:18 timotimo i wish i had looked at the code earlier :(
18:19 p3rln00b I guess I should read the code around the thing I'm changing ^_^
18:20 timotimo could help sometime
18:20 timotimo sometimes*
18:23 cygx timotimo: re surrogates, the Unicode codepoint range is 0x0..0xD7FF u 0xE000..0x10FFFF
18:23 cygx the whole in the middle is reserved for UTF-16 surrogates
18:23 timotimo m: say 0xe000 - 0xd7ff
18:23 camelia rakudo-moar bf7945: OUTPUT«2049␤»
18:23 cygx however, UTF-8 can encode 0x0..0x1FFFFF without problem (and even more than that if you do not restrict yourself to 4 bytes)
18:24 cygx but encoded surrogates in UTF-8 are techinically Forbidden
18:24 cygx *hole
18:26 jonadab You have to assume broken software is going at some point to send your software invalid data.
18:26 jonadab You want to be able to detect that situation, but you don't want it to cause explosions.
18:26 timotimo right
18:27 p3rln00b m: 55296.chr.say; CATCH { default { .^name.say } }; "No explosion".say
18:27 camelia rakudo-moar bf7945: OUTPUT«X::AdHoc␤»
18:27 timotimo we have upcoming changes to how stuff reacts to encoding issues
18:27 p3rln00b m: {55296.chr.say; CATCH { default { .^name.say } }}; "No explosion".say
18:27 camelia rakudo-moar bf7945: OUTPUT«X::AdHoc␤No explosion␤»
18:29 cyphase joined #perl6
18:31 adu joined #perl6
18:35 harmil_wk Using the parameter-type-conversion syntax (A(B) $c) with MAIN seems to not work. Is this how I should have expected it to work? https://gist.github.com/ajs/80​ceb7fe672cfe2fd35ecf40ecf93e69
18:36 nowan_ joined #perl6
18:36 p3rln00b harmil_wk: what does "not work" mean?
18:36 canopus joined #perl6
18:36 geekosaur I think that's known and expected because anything handed to MAIN is intrinsically string-y
18:37 timotimo right, you get IntStr and such there
18:37 harmil_wk p3rln00b: It fails to convert from Str, and just gives usage
18:37 timotimo those will already match Int and Str
18:38 timotimo well, did you give Str a .Filename method?
18:39 harmil_wk geekosaur: But Foo(Str) :$foo should take a Str and ugprade it shouldn't it?
18:39 geekosaur as timotimo said, only if there is a coercer already
18:39 p3rln00b m: class Filename {}; sub (Filename() :$foo) {dd $foo}()
18:39 camelia rakudo-moar bf7945: OUTPUT«No such method 'Filename' for invocant of type 'Any'␤  in sub  at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
18:39 geekosaur you can't tell it "coerce these" unless it knows how to coerce, which means a .Filename method in Str
18:39 p3rln00b harmil_wk: ^ that's your problem. I guess sub MAIN just doesn't actually throw that error and instead prints usage
18:40 geekosaur yes, I think it catches exceptions and prints usage instead
18:40 timotimo yeah
18:40 geekosaur not MAIN itself but the harness that invokes it
18:40 harmil_wk alal:
18:40 harmil_wk m: sub f(IO(Str) $file) { say $file.basename }; f("/tmp")
18:40 camelia rakudo-moar bf7945: OUTPUT«tmp␤»
18:40 p3rln00b harmil_wk: that's because Str has IO method
18:40 p3rln00b s: "/tmp", 'IO'
18:40 SourceBaby p3rln00b, Sauce is at https://github.com/rakudo/rakudo/b​lob/bf7945e/src/core/Cool.pm#L221
18:40 harmil_wk Is it? That's not what that syntax is supposed to be
18:41 geekosaur [13 18:39:45] <geekosaur> you can't tell it "coerce these" unless it knows how to coerce, which means a .Filename method in Str
18:41 p3rln00b harmil_wk: syntax for what?
18:42 harmil_wk Hold up... I'm confused. So, if I want to have a type that can be coerced to from Str, I have to monkey-patch Str to know about it? Isn't that backwards?
18:43 timotimo it's sub-optimal, but all solutions to this particular problem are
18:43 geekosaur what timotimo just said
18:43 p3rln00b harmil_wk: but how else would a type know how to coerce to your custom type?
18:43 timotimo subs are lexical, for example, so the knowledge of how to coerce would be limited to where you're calling from
18:44 * timotimo AFK
18:44 harmil_wk p3rln00b: I don't think that's what anyone should want. What we should want is to have my custom type know how to coerce FROM a given type. That's what I assumed the A(B) $c signature syntax was doing...
18:45 harmil_wk If my custom type can be coerced to from Int, Str, Complex and IO, I don't think that it makes sense to go modifying all of those, does it?
18:45 wamba joined #perl6
18:46 p3rln00b harmil_wk: Feels dirty. You're not coercing anthing "from". You're proposing a mechanism that would set attributes or create a new object when a particular routine is called.
18:47 harmil_wk Well, coercing is, of course, creating a new object. It's not polymorphism.
18:47 p3rln00b Which I'm pretty can be done with a subset anyway
18:47 harmil_wk how?
18:47 lucs Looking at some old code that has 「sub foo(:d(:$default) as Str = "", …)」, which complains of 「Malformed parameter at ⋯ ------> :d(:$default)⏏ as Str = ""」 when compiled today.
18:47 dalek doc: 6bfa9b4 | coke++ | doc/ (9 files):
18:47 dalek doc: fix typos, grammar, and prefer writable
18:47 dalek doc: review: https://github.com/perl6/doc/commit/6bfa9b4f0b
18:47 lucs How should that be written now?
18:48 dalek doc/spellcheck: d5f5ce7 | (Zoffix Znet)++ | doc/Type/Mix.pod6:
18:48 dalek doc/spellcheck: Document Mix.Bag/.BagHash
18:48 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/d5f5ce7ce8
18:48 dalek doc/spellcheck: c24aeb5 | (Zoffix Znet)++ | doc/Type/MixHash.pod6:
18:48 dalek doc/spellcheck: Document MixHash.Bag/.BagHash
18:48 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/c24aeb5d27
18:48 dalek doc/spellcheck: 3acd7bc | coke++ | doc/Type/Mix (2 files):
18:48 dalek doc/spellcheck: Merge branch 'master' into spellcheck
18:48 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/3acd7bcf8f
18:48 dalek doc/spellcheck: 9b5ad6b | coke++ | xt/.aspell.pws:
18:48 dalek doc/spellcheck: more words
18:48 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/9b5ad6bbf6
18:48 dalek doc/spellcheck: 6bfa9b4 | coke++ | doc/ (9 files):
18:48 dalek doc/spellcheck: fix typos, grammar, and prefer writable
18:48 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/6bfa9b4f0b
18:48 dalek doc/spellcheck: 74eb7bf | coke++ | doc/ (9 files):
18:48 dalek doc/spellcheck: Merge branch 'master' into spellcheck
18:48 dalek doc/spellcheck: review: https://github.com/perl6/doc/commit/74eb7bfd35
18:48 p3rln00b lucs: maybe foo(Str :d(:$default) = "")
18:48 lucs p3rln00b: I'll try that, thanks.
18:48 p3rln00b No idea what as Str is
18:49 mspo m: say Str.what
18:49 camelia rakudo-moar bf7945: OUTPUT«No such method 'what' for invocant of type 'Str'␤  in block <unit> at <tmp> line 1␤␤»
18:49 mspo oh well
18:49 geekosaur m: say Str.WHAT
18:49 camelia rakudo-moar bf7945: OUTPUT«(Str)␤»
18:52 p3rln00b harmil_wk: or maybe not. If there is, you'd need an is rw anyway, so it won't work with MAIN anyway
18:52 rindolf joined #perl6
18:53 timotimo "as Str" is an arcane coercion syntax
18:53 perlpilot timotimo++ you beat me by mere seconds
18:53 timotimo so what you really wanted there was Str() :d($default) = "")  (and i tthink you have to drop the : before $default)
18:53 p3rln00b m: class Foo { has $.x }; sub foo ($x is rw where { $x = Foo.new: :$x } ) { dd $x }($ = 42)
18:53 camelia rakudo-moar bf7945: OUTPUT«Foo $ = Foo.new(x => 42)␤»
18:53 p3rln00b harmil_wk: ^ (but as I've said, requires is rw
18:53 p3rln00b )
18:53 harmil_wk why not is copy?
18:54 lucs Just removing the 「as Str」 appears to have fixed it.
18:54 p3rln00b harmil_wk: ah, right, is copy works too
18:57 bstamour joined #perl6
18:59 cyphase joined #perl6
19:01 harmil_wk So, using the "is copy where" syntax works, but has a drawback. It doesn't allow me to use the typename in MAIN's automatic USAGE generation (so I get "--foo=<Any>" in the usage)
19:01 harmil_wk Here's the two ways that work: https://gist.github.com/ajs/07​9f1f9c7d0cf51e6c8cd9ed745beb30
19:04 p3rln00b m: BEGIN @*ARGS = '--foo=42'; class Filename { has $.v; method FromStr ($v) { self.new: :$v } }; multi MAIN (Str :$foo) { samewith :foo(Filename.FromStr: $foo) }; multi MAIN (Filename :$foo) { dd "Got $foo.v()" }
19:04 camelia rakudo-moar bf7945: OUTPUT«"Got 42"␤»
19:04 p3rln00b m: BEGIN @*ARGS = '--fdsdssoo=42'; class Filename { has $.v; method FromStr ($v) { self.new: :$v } }; multi MAIN (Str :$foo) { samewith :foo(Filename.FromStr: $foo) }; multi MAIN (Filename :$foo) { dd "Got $foo.v()" }
19:04 camelia rakudo-moar bf7945: OUTPUT«Usage:␤  <tmp> [--foo=<Str>] ␤  <tmp> [--foo=<Filename>] ␤»
19:06 harmil_wk p3rln00b: That's ... interesting
19:06 harmil_wk Looks like it iterates over the instances of MAIN?
19:07 p3rln00b m: https://gist.github.com/zoffixznet​/3605a2f8e953dfe6cc37da8768276071
19:07 camelia rakudo-moar bf7945: OUTPUT«Usage:␤  <tmp> [--foo=<Filename>] ␤  ␤    --foo=<Filename>    A filename argument.␤»
19:07 p3rln00b harmil_wk: ^
19:07 p3rln00b harmil_wk: it's just using multi dispatch. The usage is LTA though, as it lists both multies
19:08 p3rln00b Oh wait. The last example probably doesn't work
19:08 p3rln00b Weird
19:08 p3rln00b I wonder why
19:09 p3rln00b m: class Filename is Str {}; sub foo (Filename $x) { dd $x }("foo")
19:09 camelia rakudo-moar bf7945: OUTPUT«Type check failed in binding to $x; expected Filename but got Str ("foo")␤  in sub foo at <tmp> line 1␤  in block <unit> at <tmp> line 1␤␤»
19:09 p3rln00b but... Filename is Str :|
19:10 p3rln00b Oh. I got it the wrong way around. A Str will take a Filename, but not the other way
19:10 harmil_wk p3rln00b: thanks
19:11 harmil_wk Oh, so not so much.... anyway, have other $work to focus on, was just curious since this is a fairly standard usage pattern in Python's argparse, and I've gotten used to it.
19:12 p3rln00b Well, Perl 6 is very maleable. There's probably a way to do your CoerceFrom thing with a user-space module
19:12 p3rln00b m: BEGIN @*ARGS = '--fdsdssoo=42'; sub MAIN (IO(Str) :$foo) { dd $foo }
19:12 camelia rakudo-moar bf7945: OUTPUT«Use of uninitialized value of type Str in string context.␤Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.␤  in sub MAIN at <tmp> line 1␤Must specify something as a path: did you mean '.' for the current dire…»
19:13 p3rln00b intrestring
19:13 p3rln00b m: BEGIN @*ARGS = '--foo=42'; sub MAIN (IO(Str) :$foo) { dd $foo }
19:13 camelia rakudo-moar bf7945: OUTPUT«IntStr.new(42, "42").IO(:SPEC(IO::Spec::Uni​x),:CWD("/home/camelia"))␤»
19:13 p3rln00b m: Str.IO
19:13 camelia rakudo-moar bf7945: OUTPUT«Use of uninitialized value of type Str in string context.␤Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.␤  in block <unit> at <tmp> line 1␤Must specify something as a path: did you mean '.' for the current …»
19:13 p3rln00b I see
19:14 cyphase joined #perl6
19:14 lucs How does this syntax work?:  some_sub 「arg1」, …, -> Str $i { 「code block」 };
19:15 p3rln00b lucs: … is a sequence operator and you give it some args and you call some_sub on the generated sequence
19:15 p3rln00b erm, except for that extra comma. But it might be a relic from the past (today it warns I think)
19:16 lucs Oh, that … should have been 「…」, it was just a placeholder for other args.
19:16 lucs So maybe instead:
19:16 p3rln00b lucs: heh, so what's the actual code instead of something you invented? You *are* asking to interpret what the syntax means
19:17 lucs How does this syntax work?:  some_sub 「arg1」, 「arg2」, 「arg3」 -> Str $i { 「code block」 };
19:17 p3rln00b -> Str $i {...} is just a code block that takes one Str argument
19:17 p3rln00b hmm
19:17 p3rln00b With a for loop, that'd feed the args to the block. Not sure what arbitrary sub does
19:17 geekosaur by itself it's just another way to write an anonymous sub
19:18 FROGGS m: sub foo { say @_».map(*.^name) }; foo 1, 2, 3, -> { }
19:18 camelia rakudo-moar bf7945: OUTPUT«((Int) (Int) (Int) (Block))␤»
19:18 lucs Oh, wait, I missed a comma:
19:18 p3rln00b FROGGS: but there's no comma
19:18 lucs How does this syntax work?:  some_sub 「arg1」, 「arg2」, 「arg3」, -> Str $i { 「code block」 };
19:18 p3rln00b *sigh*
19:18 p3rln00b lucs: like I explained earlier then. You call the sub with 4 args, last one of which is a code block
19:18 FROGGS lucs: so you pass a callback to that sub
19:18 lucs Ah, I see.
19:18 lucs Thanks.
19:19 geekosaur m: (-> Str $i { $i.say })("hi")
19:19 camelia rakudo-moar bf7945: OUTPUT«hi␤»
19:19 p3rln00b m: sub foo (*@) {}; foo 1, 2, 3 -> Str $i {}
19:19 camelia rakudo-moar bf7945: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Unexpected block in infix position (missing statement control word before the expression?)␤at <tmp>:1␤------> 3sub foo (*@) {}; foo 1, 2, 37⏏5 -> Str $i {}␤    expecting any of:␤        infix…»
19:19 bioduds_ joined #perl6
19:19 bioduds_ hi, friends.
19:20 bioduds_ Anyone interested in mining bitcoins using Perl6???
19:20 sjoshi joined #perl6
19:21 arnsholt Note that there's a difference between -> {} and sub {} in how return works
19:22 cygx m: sub coerce(Any:U \Type, \obj) { my $m; $m = obj.can(Type.^name).first(*.cando(\(obj))); return $m(obj) if $m; $m = Type.can("new").first(*.cando(\(Type, obj))); return $m(Type, obj) if $m; obj }; class Foo { method new(Int) { self.bless } }; sub foo($x is copy where { $x = coerce Foo, $x }) { say $x }; foo 42
19:22 camelia rakudo-moar bf7945: OUTPUT«Foo.new␤»
19:23 arnsholt m: sub foo($x) { $x(); return 42 }; say foo(-> { return 1 })
19:23 camelia rakudo-moar bf7945: OUTPUT«Attempt to return outside of any Routine␤  in block <unit> at <tmp> line 1␤␤»
19:23 bioduds_ I'm asking because of what Damian Conway raises in prospect of cryptography breaking capabilities with Perl6 on this talk here https://www.youtube.com/watch?v=Nq2HkAYbG5o
19:23 bioduds_ made me wonder...
19:24 bstamour you would still need a quantum computer to break the crypto in a reasonable amount of time
19:24 bstamour maybe we can start porting perl 6 to the d-wave?
19:24 p3rln00b bioduds_: you weren't paying attention to that talk. At one point he does say there's no hardware currently in existence for his quantum stuff code to actually do it
19:25 p3rln00b (or at least did in person; I attented the "longer version" of that talk; didn't watch the vid :P)
19:26 bioduds_ p3rln00b : oh, okeydokey. thanks a lot :)
19:26 bioduds_ what is d-wave?
19:26 p3rln00b bioduds_: and aren't bitcoins minded with purpose-made hardware these days anyway? And isn't bitcoin dead 'cause they reached the limit or whatever the hell happened last year there? :)
19:27 p3rln00b bioduds_: https://en.wikipedia.org/wiki/D-Wave_Systems
19:27 moritz bitcoins are mined with ASICs, yes
19:27 bioduds_ blockchain is real, I guess even though I don't really know the status of bitcoins in that matter
19:27 p3rln00b "128-qubit superconducting adiabatic quantum optimization processor"... oh, that sounds so sexy
19:27 moritz there are other coins with algorithms designed to not be easily approachable with specialized hardware
19:27 labster joined #perl6
19:28 cyphase joined #perl6
19:28 moritz p3rln00b: to me, "adiabatic" means "boring" :-)
19:28 bstamour p3rln00b: I don't even know what half those words mean, but I want one :-)
19:28 bioduds_ adiabatic is a gaseous transformation if I recall correctly from physics classes
19:28 * p3rln00b doesn't know what adiabatic is so it sounds exciting :D
19:29 bioduds_ that happens very fast
19:29 bioduds_ for instance, spraying out some substance makes the can become cool
19:29 bioduds_ due to adiabatic transformation, again, if I correctly recall it
19:30 moritz it just means that no heat exchange happens at the system border
19:30 bstamour They forgot to mention "mutilating your privacy" on their Applications page
19:33 TEttinger joined #perl6
19:33 bioduds_ p3rln00b : please clarify me on that 'whatever happened', I didn't follow this
19:34 geekosaur there is an upper limit to the number of transactions representable on the blockchain
19:34 geekosaur although I didn't think they had hit it yet, not that I pay that close attention
19:34 bstamour left #perl6
19:35 bioduds_ so basically what you're saying is that a blockchain is limited to a number of transactions?
19:35 p3rln00b bioduds_: I don't remember. One of the founders or someone "up there" with the bitcoin wrote a blog post that they reached the limit or something. All I recall is a giant blog post with a ton of charts and everyone on the net saying it's the end of bitcoin
19:36 bioduds_ therefore, making it impractical?
19:38 bstamour joined #perl6
19:39 mst no
19:40 mst bioduds_: if you google 'bitcoin block size problem' you will find out all about it
19:40 bioduds_ doing right now :)
19:43 cyphase joined #perl6
19:46 rgrinberg joined #perl6
19:47 itaipu joined #perl6
19:48 bioduds_ seems like mining is dead for mere mortals
19:48 zzzzzzzzz joined #perl6
19:54 pecastro joined #perl6
19:59 stevieb9 joined #perl6
20:02 PerlFireCAt joined #perl6
20:04 samcv nice i'm on freen
20:04 samcv oops sorry wrong room
20:04 samcv ugh goddam popups
20:04 bioduds_ and looks like the network is "irrecuperably" jammed
20:05 bioduds_ thanks for the insight, gentlemen :)
20:07 stmuk_ damm! missed a talk this evening by Sophie Wilson (ARM designer) due to dental issue
20:07 stmuk_ I bet it was good
20:10 stmuk_ probably similar to https://www.youtube.com/watch?v=b5j_Y-ML3dg
20:26 cdg joined #perl6
20:35 dataf4l joined #perl6
20:35 bjz joined #perl6
20:39 Lucas_One left #perl6
20:45 bstamour left #perl6
20:57 canopus joined #perl6
21:01 cdg_ joined #perl6
21:04 Technaton joined #perl6
21:13 firstdayonthejob joined #perl6
21:15 rindolf joined #perl6
21:17 cdg joined #perl6
21:31 timotimo nothing better than watching a movie over SMB with a network cable that's missing its clip
21:31 timotimo when the laptop lies on the floor and the cat keeps walking against the cable
21:34 Technaton Just walking against, or playing with it? :)
21:35 AlexDaniel joined #perl6
21:38 girafe joined #perl6
21:44 yqt joined #perl6
21:48 perlawhirl joined #perl6
21:48 AlexDaniel gfldex: hmmm… what about changing all of your answers to community wiki? (re: SO and its crap)
21:49 perlawhirl hi AlexDaniel
21:49 AlexDaniel not sure if it is possible, but sounds like an interesting idea
21:49 AlexDaniel perlawhirl: hi
21:49 perlawhirl i'm not sure why that happens https://irclog.perlgeek.de/​perl6/2016-10-10#i_13374587
21:50 perlawhirl but i suspect... the & forces function calling semantics
21:50 perlawhirl the .elems method parameter is an InterationBuffer... whatever that is ??
21:50 perlawhirl and the elems() function just takes a normal value
21:51 perlawhirl but i suspect before *.elems ever receives the arguments, it's being pushed though the function calling semantics of &()
21:51 perlawhirl so you end up with something akin to
21:51 perlawhirl m: say (<30 50 60>, <3 4 5 6>)».&elems
21:51 camelia rakudo-moar 7f16cb: OUTPUT«((1 1 1) (1 1 1 1))␤»
21:52 AlexDaniel m: say (<30 50 60>, <3 4 5 6>)».elems
21:52 camelia rakudo-moar 7f16cb: OUTPUT«(3 4)␤»
21:53 perlawhirl one of the core dev's could probably answer, but i suspect IterationBuffer is some special type that buffers the values until the iteration ends, which allows ».elems to work
21:53 perlawhirl I could be wrong about all this... I'm just guessing
21:53 perlawhirl again, tho... ».&(*.elems) is an x/y problem
21:54 AlexDaniel well, the biggest question right now is how do we document this
21:54 AlexDaniel for example, I created this issue: https://github.com/perl6/doc/issues/960
21:54 AlexDaniel but we can also improve this: https://docs.perl6.org/language/op​erators#index-entry-postfix_%C2%BB.
22:01 perlawhirl i agree the docs for » are lacking. i think part of that improvemnt is documenting the purpose of constructs like '@args».&()' really do.
22:01 perlawhirl my gut says that '».&()' syntax is geared towards mapping a function (ie, in subroutine context) for _each_ of a list of args
22:01 perlawhirl '».method' may behave differently because mainly because those methods behave differently from their function equivalents
22:03 perlawhirl take 'join' for instance... the method has a default $separator, the function does not
22:03 perlawhirl m: say <a b c>».join
22:03 camelia rakudo-moar 7f16cb: OUTPUT«(a b c)␤»
22:03 perlawhirl m: say <a b c>».&join
22:03 camelia rakudo-moar 7f16cb: OUTPUT«(  )␤»
22:04 perlawhirl the point is... not all functions act like there method brethren
22:08 Juerd_ joined #perl6
22:11 perlawhirl joined #perl6
22:14 itaipu joined #perl6
22:16 perlawhirl joined #perl6
22:19 canopus joined #perl6
22:22 perlawhirl joined #perl6
22:32 cpage_ joined #perl6
22:33 timotimo perlawhirl: the reason why it's different is because *.elems doesn't keep the "is nodal" from its thingie
22:34 timotimo perlawhirl: with join, you're actually passing one letter as the separator in turn. but the list you're joining is empty, so you end up with three empty strings as the result
22:43 erdic joined #perl6
22:44 perlawhirl timotimo: yes, i figured out the join thing the other day, was just using it to illustrate the difference
22:46 timotimo ah
22:50 zzzzzzzzz left #perl6
22:50 perlawhirl timotimo: so what does "is nodal" mean/do?
22:53 timotimo exactly the difference between giving you 1 1 1, 1 1 and 3, 2
22:53 perlawhirl so in context... '< a b c >' is a "node" ?
22:55 timotimo yeah
22:56 geekosaur more or less, "nodal" indicates whether something should descend into structures or not
23:04 perlawhirl can functions do "is nodal", or only methods ?
23:04 pecastro joined #perl6
23:15 AlexDaniel m: sub foo is nodal {}; foo
23:15 camelia rakudo-moar 7f16cb: ( no output )
23:16 AlexDaniel huggable: dunno
23:16 huggable AlexDaniel, ¯\_(ツ)_/¯
23:20 perlawhirl AlexDaniel: in your case, my original comment stands. &() is a function, albeit an anonymous one
23:20 perlawhirl by the time that function recieves the arguments, it's not "nodal"
23:20 perlawhirl m: sub count { @_.elems }; say (<a b c>, <x y>).&count; say (<a b c>, <x y>)».&count
23:20 camelia rakudo-moar 7f16cb: OUTPUT«5␤((1 1 1) (1 1))␤»
23:21 perlawhirl ».&(*.elems) is the same as that last example ^^^
23:23 Herby__ joined #perl6
23:23 Herby__ o/
23:27 timotimo o/
23:42 perlawhirl joined #perl6
23:46 skids joined #perl6
23:48 BenGoldberg joined #perl6
23:56 mephinet joined #perl6
23:57 perlawhirl joined #perl6

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

Perl 6 | Reference Documentation | Rakudo