»ö« 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
Herby_ o/ 00:10
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.
thowe So, what's the general consensus on the "Think Perl 6" book? 00:37
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
shinobi-cl hi all... 02:06
is PAUSE the only way to upload a perl6 module to modules.perl6.org?
ChezHey Looking at perl6 any suggestions for on installing on MacBookPro? 06:40
lizmat clickbaits p6weekly.wordpress.com/2018/02/26/...-cheese-d/ 08:50
moritz lizmat++ 08:59
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 )
Geth doc: f53d698300 | (Elizabeth Mattijsen)++ | doc/Language/faq.pod6
Add rakudo-specificness of "dd", AlexDaniel++
09:20
synopsebot Link: doc.perl6.org/language/faq
lizmat m: say gethostname 09:27
camelia camelia
lizmat interesting
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
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.
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
freeberz lastlog -topics 13:40
grondilu failed to install rakudo on Windows Subsystem for Linux 14:10
grondilu "libmoar.so: cannot enable executable stack as shared object" 14:11
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
grondilu Zoffix: latest, not sure what name (HEAD maybe?) 14:16
Zoffix (part of instructions on that page)
grondilu ok, I'll try that
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
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
grondilu confirms successful install on WSL 14:37
jkramer Is anyone successfully using Template::Mojo? I don't get it and the docs are not helping. 16:47
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 \@_
jkramer Which is weird because I thought @-arrays in strings weren't interpolated 17:00
jkramer m: my @x = <foo bar baz>; print "lol @x 123\n" 17:00
camelia lol @x 123
tadzik oh, of course
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
jkramer Ah that's much better :) 17:05
Thanks!
raschipi my @x = <foo bar baz>; print [email@hidden.address]
evalable6 lolfoobarbaz123
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
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
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...
TimToady m: my $n = 12345; $n.=comb.=sum while $n > 9; say $n 17:27
camelia 6
TimToady that avoid converting to string twice
[Coke] stares at that line. 18:54
TimToady is not actually recommending that style 19:33
mutators are kinda anti-FP in spirit 19:34
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
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
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
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
TimToady just think, if Christopher had been better than Amerigo at self-promotion, it'd be CSCII 21:04
Xliff_ Or if his mistake had stuck.... 21:19
ISCII
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.
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
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
thowe gist.github.com/thowe/4943af219228...78cf0cedcb 23:14
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.
timotimo that would be useful :) 23:28
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
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