»ö« 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.
Geth ecosystem: e465360b53 | (David Warring)++ | META.list
add Base64-Native

  github.com/p6-pdf/Base64-Native-p6
00:15
00:27 BenGoldberg joined 00:35 lookatme joined
lookatme morning .o/ 00:35
00:45 rmallah joined 00:46 rmallah left 00:58 mcmillhj joined, mcmillhj_ joined 01:13 rmallah joined 01:14 rmallah left 01:15 BenGoldberg left 01:16 astj joined 01:17 mcmillhj_ left, mcmillhj left, aborazmeh joined, aborazmeh left, aborazmeh joined 01:25 movl left 01:26 movl joined 01:32 BenGoldberg joined 01:36 holyghost joined, sammers left 01:41 holyghost left 01:44 mcmillhj joined, mcmillhj_ joined 01:45 ilbot3 left 01:48 mcmillhj_ left, mcmillhj left 01:54 ilbot3 joined, ChanServ sets mode: +v ilbot3 02:00 mcmillhj joined 02:04 mcmillhj left, noganex joined 02:07 noganex_ left 02:15 mcmillhj joined 02:16 Coleoid left 02:19 mcmillhj left 02:22 movl left, movl joined 02:32 mephinet left 02:34 pilne left 02:50 raiph joined, Dee22 left, BenGoldberg left 02:51 zapwai left 02:54 Cabanossi left
samcv u: { my $a = .uniprop("Indic_Syllabic_Category"); my $b = .uniprop("Indic_Syllabic_Category"); any($a, $b) eq "Virama" } 02:54
unicodable6 samcv, «timed out after 30 seconds» «exit signal = SIGHUP (1)» 02:55
02:56 Cabanossi joined
raiph stackoverflow.com/questions/4410141...0#44102980 02:57
^^^ Confirming, correcting, or commenting of my answer would be awesome as would suggestions re updates to p6doc 02:58
03:01 rmallah joined 03:03 rmallah left 03:04 mephinet joined 03:23 Cabanossi left 03:25 Cabanossi joined
samcv oh my heh 03:37
i have been bitten by this raiph :P 03:38
03:54 aborazmeh left
raiph samcv: I've just saved edits to improve my answer 04:03
samcv also id just recommend using %( ) instead
and you will never have problems
m: my $v = %('this', 'that'); say %v; say %v.WHAT 04:04
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '%v' is not declared. Did you mean '$v'?
at <tmp>:1
------> 3my $v = %('this', 'that'); say 7⏏5%v; say %v.WHAT
samcv m: my $v = %('this', 'that'); say $v; say $v.WHAT
camelia {this => that}
(Hash)
samcv that is the preferred way to do it. hmm do i even have a stack overflow
i'll make one 04:06
04:07 khw left, Cabanossi left 04:10 Cabanossi joined
samcv ok i posted an answer 04:11
raiph samcv: cool. :) (I'm pretty sure the poster will complain that that's a workaround but you've got an upvote from me :) 04:17
samcv well it's not a workaround. it's. the official way heh
so you don't have to try and remember how it's going to parse 04:18
which is really just a way to be more compatible with perl 5 in the syntax
though your info about how it does decide was very interesting 04:20
when you overload things like brackets it's natural you'll have times where it does not make a hash. and that's happened a few times to me 04:23
also I think the brackets look a bit ugly as well :-)
raiph, reading the docs page i would disagree here: docs.perl6.org/type/Hash with '3) simply avoid the issue altogether by explicitly providing a name for the topic variable:' since i think the issue is not using %() and making the compiler have to guess 04:27
04:28 dominix joined
samcv but i always use %( ) personally when it's anything other than => like if i include variables or other such things 04:28
dominix camelia: help 04:30
camelia dominix: Usage: <(nqp-jvm|debug-cat|rakudo-moar|nqp-moarvm|p5-to-p6|prof-m|star-m|rakudo-jvm|nqp-js|nqp-mvm|rakudo|r-j|rm|nqp-m|star|j|r-m|p6|sm|rj|m|p56|nom|r-jvm|nqp-q|nqp|perl6|r)(?^::\s(?!OUTPUT)) $perl6_program>
04:32 shadowpaste left
ugexe gist.github.com/ugexe/4e4fa970df08...1164609633 # cpan enabled by default now in zef 04:35
04:37 AndyDee joined, shadowpaste joined
ugexe you can also upload your perl6 distributions to cpan through pause, and the source-url will be automatically set/changed. You can just download a tagged github release .tar.gz and use that (although you probably want to rename the file) 04:38
also App::Mi6 can upload your dist to cpan through pause
raiph samcv: thx :) 04:39
samcv nice ugexe
04:42 skids left 04:43 rmallah joined 04:50 skids joined 04:53 Cabanossi left 04:54 curan joined, rmallah left, rmallah joined, Cabanossi joined 04:56 rmallah left 05:00 nadim joined 05:02 AlexDaniel left, wamba joined 05:15 Actualeyes left 05:17 TEttinger left 05:27 TEttinger joined 05:32 dominix left 05:35 lowbro joined, lowbro left, lowbro joined 05:37 Actualeyes joined 05:39 domidumont joined 05:40 pecastro left 05:44 domidumont left 05:45 domidumont joined, espadrine joined 05:53 Cabanossi left
skaji ugexe: cool! So do you recommend uploading perl6 modules to CPAN? or is it still an experiment feature? 05:53
05:54 Cabanossi joined 05:56 pecastro joined 05:58 mr-foobar joined
raiph goodnight #perl6 (another SO... stackoverflow.com/questions/4410379...n-another) 05:59
06:01 skids left
wamba m: say <1/2O>.^name; say <1/20>.^name; 06:02
camelia Str
Rat
06:03 CIAvash joined
lookatme m: say <<1>>.WHAT 06:06
camelia (IntStr)
lookatme m: say <1>.WHAT
camelia (IntStr)
lookatme m: my $n = 1; say <<$n>>.WHAT; say <$n>.WHAT; 06:07
camelia (Slip)
(Str)
lookatme m: my $m = Map.new: '1' => :1st, '2' => :2nd; say $m.<1>.WHAT; say $m.<<1>>.WHAT; my $n = 1; say $m.<$n>.WHAT; say $m.<<$n>>.WHAT; 06:09
camelia (Pair)
(Pair)
Nil
(List)
lookatme m: my $m = Map.new: '1' => :1st, '2' => :2nd; say $m.<1>.WHAT; say $m{'<1>'}.WHAT; my $n = 1; say $m.{'$n'}.WHAT; say $m.{'<$n>'}.WHAT; 06:21
camelia (Pair)
Nil
Nil
Nil
06:21 domidumont left 06:22 domidumont joined 06:23 vimal2012 joined 06:34 vimal2012 left
samcv made a post about Unicode property names regex stuff cry.nu/perl6/unicode-property-names/ 06:36
if anybody wants to check it out 06:37
06:37 Cabanossi left 06:39 Cabanossi joined 06:41 darutoko joined
samcv ugh my ordered list got messed up 06:45
always so tricky with so many markdown formats out there 06:47
and crossout using ~~foo~~ didn't work until i added a redcarpet extension
06:47 nadim left
moritz isn't it usually -foo- ? 06:47
maybe I'm confusing that with confluence/jira markup
you're right, too many markups 06:48
lookatme so :) why not using asciidoc 06:53
A better markdown ~ :) 06:56
samcv i didn't have that extension enabled 06:57
also my numbeled list starts from 1 instead of 0 now
and the other half of the list that started from 4 now starts from 1 :O
well… I just made numbered bullet points. * 0. foo 07:00
07:01 astj_ joined, astj left 07:03 xtreak joined 07:04 parv joined 07:07 trnh joined
nine skaji++ # I just love Mi6 07:08
skaji: CPAN is now recommended :) 07:12
07:13 mr-foobar left
moritz does modules.perl6.org list p6 modules uploaded to CPAN? 07:14
07:16 nadim joined
lookatme So I should make a copy of my source code, and use mi6 create a new distribution, and upload to CPAN ? 07:22
nine lookatme: why a copy? 07:23
lookatme Oh, my source code under a github repo.
07:33 pecastro left 07:35 domidumont left, domidumont joined 07:37 zakharyas joined 07:39 domidumont left 07:40 mr-foobar joined 07:42 g4 joined 07:45 pecastro joined 07:46 raiph left, zacts joined, raiph joined 07:47 domidumont joined, rindolf joined 07:49 dogbert17 left 07:52 pecastro left 07:53 Cabanossi left 07:54 pmurias joined, Cabanossi joined 07:55 CacoS joined 07:59 pecastro joined 08:02 jonas2 joined 08:03 hoelzro left 08:06 CIAvash left 08:14 raiph left 08:15 dakkar joined, raiph joined
skaji nine: I see! 08:15
mienaikage The Perl 6 track on exercism.io is now active 🙂
lookatme Has someone upload module to CPAN ? 08:16
skaji Yes, I have.
lookatme mienaikage++ great!!! 08:17
skaji, what's the module name ?
skaji App::Mi6
If you just want to upload tarballs to CPAN, you can use github.com/skaji/perl6-CPAN-Uploader-Tiny directly. 08:19
lookatme Can I find your module in cpan.org ? or meta-cpan.org ?
08:20 Zoffix joined, wamba left
Zoffix moritz: no, it doesn't yet 08:20
.ask tadzik What's happening with /problems? Can you please merge it to master? We need to add CPAN listings and if your changes are unmerged there will be a bunch of merge conflicts. 08:22
yoleaux Zoffix: I'll pass your message to tadzik.
tadzik Zoffix: oh, it was waiting for code review and comments :)
yoleaux 08:22Z <Zoffix> tadzik: What's happening with /problems? Can you please merge it to master? We need to add CPAN listings and if your changes are unmerged there will be a bunch of merge conflicts.
08:23 Actualeyes left
Zoffix tadzik: just merge 08:24
tadzik a'ight
Zoffix :)
Geth modules.perl6.org/master: 11 commits pushed by (Tadeusz “tadzik” Sośnierz)++
review: github.com/perl6/modules.perl6.org...c5f92dcb11
08:25
Zoffix sweet
08:25 Actualeyes joined
Zoffix tadzik++ 08:25
skaji I think ugexe++ creates an index for CPAN github.com/ugexe/Perl6-ecosystems , and we can find perl6 modules in CPAN from it. 08:26
08:27 robertle joined
Zoffix huggable: cpan json 08:28
huggable Zoffix, Perl 6 modules on CPAN: github.com/ugexe/Perl6-ecosystems/.../cpan.json
Zoffix Yeah that's the repo
08:30 parv left 08:44 raiph left 08:45 raiph joined, domidumont left 08:48 bjz joined
lookatme oh, so I can't find them in cpan.org or others, just only in Perl 6 ecosystem 08:49
08:49 bjz left
skaji you can find some perl6 modules in CPAN, see, for example, www.cpan.org/authors/id/S/SK/SKAJI/Perl6/ 08:53
08:53 Cabanossi left 08:54 espadrine left
skaji but PAUSE does not create an index for perl6 distribution right now. 08:54
08:55 Cabanossi joined
Zoffix raiph: answered: stackoverflow.com/a/44108637/2410502 08:56
08:56 bjz joined, TEttinger left
Zoffix is done rebuilding DB for new schema on modules.perl6.org 09:01
w00t: modules.perl6.org/todo
tadzik++
tadzik yay :) 09:02
can be filtered too: modules.perl6.org/todo/tadzik
Zoffix oh, sweet!
"dist has no MANIFEST file"? Wtf is that? 09:03
Just a list of files the dist supposed to contain?
sjn that pretty sweet! :D 09:04
Zoffix hm, there's a question-mark-icon but hovering/clicking it does nothing
sjn that's *
09:05 wamba joined
sjn isn't the MANIFEST part of the META6.json file these days? </confused> 09:06
Geth modules.perl6.org: 4d815d45de | (Zoffix Znet)++ (committed using GitHub Web editor) | templates/todo/index.html.ep
Remove question mark icon

Seems to be a no-op ATM. Remove to avoid user confusion.
09:07
09:08 raiph left
sjn ah, no it's not. it just has a provides field 09:08
Zoffix tadzik: what does it use for /todo/author? Doesn't show me anything for /zoffixznet and for /Zoffix%20Znet it shows me just a partial list of my modules (and I know none of them have a MANIFEST): modules.perl6.org/todo/Zoffix%20Znet 09:09
sjn Zoffix: the question mark would be cool if it would link to an explanation (perhaps on the same page?)
Zoffix buggable: author zoffixznet
buggable Zoffix, Found 44 dists for zoffixznet. See temp.perl6.party/buggable/54398232...44178.html
Zoffix sjn: yup, but it doesn't ATM, so I removed it
sjn mm
tadzik Zoffix: it stores your author from META6, uses the github url if that's not present 09:12
and then does a LIKE
Zoffix: yeah, hovering is NYI :/
sjn: that was the idea, yes
lookatme skaji, oh, I see 09:13
Zoffix huh, weird. When I first looked at /todo/Zoffix* it had all my modules 'cause i screenshoted it: twitter.com/zoffix/status/866580683388571648 09:14
but if I visit the same URL again, it shows me only some dists: i.imgur.com/qIr8TtH.png 09:15
eh, problem for another day. 09:17
09:17 Zoffix left
Geth doc: f8a90ed2e2 | (Zoffix Znet)++ | doc/Type/Pair.pod6
Document Pair.new

Addresses user's confusion about possible accepted args in: RT#131339: rt.perl.org/Ticket/Display.html?id=131339
09:17
doc: a6f1cbfbef | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Fix up IO::Handle.print

  - Fix signature
  - Mention the .Str coercion
  - Make example's style consistent with others
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=131339
09:20 margeas joined
tyil "Below you can find a list of the 56 known external Perl 6 modules." 09:22
I could've sworn there were more than that
lookatme Zoffix, So, about that questions on stackoverflow. As I know, Map not have a operator '<< >>'. What the parser treat '$map<<$n>>' as ? 09:26
.tell Zoffix, So, about that questions on stackoverflow. As I know, Map not have a operator '<< >>'. What the parser treat '$map<<$n>>' as ?
yoleaux lookatme: What kind of a name is "Zoffix,"?!
lookatme .tell Zoffix So, about that questions on stackoverflow. As I know, Map not have a operator '<< >>'. What the parser treat '$map<<$n>>' as ?
yoleaux lookatme: I'll pass your message to Zoffix.
09:27 Zoffix joined
Zoffix . 09:27
yoleaux 09:26Z <lookatme> Zoffix: So, about that questions on stackoverflow. As I know, Map not have a operator '<< >>'. What the parser treat '$map<<$n>>' as ?
Zoffix lookatme: it's a regular quoting construct probably documented somewhere on: docs.perl6.org/language/quoting 09:28
m: my $n = 'a b c'; dd «$n foo bar $n»; # don't need a map for it
camelia ("a", "b", "c", "foo", "bar", "a", "b", "c")
lookatme m: my $x = 10; << 1 2 3 "a" $x>>.WHAT.say 09:29
camelia (List)
Zoffix docs.perl6.org/language/quoting#Wo...tion:_qqww
lookatme But it's a list. Call A List on a Map .? 09:30
timotimo it gives you one value for each key in the list
just like with positionals and [ ] and a list
m: say (5..*)[1, 2, 10, 20, 100, 200] 09:31
camelia (6 7 15 25 105 205)
timotimo m: my %letters = "a".."z" Z=> 1..*; say %letters<<a b f g x y z>>
camelia (1 2 6 7 24 25 26)
timotimo lookatme: ^
lookatme So, '<>' works similar with '<<>>', as you said, timotimo
timotimo yup, <> doesn't do any interpolation at all, so if you want to have $foo as a key you have to use either { } or << >> 09:32
lookatme timotimo, Em, I know that, I just wonder '<>' is not a operator, how it works..
Zoffix lookatme: no, not call a List; it's just a shortcut for $map{«…»} just like $map<…> is a shortcut for $map{<…>} 09:33
lookatme Oh, my mistake '<>' is a operator , '<<>>
' not
Zoffix lookatme: it's parsed to call &postfix:<{ }> with the list from «» 09:34
perl6 --target=ast -e '%()«foo»' 09:35
lookatme Em, Zoffix that's a little beyond understand. Is there any document about that ?
Zoffix Look at last few lines at the end
No idea
and from postcircumfix:<{ }> it goes to github.com/rakudo/rakudo/blob/601c...ice.pm#L51 09:36
and then you're just all about method names
s/'&postfix:<{ }>'/&postcircumfix:<{ }>/
lookatme: here: docs.perl6.org/language/subscripts 09:37
Zoffix goes back to hacking on IO
09:37 Zoffix left
lookatme off work now 09:44
09:44 lookatme left 09:45 wamba left 09:49 xtreak left 09:52 Cabanossi left 09:55 Cabanossi joined 10:07 Ven joined 10:08 Ven is now known as Guest38993 10:09 Guest38993 left
Geth doc: 8f538308c9 | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Fix up IO::Handle.print-nl

  - The handle can be not for a file
  - Remove all the prose about .nl-out's defaults and .opens.
   That's not the only way to set that attribute.
10:11
10:14 wamba joined 10:18 wamba left 10:27 melezhik left 10:30 astj joined, astj_ left 10:38 Cabanossi left 10:40 Cabanossi joined
tyil searching online on some tracker for "perl", and I find "Selected Books of Christian Apocrypha, Christian Mystics and Christian occult (88 books)" 10:47
did you guys not tell me you are trying to get me into the occult? 10:48
10:49 rindolf left 10:52 ddv_ joined
moritz can neither confirm nor deny anything 10:54
lizmat tyil: why do you think we're blessing objects ?
tyil I should've gotten out when I had the chance 11:00
11:00 domidumont joined
nine tyil: too late 11:15
11:21 KDr2 left 11:26 wamba joined 11:30 bjz_ joined
pmurias precompilation of Test.pm6 now works with rakudo.js :) 11:32
11:32 bjz left
lizmat whee! 11:32
pmurias++
tadzik wooo:) 11:33
moritz wohoo! 11:36
pmurias++
can it also load the precompiled Test.pm6?
masak woo \o/ 11:37
yoleaux 21 May 2017 13:13Z <lizmat> masak: judging from en.wikipedia.org/wiki/Multiset , it looks like we could have Baggy semantics for (<) and (<=), do you agree ?
21 May 2017 13:16Z <lizmat> masak: aka, "say <a b>.Bag (<) <a b b>.Bag" would be True rather than False (as it is now)
masak lizmat: interesting question. I will follow up on the link and get back to you.
11:38 Cabanossi left
masak lizmat: ok, that Wp page definition makes a lot of sense to me. 11:39
lizmat: guessing the old/current semantics could be restored like this...
m: say <a b>.Bag.Set (<) <a b b>.Bag.Set
camelia False
masak (if you see what I mean) :)
I mean, I guess (without looking at Rakudo source) that that's what the current (<) does for Bags 11:40
so, all in all, yes. I am in favor.
11:40 Cabanossi joined
lizmat masak: ok, will take it on in the refactor of (<) (<=) (>) and (>=) 11:40
Geth doc: dc50211e5f | (Zoffix Znet)++ | doc/Type/IO.pod6
[io grant] Fix &prompt

  - It worked as described only by default; it uses $*OUT/$*IN handles
   and the chomping will only happen if the $*IN.chomp is set
  - Document arg-less form:
   - Rakudo impl: github.com/rakudo/rakudo/commit/0646d3fa46
   - Tests: github.com/perl6/roast/commit/125fe18489
masak only (small) downside I can see is that (<) used to be exclusively for Sets
lizmat yeah, I'm not sure of any spectest fallout just yet 11:41
masak kind of analogously to "+ is for Numeric", "~ is for Stringy", etc
but maybe that can be handwaved away by saying that a Bag is a fairly Set-like thing, I dunno
TimToady, what do you think? :)
lizmat but many other set operators have behaviours for Set/Bag/Mix
masak lizmat: ok, so there are precedents already? that makes it more OK, I think 11:42
lizmat feels to me that (<) and friends do not, is an oversight
m: say <a b>.Bag (^) <a b b>.Bag # an example
camelia bag(b)
lizmat m: say <a b>.Bag.Set (^) <a b b>.Bag.Set # with Setty semantics 11:43
camelia set()
masak lizmat: also, I'm put to mind of a SO thread I saw (by mjd) which asked "why aren't Bags more well-known/used?" and concluded "uuuh, Bag subsethood can mean like three different things..."
lizmat: I can dig up the URL for that for you
might be interesting background reading :)
lizmat: math.stackexchange.com/questions/1...-multisets 11:45
pmurias masak: yes, otherwise what would be the point of precompiling it? ;)
masak tosses that reply on to moritz, with whom he is oft confused :) 11:46
moritz we're, like, nearly indistinguishable! :-) 11:47
11:53 astj_ joined, astj left
moritz to answer pmurias' question: it might be possible that the precompilation works, but something inside the loading of precompiled modules might still be broken 11:54
though of course I'm happy that that doesn't seem the case :-) 11:55
11:57 mingdao left 11:59 Actualeyes left 12:01 trnh left 12:04 Actualeyes joined 12:08 trnh joined, trnh left, trnh joined 12:10 pmurias left 12:11 raschipi joined 12:16 araraloren joined
araraloren o/ 12:19
raschipi heyo
araraloren ^_^ 12:22
12:26 Actualeyes left 12:37 Cabanossi left 12:38 AlexDaniel joined 12:40 Cabanossi joined
ddv_ does someone know agout a page page where the userbase of perl6 is tracked? 12:48
12:50 Actualeyes joined
perlpilot ddv_: I don't think there is such a page. 12:56
12:56 yqt joined 12:58 sufrostico joined 13:00 wamba left, ddv_ left, mcmillhj_ joined, mcmillhj joined
moritz anybody can anonymously download all the Perl 6 stuff. No tracking possible (or maybe even desirable) 13:06
raschipi There's also many sources controlled by other people, like distros. 13:09
13:10 aborazmeh joined, aborazmeh left, aborazmeh joined
cono is there a possibility to fork in Perl6? The only way I found is NativeCall 13:11
jnthn That's the only way; also note that fork and threads mix really badly. 13:14
13:15 Actualeyes left
raschipi cono: You probably want to use the high level interfaces or be really careful, because libuv changes all of the file descriptors underneath for async I/O. 13:16
jnthn That also
Not to mention that even if you don't use threads in your program, that doesn't mean a VM won't have some for things like GC and optimization 13:17
samcv i <3 set and bags.
cono I really don't like the idea of running test in .sh or .bat, wanted somehting like fork...
test should be self-sufficient imo 13:18
raschipi What about docs.perl6.org/type/Proc::Async ?
jnthn Oh, you're talking about the IO-Socket-INET.t?
cono y
jnthn Oh
You can use threads for that 13:19
cono is this a good start? docs.perl6.org/language/concurrency
jnthn Just run the server in a different one from the client
Yeah
cono got it. thanks!
jnthn socket-recv-vs-read.t also does something similar 13:20
cono will look
13:22 pmurias joined
pmurias should Configure.pl complain when both --backends and --with-nqp are passed? (as --with-nqp overides --backend) 13:23
13:24 aborazmeh left
raschipi samcv: You of all the people I would think would use emoji instead of emoticons. Old School, I guess. 13:25
samcv heh
i mean i do have ♥ on my compose key. but not that many emoji in general. that's more a symbol. I have 👍 and 🌟 though 13:26
raschipi 👍 13:27
cono how to write last 2 via compose key?
♥ this one I know :)
samcv have a custom compose file
this is mine github.com/samcv/dot-files/blob/ma.../.XCompose
cono nice, thanks :)
samcv press multi key twice then T + U + S 13:29
i have the emoji behind two compose key presses so that when I add them i don't conflict with things that already exist. which can happen
cono 👍 13:30
13:31 kaare__ left, kaare__ joined 13:34 wamba joined
AlexDaniel raschipi: somehow “:)” looks better 13:35
none of this colorful smudgy rubbish
raschipi u: “
unicodable6 raschipi, U+201C LEFT DOUBLE QUOTATION MARK [Pi] (“)
raschipi Depends on intent I guess, I'm not saying any form of communication is invalid. 13:36
13:39 g4 left 13:44 Cabanossi left
samcv raschipi, was wondering your opinion on this github.com/softmoth/perl6-pod-to-m...own/pull/9 13:44
pmurias is passing the location of the rakudo-js runner "executable" and the location of the runtime library in env variables sort of sane?
13:45 Cabanossi joined
samcv =begin code :lang<perl6> # is a sane way to designate the code is perl6 and should be highlighted as such? 13:45
pmurias RAKUDO_JS_EXECUTABLE_PATH="/path/to/perl6-js" RAKUDO_JS_RUNTIME="/path/" node rakudo.js "$@" 13:46
13:50 bjz_ left 13:51 cdg joined
pmurias samcv: one possible issue with :lang<perl6> is the question which version of Perl 6 is the snippet supposed to be in 13:51
samcv how would you improve the designation? 13:52
raschipi Not all markdown implementations get ``` for "code"
samcv yes i know
raschipi Is it supposed to be for a specific slang?
samcv well a lot of them do allow ``` for code 13:53
i mean it could always be hidden behind an option i suppose
raschipi Depends on what you're targetting.
13:53 Actualeyes joined
pmurias samcv: I don't have a solution 13:54
raschipi The project is targetting, I mean.
samcv i think a lot of people use it for github so i think it'd be useful to support fenced things which allow specifying a syntax highlighting language
could have a :no-fenced-codeblocks option or something for those who don't want it 13:55
raschipi If someone asks for it, then it might make sense to add an option. 13:56
13:57 skids joined 13:58 rindolf joined
raschipi Is the names of the languages specified anywhere or is it implementation specific? 13:58
samcv well there's standard lists of markdown tags 14:00
mst samcv: maybe :lang<perl6.c> ?
raschipi In my view this is specifing the exact output, it's not semantic, so I would use :fence<perl6> to get a fence block
samcv well pod doesn't have fenced blocks
oh you mean to the pod2markdown engine?
i mean that could make it assume that all the code blocks should be assumed perl6 even if they don't have config :lang<perl6> set 14:01
raschipi Oh, the tool only reads pod6, right
What's the ":lang" for, then? 14:02
I was actually looking at this one: github.com/softmoth/perl6-pod-to-m...409e639ecb
samcv raschipi, it goes in the pod 14:03
<samcv> well there's standard lists of markdown tags 14:04
oops
=begin code :lang<perl6
foo
=end code
when you create your pod code blocks
14:04 cdg left
samcv anything you put after key/value pairs becomes part of the 'config' for that pod block 14:04
14:04 cdg joined
samcv it seems mostly natural for language to be a config for a code block. though it doesn't have any mention in the spec. you can have any config you want for your uses /renderers. it's meant to be extensible 14:05
raschipi The classic way would be 14:06
=begin perl6
say "hi!"; 14:07
evalable6 hi!
raschipi =end perl6
wouldn't it?
Unsing the "=begin formatname " form 14:08
But it would also be overkill... 14:09
Is this supposed to write markdown with existing POD, or purpose-written POD? 14:10
14:12 Cabanossi left 14:13 Khisanth left 14:14 CacoS left 14:15 Cabanossi joined
raschipi samcv: Looks good, sorry for the bikeshed 14:16
araraloren Convert something to Pod ~~ :) 14:17
samcv well except it's supposed to be rendered as text not to be ran. but
existing pod raschipi
i did make a :no-fenced-markdown option which is fine with me since you're right not everything accepts it 14:18
i gotta go back to bed and finish my sleep. night Zzz 14:19
raschipi night, sleep tight
14:23 cdg_ joined, perlpilot left, raschipi left 14:24 perlpilot joined, cdg left 14:26 raschipi joined, Khisanth joined 14:29 raschipi_ joined 14:30 raschipi left 14:33 lowbro left
Geth perl6-most-wanted: bee3d122a4 | (Curt Tilmes)++ (committed using GitHub Web editor) | most-wanted/bindings.md
Remove LibYAML, added to ecosystem
14:38
nebuchadnezzar I started some #Perl6 Toot on Mastodon :-D 14:46
14:47 KDr2 joined 14:49 Actualeyes left 14:50 eyck left, mawkish__ joined 14:52 mawkish joined 14:53 mawkish__ left 14:55 MilkmanDan joined 14:58 eyck joined 14:59 mawkish left 15:02 Actualeyes joined, hoelzro joined, enheh joined 15:07 eyck left 15:08 Ven joined 15:09 Ven is now known as Guest7189 15:12 Cabanossi left, eliasr joined, khw joined 15:14 Cabanossi joined 15:18 nadim left 15:20 ribasushi left
enheh Hello! I'm relatively new to perl6 and have a question about some strange behavior I'm seeing with parameterized roles... 15:24
p6: role R[::T] { has T $.x = T(0); method new() {return self.bless(:x(42e0));} }; class C does R[Num] {}; C.new();
camelia ( no output )
enheh p6: role R { has Num:D $.x = Num(0); method new() {return self.bless(:x(42e0));} }; class C does R {}; C.new();
camelia ( no output )
enheh p6: role R[::T] { has T:D $.x = T(0); method new() {return self.bless(:x(42e0));} }; class C does R[Num] {}; C.new(); 15:25
camelia X::TypeCheck::Assignment exception produced no message
in method new at <tmp> line 1
in block <unit> at <tmp> line 1
15:25 Guest7189 left 15:26 Ven joined
enheh Why does the last one fail? 15:26
15:26 domidumont left, Ven is now known as Guest88924
pmurias should I assume the node.js the user wants to use with rakudo.js/nqp.js is installed in PATH/ 15:27
PATH?
15:27 Guest88924 left 15:29 araraloren_ joined
araraloren_ enheh, I never seen a defined constrain used in **has**. 15:29
15:29 ribasushi joined
pmurias is not sure if debian backed out from the node.js binary renaming stupidity 15:29
15:31 eyck joined
enheh I wanted to be able to reuse code via a role, but apply it to classes with possibly different types, i.e. Int, Rat, Num. 15:32
15:32 araraloren left
enheh ...different types for an attribute, that is. 15:32
araraloren_ Em, The first one doesn't work ? 15:33
enheh The first and second ones do, but not the third.
I'm wondering if it is a bug.
araraloren_ m: class R { has Int:D $.x = 10; } 15:34
camelia ( no output )
araraloren_ m: role R { has Int:D $.x = 10; }
camelia ( no output )
araraloren_ m: role R[::T] { has T:D $.x = 10; }
camelia ( no output )
araraloren_ m: role R[::T] { has T:D $.x; }
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable definition of type T:D requires an initializer
at <tmp>:1
------> 3role R[::T] { has T:D $.x7⏏5; }
expecting any of:
constraint
araraloren_ m: role R[::T] { has T:D $.x = T.new(0); } 15:35
camelia ( no output )
araraloren_ You should use new create a object, not T() like c++ or other language does
role R[::T] { has T:D $.x = T.new(0); method new() {return self.bless(:x(42e0));} }; class C does R[Num] {}; C.new(); 15:36
m: role R[::T] { has T:D $.x = T.new(0); method new() {return self.bless(:x(42e0));} }; class C does R[Num] {}; C.new();
camelia X::TypeCheck::Assignment exception produced no message
in method new at <tmp> line 1
in block <unit> at <tmp> line 1
araraloren_ m: role R[::T] { has T:D $.x = T.new(0); method new() {return self.bless(:x(42e0));} }; class C does R[Num] {}; C.new(x => 3);
camelia X::TypeCheck::Assignment exception produced no message
in method new at <tmp> line 1
in block <unit> at <tmp> line 1
raschipi_ pmurias: are you a ham and mad because debian forced the node package to be renamed ax25-node? 15:37
15:38 ufobat joined
enheh araraloren: I guess I was thinking of T() as a type conversion. 15:39
ufobat heya
does anyone run into the same issue? github.com/ufobat/Bailador/issues/101
it works for me :/
araraloren_ enheh, what you use :D for ? 15:40
15:41 eyck left
enheh I wanted to force the attribute to have a value, say during later assignment. 15:41
raschipi_ pmurias: The hamradio node package is unmaintained and soon node.js will be allowed to take over that name. 15:42
enheh So that assigning something like "$x = 3e0;" would work, but "$x = Num;" would fail. 15:43
araraloren_ m: role R[::T] { has T:U $.x = T; method new() {return self.bless(:x(T));} }; class C does R[Num] {}; C.new(x => 3)
camelia X::TypeCheck::Assignment exception produced no message
in method new at <tmp> line 1
in block <unit> at <tmp> line 1
raschipi_ m: role R[::T:D] { } 15:44
camelia ( no output )
pmurias raschipi_: node.js being renamed to nodejs and *breaking* was hugely annoying 15:45
raschipi_ the other package that was older and was using that name for 9 years was forced to rename too, and that us unjust
a new project can't just appear and take over names people have been using 15:46
the hamradio package should have kept the name and node.js shouldn't bbe allowed to step on their name 15:47
15:47 Ven_ joined
hythm zoffix, "so defined my $var1 ?? "y" !! "n" is same as `defined( my $var1 ?? "y" !! "n" )`". Thanks zoffix, yeah I should have used parens in this case. I was under the wrong impression the statement will evaluate as (defined my $var1 ) ?? "y" !! "n" 15:47
15:47 zapwai joined
raschipi_ But anyway, the problem is gone now. 15:47
15:48 eyck joined
pmurias raschipi_: the debian provided node.js being *broken* was the annoying part 15:48
araraloren_ Seems like role R[::T:D] doesn't work. enheh sorry I don't quite understand too 15:49
raschipi_ Why do you think node.js was entitled to that name at all?
As soon as they take over the name I will develop new software that uses that name and will force them to change again. 15:50
15:51 Actualeyes left
enheh Would it be appropriate to file a bug report here, then? 15:51
I'm still so new, my first instinct is to assume I'm missing something. ;^) 15:52
araraloren_ enheh, you can refer Perl6 document docs.perl6.org 15:55
Seems like role R[::T:D] doesn't work. enheh sorry I don't quite understand too 15:58
15:58 Cabanossi left
pmurias raschipi_: I'm not sure what the policy over who gets a given executable in debian is, what annoyed me the most isn't that node.js was renamed but that the debian renamed version was utter crap 15:59
enheh I've spent a bit of time with those documents, and they've been very helpful, but sometimes I find the "gory details" to be missing.
pmurias they shouldn't feel entitled to just break something and call it node.js
16:00 Cabanossi joined
raschipi_ Oh, I don't know about the quality of the package. 16:00
araraloren_ m: role R { as $.x where * ~~ Int:D | Num:D | Str:D; }; class C does R { }; C.new(x => 5);
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable $.x used where no 'self' is available
at <tmp>:1
------> 3role R { as $.x7⏏5 where * ~~ Int:D | Num:D | Str:D; }; cl
expecting any of:
argument list
term
enheh I haven't really found anything that would clear up this particular case.
araraloren_ m: role R { has $.x where * ~~ Int:D | Num:D | Str:D; }; class C does R { }; C.new(x => 5);
camelia ( no output )
araraloren_ m: role R { has $.x where * ~~ Int:D | Num:D | Str:D; }; class C does R { }; C.new(x => Int);
camelia Type check failed in assignment to $!x; expected <anon> but got Int (Int)
in block <unit> at <tmp> line 1
araraloren_ Use a where do a type defined constraint, generic role is not a good idea . 16:02
pmurias raschipi_: all the node.js c++ extensions where broken by the rename
16:02 eyck left
araraloren_ enheh, The document not complete. :) 16:02
raschipi_ pmurias: the ones from Debian? 16:04
araraloren_ enheh, There no more about generic role in document, so I can't help you about that .
raschipi_ or installed directly from source? 16:05
araraloren_ I think there is just one section: docs.perl6.org/syntax/role#Parameterized_Roles
enheh araraloren: Yes, I've read through that. For now, I guess any further learning on parameterized roles is just through experimentation. :) 16:06
araraloren_ And the where clause: docs.perl6.org/type/Signature#inde...gnature%29
16:08 Actualeyes joined
araraloren_ enheh, Yeah, It's not perfect than c++ generic class , I think. Just a primary feature. 16:08
enheh What we're seeing still looks like a bug though, right? 16:09
If so, I would like to make a bug report. I hate to see things slip through the cracks.
araraloren_ I don't know, you can ask some core developper . 16:10
I gotta sleep now . 16:11
night .
enheh Okay, thanks!
araraloren_ Zzz
enheh :)
16:11 Rawriful joined 16:12 Actualeyes left 16:13 awwaiid left, awwaiid joined 16:14 awwaiid left 16:17 araraloren_ left 16:18 yqt left
pmurias raschipi_: from npm 16:19
raschipi_ Software installed from source needs to be ported. 16:20
16:20 awwaiid joined
pmurias raschipi_: I'm not sure packaging node.js libraries as .debs even makes sense as there are not installed system wide but every node.js library has a copy 16:22
raschipi_ They still need to be ported. Anyway, it will be all in the past soon. 16:25
16:26 wamba left
moritz www.indiegogo.com/projects/book-we...bsite--2#/ 16:26
16:27 Actualeyes joined 16:28 eyck joined 16:30 setty1 joined 16:32 wamba joined, bioduds joined
bioduds hi friends 16:33
what is the best way today to install a perl6 module?
16:34 eyck left 16:35 devmikey joined 16:38 Ven_ left
AlexDaniel bioduds: what about zef? 16:40
moritz zef it is! 16:41
16:42 Ven joined, dakkar left, Ven is now known as Guest31182 16:46 Guest31182 left 16:49 Ven_ joined, wamba left 16:53 eyck joined, Ven_ left 16:54 pilne joined 16:58 nadim_ joined, Ven_ joined
bioduds trying zef 17:01
great
worked like a charm, thanks
tx moritz and AlexDaniel
17:08 st_elmo joined 17:09 Ven_ left 17:11 kaare__ left 17:12 Ven_ joined
nadim_ hi, does perl6-debug-m work for you guys? I had to install a module, then it dies with message "Cannot find method 'named' on object of type NQPMu" 17:14
17:17 Ven_ left 17:18 Ven joined 17:19 Ven is now known as Guest70144, kaare_ joined
hythm nadim_ No, perl6-debug-m is b0rked now 17:21
nadim_ good to know! Now chasing this error is going to get more fun! 17:22
17:22 dha joined 17:23 Guest70144 left
hythm yeah good luck : D 17:23
nadim_ m: my $s1 = (1...2) ; my $s2 = (1...2) ; say 'eqv' if $s1 eqv $s2 ; say $s1[0] ; 17:24
camelia eqv
This Seq has already been iterated, and its values consumed
(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
nadim_ Hmm, it's going to be difficult to do a data structur diff when the structure contains Seqs. first one never knows for lazy infinite Seq and doing an eqv on them donsumes them. How would you diff two Seq? 17:26
17:27 Cabanossi left, Ven joined, Ven is now known as Guest56196
raschipi_ nadim_: Call .cache on them? 17:27
nadim_ that's half the problem, the simpler half. diffing infinite Seq is not very useful. 17:29
will need to put some limits
17:30 Cabanossi joined 17:35 raschipi_ left, Guest56196 left
nadim_ what would this error mean? "This type cannot unbox to a native integer: P6opaque, Failure" 17:44
17:49 Sound joined 17:50 TeamBlast left 17:51 nowan_ joined 17:52 zakharyas left 17:53 Ven_ joined, nowan left, trnh left, TeamBlast joined
ugexe m: use nqp; say nqp::unbox_i(Failure.new("xxx")) 18:05
camelia This type cannot unbox to a native integer: P6opaque, Failure
in block <unit> at <tmp> line 1
18:05 curan left
ugexe maybe something like `method whatever($some-int) { }` where $some-int is being passed a Failure because its not constrained 18:06
18:07 Actualeyes left 18:10 trnh joined 18:11 trnh left, trnh joined, cdg_ left 18:14 darutoko left 18:16 espadrine joined 18:25 Ven_ left 18:27 Ven joined, Ven is now known as Guest27595 18:30 wamba joined 18:45 pochi joined 18:47 domidumont joined 18:50 mcmillhj left, mcmillhj joined
lizmat starts working on this week's Perl 6 Weekly 18:53
ping me if you think I'm about to forget something
nadim_ lizmat: something about rakudo.js, and what it is for would be nice 18:54
lizmat ok, if pmurias would have a blog post about it: for now I'll just mention that as one of the tweets of the past week 18:55
[Coke] lizmat++ # thanks for thankless task of putting the weekly together. 18:58
lizmat [Coke]: thanks :-) 19:01
tbrowder that goes fOR me, too, and i trust everyone here: ++lizmat 19:04
19:06 st_elmo left 19:07 TEttinger joined 19:10 Guest27595 left, Ven_ joined 19:13 Cabanossi left 19:15 Cabanossi joined, Ven_ left 19:17 devmikey left 19:27 devmikey joined 19:29 yqt joined 19:31 domidumont left 19:33 trnh left
[Coke] /win 8 19:39
wow, managed to miss the contest with that one.
19:40 Zoffix joined, nadim_ left
Zoffix /win 8 19:40
buggable Zoffix, Thank you for entering Accidental /win Lottery! The next draw will happen in 2 weeks, 3 days, 4 hours, 19 minutes, and 2 seconds
Zoffix [Coke]: how did you manage to miss the contest? 19:41
19:41 nadim_ joined
Zoffix oh wait, I think IRC::Client still has that bug where it ignores nicks with [] in them 19:42
19:42 Zoffix is now known as [Zoffix]
[Zoffix] buggable: eco 19:42
buggable [Zoffix], Out of 844 Ecosystem dists, 0 have warnings, 0 have errors, and 0 have no tags in META file. See modules.perl6.org/update.log for details
[Zoffix] nope...
19:42 [Zoffix] is now known as Zoffix
[Coke] Zoffix: not just a /, it was some special char as well. 19:43
Zoffix tadzik: so the update.log no longer has any of the issues printed to it?
[Coke]: ah
Ah, it's now all in modules.perl6.org/todo/.json 19:44
buggable: update yourself to work with modules.perl6.org/todo/.json ktnx
20:03 cdg joined
Zoffix ufobat: ping 20:05
ah, nm, I forgot --serial to zef 20:07
Bailador worked on 2017.04.3, but install fails on 2017.05.something 20:08
something about handles :}
I wonder if it works on 2017.05. 'cause I just assumed it would when I fixed Digest and never re-tested :o 20:09
20:12 Ven joined, Ven is now known as Guest22322
Zoffix Ah. It's the "using say, but implementing only print" issue 20:15
20:15 avar left 20:16 Guest22322 left, avar joined, avar left, avar joined 20:22 xinming_ joined
Zoffix Yeah, it's broken on 2017.05 :( Zoffix-- 20:24
lizmat hopes that 2017.05 is the last rakudo compiler release that didn't smoke the ecosystem 20:25
20:25 xinming left
Zoffix lizmat: Yup. I got the proper tool too now: github.com/zoffixznet/zefyr and I'll be finally free of the IO grant for next release 20:27
lizmat :-)
will that post to cpan-testers ?
Zoffix Dunno. Probably better done as a Zef plugin (and then the tool can automagically use it) 20:28
Oh, actually 2017.05 is fine. 'cause the bug is in Bailador :D
Zoffix is about to send a PR 20:29
There: github.com/ufobat/Bailador/pull/103 20:30
20:32 Zoffix left, cyphase left 20:36 literal left, yqt left, literal joined 20:37 cyphase joined
TreyHarris I was surprised by _how_ loose the named boolean operators are. Specifically, their being even looser than parens 20:39
m: my $x = True or False; say $x 20:40
camelia WARNINGS for <tmp>:
Useless use of constant value False in sink context (line 1)
True
TreyHarris m: my $x = (True or False); say $x
camelia True
TreyHarris m: my $x = (True and False); say $x
camelia False
lizmat m: my $x = True|False; say $x # the joy of Junctions!
camelia any(True, False)
TreyHarris here's the weird one to me 20:41
m: my $x; my $y = 3; say($x orelse $y)
camelia 5===SORRY!5=== Error while compiling <tmp>
Unable to parse expression in argument list; couldn't find final ')'
at <tmp>:1
------> 3my $x; my $y = 3; say($x7⏏5 orelse $y)
expecting any of:
infix
infix stopper
TreyHarris m: my $x; my $y = 3; say($x // $y)
camelia 3
TreyHarris I can use the latter, it just surprises me that orelse is so loose in this case 20:42
pilne i need to get my ass up to speed with perl6 so i can actually maybe help with things >.<
20:45 dha left
[Coke] pilne: your help would be appreciated but in the meantime, please enjoy this fine language. 20:45
pilne i'm just *reading* about it and working through the intro off of perl6.org and i'm just astounded at how natural it feels, i've dabbled as a hobbyist in most any language that's had decent exposure since the late 90's and perl/ruby/python were always my gotos, but this really takes the cake. 20:47
and the inline family of modules... being built on vms, very forward thinking while leveraging so much past (often good) work! 20:48
i just get a bit saddened when i see a perl5 user in such a tizzy over perl6 (i can't blame rubyists and pythonistas for their jealousy though lol). 20:49
20:50 cpage_ left 20:51 ufobat left
timotimo i'm not sure i understand what you mean by that 20:51
pilne it seems that on every blog or HN type thread associated with perl6 that I read, there is a high probability of at least 1 commenter being someone who has the opinion that perl6 ruined perl (or something of that like). 20:52
or posts with headers/titles proclaiming similar >.<
i want to smite the posts, despite my deep respect for freedom of speech 20:53
moritz and I can see how the could come to that conclusion
pilne i can too, i can, but there is so much more that can be done focusing on the positives of either perl.
granted, i regularly rant that if the united states spent it's military overbudgeting on medicinal research and ways to alleviate the cost of becoming a doctor.. that our medical system here wouldn't be so fubar... but i digree. 20:54
digress**
and as a somewhat... pragmatic person, inline::perl5 seems to make a lot of the points kinda moot... 20:57
21:04 cpage_ joined 21:09 mcmillhj left, mcmillhj_ left 21:12 rindolf left
tadzik Zoffix: hmm, possibly not those that end up on /todo 21:15
Zoffix: but I don't recall removing them
21:16 skids left 21:17 Zoffix joined
Zoffix tadzik: it was the log stuff; one was missng `perl` key in META and the other was about the tags. 21:17
Yup. Both are reported on the /todo now 21:18
(e.g. "Testing" dist)
pilne: as someone who used to do perl5 only and perl6 was "about to be released", I felt kind of... fear. That what I do is useless, soon to be forgotten. That I'm about to have a useless skill on my resume. That I might have trouble at work with my current perl 5 apps, because no one supports the modules I use any more.... So, I don't think the post-smitting is warranted under such assumptions :) 21:23
huggable: hug angry Perl 6 haters 21:24
huggable hugs angry Perl 6 haters
Geth doc: cbae56533b | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
Fix typo; Fixes #1321
21:29
doc: 79e064313d | (Zoffix Znet)++ | doc/Type/IO/Path.pod6
Fix xtest code compilation; Fixes #1322
21:30
21:34 robertle left 21:36 bjz joined
pilne but wasn't there any comfort in the fact that languages like c and c++ have been prounced as "about to die" directly because of other languages, when, as far as i can tell, perl6 never stated that eliminating or replacing perl5 was a goal? i mean... there just seems to be so much hyperbole surrounding certain subjects and topics in programming, both the "science" side of languages and the "x vs. y" debate of the hour. 21:39
Geth doc: 98965b32da | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Fix up IO::Handle.split

  - It's no longer lazy-read due to a bug, which likely won't get
   fixed until we get a proper Cat
21:39 dalek left 21:40 dalek joined, ChanServ sets mode: +v dalek
Zoffix pilne: not really. Just because it happened for X doesn't mean it'd happen for Y. And well, close to the time when I left Perl 5, it kinda felt emptier... I did notice people leaving and finding more abandoned modules, people saying in channels they won't start any new Perl 5 projects, etc. 21:40
^ docs; on positive side: that .split is now exactly like Str.split, with all the feature and none of own bugs 21:41
21:41 eliasr left
pilne i guess as a hobbyist, maybe looking to do something "real" if it just happens to work out with programming, i guess I don't have that fear of where's the money gonna come from 21:41
Zoffix mhm 21:42
pilne it's just sad, even in my environment, how buzz-wordy those higher up the chains are... my company will step over a dollar to pick up a penny... because shiny is the buzzword compared to ratty looking paper money 21:43
unless my analysis as an end user, who saw the internal "explanation" video, my company way overpaid for a cs101 level homework assignment.... 21:44
maybe like 201... i guess term length matters
Zoffix Lack of skill. People who know nothing about programming need to make I.T. decisions that will affect the company for the next 15-20 years. The buzz-words and marketing is what works for those people, not some nerd's opinion. 21:45
21:46 setty1 left
Zoffix Yeah, overpaid sounds about right. Sell a company a product that handles all of their business. Then charge $100,000/year for "support" because it'd cost them a $1,000,000 to replace you, so they eat the cost. 21:46
pilne so odd...
yeah, even though i don't think that's how these costs worked, they mentioned this specifically as money spent developing 21:47
i mean, i'm all for paying good money for good developers... 21:48
but this thing couldn't punch it's way outta a wet paper bage....
bag** 21:49
Zoffix \o 21:50
21:50 Zoffix left, mcmillhj joined
pilne but it does give me and some of my coworkers good laughs.... 21:50
(:
i'm going to have to re-reboot my blog and just start at my adventures with perl6 21:51
Geth doc: bd702e2b86 | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
[io grant] Fix up IO::Handle.comb

  - It's no longer lazy-read due to a bug, which likely won't get
   fixed until we get a proper Cat
  - routine now has all the same features as Str.comb
21:54
doc: fea0f9a332 | (Zoffix Znet)++ | doc/Type/IO/Handle.pod6
Fix typos in code examples
21:54 mcmillhj left 21:58 Cabanossi left 21:59 Cabanossi joined 22:06 mcmillhj joined
bioduds Please, how do I make an array of instances of a class? 22:07
bidimensional 22:08
I'm trying has Node @!node;
Node is the class
then inside a double loop I'm trying to assign @!node[$h;$i] = Node.new( data => $data ); 22:09
It's telling me Type check failed in assignment to @!node; expected BW::Merkle::Node but got Array ($[])
22:11 mcmillhj left 22:12 Zoffix joined
Zoffix bioduds: it's 'cause you're specified a parameterized array, not "array that contains only Node elements" 22:12
m: class Node {}; class Foo { has @.meows[2;2] where .all ~~ Node }.new: :meows[(Node.new, Node.new); (Node.new, Node.new)]
camelia ( no output )
Zoffix m: class Node {}; class Foo { has Node @.meows[2;2] }.new: :meows( Array[Node].new: (Node.new, Node.new); (Node.new, Node.new) ) 22:13
camelia ( no output )
Zoffix or keep it parametarized, but then you need to give it parametarizeadasdaij array ^
hm, does .all even work on shaped arrays? 22:16
m: my @m[2;2] where .all ~~ Int; @m = (4, 2), (3, 4); dd @m.all
camelia Cannot access 2 dimension array with 1 indices
in block <unit> at <tmp> line 1
bioduds I can tell on the constructor? The parameters [2;3] for instance?
Zoffix m: my @m[2;2] where .all ~~ Int; @m = [[4, 2], [3, 4]]; say @m.flat.all 22:17
camelia all(4, 2, 3, 4)
Zoffix ah, k, it might be `where .flat.all ~~ Node`
bioduds: so you want an attribute that accepts shaped arrays of arbitrary shapes?
bioduds yes 22:19
because it depends on the input
the size of the two dimensions, I mean
Zoffix m: class Node {}; class Foo { has Node @.meows; method !SET-SELF (\m) { @!meows := m; self }; method new (:$meows is raw) { self.bless!SET-SELF: $meows } }.new( :meows( Array[Node].new: :shape(2, 2), (Node.new, Node.new), (Node.new, Node.new) ) ).meows.perl.say 22:20
camelia Type check failed in binding; expected Positional[Node] but got Array[Node] (Array[Node].new(:shap...)
in method SET-SELF at <tmp> line 1
in method new at <tmp> line 1
in block <unit> at <tmp> line 1
Zoffix booo
22:21 bjz left
Zoffix m: class Node {}; class Foo { has Array[Node] $.meows }.new( :meows( Array[Node].new: :shape(2, 2), (Node.new, Node.new), (Node.new, Node.new) ) ).meows.perl.say 22:21
camelia Array[Node].new(:shape(2, 2), [Node.new, Node.new], [Node.new, Node.new])
Zoffix That seems to do the trick; I'm unsure of a way to do that and keep the @ sigil
bioduds let me try that logic in
22:22 mcmillhj joined, espadrine left
Zoffix Just to be clear: it's not mandatory that you specify the shape. 22:23
m: class Node {}; class Foo { has Array[Node] @.meows }.new( :meows( Array[Node].new: Node.new, Node.new, Node.new, Node.new ) ).meows.perl.say
camelia Type check failed in assignment to @!meows; expected Array[Node] but got Node (Node.new)
in block <unit> at <tmp> line 1
Zoffix m: class Node {}; class Foo { has Node @.meows }.new( :meows( Array[Node].new: Node.new, Node.new, Node.new, Node.new ) ).meows.perl.say 22:24
camelia Array[Node].new(Node.new, Node.new, Node.new, Node.new)
Zoffix m: class Node {}; class Foo { has Node @.meows }.new( :meows( Array[Node].new: Node.new, Node.new, Node.new, Node.new ) ).meows.rotor(2).perl.say
camelia ((Node.new, Node.new), (Node.new, Node.new)).Seq
22:27 mcmillhj left, pmurias left 22:28 kyan joined, grondilu joined
lizmat And another Perl 6 Weekly hits the Net: p6weekly.wordpress.com/2017/05/22/...-21-yap6b/ 22:32
nadim_ m: my \c = @a Z=> @b; dd c ; 22:33
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '@a' is not declared
at <tmp>:1
------> 3my \c = 7⏏5@a Z=> @b; dd c ;
nadim_ m: my \c = i(1..3) Z=> <a b c>; dd c ; 22:34
camelia 5===SORRY!5=== Error while compiling <tmp>
Variable '&i' is not declared
at <tmp>:1
------> 3my \c = 7⏏5i(1..3) Z=> <a b c>; dd c ;
nadim_ m: my \c = (1..3) Z=> <a b c>; dd c ;
camelia (1 => "a", 2 => "b", 3 => "c").Seq
Zoffix superstitious parens 22:36
m: my \c = 1..3 Z=> <a b c>; dd c
camelia (1 => "a", 2 => "b", 3 => "c").Seq
nadim_ the above looks nice but when I dump it, eg: I display each element of the Seq, I get this result: (1 a, 2 b, 3 c).Seq
Zoffix nadim_: that's 'cause you're stringifying those pairs when you dump them
lizmat m: say Pair.new("a",42)
camelia a => 42
lizmat m: say Pair.new("a",42).Str
camelia a 42
Zoffix m: my \c = 1..3 Z=> <a b c>; print c
camelia 1 a 2 b 3 c
lizmat .gist vs .Str 22:37
Zoffix is too slow :)
nadim_ thanks, I'll see how I can bypass the stringification
maybe time to test displaying Pairs
the problem is probably there 22:38
22:38 mcmillhj joined
Zoffix is happy we have so many Perl 6 books now that we have an acronym for it :D 22:38
huggable: YAP6B :is: YAP6B = Yet Another Perl 6 Book
huggable Zoffix, Added YAP6B as YAP6B = Yet Another Perl 6 Book
bioduds got it, Thanks Zoffix 22:40
Zoffix \o/ 22:41
22:43 mcmillhj left 22:44 MasterDuke left
Zoffix lizmat++ # Great weekly 22:44
22:45 Zoffix left 22:48 devmikey left 22:51 zengargoyle left 22:54 Rawriful left 22:57 Cabanossi left
bioduds noob question 22:58
why loop ( my $i=0; $i < @!dataset.elems/($!height-$h); $i+2 ) { does not work?
$i+2
it stays stuck in 0 22:59
22:59 nadim_ left
bioduds and warns me Useless use of "+" in expression "$i+2" in sink context (line 30) 22:59
lucs Try $i += 2
23:00 Cabanossi joined
bioduds oh, sure thanks lucs 23:00
lucs You're welcome
23:09 zengargoyle joined
AlexDaniel exercism is fun 23:11
23:13 kurahaupo left 23:14 kurahaupo joined, ParsonsNose joined
ParsonsNose Hello again dear chums. I'm finally using perl6 at work 23:15
2 years effort now I think, but worth it, fo' sho'
... this all sounded better in my head. I meant only to bolster than notion that we were, y'know, 'prod ready'. But I should've waited until I sobered up. Or someone knew who the hell I was. Oh well! 23:18
pilne lol! well congrats regardless (: 23:19
bioduds I created a simple Merkle Tree module
going to post later, thanks guys
ParsonsNose :) 23:24
23:25 wamba left
ParsonsNose I've wondered for a long time about the macros, btw... Is there much movement on that? I know there's the 007 thing going on but not sure how to enter, my level being low as it is.... 23:27
Never killed a man, for a start :/ 23:28
#test 23:37
23:38 cdg left 23:41 MasterDuke joined, BenGoldberg joined
pilne i think that currently (from what i've read) perl6 provides support for everything you'd do with macros already, just kinda separated out instead of all globbed together. 23:42
at least in terms of what scheme/lisp macros are used for. 23:43
23:44 Sound left, Aggressively_Alp joined 23:45 ParsonsNose left, Aggressively_Alp left
pilne does a child have to implement all of the submethods of the parent to inherit it? or is it just a mechanism to "hide" them from the children classes? 23:45
23:45 ParsonsNose joined
pilne "inherit from it?"** 23:45
i like having inheritance available, and multiple inheritence for prototyping, but i prefer factoring it out into the "roles" style once the code and I come to a working agreement that i get what I want (: 23:48
i've never understood the problem with having more than one way to do something, as long as the code is either self-doccumenting, or well-doccumented... 23:51
probably a bit spazzy and gushing here, but i feel like a kid in a candy shop with this language 23:52
23:57 Cabanossi left, Aggressively_Alp joined
Aggressively_Alp Aye, I gotcha. But sometimes I want to have variable names that I can define from some json array in the resources folder or something. IDK though, maybe that'd just be bloody silly 23:59
23:59 ParsonsNose left
Aggressively_Alp Oh my name changed. Oops 23:59
23:59 Cabanossi joined