Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2016-09-03

Perl 6 | Reference Documentation | Rakudo

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

All times shown according to UTC.

Time Nick Message
00:02 bjz joined #perl6
00:03 labster joined #perl6
00:09 TEttinger joined #perl6
00:22 BenGoldberg joined #perl6
00:44 bioduds perl Configure.pl --backend=moar --gen-moar
00:44 bioduds ===SORRY!=== No suitable MoarVM (moar executable) found using the --prefix (You can get a MoarVM built automatically with --gen-moar.)
00:44 bioduds makes no sense to me
00:52 cpage_ joined #perl6
00:56 timotimo try an explicit --prefix argument to Configure.pl?
00:57 timotimo or let it output what prefix each of the three pieces are actually working with?
01:02 pierre_ joined #perl6
01:07 bioduds cause it suggests me to --gen-moar and I do
01:07 timotimo of course
01:07 bioduds this is 2016.07
01:07 timotimo --gen-moar is supposed to install a moar and an nqp in whatever --prefix you supplied
01:07 bioduds doesn't happen on 2016.04
01:08 timotimo if you don't supply a --prefix, it goes with basically "./install/"
01:08 timotimo is there a install/bin/moar there?
01:08 stmuk bioduds: no the third line from the bottom still has a .04 reference
01:08 bioduds no
01:09 bioduds oh, correct
01:09 bioduds let me fix that
01:09 timotimo maybe Configure.pl could list what it could have considered
01:09 timotimo and give a better error message?
01:09 timotimo though i think i've already seen an error message like that?
01:10 stmuk maybe refactor the version into an env var so you only have to change it one place like rakudo-star-${VERSION}
01:10 timotimo also, if you --gen-moar, that's not supposed to error out?
01:10 bioduds you have a good eye man
01:10 bioduds trying again
01:11 bioduds im a little tired actually
01:12 bioduds yes stmuk
01:12 bioduds this is in my plan for final changes
01:12 bioduds once all works on all linux distros im testing
01:13 bioduds after I gather all suggestions from you top cats on P6 as well
01:14 zacts joined #perl6
01:14 bioduds question, I do need to make and then make install?
01:18 timotimo normally, yes
01:18 timotimo but if you just "make install", it'll do the same thing as "make" before it can install
01:29 Juerd joined #perl6
01:34 mrf joined #perl6
01:34 Ulti joined #perl6
01:35 Juerd joined #perl6
01:42 bioduds it is working now
01:46 bioduds on ubuntu 14.04
01:46 wamba joined #perl6
01:59 jonadab joined #perl6
02:30 pierre_ joined #perl6
02:36 parabolize joined #perl6
02:37 noganex joined #perl6
02:39 AlexDaniel hehe
02:44 cdg joined #perl6
02:46 cdg joined #perl6
03:01 committable6_ joined #perl6
03:05 pierre_ joined #perl6
03:23 canopus joined #perl6
03:29 cdg joined #perl6
03:50 TEttinger joined #perl6
04:01 jameslenz joined #perl6
04:03 MilkmanDan joined #perl6
04:07 cdg joined #perl6
04:12 cdg_ joined #perl6
04:22 mcmillhj joined #perl6
04:28 rindolf joined #perl6
04:33 MilkmanDan joined #perl6
04:39 atta joined #perl6
04:40 luis joined #perl6
04:52 cdg joined #perl6
04:53 kaare__ joined #perl6
05:05 ugexe `zef --sha1 locate <some sha1>`, `zef locate lib/My/Module.pm6`, and `zef locate My::Module` have been added. Each one tells you the local distribution its from, as well as the absolute path to whatever file represents it
05:08 ugexe https://gist.github.com/ugexe/d​a5ff890c43a3438f17f77c0e40ac0d7
05:25 cdg joined #perl6
05:41 cdg_ joined #perl6
05:44 zengargoyle joined #perl6
05:50 wamba joined #perl6
06:09 moritz ugexe++
06:15 pierrot joined #perl6
06:18 jjido joined #perl6
06:19 CIAvash joined #perl6
06:36 domidumont joined #perl6
06:38 woolfy left #perl6
06:39 jjido joined #perl6
06:41 domidumont joined #perl6
06:47 cpage_ joined #perl6
06:50 MilkmanDan joined #perl6
07:04 avuserow I have an issue with unsigned native types within classes, where it treats unsigned integers as their signed counterparts. I can report this bug, but I was wondering if there's a bunch of native type work in the future or if it was potentially fixable without tons of changes.
07:05 avuserow m: my uint8 $var = -1; say $var; class Foo {has uint8 $.bar is rw}; my $foo = Foo.new; $foo.bar = -1; say $foo.bar; # an example of this problem
07:05 camelia rakudo-moar 88ceab: OUTPUT«255␤-1␤»
07:05 avuserow (I would expect 255 for both)
07:06 firstdayonthejob joined #perl6
07:12 kyclark joined #perl6
07:13 avuserow I believe this to be the same as https://rt.perl.org/Public/​Bug/Display.html?id=127210 , even though I am seeing it without the repr change. (I would mention this on RT but have no clue how to reply to a bug there)
07:15 MilkmanDan joined #perl6
07:18 rindolf joined #perl6
07:18 lizmat joined #perl6
07:21 RabidGravy joined #perl6
07:43 labster joined #perl6
07:43 cdg joined #perl6
07:50 domidumont joined #perl6
07:53 leont joined #perl6
08:01 TheLemonMan joined #perl6
08:14 bjz joined #perl6
08:15 SourceBaby joined #perl6
08:15 dalek joined #perl6
08:18 jjido joined #perl6
08:25 spider-mario joined #perl6
08:25 jjido joined #perl6
08:26 Ven_ joined #perl6
08:43 BASIM joined #perl6
08:44 BASIM Wow relax on the party, people
08:45 BASIM So... anyone in here that can help me with printer drivers?
08:46 lizmat printer drivers ???
08:46 lizmat BASIM: how does that relate to perl 6?
08:47 BASIM well... I just thought you guys would be experts in computers and stuff, so maybe you could help me getting my printer working
08:51 TheLemonMan bulletproof logic, I must admit
09:06 kaare__ Yeah, honestly. Why don't you guys write a perl 6 printerdriver?
09:07 lizmat $*PRN   # voila
09:09 shadowpaste joined #perl6
09:21 MilkmanDan joined #perl6
09:33 wamba joined #perl6
09:45 Khisanth joined #perl6
09:46 jjido joined #perl6
09:54 Woodi kaare__: I think, what lizmat++ presented was just spec of it. now we need voluntiers and few years. anyway drivers are boring, you need to rewrite some hardware access api in software, you can't simply create things just out of air as with compiler code :>
09:58 leont joined #perl6
09:58 * nine hasn't managed to get his own printer working yet
09:59 lizmat nine: perhaps you could use Inline::Perl5  ?
10:00 El_Che a printer: device, often in combination with a scanner, that old people use to put books on
10:03 Woodi El_Che: I put many thing on my multi-function machine... and on monitor too... but I'm not old !!
10:07 ufobat joined #perl6
10:07 espadrine joined #perl6
10:09 MilkmanDan joined #perl6
10:11 cdg joined #perl6
10:15 pierre_ joined #perl6
10:37 Zoffix joined #perl6
10:37 baest it seems like a simple thing to do, but if a have a class with a DateTime attribute how do I assign a new DateTime to it beside the constructor?
10:37 Zoffix avuserow, that's a strange branch name. Was it an error that it got created? https://github.com/perl6/roast/tree/d8cf465
10:38 Zoffix baest, attributes are read-only by default. You'd need to `is rw` it
10:38 baest Zoffix: ahh, yes, I forgot that completely
10:38 baest thanks
10:40 MilkmanDan joined #perl6
10:41 Zoffix avuserow, it's equal to master, so I deleted it on the assumption it was just an error
10:41 Zoffix left #perl6
10:54 BenGoldberg joined #perl6
11:04 eliasr joined #perl6
11:06 leont joined #perl6
11:09 tbrowder need advice: i'm converting a cpan p5 module to p6. it has many functions that return a variable number of array elements depending on the number of inputs.  something like "my @arr = foo(@input)" where @input can be one to N elements. what would be a better way in p6 to structure such a function?
11:10 titsuki Hi #perl6. Is https://docs.perl6.org in the maintenance now ?
11:12 timotimo it works for me at the moment
11:12 titsuki hmm
11:14 titsuki I can't access the official document page both Opera and Edge browser now...
11:14 timotimo what kind of error do you get? can you try something like ping, traceroute, ...?
11:14 JimmyZ tbrowder: sub foo(*@input) { }
11:16 titsuki timotimo: ping returns no responces. https://gist.github.com/titsuki/​829ec20ccbeec01c0958d700247a5e6e
11:18 timotimo OK, with traceroute we could perhaps find out where on the way the packets get dropped
11:18 * JimmyZ can
11:18 timotimo but i'm not sure how we'd continue from there
11:18 masak greetings, #perl6
11:19 titsuki traceroute https://gist.github.com/titsuki/​9548facad88de1d63133baf2dbd7eee3
11:19 timotimo wow, you're really not getting far at all
11:19 tbrowder JimmyZ: thanks. i mean the io: would it be better to modify the input as read/write or no real difference in just returning a new array?
11:19 timotimo is your access point or internet router or modem dropping some kinds of ICMP traffic ... ?!?
11:19 masak japhb: yes, that's precisely the answer that modulo can't give ;)
11:20 timotimo titsuki: or maybe you have some kind of firewall software that's a bit too "protective"?
11:20 timotimo anyway, if you have a machine that you can ssh to, you can ssh -D 4321 and use localhost:4321 as a SOCKS proxy in your web browser
11:21 masak tbrowder: if you're not sure which way is better, may I suggest trying it two or more ways, to see which one comes out nicer?
11:21 timotimo it'll be a tiny bit slower, but it may get you through
11:21 timotimo m: my $foo = "hello"; $foo .= &say
11:21 camelia rakudo-moar 88ceab: OUTPUT«hello␤»
11:21 timotimo ^- neat!
11:21 titsuki timotime: I see. thanks !
11:22 timotimo tbrowder: if your function returns an array, the user can use .= &yourfunc to replace the old array with the new, otherwise use $foo.&yourfunc to leave the original intact
11:22 timotimo tbrowder: if you "is rw" and modify the existing one, there is no such choice
11:24 timotimo tbrowder: and, what's worse, you can't yourfunc(1, 2, 3, 4) or yourfunc((1, 2, 3, 4)) if it's "is rw", because then there's no way to get the values out, it'll probably even refuse to call because it's not an rw thing you're passing in
11:24 tbrowder masak: yes, i should experiment with a small example
11:24 titsuki timotimo: I did nothing, but I can view the official document page now...
11:24 timotimo OK, so just a little network hiccup
11:24 timotimo happens all the time
11:24 * timotimo is AFKBBL for a bit
11:24 tbrowder timotime: that's p6ish, thanks!
11:25 timotimo why do people keep calling me that? :D
11:25 darutoko joined #perl6
11:25 timotimo it's timotime, c'mon grab your friends, we'll go to very distant lands~
11:28 * masak .oO( "friends" and "lands" don't rhyme )
11:28 profan poet's license
11:28 masak Poet's License 2.0
11:29 profan :D
11:29 timotimo Artsy Fartsy License 2.0
11:37 pierre_ joined #perl6
11:41 pmurias joined #perl6
11:46 pmurias_ joined #perl6
11:49 rindolf joined #perl6
11:49 Cabanossi joined #perl6
12:10 tbrowder timotimo: sorry bout typo, but i think that's the first time i've mangled yr name
12:12 timotimo titsuki just spelled it the very same a few lines earlier
12:12 timotimo that's what made me wonder ;)
12:13 tbrowder no guarantee it won't happen again, though
12:13 timotimo ;)
12:14 timotimo i usually just type someone's first few letters and press tab
12:14 masak I just call every one "Tab". easier that way.
12:14 masak everyone*
12:15 tbrowder i haven't figured out how to tab on ipad with my irc client yet
12:17 nine I mapped the volume down button on my phone to tab in VX ConnectBot
12:17 tbrowder opinions on best irc client for ipad and pc browser most welcome; i'm using irccloud at the moment
12:20 maybekoo2 joined #perl6
12:21 lizmat I use Colloquy on my iPhone: it lists suggestions of logged in people to select from
12:21 lizmat so "timo" would pop up like "timotimo: " for me
12:23 timotimo i do pop up all the time don't i :)
12:24 lizmat :-)
12:33 dalek Inline-Perl5: 0157367 | (Thomas Klausner)++ | README.md:
12:33 dalek Inline-Perl5: document how to import functions from Perl5 modules
12:33 dalek Inline-Perl5: review: https://github.com/niner/Inl​ine-Perl5/commit/01573672e0
12:33 dalek Inline-Perl5: 3d37361 | niner++ | README.md:
12:33 dalek Inline-Perl5: Merge pull request #74 from domm/master
12:33 dalek Inline-Perl5:
12:33 dalek Inline-Perl5: document how to import functions from Perl5 modules
12:33 dalek Inline-Perl5: review: https://github.com/niner/Inl​ine-Perl5/commit/3d373613b4
12:35 stmuk nine: ping?
12:35 El_Che tbrowder: serverbot to remote ssh + screen
12:41 rindolf joined #perl6
12:42 nine stmuk: pong
12:43 stmuk I've written some curli using code which may horrify you :)
12:44 stmuk if there is any saner way of doing uninstall than https://github.com/stmuk/panda/commit/5​e1515fecab3c73bb03ce4a7238a79def4dc1031 I'd be grateful for advice
12:52 nine stmuk: https://gist.github.com/niner/b39258032f70c083e57b
12:54 stmuk ah that looks better
12:56 nine stmuk: for the next life, I can only recommend implementing alls that Repository stuff yourself. It makes such tasks a lot easier :)
12:57 stmuk maybe the gist examples (which are hard to find) might be better in a perl6/toolchain-misc-examples repo?
12:58 stmuk or somewhere else with better visibility?
12:59 stmuk inline pod6 in the rakudo source maybe
12:59 nine feel free to put them wherever you think they will do good :)
13:01 lizmat perhaps we should include it in core ?
13:01 stmuk I can see 3 examples on https://gist.github.com/niner?page=2 of potential use .. are there more?
13:03 nine An updated install-dist.pl is alrady included with rakudo's source
13:03 nine (to become raccoon)
13:03 nine module-source.pl is outdated
13:04 poohman joined #perl6
13:05 poohman hello,  a newbie to perl6 and perl here
13:05 nine Hi poohman
13:06 lizmat poohman  o/
13:06 poohman hello nine, lizmat - need some help regarding grammars and parse outputs
13:09 lizmat poohman: although I'm a relative grammar noob, I'll try to give an answer   :-)
13:11 poohman thanks, I created a grammar and parsed a file successfully using it - now when I try to output the parsed data using say it prints out the token name along with the text
13:11 poohman is it possible to print only the text just like we do with normal variables
13:11 stmuk maybe the curli docs should just go in the p6doc repo
13:12 timotimo poohman: you can get the matched text by using .Str on the result
13:12 timotimo the result of a match is a so called "Match Object", it keeps a lot of structure for you if you need it
13:13 poohman thanks a lot - let me check it out and get back to you
13:13 timotimo you can access it like a list and like a hash; if you have a token named "foobar" directly inside your match object, you can get the value through $my_result<foobar>; what exact things you have available can be figured out with $my_result.keys, and $my_result<foobar>.keys if foobar is a key inside $my_result will give you "the next step"
13:13 timotimo i have to go AFK for a bit now
13:13 timotimo good luck and have fun! :)
13:13 stmuk or maybe uninstall-dist.pl should be a roast test?
13:14 TimToady a shorter way to coerce to string is the ~ prefix
13:17 poohman joined #perl6
13:25 baest is http://pastebin.com/gjVz6kCw a bug? That is it seems to disregard pod before empty MAIN method
13:27 baest and then pushes the description down
13:32 CIAvash baest: You probably want #| not #=
13:33 TimToady what CIAvash++ said
13:33 TimToady think of = as like assignment, it wants something on the left
13:33 TimToady and #| wants to have a paragraph of things with a fake | for the left margin
13:34 TimToady well, a | for the fake left margin :)
13:34 baest CIAvash: ok cool thanks. I was looking at https://perl6advent.wordpress.com/2​014/12/22/the-cool-subset-of-main/
13:34 TimToady or the one with horizontal lines goes to something on the same line, and the one with the vertical line goes to something below
13:37 baest CIAvash++, TimToady++
13:39 MilkmanDan joined #perl6
13:42 domidumont joined #perl6
13:50 elohmrow joined #perl6
13:50 MilkmanDan joined #perl6
13:55 pierre_ joined #perl6
13:55 rba_ joined #perl6
13:58 domidumont joined #perl6
14:07 AndyBotwin joined #perl6
14:22 domidumont joined #perl6
14:26 espadrine joined #perl6
14:28 aries_liuxueyang joined #perl6
14:30 El_Che lizmat: I have something I don't know if it's Weekly news material: https://github.com/nxadm/rakudo-pkg . It has not end users to mind but release managers/packagers: create native rakudo packages (deb/rpm) with docker. It needs people to add more supported OS'es
14:30 El_Che maybe a should write a small blog post
14:30 lizmat sounds like a plan  :-)
14:33 El_Che so far it creates ubuntu (amd64 and i386) debs and centos 7 (amd64) rpms, the OSes I use on a regular base. I imagine some people use other stuff. What does TimToady use? Mint? ;)
14:34 El_Che it's all nine's fault actually :)
14:34 Ven_ joined #perl6
14:34 lizmat yes  :-)
14:36 poohman joined #perl6
14:38 elohmrow El_Che: cool!
14:38 yoleaux 31 Aug 2016 20:00Z <bartolin> elohmrow: the UnwindException you get trying to install a module with rakudo-j is one of the bigger known bugs with the JVM backend: https://rt.perl.org/Ticket/Display.html?id=124279
14:38 yoleaux 31 Aug 2016 20:05Z <bartolin> elohmrow: there are a lot of skipped tests in roast due to this error. you can grep for UnwindException in roast to find tests with this failure mode
14:39 elohmrow yoleaux: thanks for the info - it did not stop me in the end doing what i needed to do for my talk, but ...
14:39 TheLemonMan El_Che, why is ruby needed ?
14:40 El_Che TheLemonMan: the pkgs are created with fpm
14:40 El_Che but that's in the container
14:40 El_Che the pkgs have no dependencies
14:40 TheLemonMan oh, I see
14:40 El_Che moarvm and nqp are in the same pkg as the included 3rd party libs
14:41 El_Che idea is "run this command and create pkgs" without installing stuff on your pc
14:41 El_Che everything is in the container
14:41 elohmrow ++
14:42 El_Che so as long you run a platform supported by docker you can create all the pkgs for whatever distro is included in my repo
14:43 El_Che the contao
14:43 El_Che the imgs are on the docker hub
14:43 El_Che so no extra downloads
14:43 El_Che just the docker cmd or beter, my wrapper script
14:45 AlexDaniel joined #perl6
14:45 El_Che in principle osx pkg creation is also supported, but I have no idea if the pkg fotmat is popular (I see img mostly)
14:46 El_Che but rakudo already supplies mac and win binary pkgs so tht problem has been taken care off
14:47 khw joined #perl6
14:52 cognominal joined #perl6
14:53 TheLemonMan El_Che, the readme states the dockerfiles are in bin but you've put em in docker/
14:54 kaare__ joined #perl6
15:00 El_Che thx. I'll fix it at home
15:06 El_Che lizmat: what did you do with b d foy? his first perl6 module?!?
15:06 lizmat :-)
15:07 El_Che that was.. unexpected
15:12 lizmat APW shutting down&
15:13 * stmuk drinks tea from his Cluj mug
15:14 skids joined #perl6
15:15 Ven_ joined #perl6
15:17 poohman_ joined #perl6
15:19 poohman joined #perl6
15:26 canopus joined #perl6
15:42 poohman_ joined #perl6
15:42 setty1 joined #perl6
15:42 poohman joined #perl6
15:52 buggable joined #perl6
15:54 zacts joined #perl6
16:11 woolfy joined #perl6
16:12 lizmat joined #perl6
16:18 poohman_ joined #perl6
16:20 poohman__ joined #perl6
16:29 lizmat afk again&
16:50 canopus joined #perl6
17:01 mcmillhj joined #perl6
17:16 domm nine: wir sind im Himal.
17:24 Unavowed Does perl6 have an equivalent of python's "with" keyword or RAII in C++ (nicer than remembering to use LEAVE)?
17:26 arnsholt There's no built-in syntax, but it's pretty easy to write a normal function that does the job
17:28 Unavowed Something like sub with($obj, &code) { &code($obj); $obj.destroy } with(open("file"), -> $f { $asdf = $f.read() }) ?
17:29 arnsholt m: class Considerable { method cleanup { say "clean!" } }; sub considering(Considerable $obj, &block) { &block($obj); LEAVE { $obj.cleanup } }; considering Considerable.new, -> $c { say $c } # Like so, more or less
17:29 camelia rakudo-moar 4d5abd: OUTPUT«Considerable.new␤clean!␤»
17:30 arnsholt Yeah, that's pretty much it. Just remember to use LEAVE, so clean-up gets called on abnormal exits too
17:30 Unavowed Right, thanks
17:31 cdg joined #perl6
17:35 mcmillhj joined #perl6
17:45 mcmillhj joined #perl6
17:48 kurahaupo joined #perl6
17:52 TimToady or you can use 'will leave { .cleanup }' directly on a declaration
17:52 TimToady though not on a parameter (yet)
17:56 Unavowed That's a bit nicer, good to know, thanks
17:56 mcmillhj joined #perl6
18:03 BenGoldberg joined #perl6
18:05 stmuk
18:09 poohman__ hello all, Thanks Timotimo, Str. helped
18:10 poohman__ i have another question - there is a difference in the parsing if I use the Grammar: Debugger and when I dont use it
18:10 poohman__ is this normal
18:10 poohman__ ?
18:12 TimToady are bugs normal? :)
18:13 mcmillhj joined #perl6
18:14 maybekoo2 joined #perl6
18:14 zacts joined #perl6
18:28 mcmillhj joined #perl6
18:34 poohman__ :) newbie alert
18:35 poohman__ am a newbie here, so please bear with me
18:36 poohman__ and by the way is Timtoady, the Timtoady??
18:37 TimToady so I've been told :)
18:38 poohman__ wow, screenshot at once - look who Im chatting with :)
18:40 poohman__ can I do something about it? the problem I mean
18:40 masak no, you can't do anything about chatting with TimToady :P
18:41 TimToady .oO(chat happens)
18:42 El_Che TimToady is famous. He's the guy who invented the hooverboard it seems
18:42 TimToady I vaguely recall there's an existing bug report on Grammar::Debugger bitrotting since last year
18:51 poohman__ read the bug report - was too deep for me - but will try changing my h* to s* and see if it helps
18:58 Ben_Goldberg joined #perl6
19:01 mcmillhj joined #perl6
19:12 masak poohman__: the short answer is "yes, there are known cases where switching on Grammar::Debugger changes the outcome of the parse"
19:13 masak the details are deeper than that, but it's still a bug no matter how you look at it
19:17 mcmillhj joined #perl6
19:19 Ben_Goldberg joined #perl6
19:20 poohman__ ok, will have to try to figure it out without the debugger as it work with it, thanks for the info
19:21 cog_ joined #perl6
19:21 exodist_ joined #perl6
19:22 masak I was debugging a misparse the other day. tried Grammar::Debugger -- but it obviously screwed up the observables, so I found the bug without it.
19:22 BenGoldberg joined #perl6
19:22 masak (it made the baseline passing input fail)
19:25 avuserow .tell Zoffix I had no intention of doing anything with roast. not sure how that could've happened. thanks for cleaning up :)
19:25 yoleaux avuserow: I'll pass your message to Zoffix.
19:29 BenGoldberg joined #perl6
19:31 RabidGravy joined #perl6
19:33 TEttinger joined #perl6
19:35 domidumont joined #perl6
19:35 labster joined #perl6
19:40 canopus joined #perl6
19:49 cyphase joined #perl6
19:49 mcmillhj joined #perl6
19:57 zacts joined #perl6
20:17 mcmillhj joined #perl6
20:28 mcmillhj joined #perl6
20:28 tushar joined #perl6
20:29 tushar Can someone point me to a documentation or a good tutorial about POD? I am having trouble finding one. Thanks
20:31 masak tushar: you mean Pod for Perl 6, yes?
20:31 masak not POD for Perl 5?
20:31 tushar Yes Perl 6 POD
20:34 tushar I tried to look into Perl 6 documentation website but it only has information about POD for tables
20:34 DrForr I ended up reading the synopses - look on perl6.org homepage for the link.
20:36 bbkr joined #perl6
20:37 tushar @DrForr - Thanks
20:41 masak yes, that's what I would suggest, too.
20:43 mcmillhj joined #perl6
20:48 petercommand joined #perl6
20:49 girafe joined #perl6
20:50 zacts joined #perl6
20:51 ufobat joined #perl6
20:57 mcmillhj joined #perl6
20:58 TheLemonMan joined #perl6
21:12 bitmap joined #perl6
21:15 DrForr Do multiple 'unit class Foo;' declarations cause multiple unit scopes in the same file? Or are they nested? I'm guessing the former.
21:16 moritz I thought they were disallowed
21:16 DrForr NM, multiple 'unit class' is disallowed.
21:18 DrForr Just deciding how it should look in terms of Perl6::Tidy. Which by now is more Perl6::P6PI or something like that.
21:19 DrForr I think the simplest way is to treat it as a block with no delimiters.
21:21 Praise joined #perl6
21:23 AlexDaniel is there any reason to use a “try” block if you are providing your own CATCH?
21:24 moritz no
21:24 * moritz *finally* installed a cron job to renew the perl6.org certificates automatically
21:24 * AlexDaniel gets rid of one level of indentation
21:24 AlexDaniel moritz: oh right, I should do that one day too…
21:25 moritz clever of the letsencrypt folks to only allow certificates with 90 days validity; that creates extra incentives to automate it
21:26 moritz and their current version of their client has a --nointeractive option
21:26 AlexDaniel yes
21:26 moritz (and lots of third-party clients are meant for non-interactive runs as well)
21:27 mcmillhj joined #perl6
21:32 cpage_ joined #perl6
21:49 ugexe joined #perl6
21:49 BenGoldberg joined #perl6
21:52 Ben_Goldberg joined #perl6
21:58 Ben_Goldberg joined #perl6
22:04 _slade_ joined #perl6
22:15 bitmap joined #perl6
22:17 khw joined #perl6
22:24 ugexe joined #perl6
22:26 MasterDuke joined #perl6
22:30 rightfold joined #perl6
22:31 masak 'night, #perl6
22:32 ugexe joined #perl6
22:32 tushar where do Perl 6 modules get installed in mac? I have installed rakudo star as .dmg and using panda to install modules?
22:33 cyphase joined #perl6
22:39 lambd0x joined #perl6
22:39 lambd0x Hi everyone!
22:40 rightfold hi
22:40 lambd0x rightfold: :)
22:42 lambd0x rightfold: Man, I think my code's msg is not ok :S ... can you take a look at it, plz? http://bpaste.net/show/1e1e5f4e05cc
22:43 lambd0x code: http://bpaste.net/show/961563fa5862
22:50 bitmap joined #perl6
22:53 zacts joined #perl6
22:55 zacts joined #perl6
22:58 lambd0x is this normal?
23:03 bitmap joined #perl6
23:04 timotimo lambd0x: when you do ,= you put the list itself as its first element, and the second element is the RHS of the ,=
23:05 timotimo that's quite probably not what you meant to do :)
23:05 timotimo m: my @foo = 1; @foo ,= 2, 3, 4, 5; say @foo.perl
23:05 camelia rakudo-moar aceb4a: OUTPUT«(my \Array_36012208 = [Array_36012208, (2, 3, 4, 5)])␤»
23:05 timotimo you see how it gives the exact code to restore this exact state?
23:06 timotimo m: my @foo = 1; @foo ,= 2, 3, 4, 5; say @foo === @foo[0]; say @foo === @foo[0][0]
23:06 camelia rakudo-moar aceb4a: OUTPUT«True␤True␤»
23:10 cdg joined #perl6
23:12 ugexe joined #perl6
23:13 cdg joined #perl6
23:17 MilkmanDan joined #perl6
23:18 lambd0x timotimo: Yeah it wasn't really. I'm trying to insert a number in a index if that index is empty or alonside it if not. I think it's easier to do with hashes but I think it's achievable too with arrays :P
23:23 lambd0x timotimo: ah actually I just noticed it was way easier than what I thought :S
23:23 lambd0x m: my @a; @a[0].push(2); @a[0].push(3); @a[1].push(4); say @a;
23:23 camelia rakudo-moar aceb4a: OUTPUT«[[2 3] [4]]␤»
23:25 timotimo you probably want to use splice if you want it to go in the middle
23:25 timotimo pushing into an empty array element will auto-vivify an array there for you
23:25 timotimo similar to how this works:
23:25 timotimo m: my @foo; @foo[3][1][0][5] = "hello there!"; say @foo.perl
23:25 camelia rakudo-moar aceb4a: OUTPUT«[Any, Any, Any, [Any, [[Any, Any, Any, Any, Any, "hello there!"],]]]␤»
23:25 pierre_ joined #perl6
23:28 lambd0x timotimo: can you give me an example of splice, pls?
23:30 timotimo yeah
23:31 timotimo m: my @foo = 0, 1, 2, 3, 4; @foo.splice(2, 0, 9, 9, 9); say @foo.perl
23:31 camelia rakudo-moar aceb4a: OUTPUT«[0, 1, 9, 9, 9, 2, 3, 4]␤»
23:31 timotimo this means "at position two, delete 0 elements, then put 9, 9, and 9 in that place
23:32 lambd0x timotimo: It's what I want, indeed. thank you :)
23:32 timotimo YW
23:40 bitmap joined #perl6
23:43 lambd0x by the way, is known if '^' for lower boundaries of ranges such as for $i^..^4 { ... } is buggy? Because I've issued a segmentation error at moar/vm and later found out that the code would work as expected if that instruction were replaced by ($i+1)..^4 { ... } no error at all would happen.
23:44 lambd0x https://github.com/MoarVM/MoarVM/issues/400
23:51 TimToady what does +$i ^..^ 4 do/
23:51 TimToady ?
23:51 TimToady perhaps $i is not numeric?
23:53 lambd0x timotimo: The error happens with a simple bubblesort alg. For inputs sizing up to 5000 els it will start giving problem, otherwise it won't. And changing the $i^..^ to ($i+1)..^ the problem doesn't appears.
23:54 lambd0x TimToady: I think it's interpreted as num
23:57 bbkr_ joined #perl6
23:58 ugexe joined #perl6

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

Perl 6 | Reference Documentation | Rakudo