»ö« 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 thundergnat: ping me once there's a ticket, I'll even slap a ⚠ blocker label on it 00:01
00:07 shinobi-cl joined 00:10 Herby_ joined
Herby_ o/ 00:10
00:14 committable6 left, committable6 joined 00:31 martinp2 joined, Herby_ left
thundergnat .tell AlexDaniel Issue submitted github.com/rakudo/rakudo/issues/1573 A little verbose but I figured too much was better than not enough. Thanks for your help! 00:34
yoleaux thundergnat: I'll pass your message to AlexDaniel.
00:34 pierre_ joined 00:35 thowe joined
thowe So, what's the general consensus on the "Think Perl 6" book? 00:37
00:37 AlexDaniel left 00:38 skids joined 00:45 Kaiepi left, martinp2 left 00:46 Kaiepi joined 00:48 Kaiepi left 00:49 Zoffix joined 00:50 Kaiepi joined
Zoffix thowe: the feedback I seen is: it's a very well-written book, but experienced programmers would find it boring, as it's aimed at programming beginners 00:50
thowe Interesting. Thank you. 01:00
01:01 Rawriful left, Zoffix left 01:03 martinp2 joined 01:04 Cabanossi left 01:05 g- joined, Cabanossi joined, g- left, g- joined 01:16 thowe left 01:22 martinp2 left 01:25 jeromelanteri joined 01:31 llfourn left 01:34 llfourn joined 01:37 KDr2 left 01:47 pierre_ left 01:49 martinp2 joined 01:52 pierre_ joined 01:57 thundergnat left
shinobi-cl hi all... 02:06
is PAUSE the only way to upload a perl6 module to modules.perl6.org?
02:20 Kaiepi left, Kaiepi joined 02:31 pierre_ left 02:34 char_var[buffer] left 02:35 rindolf joined 02:45 ilbot3 left 02:47 damnlie left 02:48 damnlie joined 02:49 martinp2 left 02:52 vike left 02:55 vike joined 02:57 ilbot3 joined, ChanServ sets mode: +v ilbot3 03:00 xenotrope left 03:02 xenotrope joined 03:08 |oLa| joined 03:13 epony left 03:15 ufobat_ joined 03:16 shinobi-cl left 03:18 ufobat left 03:26 cdg joined 03:31 cdg left 03:34 shinobi-cl joined, shinobi-cl left 03:36 pierre_ joined 03:40 cdg joined 03:53 pierre_ left 04:01 pierre_ joined 04:05 pierre_ left 04:06 syntaxman joined 04:11 pierre_ joined 04:16 pierre_ left 04:18 espadrine left 04:19 pierre_ joined 04:23 pierre_ left 04:28 konsolebox left 04:29 pierre_ joined 04:31 pierre_ left, pierre_ joined 04:42 cdg left 04:52 Cabanossi left, khw left 04:53 Cabanossi joined 04:55 pierre_ left 04:57 Geth left, Geth joined, ChanServ sets mode: +v Geth 05:15 xtreak joined, xtreak left, xtreak joined 05:18 wamba joined 05:20 xtreak left 05:27 vike left 05:31 vike joined 05:33 skids left 05:42 xtreak joined 05:54 curan joined 06:04 troys left 06:13 eliasr left 06:17 pierre_ joined 06:27 xtreak left, xtreak joined 06:30 xtreak_ joined 06:31 xtreak left 06:32 darutoko joined 06:38 ChezHey joined
ChezHey Looking at perl6 any suggestions for on installing on MacBookPro? 06:40
06:43 ChezHey left 06:48 domidumont joined 06:50 domidumont left 06:59 xtreak_ left, xtreak joined 07:04 xtreak left, xtreak_ joined 07:11 ufobat_ is now known as ufobat 07:14 domidumont joined 07:29 lowbro joined, lowbro left, lowbro joined 07:35 xtreak_ left 07:37 xtreak joined 07:43 robertle joined 07:44 domidumont left 07:45 domidumont joined 07:53 noganex joined 07:55 pierre_ left 08:01 pierre_ joined 08:02 zakharyas joined 08:03 konsolebox joined 08:23 pierre_ left 08:24 isBEKaml joined 08:26 pierre_ joined 08:31 zakharyas left, zakharyas joined 08:32 dakkar joined 08:36 xtreak left, xtreak joined 08:39 |oLa| left 08:40 AlexDaniel joined 08:43 darutoko left 08:44 kaare_ left 08:46 kaare_ joined
lizmat clickbaits p6weekly.wordpress.com/2018/02/26/...-cheese-d/ 08:50
08:51 xtreak left, xtreak joined 08:54 wamba left 08:55 xtreak left 08:57 mspo left
moritz lizmat++ 08:59
09:00 wamba joined 09:02 zakharyas left 09:03 zakharyas joined
Geth doc: a08d92b076 | (Elizabeth Mattijsen)++ | doc/Language/faq.pod6
Update "How and why do C<say>, C<put> and C<print> differ?"

  - the text predated the invention of "dd", add that to the mix
  - "dd" is intended for debugging, "say" is intended for human interpretation
  - the wording on how a type object is gisted, was wrong (the example was correct)
  - less emphasis on intended use, more on what it actually produces
09:08
synopsebot Link: doc.perl6.org/language/faq
doc: 85cf0d33f7 | (Elizabeth Mattijsen)++ | doc/Language/faq.pod6
Fix typo
09:09
lizmat
.oO( puny humen )
09:10 cdg joined 09:11 cdg_ joined 09:14 dogbert17 left, cdg left 09:16 cdg_ left
Geth doc: f53d698300 | (Elizabeth Mattijsen)++ | doc/Language/faq.pod6
Add rakudo-specificness of "dd", AlexDaniel++
09:20
synopsebot Link: doc.perl6.org/language/faq
09:20 SyrupThinker joined, xtreak joined
lizmat m: say gethostname 09:27
camelia camelia
lizmat interesting
09:32 dogbert2 left
buggable New CPAN upload: Sys-Hostname-0.0.3.tar.gz by ELIZABETH cpan.metacpan.org/authors/id/E/EL/...0.3.tar.gz 09:44
09:47 pierre_ left, pierre_ joined 10:05 dogbert2 joined 10:28 zakharyas left 10:29 zakharyas joined 10:44 epony joined
timotimo .tell shinobi-cl pause is the favoured way to get them up on modules.perl6.org, but the old way remains: to put an URL that points to your META6.json into the META.list on github.com/perl6/ecosystem - that will mean installing your module will pull whatever commit is current on the master branch, though. cpan lets you have proper versions instead 10:59
yoleaux timotimo: I'll pass your message to shinobi-cl.
11:04 epony left 11:10 epony joined 11:15 xtreak left 11:16 pierre_ left, pierre_ joined 11:17 kurahaupo left, kurahaupo joined, xtreak joined 11:21 pierre_ left 11:22 syrup joined 11:23 SyrupThinker left 11:26 esh left 11:27 cdg joined 11:32 cdg left 11:35 natrys joined 11:50 esh joined 11:54 raschipi joined 12:01 syrup left, syrup joined 12:27 buggable left 12:28 zakharyas left 12:32 freeberz_ joined 12:41 athenot joined 12:42 dogbert2_ joined, committable6 left, committable6 joined, ChanServ sets mode: +v committable6 12:45 dogbert2 left 12:54 xtreak left 13:16 athenot_ joined, athenot left 13:22 quotable6 left, quotable6 joined 13:27 AlexDaniel left
Geth doc: 35f0784352 | (Will "Coke" Coleda)++ | doc/Language/faq.pod6
more fine-grained test skip, add reason
13:28
doc: b2578e14c8 | (Will "Coke" Coleda)++ | doc/Language/typesystem.pod6
Define minimal preamble instead of skipping compilation test
synopsebot Link: doc.perl6.org/language/faq
Link: doc.perl6.org/language/typesystem
13:33 Geth left 13:34 Geth joined, ChanServ sets mode: +v Geth 13:35 freeberz_ left 13:36 freeberz joined
freeberz lastlog -topics 13:40
13:40 freeberz left 13:44 stmuk_ joined 13:46 stmuk left 13:49 Kaiepi left 13:50 Kaiepi joined 13:52 Kaiepi left, Kaiepi joined 13:55 mcmillhj joined, cdg joined 13:57 zakharyas joined 13:59 cdg left 14:01 pierre_ joined, eliasr joined 14:05 grondilu joined 14:07 vcv joined
grondilu failed to install rakudo on Windows Subsystem for Linux 14:10
14:10 jeromelanteri left
grondilu "libmoar.so: cannot enable executable stack as shared object" 14:11
14:12 Zoffix joined
Zoffix grondilu: you need to patch moar. I think README has instructions. 14:12
grondilu: what are you installing exactly? (Star/Rakudo HEAD or release?) 14:14
grondilu: you can install the Ubuntu deb: github.com/nxadm/rakudo-pkg/#about...-downloads 14:15
grondilu: and after installation run /opt/rakudo-pkg/bin/fix_windows10
14:15 AlexDaniel joined
grondilu Zoffix: latest, not sure what name (HEAD maybe?) 14:16
Zoffix (part of instructions on that page)
grondilu ok, I'll try that
14:17 khw joined
Zoffix Ah, this is where I saw it: perl6.org/downloads/ (second from the bottom line in "Errata" section links to the fix) 14:18
grondilu installs execstack 14:21
grondilu has two instances of libmoar.so, one in nqp/MoarVM/ and one in install/lib/ 14:24
Zoffix m: say Date.new("2018-04-04") - Date.today
camelia 36
grondilu is not sure which to apply execstack to
Zoffix libmoar.so 14:25
leaving for 36 days to de-burn-out
14:25 Zoffix left, cdg joined
moritz grondilu: it's built in nqp/MoarVM/, and copied to install/lib during the installation 14:25
so in case of doubt, you need both
grondilu ok
grondilu tries compilation 14:26
lizmat wishes Zoffix a troublefree de-burn-out period
14:27 vcv left 14:29 vcv joined 14:33 AlexDaniel left 14:36 natrys left
grondilu confirms successful install on WSL 14:37
14:44 pierre_ left, pierre_ joined 14:48 pierre_ left 14:50 zakharyas left 14:51 zakharyas joined 14:54 freeberz joined 14:55 athenot joined 14:56 athenot_ left 14:57 curan left 15:06 greppable6 left, greppable6 joined 15:10 skids joined 15:13 grondilu left 15:27 bwisti joined 15:29 vcv left 15:30 vcv joined 15:33 ufobat left 15:34 xinming left 15:35 xinming joined 15:42 xinming left 15:43 xinming joined 15:44 Sgeo_ joined 15:46 Sgeo left 15:54 zakharyas left 15:55 zakharyas joined 16:21 mcmillhj left 16:23 robertle left 16:30 mcmillhj joined 16:34 troys joined, mcmillhj left 16:42 domidumont left 16:44 mcmillhj joined
jkramer Is anyone successfully using Template::Mojo? I don't get it and the docs are not helping. 16:47
16:49 Noobie_ joined, mcmillhj left
tadzik can I help you somehow? :) 16:50
jkramer gist.github.com/6d333b84c3a6e7264e...ac6f6a69fa
This just gives me "Variable '$n' is not declared" 16:51
I don't know where else to declare $n. Do I need to declare it inside the template? 16:52
tadzik yep, unfortunately 16:54
Just like the examples show :) 16:55
github.com/tadzik/Template-Mojo/bl...jo.pm#L169
jkramer I also tried it like this from the examples: gist.github.com/d4d5daf7167627d0e3...475ded02cc
That gives me: Cannot use placeholder parameter @_ outside of a sub or block 16:56
tadzik curious 16:57
let me play around a bit
jkramer Oh wait it just compiled. I had t escape \@_
16:59 Noobie_ left
jkramer Which is weird because I thought @-arrays in strings weren't interpolated 17:00
17:00 MilkmanDan left
jkramer m: my @x = <foo bar baz>; print "lol @x 123\n" 17:00
camelia lol @x 123
tadzik oh, of course
17:01 MilkmanDan joined
tadzik hrm 17:01
m: print "lol @_ 123\n" 17:02
camelia 5===SORRY!5=== Error while compiling <tmp>
Cannot use placeholder parameter @_ outside of a sub or block
at <tmp>:1
------> 3print "lol @_7⏏5 123\n"
tadzik I guess it is interpreted though :)
raschipi my @x = <foo bar baz>; print "lol @x[*] 123\n" 17:03
jkramer Hmm
evalable6 lol foo bar baz 123
jkramer m: sub asd { print "lol @_ 123\n" } ; asd()
camelia lol @_ 123
tadzik you may also like named params, those don't have to be declared in the template
raschipi my @x = <foo bar baz>; print "lol @x.join() 123\n" 17:04
evalable6 lol foobarbaz 123
tadzik gist.github.com/tadzik/dd69dabaf78...eac78888aa
17:04 mcmillhj joined
jkramer Ah that's much better :) 17:05
Thanks!
raschipi my @x = <foo bar baz>; print [email@hidden.address]
evalable6 lolfoobarbaz123
17:08 mcmillhj left 17:10 dogbert17 joined
jkramer m: my $n = 12345; $n.=comb.sum while $n.chars > 1; say $n 17:18
camelia The iterator of this Seq is already in use/consumed by another Seq
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in block <unit> at <tmp> line 1
jkramer Why is it a Seq suddenly?
raschipi .comb returns a Seq 17:20
jkramer But .sum returns an Int :)
Or is .sum not part of the assignment? o_O 17:21
raschipi ().comb.^name
jkramer m: my $n = 12345; $n.=&{comb.sum} while $n.chars > 1; say $n
camelia 5===SORRY!5=== Error while compiling <tmp>
Calling comb() will never work with proto signature ($, $, $?)
at <tmp>:1
------> 3my $n = 12345; $n.=&{7⏏5comb.sum} while $n.chars > 1; say $n
raschipi m: my $n = 12345; $n.=comb.sum; $n.^name.say 17:22
camelia Seq
jkramer m: my $n = 12345; $n.=&{.comb.sum} while $n.chars > 1; say $n
camelia 6
17:22 zakharyas left
jkramer Huh, I always thought everthing after the .= is executed and the result assigned to the LHV 17:22
raschipi You attribute the comb to $, call .sum on it and the throw the result away. 17:23
jkramer But looks like it's ($n.=comb).sum
17:23 mcmillhj joined
TimToady m: my $n = 12345; $n .= comb .= sum while $n.chars > 1; say $n 17:24
camelia 6
jkramer Oh, ok
TimToady m: my $n = 12345; $n.=comb.=sum while $n.chars > 1; say $n 17:25
camelia 6
TimToady doesn't need the spaces really...
17:27 captain-adequate joined
TimToady m: my $n = 12345; $n.=comb.=sum while $n > 9; say $n 17:27
camelia 6
TimToady that avoid converting to string twice
17:28 mcmillhj left 17:34 mcmillhj joined 17:38 zakharyas joined 17:40 AlexDaniel joined 17:46 dakkar left 17:49 AlexDaniel left 17:50 AlexDaniel joined, robertle joined 17:54 mcmillhj left 17:56 vcv left 17:58 |oLa| joined 18:03 vcv joined 18:06 zakharyas left 18:26 mcmillhj joined 18:31 isBEKaml left 18:42 Kaiepi left, Kaiepi joined 18:43 espadrine joined
[Coke] stares at that line. 18:54
18:56 mcmillhj left 18:57 xenotrope left 19:00 vcv left 19:01 vcv joined 19:05 mcmillhj joined, cdg left 19:06 cdg joined 19:07 Kaiepi left 19:08 Kaiepi joined 19:10 cdg left 19:20 wamba left 19:22 b2gills left 19:23 b2gills joined 19:26 mcmillhj left 19:30 zakharyas joined
TimToady is not actually recommending that style 19:33
mutators are kinda anti-FP in spirit 19:34
19:34 mcmillhj joined 19:38 comborico1611 joined
moritz m: say (12345, *.comb.sub ... *<5)[*-1] 19:43
camelia 5===SORRY!5=== Error while compiling <tmp>
Whitespace required before < operator
at <tmp>:1
------> 3say (12345, *.comb.sub ... *<5)[*-1]7⏏5<EOL>
expecting any of:
postfix
moritz m: say (12345, *.comb.sum ... *<9)[*-1]
camelia 5===SORRY!5=== Error while compiling <tmp>
Whitespace required before < operator
at <tmp>:1
------> 3say (12345, *.comb.sum ... *<9)[*-1]7⏏5<EOL>
expecting any of:
postfix
moritz m: say (12345, *.comb.sum ... * < 9)[*-1]
camelia 6
moritz it helps to actually *read* the error message :-)
and should be <= 9, actually 19:44
19:45 zakharyas left, wamba joined 19:47 natrys joined, zakharyas joined
TimToady hmm 19:56
m: say 1 <= 3
camelia True
TimToady m: say 1<=3
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse quote-words subscript; couldn't find '>' (corresponding '<' was at line 1)
at <tmp>:1
------> 3say 1<=37⏏5<EOL>
expecting any of:
postfix
TimToady say wot?
m: say 1<3 19:57
camelia 5===SORRY!5=== Error while compiling <tmp>
Whitespace required before < operator
at <tmp>:1
------> 3say 1<37⏏5<EOL>
expecting any of:
postfix
TimToady huh, I think our dwimmery is just a bit off there 19:58
timotimo can we do this right without resorting to backtracking? 19:59
moritz no 20:01
well, maybe with copious amounts of look-aheads
TimToady it's already failing when it can't find the '>' 20:02
timotimo no need to two-pass parse if you're parsing two alternatives at the same time ...
TimToady we just need to throw a '='? in there and include it in the message, or so
timotimo oh, *that* is what you're refering to
TimToady yes, it currently checks what follows the < to see if it looks like a likely comparison term 20:03
<?before \h* [ \d | <.sigil> | ':' ] >
I mean, we could just add '=' to that list, but then it would misleadingly claim that an intended <= is really a < operator 20:05
timotimo don't forget about <==, too
and also <<==
TimToady well, those are much less likely to have spaces omitted around them, and also much less likely to have a sigil or number after them 20:06
so I doubt the heuristic would be useful in those cases very often 20:07
20:07 Kaiepi left
TimToady and the main problem is people coming from other languages where they're used to getting away with no spaces around < or <= 20:07
20:08 Kaiepi joined 20:14 AlexDaniel left
moritz the main problem is that we overload characters to mean too many different things :-) 20:19
TimToady blames the A of ASCII 20:22
kurahaupo A for Æther, S is for See, C is for Czar, I is for Incorrect, I is for Irk? 20:33
20:58 cdg joined
TimToady just think, if Christopher had been better than Amerigo at self-promotion, it'd be CSCII 21:04
21:08 cdg_ joined 21:11 cdg left
Xliff_ Or if his mistake had stuck.... 21:19
ISCII
21:20 mniip left
Xliff_ Oh. Wait. I'm thiking of that other navigator. 21:20
skids
.oO(Or if Colombia had dominated the hemisphere)
21:21
Xliff_ needs to learn to read better.
raschipi Gran Colombia FTW. 21:22
Wait, that means declaring war against my country.
21:22 syrup left 21:24 mniip joined 21:30 mniip left
TimToady m: say 1<=3 21:31
camelia 5===SORRY!5=== Error while compiling <tmp>
Whitespace required before <= operator
at <tmp>:1
------> 3say 1<=37⏏5<EOL>
expecting any of:
postfix
21:33 zakharyas left, raschipi left 21:37 lichtkind joined, mniip joined, rindolf left 21:43 Kaiepi left, Kaiepi joined 21:44 MilkmanDan left 21:46 MilkmanDan joined 21:57 MilkmanDan left, MilkmanDan joined 22:08 vcv left 22:09 natrys left 22:14 mcmillhj left 22:15 skids left, mcmillhj joined 22:19 mcmillhj left 22:58 |oLa| left 23:04 comborico joined 23:05 lichtkind left 23:07 thowe joined
thowe Hi. I just discovered there is a thing called zef. I tried to install zef using "rakudobre build zef". It failed in testing. Is this a known issue or am I broken all by my lonesome? 23:08
23:08 |oLa| joined
thowe gist.github.com/thowe/4943af219228...78cf0cedcb 23:14
23:16 wamba left, kurahaupo_ joined 23:18 lichtkind joined 23:19 kurahaupo left
timotimo thowe: can you give us your perl6 --version? 23:20
thowe This is Rakudo version 2016.10-21-g697a0ae built on MoarVM version 2016.10-15-g715e39a
implementing Perl 6.c.
hm, I need d don't I? Why doesn't running rakudo build moar do this? 23:21
er rakudobrew build moar
I probably just don't know how to use rakudobrew 23:22
MasterDuke huggable: debs 23:23
huggable MasterDuke, CentOS, Debian, Fedora and Ubuntu Rakudo packages: github.com/nxadm/rakudo-pkg/releases
MasterDuke thowe: ^^^ might be an option for you
thowe I think I just told rakudobrew to use a newer branch maybe...
2018.2.1 or somesuch 23:24
timotimo thowe: that was probably the date when we switched from using "nom" as the default branch to "master" 23:26
hm, no, that was 2017.10? 23:27
thowe This looks like it is building something newer maybe.
23:27 kurahaupo_ left
timotimo that would be useful :) 23:28
23:28 kurahaupo joined 23:29 kurahaupo left, kurahaupo_ joined 23:30 kurahaupo joined 23:31 kurahaupo_ left, kurahaupo left, comborico1611 left 23:32 kurahaupo joined
thowe hm. It says it has built moar-2018.02.1. I switch to moar-2018.02.1 and it says "Switching to moar-2018.02.1" and then I run perl6 --version and it still says that it is implementing 6.c 23:33
do I need to switch to moar-master?
hm, that also says 6.c how do I build/switch 6.d ? 23:34
MasterDuke there is no 6.d yet 23:35
23:35 kurahaupo_ joined
thowe oh. 23:35
MasterDuke but you can 'use v6.d.PREVIEW' in your script
thowe It looks like zef may be progressing now :)
\o/ it installed 23:36
23:37 kurahaupo left 23:38 kurahaupo joined 23:39 kurahaupo_ left 23:50 Xliff__ joined, Xliff_ left 23:52 Xliff__ left