Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-11-06

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:00 AlexDaniel yea, and you only need use WWW;
00:01 perllover AlexDaniel still error https://pastebin.com/7HcPmqLR
00:02 AlexDaniel yeah, that's the point
00:02 perllover yea i understand. but you're saying you wouldn't get such an error when you run that 2-line code ?
00:03 AlexDaniel yeah, no error here
00:03 HoboWithAShotgun do we use prepan for 6 modules? if not, is there a similar place?
00:04 perllover AlexDaniel what can i do?
00:04 AlexDaniel well, as I said, you can try disabling ipv6 and trying again
00:06 perllover do you think there's an easy way to do it in perl5?
00:06 perllover i'm a bit rusty with perl5, however. but a quick way to convert that same code over
00:07 perllover i'm nervous to disable ipv6. it looked risky
00:07 perllover am i overreacting about ipv6 ?
00:08 AlexDaniel it depends
00:09 perllover depends on?
00:11 AlexDaniel stuff. :) But if I were you I'd try it, it is probably harmless
00:14 mr-foobar joined #perl6
00:16 perlawhirl ed'ed
00:16 perlawhirl oops
00:19 perlawhirl joined #perl6
00:25 atta joined #perl6
00:25 Cabanossi joined #perl6
00:25 ggoebel joined #perl6
00:32 Mrofnet joined #perl6
00:37 MasterDuke_ joined #perl6
00:39 atta joined #perl6
00:47 cdg joined #perl6
00:47 cognominal joined #perl6
00:57 aborazmeh joined #perl6
00:57 aborazmeh joined #perl6
00:59 geekosaur joined #perl6
01:11 cdg joined #perl6
01:14 mr-foobar joined #perl6
01:15 Morfent joined #perl6
01:17 Merfont joined #perl6
01:28 comborico1611 Quiet tonight.
01:28 astj joined #perl6
01:32 Geth ¦ doc/master: 11 commits pushed by W4anD0eR96++, (Alex Chen)++
01:32 Geth ¦ doc/master: review: https://github.com/perl6/doc/compare/dbce28f261...42d87cf59e
01:34 xinming_ joined #perl6
01:45 mr-foobar joined #perl6
01:57 kalkin-- joined #perl6
02:04 wander joined #perl6
02:06 colomon joined #perl6
02:06 Geth ¦ doc: 2212ab26dd | (Alex Chen)++ (committed using GitHub Web editor) | type-graph.txt
02:06 Geth ¦ doc: Introduce new classes
02:06 Geth ¦ doc: review: https://github.com/perl6/doc/commit/2212ab26dd
02:07 cdg joined #perl6
02:10 ch3ck3r joined #perl6
02:15 comborico1611 map { ++$_ } #WRONG map { $_ + 1 } #RIGHT
02:15 comborico1611 Tricky business.
02:15 mr-foobar joined #perl6
02:15 Geth ¦ perl6-most-wanted: holli-holzer++ created pull request #40: WIP: Units
02:15 Geth ¦ perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/pull/40
02:17 HoboWithAShotgun when your brain starts to feel like a wet ball of cotton it's time to sleep
02:18 comborico1611 lol
02:18 comborico1611 That's actually quite accurate comparison.
02:19 comborico1611 Are you a poet?
02:19 HoboWithAShotgun yeah, and it really gets critical when the fabric dries
02:19 comborico1611 I haven't been there.
02:20 HoboWithAShotgun what are your dealings with Perl6 comborico1611?
02:21 comborico1611 A non programmer trying to become a programmer.
02:22 HoboWithAShotgun in hindsight of doing it for a living?
02:22 comborico1611 Correct.
02:22 HoboWithAShotgun Oh, that's painful.
02:22 comborico1611 Just finished Chapter Nine! 😂
02:23 colomon joined #perl6
02:23 comborico1611 On to hashes!
02:23 HoboWithAShotgun Because, if you learn to program with Perl6, you will get used to all those great features that simply not exist in other laguages
02:24 comborico1611 I learned on C++
02:24 HoboWithAShotgun And I doubt you will find a Perl 6 job anytime soon.
02:25 Geth ¦ perl6-most-wanted: ade8a5c53f | holli-holzer++ (committed using GitHub Web editor) | most-wanted/modules.md
02:25 Geth ¦ perl6-most-wanted: WIP: Units
02:25 Geth ¦ perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/ade8a5c53f
02:25 Geth ¦ perl6-most-wanted: 52c6e3796b | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | most-wanted/modules.md
02:25 Geth ¦ perl6-most-wanted: Merge pull request #40 from holli-holzer/master
02:25 Geth ¦ perl6-most-wanted:
02:25 Geth ¦ perl6-most-wanted: WIP: Units
02:25 Geth ¦ perl6-most-wanted: review: https://github.com/perl6/perl6-most-wanted/commit/52c6e3796b
02:25 comborico1611 And i agree with you on the first point. As for jobs, i think Rakudo is a promising place for a guy without a certification.
02:25 HoboWithAShotgun AlexDaniel++ 24/7
02:25 AlexDaniel :)
02:28 * AlexDaniel is actually going to bed now
02:28 AlexDaniel have a good whatever everyone o/
02:28 colomon joined #perl6
02:28 comborico1611 I'm almost am, too.
02:28 comborico1611 Night!
02:28 AlexDaniel releasable6: next
02:28 releasable6 AlexDaniel, Next release in 12 days and ≈16 hours. No blockers. 0 out of 134 commits logged
02:28 araujo_ joined #perl6
02:28 releasable6 AlexDaniel, Details: https://gist.github.com/95ccab329b19bc352857171c5886ff64
02:28 AlexDaniel whoops. 12 days
02:29 AlexDaniel time flies
02:31 comborico1611 How long have hashes been in programming languages?
02:33 HoboWithAShotgun m: my @a = 1, 2; my ($a, $b) = @a; $a.say
02:33 camelia rakudo-moar 77142fdb2: OUTPUT: «1␤»
02:34 HoboWithAShotgun m: my %a = :a(1); my (:$a) = %a; $a.say
02:34 camelia rakudo-moar 77142fdb2: OUTPUT: «a => 1␤»
02:34 Mrofnet joined #perl6
02:35 * HoboWithAShotgun decides to do as AlexDaniel
02:36 HoboWithAShotgun byebye
02:37 comborico1611 Night!
02:38 Exodist joined #perl6
02:39 cdg joined #perl6
02:40 Cabanossi joined #perl6
02:53 mr-foobar joined #perl6
02:55 ilbot3 joined #perl6
02:55 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!
03:07 piojo joined #perl6
03:15 mr-foobar joined #perl6
03:15 Morfent joined #perl6
03:22 colomon joined #perl6
03:23 noganex joined #perl6
03:25 Cabanossi joined #perl6
03:34 darkmorph joined #perl6
03:37 ryn1x_ joined #perl6
03:37 Geth ¦ doc: 0db8f8c7b7 | (Jeremy Studer)++ | 172 files
03:37 Geth ¦ doc: Add vim modeline at end of every file without one
03:37 Geth ¦ doc:
03:37 Geth ¦ doc: The settings in the modeline do the following:
03:37 Geth ¦ doc:
03:37 Geth ¦ doc: * Highlight this file as Perl6
03:37 Geth ¦ doc: * Expand tabs into 4 spaces
03:37 Geth ¦ doc:
03:37 Geth ¦ doc: This is helpful for vim users for highlighting an atypical file format
03:37 Geth ¦ doc: and creates formatting consistency with regards to tabs and spacing.
03:37 Geth ¦ doc: review: https://github.com/perl6/doc/commit/0db8f8c7b7
03:39 [Coke] ^^ someone might want to make a test for that. (or a ticket to make a tst anyway)
03:40 wander what is declarator `monitor` means
03:40 wander looks like `class`, what's the difference
03:42 timotimo https://en.wikipedia.org/wiki/Monitor_(synchronization) - wander, it's this thing
03:42 * timotimo disappears into bed
03:42 timotimo (nobody saw me)
03:44 mr-foobar joined #perl6
03:45 * wander suddenly find it's in my exam this afternoon
03:46 wander OS lesson
04:03 MasterDuke joined #perl6
04:11 cdg joined #perl6
04:12 colomon joined #perl6
04:24 [Coke] m: Telemetry.say
04:24 camelia rakudo-moar 77142fdb2: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    Telemetry used at line 1␤␤»
04:25 [Coke] lizmat: Alex Chen added Telemetry to the typegraph in docs, but it's not a publicly available class. Guessing it should actually be in the type graph. Thoughts?
04:25 Actualeyes joined #perl6
04:26 wander joined #perl6
04:35 sena_kun joined #perl6
04:38 Cabanoss- joined #perl6
04:43 geekosaur m: use Telemetry;
04:43 camelia rakudo-moar 77142fdb2: ( no output )
04:46 mr-foobar joined #perl6
04:57 ryn1x joined #perl6
05:04 mson joined #perl6
05:14 mr-foobar joined #perl6
05:18 Morfent joined #perl6
05:39 Cabanossi joined #perl6
05:46 mr-foobar joined #perl6
05:48 imcsk8 joined #perl6
05:49 Geth ¦ Pod-To-HTML/toc-escape: f8db64ba8d | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
05:49 Geth ¦ Pod-To-HTML/toc-escape: Escape toc text
05:49 Geth ¦ Pod-To-HTML/toc-escape: review: https://github.com/perl6/Pod-To-HTML/commit/f8db64ba8d
05:51 Geth ¦ Pod-To-HTML: W4anD0eR96++ created pull request #27: Escape toc text
05:51 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/pull/27
05:51 wamba joined #perl6
05:53 wander [Coke]: yes, I hesitate if it should be add
05:53 wander 1. Telemetry::Period inherits from Telemetry, this is the main reason I add it
05:57 wander 2. However, it's a rakudo-specific class, I wonder if it should even not be in /Types
06:00 wander That's the problem, other classes in rakudo/rakudo/lib, such like `Pod::To::..`, `NativeCall` are not documented in /Types. But `Telemetry` is thought a useful class, at least lizmat wrote a initial doc of it.
06:01 wander To resolve this problem, maybe we have to think about where a rakudo-specific class should be documented, if the doc.perl6.org, how we should doc it.
06:08 mempko joined #perl6
06:12 wander BTW, https://docs.perl6.org/type/snapper should not be documents in this place.
06:12 mattp__ joined #perl6
06:13 labster_ joined #perl6
06:14 wander We can start with "Roadmap for our language/ docs" https://github.com/perl6/doc/issues/114 and consider how the site we want it be.
06:14 lucs_ joined #perl6
06:14 titsuki_ joined #perl6
06:16 TEttinger joined #perl6
06:16 * wander go to take an exam
06:17 evalable6 joined #perl6
06:17 eater joined #perl6
06:18 unicodable6 joined #perl6
06:18 statisfiable6 joined #perl6
06:18 bisectable6 joined #perl6
06:18 benchable6 joined #perl6
06:18 nativecallable6 joined #perl6
06:19 stux|RC joined #perl6
06:20 mr-foobar joined #perl6
06:26 notostraca joined #perl6
06:32 john51 joined #perl6
06:32 konsolebox joined #perl6
06:34 ribasushi joined #perl6
06:34 evalable6 joined #perl6
06:34 releasable6 joined #perl6
06:44 Piotr_ joined #perl6
06:50 atta joined #perl6
06:50 mr-foobar joined #perl6
06:51 bisectable6 joined #perl6
06:51 unicodable6 joined #perl6
06:51 nativecallable6 joined #perl6
06:51 benchable6 joined #perl6
06:51 statisfiable6 joined #perl6
06:54 Cabanossi joined #perl6
07:02 darutoko joined #perl6
07:12 nadim joined #perl6
07:12 titsuki_ joined #perl6
07:12 mempko joined #perl6
07:12 colomon joined #perl6
07:12 astj joined #perl6
07:12 vike joined #perl6
07:12 APic joined #perl6
07:12 epony joined #perl6
07:12 cgfbee joined #perl6
07:12 shadoxx joined #perl6
07:12 dogbert17 joined #perl6
07:12 kshannon joined #perl6
07:12 Alikzus_ joined #perl6
07:12 charsbar joined #perl6
07:12 ab5tract joined #perl6
07:12 masak joined #perl6
07:12 preaction joined #perl6
07:12 silug joined #perl6
07:13 darutoko- joined #perl6
07:13 APic joined #perl6
07:15 ccntrq joined #perl6
07:16 benchable6 joined #perl6
07:16 statisfiable6 joined #perl6
07:16 evalable6 joined #perl6
07:16 mr-foobar joined #perl6
07:16 ZzZombo joined #perl6
07:17 HTTP_____GK1wmSU joined #perl6
07:17 HTTP_____GK1wmSU left #perl6
07:18 pm51 joined #perl6
07:18 cgfbee joined #perl6
07:18 ugexe joined #perl6
07:19 Altreus joined #perl6
07:19 john51 joined #perl6
07:21 statisfiable6 joined #perl6
07:21 benchable6 joined #perl6
07:21 evalable6 joined #perl6
07:23 ccntrq joined #perl6
07:30 ZzZombo joined #perl6
07:30 ZzZombo left #perl6
07:31 ZzZombo joined #perl6
07:39 Cabanossi joined #perl6
07:42 benchable6 joined #perl6
07:42 evalable6 joined #perl6
07:42 statisfiable6 joined #perl6
07:46 mr-foobar joined #perl6
07:47 parv joined #perl6
07:48 ZzZombo joined #perl6
08:03 ZzZombo joined #perl6
08:08 ZzZombo left #perl6
08:09 ZzZombo joined #perl6
08:15 lowbro joined #perl6
08:15 lowbro joined #perl6
08:22 zakharyas joined #perl6
08:32 abraxxa joined #perl6
08:39 rindolf joined #perl6
08:45 mr-foobar joined #perl6
08:54 holyghost alt.test
08:57 holyghost CTCP #perl6 client
08:58 holyghost joined #perl6
08:59 sena_kun joined #perl6
09:03 jonas1 joined #perl6
09:12 tadzik joined #perl6
09:15 mr-foobar joined #perl6
09:20 cdg joined #perl6
09:25 HoboWithAShotgun joined #perl6
09:45 ilbot3 joined #perl6
09:45 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!
09:46 atta joined #perl6
09:57 HaraldJoerg joined #perl6
10:06 Geth ¦ Pod-To-HTML/toc-escape: d57051b2fc | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
10:06 Geth ¦ Pod-To-HTML/toc-escape: escape html in toc
10:06 Geth ¦ Pod-To-HTML/toc-escape:
10:06 Geth ¦ Pod-To-HTML/toc-escape: ```
10:06 Geth ¦ Pod-To-HTML/toc-escape: =begin pod
10:06 Geth ¦ Pod-To-HTML/toc-escape:
10:06 Geth ¦ Pod-To-HTML/toc-escape: =TITLE Regex
10:06 Geth ¦ Pod-To-HTML/toc-escape:
10:06 Geth ¦ Pod-To-HTML/toc-escape: <…commit message has 8 more lines…>
10:06 Geth ¦ Pod-To-HTML/toc-escape: review: https://github.com/perl6/Pod-To-HTML/commit/d57051b2fc
10:09 wander joined #perl6
10:13 salva joined #perl6
10:17 mr-foobar joined #perl6
10:17 margeas joined #perl6
10:18 Geth ¦ Pod-To-HTML: f8db64ba8d | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
10:18 Geth ¦ Pod-To-HTML: Escape toc text
10:18 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/f8db64ba8d
10:18 Geth ¦ Pod-To-HTML: d57051b2fc | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
10:18 Geth ¦ Pod-To-HTML: escape html in toc
10:18 Geth ¦ Pod-To-HTML:
10:18 Geth ¦ Pod-To-HTML: ```
10:18 Geth ¦ Pod-To-HTML: =begin pod
10:18 Geth ¦ Pod-To-HTML:
10:18 Geth ¦ Pod-To-HTML: =TITLE Regex
10:19 Geth ¦ Pod-To-HTML:
10:19 Geth ¦ Pod-To-HTML: <…commit message has 8 more lines…>
10:19 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/d57051b2fc
10:19 Geth ¦ Pod-To-HTML: 329bc915b3 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
10:19 Geth ¦ Pod-To-HTML: Merge pull request #27 from perl6/toc-escape
10:19 Geth ¦ Pod-To-HTML:
10:19 Geth ¦ Pod-To-HTML: Escape toc text
10:19 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/329bc915b3
10:19 HoboWithAShotgun joined #perl6
10:22 Matthew[m] joined #perl6
10:22 CIAvash[m] joined #perl6
10:22 M-Illandan joined #perl6
10:22 ilmari[m] joined #perl6
10:22 mack[m] joined #perl6
10:22 wamba[m] joined #perl6
10:22 tyil[m] joined #perl6
10:22 unclechu joined #perl6
10:22 AlexDaniel`1 joined #perl6
10:22 wictory[m] joined #perl6
10:22 mienaikage joined #perl6
10:22 Garland_g[m] joined #perl6
10:22 xui_nya[m] joined #perl6
10:25 ChoHag joined #perl6
10:28 robertle joined #perl6
10:31 ChoHag_ joined #perl6
10:37 ChoHag joined #perl6
10:41 konsolebox joined #perl6
10:41 cognominal joined #perl6
10:48 Ven joined #perl6
10:49 mr-foobar joined #perl6
10:54 Cabanossi joined #perl6
10:55 raschipi joined #perl6
11:00 darutoko joined #perl6
11:03 sproctor joined #perl6
11:03 HTTP_____GK1wmSU joined #perl6
11:03 HoboWithAShotgun g'day
11:03 HTTP_____GK1wmSU left #perl6
11:05 raschipi day
11:19 mr-foobar joined #perl6
11:19 HTTP_____GK1wmSU joined #perl6
11:19 HTTP_____GK1wmSU left #perl6
11:24 Cabanossi joined #perl6
11:30 Mrofnet joined #perl6
11:32 ryn1x joined #perl6
11:40 llfourn joined #perl6
11:42 Raider_ joined #perl6
11:46 comborico1611 joined #perl6
11:46 mr-foobar joined #perl6
11:49 Merfont joined #perl6
11:54 Cabanossi joined #perl6
12:00 wamba joined #perl6
12:04 HaraldJoerg1 joined #perl6
12:11 census_ joined #perl6
12:17 mr-foobar joined #perl6
12:25 ufobat joined #perl6
12:25 ufobat ola :-)
12:29 census hi
12:35 ZzZombo Hey, if I `make` a value, calling `<match object>.made` is supposed to give that value back, isn't it?
12:42 ryn1x joined #perl6
12:44 darkmorph joined #perl6
12:45 mson joined #perl6
12:46 mr-foobar joined #perl6
12:46 wamba joined #perl6
12:47 kerframil joined #perl6
12:48 aborazmeh joined #perl6
12:48 aborazmeh joined #perl6
12:50 HoboWithAShotgun m: my %a = :a(1), :b(2); my %b = :a(1); say %a <<+>> %b;"
12:50 camelia rakudo-moar e3f6ababf: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unable to parse expression in double quotes; couldn't find final '"' (corresponding starter was at line 1)␤at <tmp>:1␤------> 3 :b(2); my %b = :a(1); say %a <<+>> %b;"7⏏5<EOL>␤    expecting …»
12:51 HoboWithAShotgun m: my %a = :a(1), :b(2); my %b = :a(1); say %a <<+>> %b;
12:51 camelia rakudo-moar e3f6ababf: OUTPUT: «{a => 2}␤»
12:51 HoboWithAShotgun what's the idiomatic way to get { a => 2, b => 2 } ?
12:54 Cabanossi joined #perl6
12:54 HoboWithAShotgun m: my %a = :a(1), :b(2); my %b = :a(1); say %( |%a, |%b, |(%a <<+>> %b) )
12:54 camelia rakudo-moar e3f6ababf: OUTPUT: «{a => 2, b => 2}␤»
12:54 HoboWithAShotgun too ugly
12:54 timotimo what are you trying to do?
12:54 timotimo add the values together?
12:55 HoboWithAShotgun that. summing two hashes, result must have all keys
12:56 timotimo well, with >>+>> it works for that example at least
12:56 timotimo aha
12:56 timotimo >>+<< gives you the union of keys
12:56 timotimo https://docs.perl6.org/language/operators#index-entry-hyper_%3C%3C-hyper_%3E%3E-hyper_%C2%AB-hyper_%C2%BB-Hyper_Operators
13:07 HoboWithAShotgun mmh. actually i am trying to do that with a hash of int.
13:07 HoboWithAShotgun m: my $a = (my Int % = :A(-2), :g(1), :m(2), :s(-3)); my $b = (my Int % = :A(1)); say $a >>+<< $b;
13:07 camelia rakudo-moar e3f6ababf: OUTPUT: «Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'.  Did you forget a '.new'?␤  in block <unit> at <tmp> line 1␤␤»
13:16 ryn1x joined #perl6
13:17 mr-foobar joined #perl6
13:18 timotimo oh? it's perhaps misunderstanding the default return value of an Int hash?
13:22 itaipu joined #perl6
13:23 ryn1x joined #perl6
13:23 kipd joined #perl6
13:23 clkao joined #perl6
13:23 scott joined #perl6
13:24 timotimo m: my $a = (my Int % is default(0) = :A(-2), :g(1), :m(2), :s(-3)); my $b = (my Int % is default(0) = :A(1)); say $a >>+<< $b;
13:24 camelia rakudo-moar e3f6ababf: OUTPUT: «{A => -1, g => 1, m => 2, s => -3}␤»
13:24 iviv joined #perl6
13:24 ccakes joined #perl6
13:24 SmokeMachine joined #perl6
13:27 evalable6 joined #perl6
13:27 benchable6 joined #perl6
13:27 statisfiable6 joined #perl6
13:29 timotimo aha, hyper hypers the values from both hashes together "quietly", that's why the + operator won't complain when one of the sides is undefined
13:29 timotimo but this "undefined turns to 0" is a feature of Any, not of Int
13:30 timotimo m: say Int + 5
13:30 camelia rakudo-moar e3f6ababf: OUTPUT: «Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'.  Did you forget a '.new'?␤  in block <unit> at <tmp> line 1␤␤»
13:30 timotimo i feel like the + operator (and likely many others) should also support one or both sides being undefined
13:35 lizmat m: say 1 + Any   # it does ?
13:35 camelia rakudo-moar e3f6ababf: OUTPUT: «Use of uninitialized value of type Any in numeric context␤1␤  in block <unit> at <tmp> line 1␤»
13:36 lizmat m: quietly say 1 + Any   # it does ?
13:36 camelia rakudo-moar e3f6ababf: OUTPUT: «1␤»
13:36 ZzZombo <ZzZombo> Hey, if I `make` a value, calling `<match object>.made` is supposed to give that value back, isn't it?
13:39 Cabanossi joined #perl6
13:44 timotimo sorry
13:44 timotimo i mean one of the side being undefined Int
13:45 timotimo m: say Int + 1
13:45 camelia rakudo-moar e3f6ababf: OUTPUT: «Invocant of method 'Bridge' must be an object instance of type 'Int', not a type object of type 'Int'.  Did you forget a '.new'?␤  in block <unit> at <tmp> line 1␤␤»
13:45 timotimo that's what breaks >>+<< with Int-declared hashes
13:45 timotimo (unless you have a default)
13:52 ryn1x joined #perl6
13:54 mcmillhj joined #perl6
13:55 timotimo ZzZombo: yes, it's supposed to. what are you seeing?
13:56 tyil !p6 my $i = 0; $i += 5; say $i;
13:57 tyil m: my $i = 0; $i += 5; say $i;
13:57 camelia rakudo-moar e3f6ababf: OUTPUT: «5␤»
13:57 tyil !p6 my $i = 0; $i ⁺= 5; say $i;
13:57 tyil m: my $i = 0; $i ⁺= 5; say $i;
13:57 camelia rakudo-moar e3f6ababf: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Confused␤at <tmp>:1␤------> 3my $i = 0; $i7⏏5 ⁺= 5; say $i;␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        statement modifier␤        sta…»
13:57 AlexDaniel p6: my $i = 0; $i ⁺= 5; say $i;
13:57 camelia rakudo-moar e3f6ababf: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Confused␤at <tmp>:1␤------> 3my $i = 0; $i7⏏5 ⁺= 5; say $i;␤    expecting any of:␤        infix␤        infix stopper␤        statement end␤        statement modifier␤        sta…»
13:57 tyil anyway, that
13:57 AlexDaniel u: ⁺
13:57 unicodable6 AlexDaniel, U+207A SUPERSCRIPT PLUS SIGN [Sm] (⁺)
13:57 tyil it doesnt like it when using the unicode +
13:58 AlexDaniel there's no unicode + that I know of
13:58 AlexDaniel that's superscript +
13:58 AlexDaniel there is unicode minus tho
13:58 AlexDaniel u: MINUS SIGN
13:58 unicodable6 AlexDaniel, U+00B1 PLUS-MINUS SIGN [Sm] (±)
13:58 unicodable6 AlexDaniel, U+02D7 MODIFIER LETTER MINUS SIGN [Sk] (˗)
13:58 unicodable6 AlexDaniel, 13 characters in total: https://gist.github.com/de6599a35d4de60f970b65298007def7
13:58 AlexDaniel m: my $x = 5; $x −= 2; say $x
13:58 camelia rakudo-moar e3f6ababf: OUTPUT: «3␤»
13:58 tyil its the small + as seen on https://docs.perl6.org/language/unicode_ascii
13:59 AlexDaniel but that's so that you can do this:
13:59 AlexDaniel m: say 2⁺³²
13:59 camelia rakudo-moar e3f6ababf: OUTPUT: «4294967296␤»
13:59 AlexDaniel m: say 2⁻³²
13:59 camelia rakudo-moar e3f6ababf: OUTPUT: «0.00000000023␤»
13:59 tyil ah
13:59 tyil my bad then
14:00 tyil sorry
14:00 zakharyas joined #perl6
14:00 AlexDaniel note that it doesn't do math, so you can't do ³⁺²
14:00 sproctor joined #perl6
14:00 AlexDaniel docs also say “as part of exponentiation” :)
14:01 sproctor If we require a c lib to be installed for a module is there anyway of specifying it in the Meta? Or should the module include tests that fail in a helpful fashion if the lib doesn't exist?
14:01 AlexDaniel hmmm but the provided ASCII equivalents are maybe wrong, because it's a feature of its own
14:01 tyil sproctor: currently none afaik
14:02 tyil I've tried using the method expained in the design docs, but I was told those were wrong
14:04 wander joined #perl6
14:04 Geth ¦ Pod-To-HTML: 6eaff49839 | (Alex Chen)++ (committed using GitHub Web editor) | META6.json
14:04 Geth ¦ Pod-To-HTML: Bump version
14:04 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/6eaff49839
14:07 cdg joined #perl6
14:08 wander several hours ago I saw this page
14:08 wander https://github.com/perl6/perl6-most-wanted/blob/master/most-wanted/documentation.md
14:09 wander so hyper is an interesting while confusing part of Perl 6
14:09 timotimo last update was on 10 dec 2015?
14:09 wander especially whitespace matters
14:10 timotimo given that hyper has just been re-implemented, i'd say this page might want to be reconsidered
14:10 wander yes, I saw it because the latest update of the repo is some hours ago
14:10 wander `has just`? when
14:11 jdv79 every midnight i want to calc "tomorrow at midnight" in my local tz and handle daylight savings and leap seconds properly.  how would you do that in p6?
14:11 aborazmeh joined #perl6
14:11 aborazmeh joined #perl6
14:13 ZzZombo ugh, it's strange, I `make` an object that is then saved into an attribute of the actions object for the grammar, but it somehow always comes as the type  object, i. e. it's not initialized to the value I gave.
14:13 wander ZzZombo: what's the code
14:15 timotimo ZzZombo: could be a different match object you're looking at for some reason. or you could be storing Nil and it's restoring the default value because your rakudo is too old?
14:15 holyghost2 joined #perl6
14:15 timotimo m: "a" ~~ /./; make Nil; say $/.made
14:15 camelia rakudo-moar e3f6ababf: OUTPUT: «Nil␤»
14:15 timotimo c: 2017.01 "a" ~~ /./; make Nil; say $/.made
14:15 committable6_ timotimo, ¦2017.01: «Nil»
14:15 timotimo oh, that wasn't the bug, then?
14:24 Cabanossi joined #perl6
14:25 comborico1611 Why does a hash print out with => instead of -> ?
14:25 timotimo because the => operator is how you create pairs
14:25 wander m: :b(3).perl
14:25 camelia rakudo-moar e3f6ababf: ( no output )
14:25 wander m: :b(3).perl.say
14:25 camelia rakudo-moar e3f6ababf: OUTPUT: «:b(3)␤»
14:25 timotimo there's different ways to print out a hash, though
14:25 timotimo wander: that's just the pair, though
14:26 wander m: { :b(3), c(4)}.perl.say
14:26 camelia rakudo-moar e3f6ababf: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    c used at line 1␤␤»
14:26 wander m: { :b(3), :c(4)}.perl.say
14:26 camelia rakudo-moar e3f6ababf: OUTPUT: «{:b(3), :c(4)}␤»
14:26 comborico1611 But printing-out a value is not involved with creating pairs.
14:26 wander m: { :b(3), :c(4)}.^name.say
14:26 camelia rakudo-moar e3f6ababf: OUTPUT: «Hash␤»
14:27 wander comborico1611: for what reason you think it should print out with -> ?
14:27 comborico1611 The book reads printouts with ->
14:27 wander Think Perl 6? which page?
14:27 philomath joined #perl6
14:28 timotimo m: say { hello => "world", seeya => "goodbye" }
14:28 camelia rakudo-moar e3f6ababf: OUTPUT: «{hello => world, seeya => goodbye}␤»
14:28 comborico1611 Technically as comments. # -> value
14:28 timotimo that's not about hashes
14:28 timotimo that just means "here's what that evaluates to"
14:28 wander agree
14:28 comborico1611 All the pages. 167 for instance.
14:29 timotimo (either "what it evaluates to" or "what it prints out", depending on what the author likes more)
14:29 comborico1611 Oh, i see.
14:29 wander in the very page, I've only found "# -> Found it!"
14:30 comborico1611 That's the print out.
14:30 comborico1611 I thought prompt returned -> value
14:30 wander I think it means "# OUTPUT: «Found it␤»"
14:30 pmurias joined #perl6
14:30 comborico1611 I see.
14:30 timotimo there ought to be a section near the front of the book that explains things like that
14:31 wander so it has nothing to do with hash
14:31 comborico1611 P.184 top is where my question was.
14:31 eliasr joined #perl6
14:31 comborico1611 He should have wrote on page 184 this: -> one => uno
14:32 comborico1611 He's just not been consistent with how he is doing the output. Actually now that I think about it, what's going on is he's using the other mode of rikudo.
14:32 ZzZombo I `make` it this way in my `section` action method: `make my $section=Grammar::VDF::Section.new(:name($<name>.made),:condition($<conditional>.made));`
14:32 ZzZombo later I assign that in another action method (by calling `$<section>.made`) and I get the type object instead.
14:33 salva joined #perl6
14:33 comborico1611 Question answered thanks guys
14:33 timotimo dumb question, but the value in $section is correct afterwards?
14:34 wander code snip?
14:34 wander m: "a" ~~ /./; make my $x = 42; $/.made.say
14:34 camelia rakudo-moar e3f6ababf: OUTPUT: «42␤»
14:35 wander m: class A { has $.x }; "a" ~~ /./; make my A $x = A.new(:x(4096)); $/.made.say
14:35 camelia rakudo-moar e3f6ababf: OUTPUT: «A.new(x => 4096)␤»
14:36 comborico1611 Perl6 alias Rekudo!
14:37 wander I have been working on Grammar for some time. There are problems caused not always as you think.
14:37 comborico1611 That would handle the Rakudo compiler vs alias confusion.
14:37 huggable joined #perl6
14:38 comborico1611 Or Racoondo!
14:38 wander maybe you call `$<section>.made`, but `$<section>` is this time an Array
14:38 comborico1611 Rakundo!
14:39 wander well in this case it cause compile error, but FWIW, grammar is something new
14:39 comborico1611 RakUNDO, get it?
14:40 timotimo m: say [1, 2, 3].made
14:40 camelia rakudo-moar e3f6ababf: OUTPUT: «No such method 'made' for invocant of type 'Array'. Did you mean any of these?␤    map␤    max␤    name␤    race␤␤  in block <unit> at <tmp> line 1␤␤»
14:40 timotimo wander: if you accidnetally call .made on an array it explodes like that
14:40 wander "[22:39] <wander> well in this case it cause compile error,"
14:40 Actualeyes joined #perl6
14:40 wander I see XD
14:41 timotimo oh
14:42 Geth ¦ mu: aaa173d49c | (Zoffix Znet)++ (committed using GitHub Web editor) | misc/perl6advent-2017/schedule
14:42 Geth ¦ mu: dibsify Dec 12: "Concise Perl 6 IO"
14:42 Geth ¦ mu: review: https://github.com/perl6/mu/commit/aaa173d49c
14:46 wander m: grammar { token TOP { | 'if ' <mywords>+ | 'else ' <mywords> }; token mywords { \w } }.parse("else w", actions => class { method TOP($/) { say $/<mywords>.^name }})
14:46 camelia rakudo-moar e3f6ababf: OUTPUT: «Array␤»
14:46 wander m: grammar { token TOP { | 'if ' <mywords> | 'else ' <mywords> }; token mywords { \w } }.parse("else w", actions => class { method TOP($/) { say $/<mywords>.^name }})
14:46 camelia rakudo-moar e3f6ababf: OUTPUT: «<anon|79556384>␤»
14:46 mr-foobar joined #perl6
14:47 holyghost2 I misposted my HollyGame toolkit for writing games at pause, I am probably going to port it to non-inline perl6
14:47 wander real world issue, I crashed it once
14:47 holyghost2 It's at http://holyghost.yellowcouch.org/perl5/src
14:47 timotimo holyghost2: i was quite confused by the email you sent :)
14:47 comborico1611 Is Binding the same as Aliasing?
14:47 holyghost2 you were ?
14:48 timotimo yeah, the file you attached looked like 1:1 my particle system example from the SDL2::Raw repository
14:48 holyghost2 ok, I tried to port a small game library
14:48 holyghost2 It's still an issue
14:48 timotimo the url you just posted is also 404 :(
14:48 holyghost2 aaaaaagh!
14:49 holyghost2 I do not remember the /ctcp send
14:49 census i'm unable to run this code on my computer https://pastebin.com/qnYAZJ7v  but it should work. it works on other perl6 computers
14:49 holyghost2 timotimo : I will first try to make it perl6 from perl5
14:50 holyghost2 I need a little time for that as I forgot my perl6 skills
14:50 wander census: error msg?
14:50 timotimo holyghost2: you'll probably find many sdl2 functions missing; that's just because i didn't know what order to do things in. if you need anything, feel free to open an issue on github or maybe even a pull request
14:51 census wander actually it just worked
14:51 census for weeks it wasn't working
14:53 wander sounds fine :)
14:53 philomath_ joined #perl6
14:53 holyghost2 timotimo : It's SDL 1.2 in HollyGame module now
14:53 census wander can i show you the next part of my code now?
14:53 holyghost2 I still need to port it to SDL 2 :: Raw or something
14:54 kerframil joined #perl6
14:54 timotimo the sdl2 module doesn't expose any of the surface blitting stuff that you'd use if you only have sdl 1
14:54 wander I'm not an expert on that.
14:54 census wander an expert on what?
14:54 wander WWW or net
14:55 census what am i doing wrong that the code outputs '3' every time? https://pastebin.com/FAicYnH3
14:56 holyghost2 timotimo : should I port to SDL 2 ?
14:56 timotimo i haven't seen your game kit yet, so i have no idea
14:57 holyghost2 WAM
14:57 holyghost2 It's in the ftp incoming of pause
14:57 perlpilot holyghost2: I haven't seen your stuff either, but I think you should port it to SDL2  ;->
14:58 holyghost2 perlpilot : yeah that's something I have to do
14:58 wander .ask zoffix I bump version for Pod::To::HTML, but cannot upgrade with zef. also seems doc.perl6.org don't build with the newest Pod::To::HTML. why?
14:58 yoleaux wander: I'll pass your message to zoffix.
14:59 holyghost2 It's a stupid class overriding system of a 2D collision system and some lists for NPCs
14:59 holyghost2 It's ok but basic
15:00 holyghost2 You can override with SDL images and so on
15:00 ryn1x joined #perl6
15:01 comborico1611 Ryn, where you from?
15:02 holyghost2 timotimo : does http://holyghost.yellowcouch.org resolve ?
15:02 comborico1611 I think might know you.
15:03 mcmillhj joined #perl6
15:03 census is someone good with WWW ?
15:03 timotimo yes, but it just gives me the yellowcouch.org website
15:04 census for any input, i always get 3 as the output https://pastebin.com/FAicYnH3
15:04 ZzZombo <timotimo> dumb question, but the value in $section is correct afterwards?
15:04 ZzZombo Well, almost... it itself lacks another object field that is set later in the `section` method... I wonder if it's the same thing.
15:05 holyghost2 ok
15:05 ZzZombo I mean, the the name and value attributes of sections are ok, but not parent.
15:06 ZzZombo parent is another section, and it's also undefined, even tho I do set it.
15:06 ZzZombo Example: `Grammar::VDF::Section.new(condition => Grammar::VDF::Condition, name => "04", parent => Grammar::VDF::Node)`
15:07 ZzZombo (condition is supposed to be undef right now, but maybe it's bugged as well).
15:07 llfourn joined #perl6
15:09 mcmillhj joined #perl6
15:15 araujo joined #perl6
15:15 araujo joined #perl6
15:15 holyghost2 timotimo : http://gomez.yellowcouch.org/hollysrc-1.24.tar.gz
15:15 holyghost2 timotimo : the HollyGame module
15:16 mr-foobar joined #perl6
15:17 comborico1611 m: my %test = <a 1 b 2 c 3>; say %test.kv ;
15:17 camelia rakudo-moar e3f6ababf: OUTPUT: «(a 1 c 3 b 2)␤»
15:17 comborico1611 m: my %test = <a 1 b 2 c 3>; say pairs %test;
15:17 camelia rakudo-moar e3f6ababf: OUTPUT: «(a => 1 c => 3 b => 2)␤»
15:19 khw joined #perl6
15:20 pnu__ joined #perl6
15:22 Zoffix joined #perl6
15:23 Zoffix wander: RE: "but cannot upgrade with zef"  did you do `zef update`? RE: "seems doc.perl6.org don't build with the newest"  did anyone upgrade the module on the build box?
15:25 Zoffix 3.9 installed, so no
15:25 * Zoffix upgrades
15:26 Zoffix wander: you can also install from github URLs btw; that way you don't need to wait for ecosystem list to update or to run `zef update`:  zef --force install https://github.com/perl6/Pod-To-HTML.git
15:29 Zoffix census: so number of rows in parsed CSV always gives you three... Sounds like dumping that CSV and ensuring it got right data up in it might be a good idea.
15:30 Zoffix You'll find it's not CSV at all, but just an HTML document, so your URL is wrong
15:30 Piotr_ joined #perl6
15:30 census2 joined #perl6
15:31 census2 Zoffix thanks. I've made some progress.
15:31 census https://pastebin.com/6t6x05sj
15:31 census2 It should say 755, but it says 978
15:32 mcmillhj joined #perl6
15:33 wander yes, i miss `update`
15:34 Zoffix census2: why do you think it shouls say 755?
15:34 ryn1x joined #perl6
15:34 census2 Zoffix because when i downloaded the .csv manually there are 757 rows but the first 2 are meaningless so 755
15:35 Zoffix census2: I get 993 rows total when I open that CSV in Excel. With first 2 meaningless.
15:36 Zoffix "that CSV" => the file downloaded by the program
15:37 census2 Zoffix i'm a little confused even why 993 if the code i'm running says 978
15:37 census2 I appreciate your looking into it! Are you saying the code is telling you 993 or you went to the website directly and got 993
15:37 wander Zoffix: what is "upgrade the module on the build box" means?
15:37 Phi_mb joined #perl6
15:37 wander bad syntax :(
15:39 Zoffix census2: if I go to https://patents.google.com/?q=Cancer&amp;country=US&amp;before=filing:20011231&amp;after=filing:20010101 and click "Download CSV" I get 793 rows. But if I use the link the program uses ( https://patents.google.com/xhr/query?url=q%3DCancer%26country%3DUS%26before%3Dfiling%3A19901231%26after%3Dfiling%3A19900101&amp;exp=&amp;download=true ) I get 993 rows. So sounds like you got your CSV URL in the program wrong.
15:39 Zoffix census2: the program says there's 991 rows, not 978 to me
15:39 ChoHag_ joined #perl6
15:39 wander what "upgrade the module on the build box" means?
15:40 troys joined #perl6
15:40 Zoffix wander: the docs site is built every $n minutes in a cronjob on our "hack" server. It doesn't get updated modules automatically. Someone needs to log into is as `rakudobrew` user and install the upgraded module if updates in a module need to be propagated to the docs site
15:41 cdg joined #perl6
15:41 Zoffix I already done it for the last update. So the docs site should be using latest version now
15:41 census2 Zoffix that's because it's 2 different years. the first one is based on 2001 and the second one is based on 1990. i thought both attempt in my code are based on 1990
15:41 Zoffix OK
15:41 wander thanks
15:43 census2 Zoffix okay I got the 993 you got now too when I did it manually with the internet
15:44 census2 okay it worked just now ! :)
15:44 callyalater joined #perl6
15:44 Zoffix Sweet \o/
15:46 census2 Zoffix i feel it's like a random number generator though. it's so bizarre
15:46 census2 i ran the code 3 times. i got 991, 981, and 988. only 991 is correct though
15:49 comborico1611 What is the \t here: $key\t%histogram{ }
15:50 Zoffix comborico1611: tab character
15:50 Zoffix m: :42foo.gist.perl.say
15:50 camelia rakudo-moar e3f6ababf: OUTPUT: «"foo => 42"␤»
15:50 Zoffix m: :42foo.Str.perl.say
15:50 camelia rakudo-moar e3f6ababf: OUTPUT: «"foo\t42"␤»
15:50 comborico1611 Thank you. What is /t ?
15:50 Zoffix /t?
15:50 comborico1611 Nothing?
15:50 Zoffix Which /t?
15:51 comborico1611 I thought newline was /n.
15:51 Zoffix It's \n
15:51 jast \t is a tab character
15:51 comborico1611 Oh.  Thank you.
15:51 ChoHag joined #perl6
15:54 Zoffix m: (^0x110000).grep({.chr ~~ /\s/}).map({"U+{.base: 16} {.chr.perl}"}).Str.say
15:54 camelia rakudo-moar e3f6ababf: OUTPUT: «U+9 "\t" U+A "\n" U+B "\x[b]" U+C "\x[c]" U+D "\r" U+20 " " U+85 "\x[85]" U+A0 " " U+1680 " " U+2000 " " U+2001 " " U+2002 " " U+2003 " " U+2004 " " U+2005 " " U+2006 " " U+2007 " " U+2008 " " U+2009 " " U+200A " " U+2028 "
…»
15:54 Cabanossi joined #perl6
15:54 Zoffix c: HEAD (^0x110000).grep({.chr ~~ /\s/}).map({"U+{.base: 16} {.chr.perl}"}).Str.say
15:54 committable6_ Zoffix, https://gist.github.com/8ca434ded8cb7ab153be06b9e60faff9
15:55 wander zoffix: Could you please show me the way to upgrade modules on "hack" server? I find the escapeHTML logic has something wrong and want to upgrade it for the doc site once fix it.
15:55 Zoffix u: { /\s/ }
15:55 unicodable6 Zoffix, Found nothing!
15:55 Zoffix u: /\s/
15:55 unicodable6 Zoffix, Regexes are not supported yet, sorry! Try code blocks instead
15:55 Zoffix I did try!
15:55 Zoffix u: { so /\s/ }
15:56 jast aeons later...
15:56 unicodable6 Zoffix, «timed out after 30 seconds» «exit signal = SIGHUP (1)»
15:56 Zoffix wander: you'd need a sudo on the hack server. I don't know if I'm authorized to give it out.    timotimo? moritz? maybe you could hook wander up?
15:58 moritz or compile your own rakudo
15:58 Phi_mb joined #perl6
15:58 Zoffix It's to upgrade modules for the docs site build job
15:59 mempko joined #perl6
15:59 moritz oh
15:59 Zoffix wander: FWIW you can ping me if needing upgrading. I'm glance at my mentions once in a while
16:00 Zoffix s/'m//;
16:00 wander sure :-)
16:01 moritz i'm building 2017.10 rakudo on hack
16:01 moritz for doc.perl6.org
16:01 Zoffix u: {use nqp; nqp::iscclass(nqp::const::CCLASS_WHITESPACE, .chr, 0)}
16:01 unicodable6 Zoffix, U+0009 <control-0009> [Cc] (control character)
16:01 unicodable6 Zoffix, U+000A <control-000A> [Cc] (control character)
16:01 unicodable6 Zoffix, 25 characters in total: https://gist.github.com/1bb5453d9844c16c6b94c72ab0f994de
16:01 Zoffix win
16:07 AlexDaniel aaaand… it pinged out? :D
16:08 Zoffix heh
16:09 comborico1611 m: my %test = <a 1 b 2 c 3 a 1>; say %test.pairs.first: *.value == 1;
16:09 camelia rakudo-moar e3f6ababf: OUTPUT: «a => 1␤»
16:09 comborico1611 m: my %test = <a 1 b 2 c 3 a 1>; say %test.pairs.first *.value == 1;
16:09 camelia rakudo-moar e3f6ababf: OUTPUT: «No such method 'value' for invocant of type 'Any'. Did you mean 'values'?␤  in block <unit> at <tmp> line 1␤␤»
16:10 comborico1611 What is the colon doing here?
16:10 Zoffix comborico1611: `.first: $some-arg` is just another way to write `.first($some-arg)`. Lets you avoid using parens. DEATH TO PARENS!
16:11 robertle guess you mean "DEATH TO PARENS THAT ARE NOT GROUPING"
16:11 Zoffix No, to all parens
16:11 robertle like "($a + $b) / 2"?
16:11 comborico1611 Blasphemy!
16:11 Geth ¦ Pod-To-HTML: 1ad05c5a71 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
16:11 Geth ¦ Pod-To-HTML: Escape exactly raw string
16:11 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/1ad05c5a71
16:12 ilmari robertle: $a $b + 2 /
16:12 ilmari FORTH LOVE? IF HONK THEN
16:12 robertle yay!
16:12 Zoffix m: 2 + 2 andthen say $_ / 2; # yes
16:12 camelia rakudo-moar e3f6ababf: OUTPUT: «2␤»
16:12 Zoffix :)
16:13 comborico1611 Zoffix, i see. What is the colon called here?
16:13 Zoffix comborico1611: no idea
16:14 wander Now it escapeHTML for exactly raw string, not js code. It renders correctly on /language/regex.pod6. I'm sorry that I should test carefully before committing changes.
16:14 comborico1611 I learned last night you are the author of the alias campaign.
16:14 AlexDaniel m: my $a = 2; my $b = 3; say 2 R/ sum $a, $b
16:14 camelia rakudo-moar e3f6ababf: OUTPUT: «2.5␤»
16:14 AlexDaniel m: my $a = 2; my $b = 3; say 0.5 × sum $a, $b
16:14 camelia rakudo-moar e3f6ababf: OUTPUT: «2.5␤»
16:15 AlexDaniel m: my $a = 2; my $b = 3; say 0.5 × [+] $a, $b
16:15 camelia rakudo-moar e3f6ababf: OUTPUT: «2.5␤»
16:15 Zoffix m: say ½.&[*]: 2 + 2
16:15 camelia rakudo-moar e3f6ababf: OUTPUT: «2␤»
16:15 comborico1611 The colon shall be called DTP operator (death to parens).
16:15 Zoffix \o/
16:16 comborico1611 I want to submit Racoondo as a possible alias.
16:17 census2 Zoffix I'm wondering  if I may ask you if there's a more efficient way to run the code if I run a situation by you?
16:17 jast Rakvoodoo
16:17 comborico1611 The alias mascot is Rocky the Jeet Kun Do Raccoon.
16:17 Zoffix m: sub infix:</> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 / 2
16:17 camelia rakudo-moar e3f6ababf: OUTPUT: «3␤»
16:17 mr-foobar joined #perl6
16:17 Geth ¦ Pod-To-HTML: adc5351d0f | (Alex Chen)++ (committed using GitHub Web editor) | META6.json
16:17 Geth ¦ Pod-To-HTML: Bump version
16:17 Geth ¦ Pod-To-HTML: review: https://github.com/perl6/Pod-To-HTML/commit/adc5351d0f
16:17 AlexDaniel Zoffix: haha :D
16:17 Zoffix Weird. I expected the precedence to be affected there :/
16:17 AlexDaniel bend the language to your need!
16:18 AlexDaniel well, you can define your own op
16:18 AlexDaniel new one I mean
16:18 Zoffix m: sub infix:<zzz> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 zzz 2
16:18 camelia rakudo-moar e3f6ababf: OUTPUT: «2␤»
16:18 Zoffix I'm curious tho why the `/` isn't affected.
16:18 comborico1611 Rocky wears a bandana. Get it, alias, bandana?
16:18 Zoffix mc: sub infix:</> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 / 2
16:18 committable6_ Zoffix, ¦2015.12: «3»
16:19 moritz I guess you can't re-prioritize an existing operator
16:19 Zoffix Ohhh. right
16:19 AlexDaniel .oO( Nnoooooooo )
16:19 Zoffix There's a shortpart for categorization.
16:19 Zoffix Well, for adding new ops. And I think it's shortcurcuiting without adding a new one if it spots we already got a grammar rule for parsing it. It probably should check the precedence and things
16:19 AlexDaniel m: say ½ Z× 2 + 3
16:19 camelia rakudo-moar e3f6ababf: OUTPUT: «(2.5)␤»
16:20 Zoffix m: sub infix:<zzz> is tighter(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 zzz 2; { sub infix:<zzz> is looser(&[+]) { &CORE::infix:</>($^a, $^b) }; say 2 + 2 zzz 2 }
16:20 camelia rakudo-moar e3f6ababf: OUTPUT: «3␤3␤»
16:21 Zoffix Yeah, I'd call that a bug. Your code can change from under you because the shadowing of existing ops is only half-done
16:22 unicodable6 joined #perl6
16:22 Zoffix *change because someone added an op you'd normally want to just shadow
16:22 moritz though what would be the correct behavior? throw an exception on the attept to redefine with a changed prec?
16:23 Zoffix This needs to be smarter: https://github.com/rakudo/rakudo/blob/master/src/Perl6/Grammar.nqp#L4799-L4802
16:23 Zoffix moritz: I think it can just be made to work.
16:23 Ven joined #perl6
16:23 moritz Zoffix: can it? can you remove something from an existing grammar during derivation?
16:24 moritz or is it just the OPP that changes?
16:24 Zoffix moritz: not 100% sure, but my understanding of these ops is they just mix in a new rule into the language braid: https://github.com/rakudo/rakudo/blob/master/src/Perl6/Grammar.nqp#L4936
16:25 Zoffix So I figure it's possible to mixin the override, since you can override methods by mixing stuff into normal classes
16:25 [Coke] m: (1 - 1/4 - 1/3).Rat.nude # good thing I didn't have this doing fractions back in the day
16:25 camelia rakudo-moar e3f6ababf: ( no output )
16:25 [Coke] m: say (1 - 1/4 - 1/3).Rat.nude # oops
16:25 camelia rakudo-moar e3f6ababf: OUTPUT: «(5 12)␤»
16:25 Zoffix :)
16:26 AlexDaniel m: say Rat.new(2 + 2, 2)
16:26 camelia rakudo-moar e3f6ababf: OUTPUT: «2␤»
16:27 census2 Zoffix my code i think got IP banned but I myself didn't; perhaps I should have put a much longer sleep () in the code
16:27 AlexDaniel oh, oops, my mistake
16:27 AlexDaniel m: say Rat.new: 2 + 2, 2 # there
16:27 camelia rakudo-moar e3f6ababf: OUTPUT: «2␤»
16:28 Zoffix census2: not sure what you mean by more efficient way to run code... I usually don't hang in this channel. Just pastebin your code and someone in the channel will help.
16:30 Zoffix Filed op stuff as RT#1237
16:30 Zoffix I mean R#1237
16:30 synopsebot R#1237 [open]: https://github.com/rakudo/rakudo/issues/1237 Overriding precedence of custom ops silently fails for existing ops
16:30 * Zoffix &
16:30 Zoffix left #perl6
16:31 mcmillhj joined #perl6
16:35 census astebin
16:37 census https://pastebin.com/Z1vzRVHG Can I circumvent possibly getting perl6 getting a 503 error?
16:46 konsolebox joined #perl6
16:48 timotimo retry a few times with a delay in between?
16:50 ryn1x joined #perl6
16:50 cdg joined #perl6
16:50 mr-foobar joined #perl6
16:50 timotimo pmurias: what were you going to show in the perl6-to-js demo at tpcia?
16:51 cdg_ joined #perl6
16:52 ChoHag joined #perl6
16:54 Cabanossi joined #perl6
16:56 ZzZombo joined #perl6
16:57 cdg joined #perl6
16:57 mcmillhj joined #perl6
16:58 zakharyas joined #perl6
17:05 philomath_ joined #perl6
17:08 HoboWithAShotgun joined #perl6
17:08 pmurias timotimo: JSX/react.js running in electron
17:10 Phi_mb joined #perl6
17:13 HTTP_____GK1wmSU joined #perl6
17:16 pmurias timotimo: I notice the talk video has been uploaded ;)
17:16 holyghost joined #perl6
17:16 setty1 joined #perl6
17:17 HTTP_____GK1wmSU joined #perl6
17:17 HTTP_____GK1wmSU left #perl6
17:17 HTTP_____GK1wmSU joined #perl6
17:20 mr-foobar joined #perl6
17:21 timotimo it has!
17:21 timotimo can i get that demo locally? :3
17:22 ryn1x joined #perl6
17:23 mempko joined #perl6
17:24 Cabanossi joined #perl6
17:24 * timotimo is trying nqp with --backends=moar,js
17:25 timotimo it's rather unhappy about something
17:28 ChoHag joined #perl6
17:28 Piotr_ joined #perl6
17:28 timotimo Error: Cannot find module './strip-marks.js' - this is what i get for basically every invocation of nqp-js (even nqp-js-cross after inputting a single line of code)
17:29 timotimo oh, i need a fork of rakudo to get rakudo-js?
17:30 pmurias timotimo: there is a rakudo branch
17:31 pmurias timotimo: re stip-marks, sorry it seems like I forgot to declare a dependency
17:31 timotimo yay, i caught a bug :D
17:32 zakharyas joined #perl6
17:33 timotimo ah yes the js branch
17:33 pmurias timotimo: it was a missing file
17:33 pmurias timotimo: I need to setup automatic building on travis (or something like that)
17:33 timotimo sure d)
17:33 timotimo :)
17:35 timotimo oh, your latest nom merge is 9 weeks old?
17:36 pmurias timotimo: forgot to push todays one
17:36 darkmorph joined #perl6
17:37 timotimo OK!
17:37 st_elmo joined #perl6
17:38 pmurias I'll try building rakudo.js from a fresh clone so hopefully I can encounter build bugs before you do ;)
17:39 El_Che pmurias: travis?
17:40 dogbert17 joined #perl6
17:40 timotimo a fuse-based filesystem that reads only from the latest git commit :P
17:40 El_Che git --depth=1
17:41 pmurias El_Che: I should definitely look into it
17:42 El_Che pmurias: ping if you need some guidance. This is how I build rakudo packages: https://github.com/nxadm/rakudo-pkg/blob/06ac0f2255c1c5743f0fab41dbeffb23d88893d7/.travis.yml
17:43 El_Che pmurias: if the process is complicated docker is always an option
17:44 El_Che if, let's say, you want to build the rakudo js against different distros, you can use a matrix and docker. Run are parallel, so you won't hit the 50m max
17:44 pmurias timotimo, El_Che: I have to leave now, I'll get back to fixing any rakudo.js build problems first thing tommorow
17:45 pmurias El_Che: building rakudo.js takes loads of RAM is that an issue with travis?
17:45 timotimo OK,c ool :)
17:45 El_Che https://docs.travis-ci.com/user/reference/overview/
17:45 El_Che I don't think so
17:46 El_Che sudo machines (which I use for docker) have 7,5gb
17:46 El_Che container machines have 4gb
17:46 El_Che both seem ok
17:46 El_Che I use the sudo machines because with docker I can run different distro's
17:47 mr-foobar joined #perl6
17:47 wander m: say Grammar.^mro
17:47 camelia rakudo-moar e3f6ababf: OUTPUT: «((Grammar) (Match) (Capture) (Cool) (Any) (Mu))␤»
17:47 El_Che I have an other project that is build in windowas as well, with appveyor
17:47 wander m: say so Grammar.isa(Cursor)
17:47 camelia rakudo-moar e3f6ababf: OUTPUT: «True␤»
17:47 El_Che so that is also an option
17:48 wander m: say so Match.isa(Cursor)
17:48 camelia rakudo-moar e3f6ababf: OUTPUT: «True␤»
17:48 wander m: say so Capture.isa(Cursor)
17:48 camelia rakudo-moar e3f6ababf: OUTPUT: «False␤»
17:49 wander m: say so Cursor.isa(Match)
17:49 camelia rakudo-moar e3f6ababf: OUTPUT: «True␤»
17:49 wander moritz: what is the relation between Cursor and Match?
17:50 timotimo cursor and match used to be two different things
17:50 ilmari s: Cursor
17:50 SourceBaby ilmari, Something's wrong: ␤ERR: Cannot resolve caller sourcery(Match); none of these signatures match:␤    ($thing, Str:D $method, Capture $c)␤    ($thing, Str:D $method)␤    (&code)␤    (&code, Capture $c)␤  in block <unit> at -e line 6␤␤
17:50 mson joined #perl6
17:50 timotimo s: Cursor, "new", \()
17:50 SourceBaby timotimo, Sauce is at https://github.com/rakudo/rakudo/blob/4fca94743/src/core/Mu.pm#L112
17:51 timotimo nope.
17:51 timotimo s: Cursor, "ws", \()
17:51 SourceBaby timotimo, Something's wrong: ␤ERR: Died with X::Method::NotFound␤  in block  at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 26␤  in sub sourcery at /home/zoffix/services/lib/CoreHackers-Sourcery/lib/CoreHackers/Sourcery.pm6 (CoreHackers::Sourcery) line 29␤  in block <unit> at -e line 6␤␤
17:51 ilmari https://github.com/rakudo/rakudo/blob/master/src/core/Cursor.pm
17:51 ilmari my constant Cursor = Match;
17:51 ilmari so Cursor is just an alias for Match
17:51 wander gotcha
17:52 wander interesting
17:53 census what does a 503 error mean?
17:53 [Coke] internal server error
17:53 dylanwh_ "The server is currently unavailable (because it is overloaded or down for maintenance). Generally, this is a temporary state."
17:53 wander Zoffix: plz build the doc site using the newest module Pod::To::HTML. I've locally make and ensure it fixes perl6/doc#1662
17:53 synopsebot DOC#1662 [open]: https://github.com/perl6/doc/issues/1662 "<!|w>" disappears in ToC of Regexes
17:53 census dylanwh is it an IP type ban?
17:54 Cabanossi joined #perl6
17:54 wander nice bot :)
17:54 census wander i love a good regex :)
17:54 timotimo 5xx http codes are the server's fault
17:54 timotimo 4xx codes are your fault
17:55 census timotimo i was getting a 503 error for a website in which i was still able to get to the website in my browser
17:55 wander census: pardon?
17:55 [Coke] I would say that 4xx codes are "normal" errors and 5xx are "exceptional" ones.
17:55 dylanwh census: no, it usually means some backend server is down, IME
17:55 census <[Coke]> so i've added a sleep(120) to the code -- far from ideal though
17:55 census dylanwh it's google
17:55 ugexe i'd be surprised if google lets you crawl their services the way you are
17:55 dylanwh that's... interesting
17:55 [Coke] census: the request from your browser and the request from your command line are not necessarily the same request, and the server can respond how it wants.
17:56 sena_kun if I have some non-BMP character(like '😂'), is there a way to get its surrogate pair?
17:56 [Coke] if you're doing a crawler, for example, and you're not respecting the robots file, they can stop you however they want.
17:57 sena_kun I've found algo to do it by hands, but just in case there is some predefined thing exists.
17:57 census <[Coke]> i don't know what the robots file is. i'm okay making the code run very slowly. i read somewhere there's a limit of searchers per every 30 mins
17:57 sena_kun s/to do it/that can be used to do it/
17:58 ugexe https://patents.google.com/robots.txt
17:58 census ugexe what does that mean? i don't follow
17:59 [Coke] if you're writing a crawler and dont know what robots.txt is, that could be problematic. (but as ugexe points out, that one seems permissive enough). but they could still be rate limiting you, sure. If there's no defined API, I'm not sure what you can do other than guess (if it were not google, I'd say "try to ask the support team for the site")
17:59 ugexe it doesnt allow /q=
17:59 [Coke] census: http://lmgtfy.com/?q=What+is+a+robots.txt+file%3F
17:59 Ven joined #perl6
18:00 [Coke] ugexe: ah, good catch, thank you.
18:00 census <[Coke]>> i can google just fine. i meant i don't know how to interpret the robot.txt
18:01 [Coke] census: if you can google just fine, google how to read a robots.txt file.
18:01 ugexe they are regexes it matches on the path portion of the url
18:01 wander .tell moritz plz build the doc site using the newest module Pod::To::HTML:ver<0.3.11>. I've locally made and ensure it fixes perl6/doc#1662.
18:01 yoleaux wander: I'll pass your message to moritz.
18:01 sena_kun left #perl6
18:02 sena_kun joined #perl6
18:02 census ugexe is there a way to redo the code i have that would be consistent with the file?
18:02 philomath_ joined #perl6
18:02 ugexe yes, crawl links instead of making search queries
18:02 geekosaur joined #perl6
18:03 census ugexe what does that mean? i don't follow the difference
18:03 census i understand i'm looping through links. then doing something with the .csv on the page
18:03 ugexe https://patents.google.com/?q={$term}&country=US&before={$year}1231&after={$year}0101&exp=&download=true
18:03 ugexe that link was not discovered that way
18:04 Phi_mb joined #perl6
18:04 census ugexe are you saying to not make a for loop?
18:04 census i just don't follow your implication
18:04 buggable joined #perl6
18:04 census i appreciate your taking the time to explain :)
18:07 census2 joined #perl6
18:07 timotimo they might have protection against people just grabbing the data from that url, but would allow people who are legit browsing the page through. so your program needs to seem like it's a legit human legit browsing their site?
18:07 census2 timotimo how may i set that up?
18:08 timotimo no clue how exactly they do it
18:08 ugexe basically. the less ethical way would be to use a pool of proxies and legit user agent strings, although driving a headless browser is becoming more of a requirement
18:08 census2 timotimo the only way i know is making changes like the user-agent to one that isn't perl6
18:08 ryn1x joined #perl6
18:10 buggable joined #perl6
18:12 ugexe they provide a (deprecated) patents API, so they probably want things that don't have a return from advertising to use that (hence enforcement)
18:13 buggable joined #perl6
18:14 [Coke] ugexe++ # I was definitely a little grumpy there.
18:14 census2 <[Coke]> yes, i agree: ugexe++
18:14 census2 ugexe is there anything i can do to the code i have or the way i'm approaching the code?
18:15 [Coke] You should rewrite the code to avoid using the URL you're using, because they do not permit it to be used by a robot.
18:16 albongo joined #perl6
18:16 albongo joined #perl6
18:20 mr-foobar joined #perl6
18:20 census <[Coke]> I'm totally okay with that. However, I can't even envision how such a code would go
18:21 ugexe use Net::HTTP::GET; say Net::HTTP::GET("https://patents.google.com/?q=cancer&amp;country=US&amp;before=filing:20171231&amp;after=filing:19900101") # this returns 200, but i imagine if i do it enough times it will start to 503
18:21 census2 ugexe you mean it returns a 200 error but you envision a 503 error
18:22 ugexe 200 is not an error, it is success
18:22 [Coke] when I've done this sort of exercise, I start with the browser, find what I need there, and assuming the urls are permissible, go through there. If the data is only available via an ajax call from a permissible page, then setting up a headless browser as ugexe suggested is probably the way to go (using something like selenium)
18:22 [Coke] but if there's an old API, I'd definitely go through that route.
18:22 [Coke] APIs are easier to code against, less fragile...
18:22 [Coke] screen scraping HTML is always at best, problematic.
18:23 ugexe especially scraping google stuff
18:24 Cabanossi joined #perl6
18:24 census2 ugexe okay then what would you suggest so there wouldn't be a 503 error? isn't what you showed basically what I did just with NET::HTTP::GET rather than the libraries I did ?
18:25 census2 <[Coke]> i appreciate your help, but i don't follow how to change my approach to do your approach
18:25 census2 1. start with the browser. (? is that not what i'm currently doing)  2. find what's needed there (i'm finding the .csv?)
18:26 census2 <[Coke]> how do I know if there's an API. i wrote this code--i did try hard
18:26 ugexe basically even if this isn't your current problem, it will be eventually since you are crawling and not using their api
18:27 Zoffix joined #perl6
18:27 ChoHag joined #perl6
18:28 Zoffix wander: done.
18:28 census2 ugexe is there an API i can use?
18:29 Zoffix left #perl6
18:29 wander [Coke] remind that you can restart perl6/doc#1090
18:29 synopsebot DOC#1090 [open]: https://github.com/perl6/doc/issues/1090 [big][site][wishlist] docs.perl6.org design
18:29 ryn1x joined #perl6
18:29 wander Zoffix: thanks
18:32 ugexe census2: doesn't look like it (I a made a query to it and it says it is closed). and the page you -were- using looks like it uses javascript to do the actual searching (so to scrape anything useful you need to render the page)
18:32 ugexe and to render a page you need to render javascript, so again need to use a browser in some fashion
18:34 census2 ugexe so the only approach is the less ethical approach of a proxy? changing IP and user agents. is that what you're saying
18:34 bwisti joined #perl6
18:34 ugexe in perl5 i would recommend something like https://metacpan.org/pod/WWW::Mechanize::Firefox to get started
18:34 philomath_ joined #perl6
18:34 ugexe well that will certainly become a problem, even if its not the one you currently face (we can't really tell)
18:35 ugexe but looking at the html for the pages you want, there is nothing useful in the html and the useful stuff is brought in with javascript
18:35 census ugexe i used to work in perl5
18:35 census i can't remember how to write the code anymore in perl5 but i can go through my notes. i did use WWW::Mechanize::Firefox
18:35 ugexe you can probably use that in perl6 with Inline::Perl5
18:36 census ugexe how would that work?
18:36 ilbelkyr joined #perl6
18:36 geekosaur joined #perl6
18:36 census am i writing the code in perl6 or perl5. i'm just a little in over my head, trying to meet an urgent deadline
18:36 census so i'm very grateful for your help ugexe
18:38 ugexe you `use WWW::Mechanize::Firefox:from<Perl5>` after installing WWW::Mechanize::Firefox to perl5 and Inline::Perl5 to perl6, then you use the object as explained in the docs but use perl6 calling convention on the object instances you create (.foo() instead of ->foo())
18:39 ugexe although i believe WWW::Mechanize::Firefox also requires some extension to be installed. you'll have to read its docs
18:39 Piotr joined #perl6
18:41 census ugexe okay i'm doing cpan inline::perl5
18:43 notbenh joined #perl6
18:43 ugexe maybe you can find a way around google by getting the entire data set somewhere else and working on a local copy of that
18:43 ugexe https://developer.uspto.gov/data for instance
18:44 census2 ugexe yes i thought about that
18:44 census2 ugexe i don't know. what i'm looking for in the data isn't readily searchable and i need it pronto
18:44 census2 i found a database online but it didn't break it down by diseases like cancer
18:46 mcmillhj joined #perl6
18:47 callyalater joined #perl6
18:48 mr-foobar joined #perl6
18:48 geekosaur joined #perl6
18:50 callyalater left #perl6
18:50 dylanwh the newer one that uses geckodriver is much better. :P
18:54 geekosaur joined #perl6
18:54 Cabanossi joined #perl6
18:56 ChoHag joined #perl6
19:01 kyan joined #perl6
19:01 census2 ugexe so far it's working much better with a sleep
19:01 census2 i also changed the user agent
19:01 census2 when i ran it before i got a 503 after about 30 querie. now i'm up to about 50 with no error. who knows, i'll probably hit error in a few mins though
19:02 knight__ joined #perl6
19:04 knight__ Hello, I am using a use lib 'lib'; use myModule etc, I have dir/file structure: main.p6 , lib/myModule.pm6... when I am calling main.p6 from different directory, for example, my cwd is /usr/local/bin and my script is in directory /home/a/main.p6, when I am calling the script from usr/local/bin ./main.p6 it will die
19:04 knight__ But, question is
19:05 knight__ Which "PATHS" I have to set?
19:05 knight__ I understand where is the problem
19:05 knight__ I must set "lib" to proper directory, but how I can set these proper directory, when
19:06 geekosaur joined #perl6
19:07 ryn1x joined #perl6
19:10 knight__ Is there something like @INC?
19:12 lizmat not really like that: in Perl 6 the equivalent is in $*REPO
19:12 lizmat m: dd $*REPO
19:12 camelia rakudo-moar ab03b54cc: OUTPUT: «CompUnit::Repository::Installation home = CompUnit::Repository::Installation.new("/home/camelia/.perl6")␤»
19:12 lizmat m: dd $*REPO[1]
19:12 camelia rakudo-moar ab03b54cc: OUTPUT: «Failure.new(exception => X::OutOfRange.new(what => "Index", got => 1, range => "0..0", comment => Any), backtrace => Backtrace.new)␤»
19:12 lizmat m: dd $*REPO[0]
19:12 camelia rakudo-moar ab03b54cc: OUTPUT: «CompUnit::Repository::Installation home = CompUnit::Repository::Installation.new("/home/camelia/.perl6")␤»
19:13 knight__ lizmat: I have problem with modules
19:14 knight__ when I am executing script with modules from different directories
19:14 knight__ And I have not clue, how to fix it.
19:14 knight__ i use lib 'lib'
19:14 * lizmat is not very versed in that area of the system either, maybe nine or ugexe or timotimo can help
19:15 lizmat use lib gives you P5 module loading semantics
19:15 wander Zoffix: does doc site really build with Pod::To::HTML:ver<0.3.11>? It's strange because /language/Regex still not escapeHTML in toc, but it should work since I built it locally(source same as perl6/doc:master) and got correct result
19:15 lizmat aka: a module Foo::Bar needs to be in lib/Foo/Bar.pm6
19:15 knight__ ok, thank you
19:15 knight__ I will try it
19:16 wander or its build spends a lot of time
19:17 cdg joined #perl6
19:20 knight__ lizmat: Ehm, it does not work :-X
19:21 lizmat knight__: if you don't tell us what the error is (e.g. by gisting the output somewhere), we cannot help you  :-(
19:21 mr-foobar joined #perl6
19:22 knight__ @sirius:~/Skola/PJS2/projekt$ perl6 perl/main.p6
19:22 knight__ ===SORRY!===
19:22 knight__ Could not find Bank::currency-value at line 67 in: /home/a/Skola/PJS2/projekt/lib
19:22 knight__ lizmat:
19:23 knight__ so, as you can see, it will add path
19:23 knight__ but it is incorrect
19:23 knight__ it should be PJS2/projekt/perl/lib
19:23 knight__ I am using use lib 'lib';
19:23 knight__ and I am calling from directory one level up.
19:24 lizmat so in what directory are you ?
19:24 knight__ a@sirius:~/Skola/PJS2/projekt
19:24 lizmat looks like you should do    use lib 'perl/lib'   then
19:24 knight__ yep, but if someone call script from "something else"
19:25 knight__ It will not work
19:25 knight__ And it is problem for me.
19:25 lizmat use lib '/home/a/Skola/PJS2/projekt/perl/lib' ?
19:25 knight__ but, what If I am on different computer?
19:25 knight__ And My script is not there
19:25 knight__ ;-)
19:26 knight__ is in different directory
19:26 knight__ i need make lib
19:26 knight__ with relative path
19:26 lizmat then don't put the use lib in the code, but do it externally perl6 -Iperl/lib ?
19:28 knight__ I do not understand what is the point of doing NOT relative 'use lib 'lib''
19:28 knight__ Because I am calling module, which is in somewhere in directory
19:28 knight__ in relative path
19:28 knight__ And now I must use library arguments...
19:29 knight__ moritz: Are you there?
19:29 knight__ ^
19:32 knight__ Or, how can I do it.
19:40 moritz hm, what's up?
19:40 yoleaux 18:01Z <wander> moritz: plz build the doc site using the newest module Pod::To::HTML:ver<0.3.11>. I've locally made and ensure it fixes perl6/doc#1662.
19:40 synopsebot DOC#1662 [open]: https://github.com/perl6/doc/issues/1662 "<!|w>" disappears in ToC of Regexes
19:40 perlpilot knight__: sounds like you want Dir::Self for Perl 6.
19:41 knight__ perlpilot: It will work?
19:41 knight__ I think with "use"
19:41 knight__ because it is in compile time I guess..
19:42 moritz wander: "zef upgrade Pod::To::HTML" says "All requested distributions are already at their latest versions"
19:43 wander `zef update && zef upgrade Pod::To::HTML`?
19:44 moritz same result
19:44 perlpilot knight__: too many unknowns for me.  $*CWD tells you the dir from which you're running things if you want to make something relative to that.   Or if you need something like Dir::Self, you can make a sub that uses callframe.file to get the full path to the file that the sub is in, then make something relative to that.
19:44 mcmillhj joined #perl6
19:44 bdmatatu joined #perl6
19:45 wander hmm, that is strange. different result between local make and the doc site
19:45 moritz wander: it seems there is some lag in the ecosystem; will have to try again tomorrow
19:47 knight__ perlpilot:
19:47 wander ok, I'll keep track of it :-)
19:47 mr-foobar joined #perl6
19:47 knight__ perlpilot: I want something like that, I am calling the file from different directory
19:48 knight__ So
19:48 knight__ I must change the path to the use lib some_path ~ '/lib';
19:48 knight__ because 'lib' is static path not relative
19:48 knight__ Yep, Dir::self
19:49 philomath joined #perl6
19:49 knight__ But, Is there any option for perl6 except P5 modules?
19:50 cognominal joined #perl6
19:52 ugexe if you want to call a module by namespace where you dont know where it mat reside then -install- it
19:53 ugexe otherwise its the same as in perl5 where you have to figure out inside your module what your current location is and what location you are looking for
19:53 census2 ugexe are you talking to me still? thanks :)
19:54 ugexe census2: no
19:54 census2 ugexe so far i'm doing better with the sleep() and useragent in the program
19:54 moritz to knight__ I guess
19:55 Zoffix joined #perl6
19:55 comborico1611 m: my %test = <1 2>; say %test.elems;
19:55 camelia rakudo-moar ab03b54cc: OUTPUT: «1␤»
19:55 knight__ m: say $?FILE:
19:55 camelia rakudo-moar ab03b54cc: OUTPUT: «<tmp>␤»
19:55 knight__ m: say $?FILE;
19:55 camelia rakudo-moar ab03b54cc: OUTPUT: «<tmp>␤»
19:56 Zoffix wander: moritz I already upgraded the module. That's why it says it's latest
19:56 wander :P
19:56 Zoffix wander: yeah, I'm sure I upgraded. Did any new commits to the doc site go in for the change to reflect on teh doc site? It's only rebuilt when there's stuff to rebuild
19:57 wander oops
19:57 [Coke] you can also touch a file on the server to trigger it
19:57 wander maybe this is the problem
19:57 [Coke] for this very reason. :)
19:58 ugexe also note that non-installed module use is not cross platform. for instance on mac osx `perl6 -Ilib -e 'use Bar;'` will load lib/bar.pm or lib/Bar.pm whereas on linux only lib/Bar.pm
19:58 [Coke] https://github.com/perl6/doc/blob/master/util/update-and-sync#L12
19:58 * Zoffix touches
19:58 moritz Zoffix: and I misread the output from `zef list --installed`; it lists both the 0.3.10 *and* the 0.3.11 version (and not next to each other), so I only caught one of them
20:02 comborico1611 m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen {$random}:exists ; }; say keys %seen;
20:02 camelia rakudo-moar ab03b54cc: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unexpected block in infix position (missing statement control word before the expression?)␤at <tmp>:1␤------> 3ush %seen, ( $random => 1 ) unless %seen7⏏5 {$random}:exists ; }; say keys %seen;…»
20:03 Zoffix knight__: I only skimmed through your questions, but sounds like you just want:   se lib $*PROGRAM.sibling: '../lib';
20:03 knight__ ugexe: Ok, I am using use lib IO::Path($?FILE).dirname
20:03 comborico1611 m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen {$random} :exists ; }; say keys %seen;
20:03 camelia rakudo-moar ab03b54cc: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unexpected block in infix position (missing statement control word before the expression?)␤at <tmp>:1␤------> 3ush %seen, ( $random => 1 ) unless %seen7⏏5 {$random} :exists ; }; say keys %seen;…»
20:03 knight__ Zoffix: ^
20:03 knight__ m: say IO::Path($?FILE).dirname;
20:03 camelia rakudo-moar ab03b54cc: OUTPUT: «Cannot find method 'IO::Path' on object of type Str␤  in block <unit> at <tmp> line 1␤␤»
20:04 Zoffix m: say $?FILE.IO.dirname;
20:04 camelia rakudo-moar ab03b54cc: OUTPUT: «/tmp␤»
20:04 knight__ m: say IO::Path.new($?FILE).dirname;
20:04 camelia rakudo-moar ab03b54cc: OUTPUT: «IO::Path is disallowed in restricted setting␤  in sub restricted at src/RESTRICTED.setting line 1␤  in method new at src/RESTRICTED.setting line 32␤  in block <unit> at <tmp> line 1␤␤»
20:04 Zoffix knight__: that'd be missing volume on Windows
20:04 knight__ hmm
20:04 knight__ thank you
20:04 moritz comborico1611: you can't have a space between %seen and the {...} postfix
20:04 Zoffix knight__: use lib $*PROGRAM.sibling: '../lib';  or adjust it to whatever
20:05 cdg joined #perl6
20:05 Zoffix knight__: basically give `use lib` an IO::Path object; .dirname just returns a string of part of the path
20:05 Zoffix (without volume and file)
20:05 comborico1611 Thanks. I didn't realize i was using .. operator. heh.
20:05 knight__ Zoffix: ok, it works
20:05 knight__ Thank you
20:05 Zoffix \o/
20:06 knight__ Also work IO::Path...
20:06 knight__ :-) but your version is better :-)
20:06 comborico1611 m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen{$random}:exists ; }; say keys %seen;
20:06 camelia rakudo-moar ab03b54cc: OUTPUT: «(8 21 44 5 49 13 30 31 29 28)␤»
20:06 comborico1611 i see now.
20:07 Zoffix m: my %seen; %seen{50.rand.Int} = 1 while %seen.elems < 10; say keys %seen;
20:07 camelia rakudo-moar ab03b54cc: OUTPUT: «(42 49 5 1 41 47 3 36 16 40)␤»
20:07 Zoffix m: my %seen is SetHash; %seen{50.rand.Int}++ while %seen.elems < 10; say keys %seen;
20:07 camelia rakudo-moar ab03b54cc: OUTPUT: «(33 12 0 16 32 28 47 6 8 2)␤»
20:08 ryn1x joined #perl6
20:08 moritz m: my %seen is SetHash; %seen{^50 .pick}++ while %seen < 10; say keys %seen
20:08 camelia rakudo-moar ab03b54cc: OUTPUT: «(42 40 5 15 36 14 47 38 20 2)␤»
20:09 comborico1611 m: my %seen; while %seen.elems < 10 { my $random = 50.rand.Int; push %seen, ( $random => 1 ) unless %seen{$random}:exists ; }; say keys %seen.pairs;
20:09 camelia rakudo-moar ab03b54cc: OUTPUT: «(0 1 2 3 4 5 6 7 8 9)␤»
20:09 mcmillhj joined #perl6
20:10 moritz m: say ^50 .pick(10)
20:10 camelia rakudo-moar ab03b54cc: OUTPUT: «(47 18 9 41 36 29 16 17 4 30)␤»
20:10 comborico1611 So the key is 0-9 and the value is pseudo-random?
20:11 cdg_ joined #perl6
20:11 Zoffix m: my %seen := set ^50 .pick: 10; say %seen;
20:11 camelia rakudo-moar ab03b54cc: OUTPUT: «set(10 11 21 24 28 29 33 45 47 5)␤»
20:11 Zoffix m: say ^50 .pick: 10;
20:11 camelia rakudo-moar ab03b54cc: OUTPUT: «(18 41 0 14 17 12 27 38 43 47)␤»
20:11 Zoffix \o/ I win the golf :P
20:11 Zoffix m: my %seen is SetHash = ^50 .pick: 10 # not sure why it's unhappy about it here
20:11 camelia rakudo-moar ab03b54cc: ( no output )
20:11 moritz m: say ^50 .pick: 10
20:11 camelia rakudo-moar ab03b54cc: OUTPUT: «(35 24 11 38 13 39 48 30 5 46)␤»
20:11 comborico1611 I'm confused because .elems < 10 should print five keys and five values.
20:12 Zoffix Ah. Too old rakudo locally
20:12 moritz one character shorter than Zoffix++ :-)
20:12 Zoffix comborico1611: .elems gives number of pairs in a hash
20:12 comborico1611 Ahh! That's right.
20:12 comborico1611 Thank you.
20:13 TimToady m: say ^Ⅼ .pick: Ⅹ
20:13 camelia rakudo-moar ab03b54cc: OUTPUT: «(19 31 10 13 40 16 21 20 18 2)␤»
20:13 Zoffix :O
20:13 Zoffix What sourcery is that!
20:13 moritz cheating!
20:13 Zoffix Ahh. Romans :)
20:13 moritz cheating is technique!
20:14 TimToady .oO(any sufficiently advanced cheatology...)
20:14 Zoffix :)
20:14 moritz (fwiw this is a reference to "Harry Potter and the Methods or Rationality")
20:15 Zoffix left #perl6
20:15 ggoebel joined #perl6
20:17 mspo can you get say to use the same utf8 group yo ustarted with?
20:19 HoboWithAShotgun started with?
20:19 timotimo utf8 group?
20:19 mspo so the say ^Ⅼ stays in roman numeral
20:19 jnthn What's a "utf8 group"?
20:19 jnthn Ah, timotimo was faster
20:19 mspo a thing I just made up
20:20 timotimo it'd be possible if the roman numeral module from drforr were amped up to XI
20:20 HoboWithAShotgun must be one of these self help circles for programmers scarred by encoding issue
20:20 Ven joined #perl6
20:21 timotimo because the translation from decimal to roman is so nontrivial
20:21 mspo so when you are .pick ing playing cards you get a card back
20:21 timotimo .u card
20:21 yoleaux U+2135 ALEF SYMBOL [Lo] (ℵ)
20:21 yoleaux U+2136 BET SYMBOL [Lo] (ℶ)
20:21 yoleaux U+2137 GIMEL SYMBOL [Lo] (ℷ)
20:21 timotimo huh?
20:21 TimToady .u diamond
20:21 yoleaux U+20DF COMBINING ENCLOSING DIAMOND [Me] (◌⃟)
20:21 yoleaux U+22C4 DIAMOND OPERATOR [Sm] (⋄)
20:21 yoleaux U+233A APL FUNCTIONAL SYMBOL QUAD DIAMOND [So] (⌺)
20:21 [Coke] u: card
20:21 unicodable6 [Coke], U+1F0A0 PLAYING CARD BACK [So] (🂠)
20:21 unicodable6 [Coke], U+1F0A1 PLAYING CARD ACE OF SPADES [So] (🂡)
20:21 timotimo haha, denied!
20:21 unicodable6 [Coke], 87 characters in total: https://gist.github.com/340d880de1c13749b3cb2e4b351c77e1
20:21 HoboWithAShotgun .u smiley face
20:21 yoleaux No characters found
20:22 HoboWithAShotgun .u smily face
20:22 yoleaux No characters found
20:22 [Coke] .u is old and busted, use u:
20:22 yoleaux U+0020 SPACE [Zs] ( )
20:22 yoleaux U+002C COMMA [Po] (,)
20:22 yoleaux U+003A COLON [Po] (:)
20:22 timotimo m: say parse-names("PLAYING CARD BACK")
20:22 camelia rakudo-moar ab03b54cc: OUTPUT: «🂠␤»
20:22 HoboWithAShotgun u: smiley face
20:22 unicodable6 HoboWithAShotgun, Found nothing!
20:22 [Coke] (also zef install App::Uni)
20:22 timotimo m: .say for (parse-names("PLAYING CARD BACK"), *.succ ... *)[^20]
20:22 camelia rakudo-moar ab03b54cc: OUTPUT: «🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤🂠␤»
20:22 HoboWithAShotgun bah. useless
20:22 timotimo hm, ok
20:22 HoboWithAShotgun ;-)
20:22 timotimo m: .say for (parse-names("PLAYING CARD BACK"), { chr(ord($_) + 1) } ... *)[^20]
20:22 camelia rakudo-moar ab03b54cc: OUTPUT: «🂠␤🂡␤🂢␤🂣␤🂤␤🂥␤🂦␤🂧␤🂨␤🂩␤🂪␤🂫␤🂬␤🂭␤🂮␤🂯␤🂰␤🂱␤🂲␤🂳␤»
20:23 timotimo interesting, two in there aren't rendered in my terminal
20:23 mspo okay maybe cards were a bad example
20:23 mspo timotimo: probably the stupid knights
20:24 mspo u: 🂼
20:24 unicodable6 mspo, U+1F0BC PLAYING CARD KNIGHT OF HEARTS [So] (🂼)
20:24 unicodable6 mspo, U+0020 SPACE [Zs] ( )
20:24 TimToady m: say '🂡' ... '🃟'
20:24 camelia rakudo-moar ab03b54cc: OUTPUT: «(🂡 🂢 🂣 🂤 🂥 🂦 🂧 🂨 🂩 🂪 🂫 🂬 🂭 🂮 🂯 🂰 🂱 🂲 🂳 🂴 🂵 🂶 🂷 🂸 🂹 🂺 🂻 🂼 🂽 🂾 🂿 🃀 🃁 🃂 🃃 🃄 🃅 🃆 🃇 🃈 🃉 🃊 🃋 🃌 🃍 🃎 🃏 🃐 🃑 🃒 …»
20:24 mspo u: 🃏
20:24 unicodable6 mspo, U+1F0CF PLAYING CARD BLACK JOKER [So] (🃏)
20:24 timotimo i see that one
20:24 mspo u: 🂯 🂰
20:24 unicodable6 mspo, U+1F0AF <reserved-1F0AF> [Cn] (🂯)
20:24 unicodable6 mspo, U+0020 SPACE [Zs] ( )
20:24 unicodable6 mspo, 4 characters in total (🂯 🂰 ): https://gist.github.com/50e042a38fc82d20ae1388ac5c72c38b
20:24 timotimo 🂮␤ ␤ ␤🂱 - the two in the middle here
20:24 wander cannot find available unicode name of "一" gets me down :(
20:24 wander u: 一
20:24 unicodable6 wander, U+4E00 <CJK Ideograph-4E00> [Lo] (一)
20:25 wander u: 无
20:25 unicodable6 wander, U+65E0 <CJK Ideograph-65E0> [Lo] (无)
20:25 wander u: 乐土
20:25 unicodable6 wander, U+4E50 <CJK Ideograph-4E50> [Lo] (乐)
20:25 unicodable6 wander, U+571F <CJK Ideograph-571F> [Lo] (土)
20:25 wander one, Mu and rakudo :-)
20:25 philomath_ joined #perl6
20:26 setty1 joined #perl6
20:26 TimToady music personage, eh?
20:27 TimToady oh, no, that's earth
20:27 timotimo where are wind and fire?
20:28 TimToady 风 and 火
20:28 TimToady or 風 in traditional
20:28 timotimo time to make food
20:29 timotimo make: *** No rule to make target 'food'.  Stop.
20:29 timotimo 0.00user 0.00system 0:00.00elapsed 50%CPU (0avgtext+0avgdata 4016maxresident)k
20:30 TimToady one without music is dirt?  :)
20:32 wander one without music?
20:32 mr-foobar joined #perl6
20:33 TimToady 一无乐
20:33 wander lol
20:34 TimToady lunch &
20:34 wander I lost in Chaizi(拆字)
20:35 nhywyll joined #perl6
20:36 wander remove 一 from 乐 results symbol looks like 木(wood), which, in WuXing, generate fire, and then generate soil/dirt
20:36 wander my thoughts :)
20:46 cdg joined #perl6
20:48 ryn1x joined #perl6
20:51 wander \o
20:51 dct joined #perl6
20:51 wander the doc site is rebuilt, looks fine
20:51 * wander go to bed
20:52 ChoHag joined #perl6
20:54 wander thank you Zoffix moritz
20:55 Exodist joined #perl6
20:56 Piotr joined #perl6
20:59 [Coke] ff/win 5
21:00 HelpWithPerl joined #perl6
21:00 HelpWithPerl Hey guys
21:00 HelpWithPerl My script has been running for a few hours now and still hasn't finished
21:00 HelpWithPerl Any ideas why?
21:01 AlexDaniel Well, what's in the script?
21:01 HelpWithPerl Well, it's my attempted solution to Project Euler problem 3
21:06 HelpWithPerl Do you mind if I post the code in a pastebin, so you can see it?
21:06 geekosaur please do
21:10 HelpWithPerl Here's a link: https://pastebin.com/Fi4X1RiL
21:18 perigrin joined #perl6
21:20 mr-foobar joined #perl6
21:22 dogbert17 HelpWithPerl: it looks as if you have forgotten to check if the product of your prime factors (in facteurs_premiers_du_nombre) are equal to 600_851_475_143
21:23 dogbert17 you should also check that your factors are indeed prime numbers
21:24 HelpWithPerl Yes, I wanted to add that part after making sure my code so far works ;)
21:24 HoboWithAShotgun joined #perl6
21:25 itaipu_ joined #perl6
21:25 HelpWithPerl Neither of those things explain why my code is taking so long to run though :P
21:25 El_Che HelpWithPerl: you have your priorities wrong :)
21:25 El_Che optimize later
21:26 khw joined #perl6
21:27 dogbert17 HelpWithPerl: I think it does actually, you don't have to go through all numbers since the largest factor (which I won't mention) isn't that large
21:32 azawawi joined #perl6
21:32 azawawi hi #perl6
21:32 ryn1x joined #perl6
21:33 azawawi geekosaur: ping
21:33 [Coke] o/
21:34 geekosaur pong
21:35 azawawi geekosaur: https://github.com/azawawi/perl6-msgpack/commit/309fbc2aa0d1b85584abff2ff59409e5b7f60834  # Passing unpacks...
21:36 azawawi geekosaur: was able to break the cyclic behavior and forward struct declaration problem https://github.com/azawawi/perl6-msgpack/blob/master/lib/MsgPack/Native.pm6#L151
21:36 azawawi geekosaur: Perl 6 rocks :)
21:49 mr-foobar joined #perl6
21:50 azawawi geekosaur: thx for your help
21:57 mienaikage joined #perl6
21:57 Exodist joined #perl6
22:07 Geth ¦ DBIish: 0aa144e711 | (Dan Zwell)++ (committed by Dan) | lib/DBDish/Pg/StatementHandle.pm6
22:07 Geth ¦ DBIish: Fix infinite loop when passing certain arrays to pg-array-str
22:07 Geth ¦ DBIish:
22:07 Geth ¦ DBIish: The inputs that show the problem are: an array in item context, or a nested array with one element.
22:07 Geth ¦ DBIish:
22:07 Geth ¦ DBIish: The problem is that `my @arr = ...` creates a new array instead of binding to the RHS.
22:07 Geth ¦ DBIish: So use `my @arr := ...` instead.
22:07 Geth ¦ DBIish:
22:07 Geth ¦ DBIish: This fixes issue #107.
22:07 Geth ¦ DBIish: review: https://github.com/perl6/DBIish/commit/0aa144e711
22:07 Geth ¦ DBIish: ea5a9504fe | (Jonathan Stowe)++ (committed using GitHub Web editor) | lib/DBDish/Pg/StatementHandle.pm6
22:07 Geth ¦ DBIish: Merge pull request #108 from lefth/master
22:07 Geth ¦ DBIish:
22:07 Geth ¦ DBIish: Fix infinite loops when passing certain arrays to pg-array-str
22:07 Geth ¦ DBIish: review: https://github.com/perl6/DBIish/commit/ea5a9504fe
22:07 dct joined #perl6
22:08 comborico1611 joined #perl6
22:15 cdg joined #perl6
22:17 HelpWithPerl Thanks for the advice guys
22:18 mr-foobar joined #perl6
22:18 mempko joined #perl6
22:20 aindilis joined #perl6
22:20 comborico1611 Is the method Int in 50.rand.Int modifying random or 50?
22:23 geekosaur it's operating on the result of 50.rand
22:23 HaraldJoerg1 left #perl6
22:23 comborico1611 Thank you.
22:24 geekosaur if you replace rand with something else, you can't know just by looking at it what it will do; that method could potentially return an object of any type, and Int is applied to that object
22:25 niceperl joined #perl6
22:25 comborico1611 I see.
22:29 HelpWithPerl Quick question: does if @x[$a] %% $y[^100000] be false if x[$a] is indivisible for just a single value of $y[something]?
22:31 AlexDaniel HelpWithPerl: oh, that's not exactly what it does
22:31 HelpWithPerl What does it do?
22:31 AlexDaniel HelpWithPerl: it will probably numify $y[^100] and it'll turn into a number of elements
22:31 AlexDaniel so it's @x[$a] by the number of elements in $y[^10000]
22:31 HelpWithPerl Oh
22:31 HelpWithPerl Did not expect that :P
22:32 AlexDaniel you need $y[^10000].any
22:32 AlexDaniel or $y[^10000].all
22:32 AlexDaniel depending on your intent
22:32 HelpWithPerl Wow, that is so useful...
22:32 espadrine joined #perl6
22:33 HelpWithPerl Thanks.
22:33 AlexDaniel HelpWithPerl: we have a section on things that are Cool when you don't want them to be Cool: https://docs.perl6.org/language/traps#Cool_tricks
22:36 HelpWithPerl "Cool when you don't want them to be Cool" ... "Traps to avoid" lol
22:36 comborico1611 m: my %seen; %seen {50.rand.Int} = 1 while %seen < 10; say values %seen;
22:36 camelia rakudo-moar fc9e7241b: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Unexpected block in infix position (missing statement control word before the expression?)␤at <tmp>:1␤------> 3my %seen; %seen7⏏5 {50.rand.Int} = 1 while %seen < 10; say␤    expecting any of…»
22:36 comborico1611 m: my %seen; %seen{50.rand.Int} = 1 while %seen < 10; say values %seen;
22:36 camelia rakudo-moar fc9e7241b: OUTPUT: «(1 1 1 1 1 1 1 1 1 1)␤»
22:37 bisectable6 joined #perl6
22:37 comborico1611 m: my %seen; %seen{50.rand.Int} = 1 while %seen < 10; say value %seen;
22:37 camelia rakudo-moar fc9e7241b: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    value used at line 1. Did you mean 'values'?␤␤»
22:37 AlexDaniel m: say 42 %% <2 4 5>
22:37 camelia rakudo-moar fc9e7241b: OUTPUT: «True␤»
22:37 AlexDaniel m: say 42 %% <2 4 5>.any
22:37 camelia rakudo-moar fc9e7241b: OUTPUT: «any(True, False, False)␤»
22:37 AlexDaniel m: say 42 %% <2 4 5>.all
22:37 camelia rakudo-moar fc9e7241b: OUTPUT: «all(True, False, False)␤»
22:38 AlexDaniel m: say so 42 %% <2 4 5>.any
22:38 camelia rakudo-moar fc9e7241b: OUTPUT: «True␤»
22:38 AlexDaniel m: say so 42 %% <2 4 5>.all
22:38 camelia rakudo-moar fc9e7241b: OUTPUT: «False␤»
22:39 HelpWithPerl Aha! I've solved the problem! Thanks so much for your help everyone!
22:39 lizmat and another Perl 6 Weekly hits the Net: https://p6weekly.wordpress.com/2017/11/06/2017-45-uplink-established/
22:40 El_Che lizmat = hero
22:42 ryn1x joined #perl6
22:42 espadrine joined #perl6
22:44 El_Che ing daemon
22:44 El_Che zeroc-icegridgui - IceGrid Admin graphical client
22:44 El_Che damn
22:44 El_Che sorry
22:44 El_Che I meant this: https://news.ycombinator.com/item?id=15625322 : " perl6 will be renamed to rakudo, officially. Very soon.
22:44 HelpWithPerl Probably a good thing
22:45 lizmat note who said that: rurban  :-)
22:45 HelpWithPerl Too many people hear Perl6 and make syntax jokes :P
22:46 El_Che lizmat: I was being nice. Full text is:
22:46 El_Che ing daemon
22:46 El_Che zeroc-icegridgui - IceGrid Admin graphical client
22:46 El_Che damn
22:46 lizmat que?
22:46 El_Che question is:
22:46 El_Che "Would Renaming Perl Save It from Terminal Unpopularity?"
22:46 El_Che answer: "Already done.
22:46 El_Che perl5 was forked to cperl.
22:46 El_Che And perl6 will be renamed to rakudo, officially. Very soon."
22:46 El_Che the perl5 thing sound a little like trolling :)
22:47 lizmat it *is*  :-)
22:47 * dylanwh is happy that newsy is blocked at the router level.
22:48 El_Che lizmat: you missed the point of my tweet. The point was not that there were new packages, but they are completely built and relased by travis. On the open
22:49 mr-foobar joined #perl6
22:50 lizmat El_Che: updated
22:53 troys joined #perl6
22:54 ChoHag joined #perl6
22:55 azawawi joined #perl6
22:55 Juerd "Stage parse      : 199.663"
22:55 Juerd That was around 70 before, on my laptop. Should I be worried?
22:56 gfldex Juerd: I will build Rakudo and tell you if your laptop is broken.
22:56 Juerd :)
22:58 [Coke] El_Che: "Citation Needed"
22:58 azawawi Juerd: maybe laptop is on battery power? lower CPU state?
22:58 [Coke] (I mean from rurban, not from you. :)
22:59 Juerd I just found out there was a Chromium process that was keeping my laptop busy
22:59 Juerd Sorry for the false alarm :)
22:59 lizmat *phew*  :-)
22:59 * geekosaur is wondering about chrome/chromium any more
23:00 ryn1x joined #perl6
23:00 geekosaur random sudden bloat-outs, tendency to get into tight loops inside itself with little evidence in the UI aside from slowness and top showing a process churning through CPU
23:01 geekosaur also, if you accept a bad certificate (from my router in this case; kinda hard for those to DTRT) that eventually times out, and instead of reporting an error chrome starts consuming 100% cpu time
23:01 Juerd Stage parse      :  74.740
23:01 Juerd That's better :)
23:01 geekosaur and lots of network, apparently trying to fetch something repeatedly
23:02 geekosaur (which I determined only by capturing snapshots of netstat -4 -p and diffing...)
23:06 mr-foobar joined #perl6
23:11 mienaikage joined #perl6
23:14 azawawi https://github.com/azawawi/perl6-msgpack/ # Experimental status removed
23:14 lizmat azawawi++  :-)
23:14 azawawi https://gist.github.com/azawawi/22e26095782b96116a76fea6c78bced2  # 2x performance native vs perl6 implementation (pack, unpack)
23:15 azawawi Now over 10k records we have that nasty heap corruption bug
23:16 azawawi records = elements
23:16 azawawi lizmat: thanks
23:17 azawawi https://github.com/azawawi/perl6-msgpack/blob/master/benchmark/test-msgpack.pl6  # Corruption beyond 10k :)
23:18 azawawi Absolute power corrupts absolutely :)
23:22 azawawi .tell nine Could you please take a look at the rakudo heap corruption bug when setting size to beyond 10k elements https://github.com/azawawi/perl6-msgpack/blob/master/benchmark/test-msgpack.pl6 . Thanks
23:22 yoleaux azawawi: I'll pass your message to nine.
23:30 jferrero joined #perl6
23:38 Cabanossi joined #perl6
23:39 mcmillhj joined #perl6
23:39 statisfiable6 joined #perl6
23:39 benchable6 joined #perl6
23:39 unicodable6 joined #perl6
23:41 mienaikage joined #perl6
23:42 pecastro joined #perl6
23:46 ryn1x joined #perl6
23:50 Aaronepower joined #perl6
23:52 mienaikage joined #perl6
23:53 cdg joined #perl6

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

Perl 6 | Reference Documentation | Rakudo