»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
AlexDaniel yea, and you only need use WWW; 00:00
perllover AlexDaniel still error pastebin.com/7HcPmqLR 00:01
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 ?
AlexDaniel yeah, no error here 00:03
HoboWithAShotgun do we use prepan for 6 modules? if not, is there a similar place?
perllover AlexDaniel what can i do? 00:04
AlexDaniel well, as I said, you can try disabling ipv6 and trying again
perllover do you think there's an easy way to do it in perl5? 00:06
i'm a bit rusty with perl5, however. but a quick way to convert that same code over
i'm nervous to disable ipv6. it looked risky 00:07
am i overreacting about ipv6 ?
AlexDaniel it depends 00:08
perllover depends on? 00:09
00:11 mr-foobar left
AlexDaniel stuff. :) But if I were you I'd try it, it is probably harmless 00:11
00:14 mr-foobar joined
perlawhirl ed'ed 00:16
00:19 perlawhirl joined 00:23 Cabanossi left 00:25 atta joined, Cabanossi joined, ggoebel joined 00:31 atta left 00:32 Mrofnet joined 00:36 Morfent left 00:37 MasterDuke_ joined 00:39 atta joined 00:47 cdg joined, cognominal joined 00:51 cdg left 00:57 aborazmeh joined, aborazmeh left, aborazmeh joined 00:59 geekosaur joined 01:11 cdg joined 01:12 mr-foobar left 01:14 mr-foobar joined 01:15 Morfent joined 01:16 cdg left 01:17 Merfont joined 01:18 Mrofnet left 01:20 Morfent left
comborico1611 Quiet tonight. 01:28
01:28 astj joined
Geth doc/master: 11 commits pushed by W4anD0eR96++, (Alex Chen)++
review: github.com/perl6/doc/compare/dbce2...42d87cf59e
01:34 xinming_ joined 01:41 mr-foobar left 01:45 mr-foobar joined 01:57 kalkin-- joined 02:04 wander joined 02:06 colomon joined
Geth doc: 2212ab26dd | (Alex Chen)++ (committed using GitHub Web editor) | type-graph.txt
Introduce new classes
02:07 cdg joined 02:10 ch3ck3r joined 02:11 mr-foobar left 02:12 cdg left
comborico1611 map { ++$_ } #WRONG map { $_ + 1 } #RIGHT 02:15
Tricky business.
02:15 mr-foobar joined
Geth perl6-most-wanted: holli-holzer++ created pull request #40:
WIP: Units
HoboWithAShotgun when your brain starts to feel like a wet ball of cotton it's time to sleep 02:17
comborico1611 lol 02:18
That's actually quite accurate comparison.
Are you a poet? 02:19
HoboWithAShotgun yeah, and it really gets critical when the fabric dries
comborico1611 I haven't been there.
02:20 colomon left
HoboWithAShotgun what are your dealings with Perl6 comborico1611? 02:20
comborico1611 A non programmer trying to become a programmer. 02:21
HoboWithAShotgun in hindsight of doing it for a living? 02:22
comborico1611 Correct.
HoboWithAShotgun Oh, that's painful.
comborico1611 Just finished Chapter Nine! 😂
02:23 colomon joined
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
comborico1611 I learned on C++ 02:24
HoboWithAShotgun And I doubt you will find a Perl 6 job anytime soon.
Geth perl6-most-wanted: ade8a5c53f | holli-holzer++ (committed using GitHub Web editor) | most-wanted/modules.md
WIP: Units
perl6-most-wanted: 52c6e3796b | (Aleks-Daniel Jakimenko-Aleksejev)++ (committed using GitHub Web editor) | most-wanted/modules.md
Merge pull request #40 from holli-holzer/master

WIP: Units
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.
HoboWithAShotgun AlexDaniel++ 24/7
AlexDaniel :)
02:26 colomon left
AlexDaniel is actually going to bed now 02:28
have a good whatever everyone o/
02:28 colomon joined
comborico1611 I'm almost am, too. 02:28
AlexDaniel releasable6: next
releasable6 AlexDaniel, Next release in 12 days and ≈16 hours. No blockers. 0 out of 134 commits logged
02:28 araujo_ joined
releasable6 AlexDaniel, Details: gist.github.com/95ccab329b19bc3528...1c5886ff64 02:28
AlexDaniel whoops. 12 days
time flies 02:29
comborico1611 How long have hashes been in programming languages? 02:31
HoboWithAShotgun m: my @a = 1, 2; my ($a, $b) = @a; $a.say 02:33
camelia 1
HoboWithAShotgun m: my %a = :a(1); my (:$a) = %a; $a.say 02:34
camelia a => 1
02:34 Mrofnet joined
HoboWithAShotgun decides to do as AlexDaniel 02:35
byebye 02:36
02:37 Merfont left
comborico1611 Night! 02:37
02:38 Cabanossi left, Exodist joined 02:39 cdg joined 02:40 Cabanossi joined 02:42 mr-foobar left 02:43 mr-foobar joined 02:44 cdg left 02:46 colomon left
comborico1611 Goodnight! 02:47
02:50 colomon joined 02:55 ilbot3 joined, ChanServ sets mode: +v ilbot3 03:07 piojo joined 03:13 mr-foobar left 03:15 Mrofnet left, mr-foobar joined, Morfent joined 03:17 Morfent left 03:18 colomon left 03:22 colomon joined 03:23 noganex joined, Cabanossi left 03:25 colomon left, Cabanossi joined 03:34 darkmorph joined 03:37 ryn1x_ joined
Geth doc: 0db8f8c7b7 | (Jeremy Studer)++ | 172 files
Add vim modeline at end of every file without one

The settings in the modeline do the following:
  * Highlight this file as Perl6
  * Expand tabs into 4 spaces
This is helpful for vim users for highlighting an atypical file format and creates formatting consistency with regards to tabs and spacing.
[Coke] ^^ someone might want to make a test for that. (or a ticket to make a tst anyway) 03:39
wander what is declarator `monitor` means 03:40
looks like `class`, what's the difference
timotimo en.wikipedia.org/wiki/Monitor_(synchronization) - wander, it's this thing 03:42
timotimo disappears into bed
(nobody saw me)
03:42 mr-foobar left 03:44 mr-foobar joined
wander suddenly find it's in my exam this afternoon 03:45
OS lesson 03:46
04:03 MasterDuke joined 04:04 MasterDuke_ left 04:07 wander left 04:09 aborazmeh left 04:11 cdg joined 04:12 colomon joined 04:16 cdg left
[Coke] m: Telemetry.say 04:24
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared name:
Telemetry used at line 1
[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
04:25 Actualeyes joined 04:26 wander joined 04:35 sena_kun joined 04:38 Cabanossi left, Cabanoss- joined 04:39 Cabanoss- is now known as Cabanossi 04:41 sena_kun left
geekosaur m: use Telemetry; 04:43
camelia ( no output )
04:43 mr-foobar left 04:46 mr-foobar joined 04:57 ryn1x joined, ryn1x_ left 05:04 mson joined 05:13 mr-foobar left 05:14 mr-foobar joined 05:18 Morfent joined 05:19 darkmorph left 05:36 Cabanossi left 05:39 Cabanossi joined 05:42 mr-foobar left 05:46 mr-foobar joined 05:48 imcsk8 joined
Geth Pod-To-HTML/toc-escape: f8db64ba8d | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
Escape toc text
Pod-To-HTML: W4anD0eR96++ created pull request #27:
Escape toc text
05:51 wamba joined
wander [Coke]: yes, I hesitate if it should be add 05:53
1. Telemetry::Period inherits from Telemetry, this is the main reason I add it
2. However, it's a rakudo-specific class, I wonder if it should even not be in /Types 05:57
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:00
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:01
06:08 mempko joined
wander BTW, docs.perl6.org/type/snapper should not be documents in this place. 06:12
06:12 mattp__ joined 06:13 mr-foobar left, labster_ joined
wander We can start with "Roadmap for our language/ docs" github.com/perl6/doc/issues/114 and consider how the site we want it be. 06:14
06:14 mattp_ left, lucs_ joined, titsuki_ joined, labster_ is now known as labster 06:16 TEttinger joined
wander go to take an exam 06:16
06:17 evalable6 left, evalable6 joined, eater joined, nativecallable6 left, benchable6 left, statisfiable6 left, unicodable6 left, bisectable6 left, releasable6 left 06:18 stux|RC left, unicodable6 joined, statisfiable6 joined, bisectable6 joined, benchable6 joined, nativecallable6 joined 06:19 stux|RC joined 06:20 mr-foobar joined 06:26 notostraca joined 06:31 TEttinger left, titsuki_ left, mempko left, colomon left, astj left 06:32 john51 joined, konsolebox joined 06:34 ribasushi joined, evalable6 left, evalable6 joined, releasable6 joined, ChanServ sets mode: +v releasable6, unicodable6 left, statisfiable6 left, bisectable6 left, benchable6 left, nativecallable6 left 06:44 mr-foobar left, Piotr_ joined 06:46 wander left 06:49 atta left 06:50 atta joined, mr-foobar joined 06:51 bisectable6 joined, unicodable6 joined, nativecallable6 joined, ChanServ sets mode: +v bisectable6, ChanServ sets mode: +v unicodable6, ChanServ sets mode: +v nativecallable6, benchable6 joined, Cabanossi left, statisfiable6 joined 06:54 Cabanossi joined 07:02 darutoko joined 07:11 nadim joined, titsuki_ joined, mempko joined, colomon joined, astj joined, vike joined, APic joined, epony joined, cgfbee joined, shadoxx joined, dogbert17 joined, kshannon joined, Alikzus_ joined, charsbar joined, ab5tract joined, masak joined, preaction joined, silug joined 07:12 APic left, cgfbee left 07:13 mr-foobar left, darutoko- joined, APic joined 07:14 john51 left, mson left 07:15 ccntrq joined, statisfiable6 left, benchable6 left 07:16 benchable6 joined, statisfiable6 joined, darutoko left, evalable6 left, evalable6 joined, mr-foobar joined, ZzZombo joined 07:17 ch3ck3r left, HTTP_____GK1wmSU joined, HTTP_____GK1wmSU left 07:18 AlexDaniel` left, pm51 joined, cgfbee joined, ugexe joined 07:19 Altreus joined, john51 joined 07:20 evalable6 left, benchable6 left, statisfiable6 left 07:21 statisfiable6 joined, benchable6 joined, evalable6 joined, ccntrq left, xui_nya[m] left 07:22 tyil[m] left, wictory[m] left, CIAvash[m] left, wamba[m] left, mienaikage left, Garland_g[m] left, ilmari[m] left, tadzik left, unclechu left, Matthew[m] left, M-Illandan left 07:23 mack[m] left, ccntrq joined 07:25 statisfiable6 left, benchable6 left, evalable6 left 07:29 ZzZombo left 07:30 ZzZombo joined, ZzZombo left 07:31 ZzZombo joined 07:36 Cabanossi left 07:39 Cabanossi joined 07:42 benchable6 joined, evalable6 joined, statisfiable6 joined 07:43 mr-foobar left 07:46 mr-foobar joined 07:47 parv joined 07:48 ZzZombo left, ZzZombo joined 08:02 ZzZombo left 08:03 ZzZombo joined 08:08 ZzZombo left 08:09 ZzZombo joined 08:15 lowbro joined, lowbro left, lowbro joined 08:22 zakharyas joined 08:32 abraxxa joined 08:39 rindolf joined 08:44 notostraca is now known as TEttinger, mr-foobar left 08:45 mr-foobar joined 08:50 Actualeyes left
holyghost alt.test 08:54
CTCP #perl6 client 08:57
08:58 holyghost joined, araujo_ left 08:59 mempko left, sena_kun joined 09:03 jonas1 joined 09:12 tadzik joined 09:14 mr-foobar left 09:15 mr-foobar joined 09:18 dogbert17 left 09:20 cdg joined 09:24 atta left 09:25 cdg left, HoboWithAShotgun joined 09:37 Cabanossi left, tadzik left 09:39 Cabanossi joined 09:40 tadzik joined 09:41 ilbot3 left 09:42 rgrau joined 09:44 mr-foobar left 09:45 mr-foobar joined, ilbot3 joined, ChanServ sets mode: +v ilbot3 09:46 atta joined 09:57 HaraldJoerg joined, HoboWithAShotgun left
Geth Pod-To-HTML/toc-escape: d57051b2fc | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
escape html in toc

  =begin pod
  =TITLE Regex
... (8 more lines)
10:09 wander joined 10:13 salva joined 10:14 mr-foobar left 10:17 mr-foobar joined, margeas joined
Geth Pod-To-HTML: f8db64ba8d | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
Escape toc text
Pod-To-HTML: d57051b2fc | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
escape html in toc

  =begin pod
  =TITLE Regex
... (8 more lines)
Pod-To-HTML: 329bc915b3 | (Alex Chen)++ (committed using GitHub Web editor) | lib/Pod/To/HTML.pm
Merge pull request #27 from perl6/toc-escape

Escape toc text
10:19 HoboWithAShotgun joined 10:22 Matthew[m] joined, CIAvash[m] joined, M-Illandan joined, ilmari[m] joined, wamba[m] joined, mack[m] joined, tyil[m] joined, unclechu joined, AlexDaniel`1 joined, wictory[m] joined, mienaikage joined, Garland_g[m] joined, xui_nya[m] joined 10:25 ChoHag joined 10:28 robertle joined 10:31 ChoHag_ joined 10:33 ChoHag left 10:34 konsolebox left 10:36 ChoHag_ left 10:37 ChoHag joined 10:41 cognominal left, konsolebox joined, cognominal joined 10:44 mr-foobar left 10:48 Ven joined, Ven is now known as Guest53102 10:49 mr-foobar joined, wander left 10:52 Cabanossi left 10:54 Cabanossi joined 10:55 raschipi joined 10:58 darutoko- left 11:00 darutoko joined 11:02 ryn1x left 11:03 wamba left, sproctor joined, HTTP_____GK1wmSU joined
HoboWithAShotgun g'day 11:03
11:03 HTTP_____GK1wmSU left
raschipi day 11:05
11:09 raschipi left 11:15 mr-foobar left 11:19 mr-foobar joined, parv left, HTTP_____GK1wmSU joined, HTTP_____GK1wmSU left 11:22 Guest53102 left, Cabanossi left 11:24 Cabanossi joined 11:30 Mrofnet joined 11:32 ryn1x joined 11:33 Morfent left 11:40 llfourn joined 11:42 Raider_ joined 11:43 Raider_ is now known as Twixx, Twixx left 11:45 mr-foobar left 11:46 comborico1611 joined, mr-foobar joined 11:49 Merfont joined 11:51 Cabanossi left 11:52 Mrofnet left 11:54 Cabanossi joined 12:00 wamba joined 12:03 zakharyas left 12:04 HaraldJoerg1 joined 12:06 HaraldJoerg left 12:11 census_ joined 12:14 mr-foobar left 12:17 mr-foobar joined 12:19 census_ left 12:20 piojo left 12:25 ufobat joined
ufobat ola :-) 12:25
census hi 12:29
12:34 ryn1x left
ZzZombo Hey, if I `make` a value, calling `<match object>.made` is supposed to give that value back, isn't it? 12:35
12:42 ryn1x joined, wamba left 12:44 mr-foobar left, darkmorph joined 12:45 mson joined 12:46 mr-foobar joined, wamba joined, ryn1x left 12:47 kerframil joined 12:48 aborazmeh joined, aborazmeh left, aborazmeh joined
HoboWithAShotgun m: my %a = :a(1), :b(2); my %b = :a(1); say %a <<+>> %b;" 12:50
camelia 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 …
HoboWithAShotgun m: my %a = :a(1), :b(2); my %b = :a(1); say %a <<+>> %b; 12:51
camelia {a => 2}
HoboWithAShotgun what's the idiomatic way to get { a => 2, b => 2 } ?
12:51 Cabanossi left 12:52 salva left 12:54 Cabanossi joined
HoboWithAShotgun m: my %a = :a(1), :b(2); my %b = :a(1); say %( |%a, |%b, |(%a <<+>> %b) ) 12:54
camelia {a => 2, b => 2}
HoboWithAShotgun too ugly
timotimo what are you trying to do?
add the values together?
HoboWithAShotgun that. summing two hashes, result must have all keys 12:55
timotimo well, with >>+>> it works for that example at least 12:56
>>+<< gives you the union of keys
HoboWithAShotgun mmh. actually i am trying to do that with a hash of int. 13:07
m: my $a = (my Int % = :A(-2), :g(1), :m(2), :s(-3)); my $b = (my Int % = :A(1)); say $a >>+<< $b;
camelia 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:10 wamba left 13:14 mr-foobar left 13:15 llfourn left 13:16 ryn1x joined 13:17 mr-foobar joined
timotimo oh? it's perhaps misunderstanding the default return value of an Int hash? 13:18
13:21 ryn1x left 13:22 itaipu joined 13:23 ryn1x joined, iviv left, kipd joined, clkao joined, scott joined
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 {A => -1, g => 1, m => 2, s => -3}
13:24 iviv joined, ccakes joined, SmokeMachine joined, pnu__ left 13:27 statisfiable6 left, benchable6 left, evalable6 left, evalable6 joined, benchable6 joined, statisfiable6 joined 13:28 ryn1x left
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
but this "undefined turns to 0" is a feature of Any, not of Int
m: say Int + 5 13:30
camelia 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
timotimo i feel like the + operator (and likely many others) should also support one or both sides being undefined
lizmat m: say 1 + Any # it does ? 13:35
camelia Use of uninitialized value of type Any in numeric context
in block <unit> at <tmp> line 1
lizmat m: quietly say 1 + Any # it does ? 13:36
camelia 1
13:36 Cabanossi left
ZzZombo <ZzZombo> Hey, if I `make` a value, calling `<match object>.made` is supposed to give that value back, isn't it? 13:36
13:39 Cabanossi joined
timotimo sorry 13:44
i mean one of the side being undefined Int
m: say Int + 1 13:45
camelia 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
timotimo that's what breaks >>+<< with Int-declared hashes
(unless you have a default)
13:52 ryn1x joined 13:54 mcmillhj joined
timotimo ZzZombo: yes, it's supposed to. what are you seeing? 13:55
13:55 aborazmeh left
tyil !p6 my $i = 0; $i += 5; say $i; 13:56
m: my $i = 0; $i += 5; say $i; 13:57
camelia 5
tyil !p6 my $i = 0; $i ⁺= 5; say $i;
m: my $i = 0; $i ⁺= 5; say $i;
camelia 5===SORRY!5=== Error while compiling <tmp>
at <tmp>:1
------> 3my $i = 0; $i7⏏5 ⁺= 5; say $i;
expecting any of:
infix stopper
statement end
statement modifier
AlexDaniel p6: my $i = 0; $i ⁺= 5; say $i;
camelia 5===SORRY!5=== Error while compiling <tmp>
at <tmp>:1
------> 3my $i = 0; $i7⏏5 ⁺= 5; say $i;
expecting any of:
infix stopper
statement end
statement modifier
tyil anyway, that
AlexDaniel u: ⁺
unicodable6 AlexDaniel, U+207A SUPERSCRIPT PLUS SIGN [Sm] (⁺)
tyil it doesnt like it when using the unicode +
AlexDaniel there's no unicode + that I know of 13:58
that's superscript +
there is unicode minus tho
unicodable6 AlexDaniel, U+00B1 PLUS-MINUS SIGN [Sm] (±)
AlexDaniel, 13 characters in total: gist.github.com/de6599a35d4de60f97...298007def7
AlexDaniel m: my $x = 5; $x −= 2; say $x
camelia 3
tyil its the small + as seen on docs.perl6.org/language/unicode_ascii
13:59 sproctor left
AlexDaniel but that's so that you can do this: 13:59
m: say 2⁺³²
camelia 4294967296
AlexDaniel m: say 2⁻³²
camelia 0.00000000023
tyil ah
my bad then
sorry 14:00
14:00 zakharyas joined
AlexDaniel note that it doesn't do math, so you can't do ³⁺² 14:00
14:00 sproctor joined
AlexDaniel docs also say “as part of exponentiation” :) 14:00
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
tyil sproctor: currently none afaik
I've tried using the method expained in the design docs, but I was told those were wrong 14:02
14:04 wander joined
Geth Pod-To-HTML: 6eaff49839 | (Alex Chen)++ (committed using GitHub Web editor) | META6.json
Bump version
14:07 cdg joined
wander several hours ago I saw this page 14:08
so hyper is an interesting while confusing part of Perl 6 14:09
timotimo last update was on 10 dec 2015?
wander especially whitespace matters
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
`has just`? when
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
14:11 aborazmeh joined, aborazmeh left, aborazmeh joined
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
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
14:15 holyghost2 joined
timotimo m: "a" ~~ /./; make Nil; say $/.made 14:15
camelia Nil
timotimo c: 2017.01 "a" ~~ /./; make Nil; say $/.made
committable6_ timotimo, ¦2017.01: «Nil»
timotimo oh, that wasn't the bug, then?
14:23 Cabanossi left 14:24 Cabanossi joined
comborico1611 Why does a hash print out with => instead of -> ? 14:25
timotimo because the => operator is how you create pairs
wander m: :b(3).perl
camelia ( no output )
wander m: :b(3).perl.say
camelia :b(3)
timotimo there's different ways to print out a hash, though
wander: that's just the pair, though
wander m: { :b(3), c(4)}.perl.say 14:26
camelia 5===SORRY!5=== Error while compiling <tmp>
Undeclared routine:
c used at line 1
wander m: { :b(3), :c(4)}.perl.say
camelia {:b(3), :c(4)}
comborico1611 But printing-out a value is not involved with creating pairs.
14:26 ryn1x left
wander m: { :b(3), :c(4)}.^name.say 14:26
camelia Hash
wander comborico1611: for what reason you think it should print out with -> ? 14:27
comborico1611 The book reads printouts with ->
wander Think Perl 6? which page?
14:27 philomath joined
timotimo m: say { hello => "world", seeya => "goodbye" } 14:28
camelia {hello => world, seeya => goodbye}
comborico1611 Technically as comments. # -> value
timotimo that's not about hashes
that just means "here's what that evaluates to"
wander agree
comborico1611 All the pages. 167 for instance.
timotimo (either "what it evaluates to" or "what it prints out", depending on what the author likes more) 14:29
comborico1611 Oh, i see.
wander in the very page, I've only found "# -> Found it!"
comborico1611 That's the print out. 14:30
I thought prompt returned -> value
wander I think it means "# OUTPUT: «Found it␤»"
14:30 pmurias joined
comborico1611 I see. 14:30
timotimo there ought to be a section near the front of the book that explains things like that
wander so it has nothing to do with hash 14:31
comborico1611 P.184 top is where my question was.
14:31 eliasr joined
comborico1611 He should have wrote on page 184 this: -> one => uno 14:31
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));`
later I assign that in another action method (by calling `$<section>.made`) and I get the type object instead.
14:33 salva joined
comborico1611 Question answered thanks guys 14:33
timotimo dumb question, but the value in $section is correct afterwards?
wander code snip? 14:34
m: "a" ~~ /./; make my $x = 42; $/.made.say
camelia 42
wander m: class A { has $.x }; "a" ~~ /./; make my A $x = A.new(:x(4096)); $/.made.say 14:35
camelia A.new(x => 4096)
comborico1611 Perl6 alias Rekudo! 14:36
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, ChanServ sets mode: +v huggable
comborico1611 Or Racoondo! 14:38
wander maybe you call `$<section>.made`, but `$<section>` is this time an Array
comborico1611 Rakundo!
wander well in this case it cause compile error, but FWIW, grammar is something new 14:39
comborico1611 RakUNDO, get it?
timotimo m: say [1, 2, 3].made 14:40
camelia No such method 'made' for invocant of type 'Array'. Did you mean any of these?

in block <unit> at <tmp> line 1
timotimo wander: if you accidnetally call .made on an array it explodes like that
wander "[22:39] <wander> well in this case it cause compile error,"
14:40 Actualeyes joined
wander I see XD 14:40
timotimo oh 14:41
Geth mu: aaa173d49c | (Zoffix Znet)++ (committed using GitHub Web editor) | misc/perl6advent-2017/schedule
dibsify Dec 12: "Concise Perl 6 IO"
14:44 aindilis left, Piotr_ left 14:45 mr-foobar left
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 Array
wander m: grammar { token TOP { | 'if ' <mywords> | 'else ' <mywords> }; token mywords { \w } }.parse("else w", actions => class { method TOP($/) { say $/<mywords>.^name }})
camelia <anon|79556384>
14:46 mr-foobar joined
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
holyghost2 It's at holyghost.yellowcouch.org/perl5/src
timotimo holyghost2: i was quite confused by the email you sent :)
comborico1611 Is Binding the same as Aliasing?
holyghost2 you were ?
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
It's still an issue
timotimo the url you just posted is also 404 :(
holyghost2 aaaaaagh!
I do not remember the /ctcp send 14:49
census i'm unable to run this code on my computer pastebin.com/qnYAZJ7v but it should work. it works on other perl6 computers
holyghost2 timotimo : I will first try to make it perl6 from perl5
I need a little time for that as I forgot my perl6 skills 14:50
wander census: error msg?
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 kerframil left
census wander actually it just worked 14:51
for weeks it wasn't working
wander sounds fine :) 14:53
14:53 philomath_ joined
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?
holyghost2 I still need to port it to SDL 2 :: Raw or something
14:54 kerframil joined
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.
census wander an expert on what?
wander WWW or net
census what am i doing wrong that the code outputs '3' every time? pastebin.com/FAicYnH3 14:55
14:55 philomath left
holyghost2 timotimo : should I port to SDL 2 ? 14:56
timotimo i haven't seen your game kit yet, so i have no idea
holyghost2 WAM 14:57
It's in the ftp incoming of pause
perlpilot holyghost2: I haven't seen your stuff either, but I think you should port it to SDL2 ;->
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?
yoleaux wander: I'll pass your message to zoffix.
holyghost2 It's a stupid class overriding system of a 2D collision system and some lists for NPCs 14:59
It's ok but basic
You can override with SDL images and so on 15:00
15:00 ryn1x joined 15:01 mcmillhj left
comborico1611 Ryn, where you from? 15:01
holyghost2 timotimo : does holyghost.yellowcouch.org resolve ? 15:02
comborico1611 I think might know you.
15:03 mcmillhj joined
census is someone good with WWW ? 15:03
timotimo yes, but it just gives me the yellowcouch.org website
census for any input, i always get 3 as the output pastebin.com/FAicYnH3 15:04
ZzZombo <timotimo> dumb question, but the value in $section is correct afterwards?
Well, almost... it itself lacks another object field that is set later in the `section` method... I wonder if it's the same thing.
holyghost2 ok 15:05
15:05 ryn1x left
ZzZombo I mean, the the name and value attributes of sections are ok, but not parent. 15:05
parent is another section, and it's also undefined, even tho I do set it. 15:06
Example: `Grammar::VDF::Section.new(condition => Grammar::VDF::Condition, name => "04", parent => Grammar::VDF::Node)`
(condition is supposed to be undef right now, but maybe it's bugged as well). 15:07
15:07 llfourn joined 15:08 mcmillhj left 15:09 mcmillhj joined 15:14 mr-foobar left 15:15 araujo joined, araujo left, araujo joined
holyghost2 timotimo : gomez.yellowcouch.org/hollysrc-1.24.tar.gz 15:15
timotimo : the HollyGame module
15:16 mr-foobar joined
comborico1611 m: my %test = <a 1 b 2 c 3>; say %test.kv ; 15:17
camelia (a 1 c 3 b 2)
comborico1611 m: my %test = <a 1 b 2 c 3>; say pairs %test;
camelia (a => 1 c => 3 b => 2)
15:19 khw joined 15:20 holyghost left, pnu__ joined 15:22 Zoffix joined
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:23
3.9 installed, so no 15:25
Zoffix upgrades
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 github.com/perl6/Pod-To-HTML.git 15:26
15:26 mcmillhj left
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:29
You'll find it's not CSV at all, but just an HTML document, so your URL is wrong 15:30
15:30 Piotr_ joined, census2 joined
census2 Zoffix thanks. I've made some progress. 15:31
census pastebin.com/6t6x05sj
census2 It should say 755, but it says 978
15:32 mcmillhj joined
wander yes, i miss `update` 15:33
Zoffix census2: why do you think it shouls say 755? 15:34
15:34 ryn1x joined
census2 Zoffix because when i downloaded the .csv manually there are 757 rows but the first 2 are meaningless so 755 15:34
Zoffix census2: I get 993 rows total when I open that CSV in Excel. With first 2 meaningless. 15:35
"that CSV" => the file downloaded by the program 15:36
census2 Zoffix i'm a little confused even why 993 if the code i'm running says 978 15:37
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
wander Zoffix: what is "upgrade the module on the build box" means?
15:37 Phi_mb joined
wander bad syntax :( 15:37
Zoffix census2: if I go to patents.google.com/?q=Cancer&c...g:20010101 and click "Download CSV" I get 793 rows. But if I use the link the program uses ( patents.google.com/xhr/query?url=q...nload=true ) I get 993 rows. So sounds like you got your CSV URL in the program wrong. 15:39
census2: the program says there's 991 rows, not 978 to me
15:39 ChoHag_ joined
wander what "upgrade the module on the build box" means? 15:39
15:40 troys joined, philomath_ left
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:40
15:40 cdg left 15:41 cdg joined
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 mcmillhj left
Zoffix OK 15:41
15:41 holyghost2 left
wander thanks 15:41
15:42 ChoHag left
census2 Zoffix okay I got the 993 you got now too when I did it manually with the internet 15:43
okay it worked just now ! :) 15:44
15:44 callyalater joined
Zoffix Sweet \o/ 15:44
15:45 cdg left
census2 Zoffix i feel it's like a random number generator though. it's so bizarre 15:46
i ran the code 3 times. i got 991, 981, and 988. only 991 is correct though
15:49 ChoHag_ left
comborico1611 What is the \t here: $key\t%histogram{ } 15:49
Zoffix comborico1611: tab character 15:50
m: :42foo.gist.perl.say
camelia "foo => 42"
Zoffix m: :42foo.Str.perl.say
camelia "foo\t42"
comborico1611 Thank you. What is /t ?
Zoffix /t?
comborico1611 Nothing?
Zoffix Which /t?
comborico1611 I thought newline was /n. 15:51