Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-07-12

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:08 Cabanossi joined #perl6
00:13 nicq20-mobile joined #perl6
00:15 nicq20-mobile MasterDuke: Yeah that is pretty nice, but it was added after the most recent release. So I don't have access to it yet. :/
00:16 mcmillhj joined #perl6
00:17 nicq20-mobile MasterDuke: https://irclog.perlgeek.de/perl6/2017-07-11#i_14857030
00:17 BenGoldberg joined #perl6
00:21 pierre__ joined #perl6
00:22 MasterDuke nicq20-mobile: ah, well the next release is just a couple days away
00:23 nicq20-mobile Woo!
00:25 perlawhirl .
00:25 yoleaux 11 Jul 2017 19:11Z <lizmat> perlawhirl: should this say True or False in your book: say <a b c>.Mix ⊄ <a b b c d>.Mix
00:26 ugexe re: $*THREAD.id - I dont know how evans was creating his threads, but if he was using `start { }` then its totally expectable to get the same $*THREAD.id since that only schedules code to be run
00:26 mcmillhj joined #perl6
00:27 perlawhirl .tell lizmat I'm not sure I'm an authority :D The docs say a Mix is like a Bag, so my opinion is it should behave similar to bags, ie: False.
00:27 yoleaux perlawhirl: I'll pass your message to lizmat.
00:27 timotimo ugexe: it was about await shuffling tasks between threads
00:33 |oLa| joined #perl6
00:34 ugexe ah i see
00:38 Cabanossi joined #perl6
00:39 Geth ¦ doc: 1ba249d7ab | (Will "Coke" Coleda)++ | xt/code.pws
00:39 Geth ¦ doc: track new word
00:39 Geth ¦ doc: review: https://github.com/perl6/doc/commit/1ba249d7ab
00:44 mcmillhj joined #perl6
00:47 lookatme morning
00:51 [particle]1 joined #perl6
00:57 cdg joined #perl6
00:59 mcmillhj joined #perl6
00:59 astj joined #perl6
01:00 travis-ci joined #perl6
01:00 travis-ci Doc build failed. Will "Coke" Coleda 'track new word'
01:00 travis-ci https://travis-ci.org/perl6/doc/builds/252629375 https://github.com/perl6/doc/compare/580bb6a9a8c1...1ba249d7abd3
01:00 travis-ci left #perl6
01:00 buggable [travis build above] ☠ Did not recognize some failures. Check results manually.
01:10 mcmillhj joined #perl6
01:11 Actualeyes left #perl6
01:26 mcmillhj joined #perl6
01:48 ilbot3 joined #perl6
01:48 Topic for #perl6 is now »ö« Welcome to Perl 6! | https://perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:,  or /msg camelia p6: ... | irclog: http://irc.perl6.org or http://colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
01:50 Geth ¦ doc: e66006021d | (Will "Coke" Coleda)++ | 19 files
01:50 Geth ¦ doc: Revert "Replace occurances of =head2 sub with routine for consistency"
01:50 Geth ¦ doc:
01:50 Geth ¦ doc: This reverts commit 0b005062fb63f7b62f79f318a1bfe450c3d49010.
01:50 Geth ¦ doc:
01:50 Geth ¦ doc: This commit breaks the build, causing the error:
01:50 Geth ¦ doc:
01:50 Geth ¦ doc: > Invocant of method 'wordcase'
01:50 Geth ¦ doc: > must be an object instance of type 'Str', not a type object
01:50 Geth ¦ doc: > of type 'Str'.  Did you forget a '.new'?'
01:51 Geth ¦ doc: review: https://github.com/perl6/doc/commit/e66006021d
01:55 mcmillhj joined #perl6
02:02 astj joined #perl6
02:03 itaylor57 joined #perl6
02:08 Cabanossi joined #perl6
02:09 noganex_ joined #perl6
02:13 tony-o nicq20: i am, kinda
02:13 tony-o i am about to go eat, what's up?
02:13 tony-o actually i'm late to go eat, if you PM i'll ping you when i'm back nicq20
02:14 bpmedley joined #perl6
02:17 Actualeyes joined #perl6
02:18 ChoHag joined #perl6
02:20 colomon joined #perl6
02:23 skids joined #perl6
02:24 mcmillhj joined #perl6
02:46 pierre__ joined #perl6
02:53 mcmillhj joined #perl6
03:08 Cabanossi joined #perl6
03:10 mcmillhj joined #perl6
03:16 vendethiel joined #perl6
03:23 mcmillhj joined #perl6
03:29 pierre__ joined #perl6
03:29 pierre__ joined #perl6
03:30 cyphase joined #perl6
03:38 Cabanossi joined #perl6
03:43 AlexDaniel joined #perl6
03:46 labster joined #perl6
03:48 khw joined #perl6
03:50 aindilis joined #perl6
03:52 Cabanossi joined #perl6
03:59 mcmillhj joined #perl6
04:09 mcmillhj joined #perl6
04:16 Actualeyes left #perl6
04:22 mcmillhj joined #perl6
04:23 pierre__ joined #perl6
04:34 mcmillhj joined #perl6
04:37 PerlJam joined #perl6
04:38 PerlJam joined #perl6
04:47 wamba joined #perl6
04:51 mcmillhj joined #perl6
04:52 mr-foobar joined #perl6
04:57 Khisanth joined #perl6
05:05 DBeepBeep joined #perl6
05:07 Cabanossi joined #perl6
05:11 Actualeyes joined #perl6
05:23 mr-foobar joined #perl6
05:24 mcmillhj joined #perl6
05:37 Cabanossi joined #perl6
05:42 leont joined #perl6
05:47 cosimo joined #perl6
05:48 lookatme joined #perl6
05:53 xtreak joined #perl6
05:54 mr-foobar joined #perl6
05:59 mcmillhj joined #perl6
06:00 pierre__ joined #perl6
06:04 xtreak_ joined #perl6
06:07 Cabanossi joined #perl6
06:16 wamba joined #perl6
06:19 lookatme joined #perl6
06:25 mr-foobar joined #perl6
06:26 andrzejku joined #perl6
06:26 wigner joined #perl6
06:26 mcmillhj joined #perl6
06:33 abraxxa joined #perl6
06:38 mcmillhj joined #perl6
06:38 xtreak joined #perl6
06:45 xtreak joined #perl6
06:49 mcmillhj joined #perl6
06:49 pierre__ joined #perl6
06:52 Cabanossi joined #perl6
06:53 domidumont joined #perl6
06:54 mr-foobar joined #perl6
06:55 domidumont joined #perl6
07:00 timotimo i can't reproduce $*THREAD not updating when a task gets shuffled around between workers
07:00 lowbro joined #perl6
07:00 lowbro joined #perl6
07:07 |oLa| joined #perl6
07:10 domidumont joined #perl6
07:12 sjn joined #perl6
07:12 timotimo oh, i think i know what i did wrong
07:16 mcmillhj joined #perl6
07:24 mr-foobar joined #perl6
07:35 leah2 joined #perl6
07:36 mcmillhj joined #perl6
07:47 zakharyas joined #perl6
07:54 ufobat joined #perl6
07:54 mr-foobar joined #perl6
07:57 ufobat ola :D
08:23 dakkar joined #perl6
08:23 jonas1 joined #perl6
08:23 mr-foobar joined #perl6
08:32 darutoko joined #perl6
08:32 rindolf joined #perl6
08:33 mcmillhj joined #perl6
08:34 g0d355__ joined #perl6
08:36 andrzejku joined #perl6
08:37 Cabanossi joined #perl6
08:47 mcmillhj joined #perl6
08:56 mr-foobar joined #perl6
09:02 xtreak joined #perl6
09:04 mcmillhj joined #perl6
09:08 pmurias joined #perl6
09:09 Actualeyes left #perl6
09:10 robertle joined #perl6
09:11 sjn joined #perl6
09:12 xtreak joined #perl6
09:26 flw joined #perl6
09:29 mr-foobar joined #perl6
09:29 willis_ joined #perl6
09:33 xtreak joined #perl6
09:34 astj joined #perl6
09:34 sjn joined #perl6
09:36 xtreak joined #perl6
09:38 domidumont joined #perl6
09:50 tyil[m] joined #perl6
09:56 domidumont1 joined #perl6
10:04 xtreak joined #perl6
10:05 xtreak joined #perl6
10:18 astj joined #perl6
10:18 astj joined #perl6
10:22 mr-foobar joined #perl6
10:38 eliasr joined #perl6
10:40 Zoffix "we do have something that makes sure dynamic variables from where you called start will stick around for the inside of the start block"
10:41 Zoffix It's the $*PROMISE dynvar whose $!dynamic_context is set to the context of pre-cue code. Recently-ish (~2017.06) there was a bug where .then wasn't setting it, though I took care for look for all other cases in Promise.pm that failed to set it and I think they all do now.
10:42 Zoffix And &DYNAMIC looks to see if there's a $*PROMISE dynvar if get getlexdyn fails (and lastly looks in PROCESS::)
10:44 wamba joined #perl6
10:46 timotimo but does the dynamic_context of the $*PROMISE not keep the old $*THREAD alive?
10:48 Zoffix I see a $*THREAD made when Thread gets created
10:48 Zoffix I've not seen the code that shows it not being updated or whatever...
10:50 Zoffix perhaps OP assumed each `start` would have a unique thread.id
10:52 timotimo i wrote some code that prints the $*THREAD.id as well as the $_ for the task created
10:52 timotimo and it gave me lots of different thread id -> $_ combinations
10:52 Zoffix What's $
10:52 Zoffix ?
10:52 timotimo just from the for loop i used to create 20 tasks
10:53 Zoffix There's only 16 threads, so yeah, the ids would repeat
10:53 gregf_ joined #perl6
10:54 broquaint joined #perl6
10:54 timotimo well, i also do an await Promise.in(0.1.rand) between printing them
10:54 mr-foobar joined #perl6
10:54 timotimo that's the crucial part of the whole thing
10:54 timotimo to await in the middle
10:55 Zoffix Ah, I see. it gets resumed on another thread?
10:55 * Zoffix & # work
11:03 skids joined #perl6
11:06 W4RL0RD joined #perl6
11:13 astj joined #perl6
11:14 od1 left #perl6
11:24 mr-foobar joined #perl6
11:27 xtreak_ joined #perl6
11:29 araraloren joined #perl6
11:36 araraloren evening
11:43 lizmat araraloren o/
11:46 AlexDaniel joined #perl6
11:50 araraloren lizmat, ^_^
11:51 mr-fooba_ joined #perl6
11:52 Cabanossi joined #perl6
12:10 andrzejku araraloren, helo :)
12:13 domidumont joined #perl6
12:15 [Coke] seen on FB: ()() is not a palindrome, but )(() is.
12:15 yoleaux 11:17Z <dogbert17> [Coke]: htmlify works again, many thanks for fixing
12:17 cpage_ joined #perl6
12:18 Juerd [Coke]: The truth hurts.
12:22 robertle_ joined #perl6
12:23 domidumont1 joined #perl6
12:27 Ven joined #perl6
12:27 domidumont joined #perl6
12:28 araraloren andrzejku, hi
12:28 araraloren Game time
12:30 lowbro joined #perl6
12:30 lowbro joined #perl6
12:30 andrzejku gaym time ;D
12:31 go|dfish joined #perl6
12:34 ufobat_ joined #perl6
12:34 xtreak joined #perl6
12:37 imcsk8 joined #perl6
12:40 cschwenz1 joined #perl6
12:40 kipd_ joined #perl6
12:40 pierrot_ joined #perl6
12:40 jhill_ joined #perl6
12:40 r3m_ joined #perl6
12:40 BuildTheRobots_ joined #perl6
12:40 timeless_ joined #perl6
12:41 rightfold_ joined #perl6
12:42 nemo left #perl6
12:45 cosimo joined #perl6
12:45 gdonald joined #perl6
12:48 Morfent joined #perl6
12:49 Morfent quick question, is does perl6 support freebsd? rakudo and pugs ports have been deleted for years now, and parrot apparently no longer targets perl6
12:50 Morfent *does perl6 support freebsd
12:51 Zoffix rakudo is the lastest game in town. Whether it supports freebsd is really a question of whether there's any volunteers willing to ensure that support. I think someone was trying that out not so long ago; unsure what the end result was
12:53 llfourn I'm pretty sure you can build it on fbsd
12:53 Zoffix You could try compiling from sauce: git clone https://github.com/rakudo/rakudo/ ~/.perl6; cd ~/.perl6; perl Configure.pl --gen-moar --gen-nqp --backends=moar; make; make test; make install;
12:53 llfourn (not sure if there's a port though)
12:53 Zoffix and adding ~/.perl6/install/bin to PATH and runnign with perl6
12:54 pierre__ joined #perl6
12:55 Morfent there is no port
12:55 Morfent i'll try that though
12:55 Morfent thanks
12:58 mcmillhj joined #perl6
12:58 perlpilot Morfent: you might want to use rakudobrew if you want something that takes care of the details for you.
12:59 Zoffix *sigh*
12:59 awwaiid joined #perl6
12:59 domidumont1 joined #perl6
13:00 Zoffix You don't want rakudobrew, unless you plan to use multiple versions of rakudo at the same time.
13:01 Zoffix And it requires doing extra stuff like rehashing after installing binaries that you normally don't need to do
13:01 stmuk_ perl6 worked fine on FreeBSD last time I tried it
13:01 Zoffix left #perl6
13:04 nicq20 Comments are considered part of whitespace right?
13:04 llfourn by the compiler? yes.
13:05 lizmat fg
13:07 nicq20 Well that explains why my stuff is not working then.
13:08 Morfent i don't think rakudobrew's something i entirely need
13:08 llfourn nicq20: what kind of stuff is that?
13:09 nicq20 I'm trying to emulate the P5 module Smart::Comments. The idea is that comments beginning with >3 '#' will be displayed.
13:10 llfourn ah, for that you'll need to modify the compiler with a slang. Is that what you're doing?
13:10 broquaint joined #perl6
13:11 nicq20 llfourn: Yeah, this is what I have so far: https://github.com/nicqrocks/perl6-smart-comments
13:13 llfourn hmm what you did looks like it should work :\
13:13 nicq20 llfourn: By calling the regex 'comment:sym<smc>' it gets called, but the QAST returned is never executed. If I call it 'statement_control:sym<smc>' then it never gets called due to the compiler seeing it as whitespace.
13:13 llfourn ahhhh
13:14 llfourn yep that makes sense
13:14 nicq20 Really not sure how to get aroun that. :/
13:14 nicq20 *around
13:15 llfourn well...I'm pretty sure there's a $*CURPAD or something variable
13:15 llfourn you could append your QAST into it perhaps
13:15 llfourn though YMMV
13:16 nicq20 What is that?
13:16 llfourn it's the current QAST::Block object ie lexical scope
13:16 llfourn the things that are in it will be executed. Each statement appends to one.
13:16 nicq20 What about YMMV?
13:17 llfourn your milage may vary
13:17 llfourn # YMMV is a thing right?
13:18 colomon joined #perl6
13:19 moritz it is
13:20 llfourn ah nice.
13:24 nicq20 Are there any docs/examples on how to use it? I can't seem to find it in Rakudo or NQP.
13:24 llfourn definetly not
13:25 llfourn but you can .push onto it and I think that will work
13:25 llfourn maybe if it doesn't try wrapping your QAST in a QAST::Stmts
13:26 llfourn so $*CURPAD.push(QAST::Op.new(...)) # or whatever
13:26 nicq20 Ah, ok.
13:26 llfourn though I've never tried this and it might be a terrible idea
13:29 nicq20 Hmm... Looks like it does not have a `.push` method.
13:29 nicq20 "of type NQPMu"
13:29 llfourn $*CURPAD is NQPMu?
13:31 llfourn nicq20: you might try looking at Actions.nqp
13:31 llfourn there are some places where $*CURPAD/QAST::Block are used
13:31 nicq20 I am, but there are examples of using `.push` with $*CURPAD.
13:32 nicq20 https://github.com/rakudo/rakudo/blob/nom/src/Perl6/Actions.nqp#L2911
13:35 Geth_ ¦ marketing: 380b76f4c3 | (Zoffix Znet)++ | 23 files
13:35 Geth_ ¦ marketing: Add TimToady Poster
13:35 Geth_ ¦ marketing:
13:35 Geth_ ¦ marketing: "You have more than one way to say it...
13:35 Geth_ ¦ marketing:   Have more than one way to do it."
13:35 Geth_ ¦ marketing: review: https://github.com/perl6/marketing/commit/380b76f4c3
13:36 AlexDaniel that's pretty cool
13:40 evanm joined #perl6
13:46 evanm Hi, I would like to contribute information to the bug tracker, but I can't seem to find a way.
13:46 AlexDaniel huggable: rakudobug
13:46 huggable AlexDaniel, Report bugs by emailing to <rakudobug@perl.org>
13:47 AlexDaniel evanm: just send an email to this address ↑, that's if you want to file a bug report
13:47 evanm I would like to comment on an existing bug.
13:47 AlexDaniel ah-ha, then… there are two options
13:49 AlexDaniel I think one is to write an email to perl6-compiler@perl.org and include this in your subject: [perl #131722]
13:49 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=131722
13:49 AlexDaniel where instead of 131722 you write the actual ticket number
13:49 AlexDaniel or, you can create a bitcard account, and then you'll be able to write a comment directly on the website
13:50 evanm AlexDaniel: Thanks. I have already created a bitcard account, but the "Reply" and "Comment" links don't seem to work.
13:50 AlexDaniel evanm: hmm, what do you see when you click them?
13:51 evanm I get a mostly blank page with the message "This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure."
13:51 AlexDaniel evanm: can you see anything at all when you're logged in?
13:52 Cabanossi joined #perl6
13:52 evanm fwiw the page has no opening <html> tag, <head>, etc
13:52 AlexDaniel evanm: for some reason some newly created accounts are experiencing this bug and we don't know why, yet…
13:52 evanm AlexDaniel: I can see the bugs but it says "Welcome anonymous guest" at the top
13:52 AlexDaniel ah wait, but then you're not logged in?
13:53 AlexDaniel click “login as another user”, what happens next?
13:53 evanm AlexDaniel: I appear to be logged in
13:53 nadim joined #perl6
13:53 evanm AlexDaniel: If I log out, the "About" page includes information about Bitcard
13:54 evanm AlexDaniel: If I log in, the information about bitcard disappears
13:55 evanm AlexDaniel: Rather, the gray "Login" box disappears, the yellow box about Bitcard is still there
13:55 ab6tract joined #perl6
13:55 AlexDaniel evanm: hm, I think a screenshot would help a lot, but I have a feeling that you're experiencing the bug mentioned above
13:56 AlexDaniel although what you see is slightly different…
13:56 evanm AlexDaniel: Oh, I think I figured it out
13:57 evanm AlexDaniel: I had a bitcard account but had not finished creating a "Persona"
13:57 nicq20 llfourn: I think it's not working because $*CURPAD does not exist in the comments scope.
13:59 evanm AlexDaniel: Now when I am logged in I see "My open tickets" (empty) but no way to browse the bugs.
14:00 evanm AlexDaniel: If I enter a specific bug number, I get the message "No permission to display that ticket"
14:03 AlexDaniel evanm: like this? https://files.progarm.org/2016-02-05-021403_666x501_scrot.png
14:03 evanm AlexDaniel: Yes.
14:04 AlexDaniel evanm: okay, *now* we are seeing the bug I was talking about :)
14:05 AlexDaniel evanm: just drop an email to perlbug-admin@perl.org saying that your account is broken, and of course include the information about your account
14:05 AlexDaniel evanm: oh also
14:06 AlexDaniel evanm: in your email, say that it is associated with #127461
14:06 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=127461
14:06 AlexDaniel (which is the internal ticket ID for the same problem I had a year ago)
14:07 AlexDaniel evanm: I know it's confusing, sorry for the trouble.
14:08 AlexDaniel in fact, I have a feeling that there are more people experiencing this problem, but they probably give up completely and don't even reach this channel…
14:08 AlexDaniel so in the end we have only a couple of documented cases, uh…
14:09 AlexDaniel mst, [Coke]: is there anything we can do about this? ↑
14:09 AlexDaniel that's *at least* the fourth time I see somebody get into this trouble
14:11 mst odd
14:12 mst so this is "newly created bitcard accounts sometimes don't get any permissions" ?
14:16 evanm mst: I also hit an issue where a half-created bitcard account (without a "Persona") led to a buggy experience in the RT... maybe related?
14:16 evanm AlexDaniel: Ok, I sent a message to perlbug-admin about not having permissions
14:20 [Coke] AlexDaniel: I can do nothing about it other than refer people to ping the bug admins, as you did.
14:21 mst might be worth trying to convince them to consider there's a general bug rather than just fixing stuff one at a time
14:21 * [Coke] waves to Morfent.
14:22 nadim joined #perl6
14:23 lucasb joined #perl6
14:29 * Morfent waves back
14:33 synopsebot6 Link:  https://rt.perl.org/rt3/Public/Bug/Display.html?id=131025
14:34 evanm Would be great if the Keeper of the Star could take a look at this issue, as it's a pretty significant usability problem for Mac users
14:36 Geth_ ¦ marketing: 3e4b7482a4 | (Zoffix Znet)++ | 5 files
14:36 Geth_ ¦ marketing: Add "Rakudo Concise" Poster
14:36 Geth_ ¦ marketing:
14:36 Geth_ ¦ marketing: "Why spend 9 hours programming when you can be done in 5?
14:36 Geth_ ¦ marketing: When you are not writing a novel, use Rakudo."
14:36 Geth_ ¦ marketing: review: https://github.com/perl6/marketing/commit/3e4b7482a4
14:39 kurahaupo joined #perl6
14:46 evanm joined #perl6
14:47 dubi0us joined #perl6
14:47 Dunearhp_ joined #perl6
14:49 AlexDaniel joined #perl6
14:49 wamba joined #perl6
14:51 AlexDaniel and there we have it… rakudo language :S
14:52 AlexDaniel the poster is awesome though
14:56 dubi0us joined #perl6
15:03 nicq20 Is it possible to override a class method with one from a role?
15:04 dubi0us joined #perl6
15:05 nicq20 Ah, wait. NM.
15:05 dubi0us joined #perl6
15:07 Cabanossi joined #perl6
15:10 Zoffix joined #perl6
15:11 Zoffix AlexDaniel, yup :) And the concept in the poster is entirely, 100% unmarketable under a "Perl" name :) It *is* an editable poster, tho ;)
15:11 Zoffix pending an improved extended name :)
15:20 sufrostico joined #perl6
15:20 evanm Hi, is Rakudo's Configure supposed to accept "--with-moar="? INSTALL.txt indicates that it should work, but the script doesn't recognize the option
15:21 stmuk_ evanm: I know what the problem is (not OS X specific) and its now fixed if you upgrade p6doc
15:22 evanm stmuk_: Great, thanks. I worked around the issue by symlinking .perl6/doc to a checkout of perl6/doc
15:23 Zoffix evanm: doesn't look like it: https://github.com/rakudo/rakudo/blob/nom/Configure.pl#L35-L42
15:25 mst I thought rakudo's configure took maybe --with-nqp ?
15:25 * mst needs to go back and see how much of the crazy involved in his cpan dist prototypes is still required
15:25 mst and actually upload the bloody things
15:25 Zoffix yeah, but not --with-moar looks like
15:25 mst well NQP is tied to the moar so surely it should find the moar from the NQP ?
15:25 mst in theory
15:25 jnthn Rakudo depends on nqp, not MoarVM directly
15:26 mst it may still not be exactly *good* at doing that, but that should theoretically work
15:26 W4RL0RD joined #perl6
15:26 stmuk_ if someone can close https://rt.perl.org/Public/Bug/Display.html?id=131025 pointing at https://github.com/perl6/doc/commit/7d9e87c61a5f77f12629126b5f109de9d1bcd560 I'd be grateful
15:27 Zoffix stmuk_: why not close yourself?
15:28 stmuk_ I can try but I'm fairly certain I can't
15:28 Zoffix What's your rt username? I can give you perms
15:29 stmuk_ steve.mynott+bitcard@gmail.com
15:29 cdg joined #perl6
15:31 Zoffix ok, should be able to close now
15:31 * stmuk_ makes an offering to the RT God and logs in and out again
15:32 cdg_ joined #perl6
15:34 stmuk_ done
15:34 Zoffix \o/
15:35 Zoffix Opened a ticket to update rakudo's INSTALL.txt to fix the --with-moar problem: https://rt.perl.org/Ticket/Display.html?id=131745
15:38 sjn joined #perl6
15:39 ugexe it also mentions nqp-rx in the same paragraph
15:42 nadim Hi, is it possible to get the text of a sub? actually an anonymous sub.
15:43 Zoffix nadim: none that I know of
15:43 Zoffix Well, with a slang it's probably possible
15:44 nadim ok thank you (hada list of sub for a test that I wanted to display as an extra information)
15:44 Geth_ ¦ marketing: fc5d03653b | (Zoffix Znet)++ | 2 files
15:44 Geth_ ¦ marketing: Add square versions of "Rakudo Concise" poster
15:44 Geth_ ¦ marketing:
15:44 Geth_ ¦ marketing: Social-media-friendly format.
15:44 Geth_ ¦ marketing: review: https://github.com/perl6/marketing/commit/fc5d03653b
15:46 nadim Is there a way to read a keypress without echoing it?
15:46 Zoffix yup. Disable the echoing/buffering in your shell.
15:47 Zoffix I forget how. stty or something like that
15:47 ugexe there is also Terminal::Readsecret
15:47 nadim Using Terminal::Print (which is a bit buggy so alternatives are welcome) to display a data dump and I'd like to implement scrolling, folding, etc in the terminal
15:49 stmuk_ I'm wondering if people might think "Rakudo Concise" was a new distribution
15:50 Zoffix Let them ;)
15:51 nadim ugexe: I don't mind using readsecret but asking people to download and install it is a bit of a deal breaker
15:51 ugexe you could also have your users enter input as morse code and SIGWINCH
15:51 Actualeyes joined #perl6
15:51 stmuk_ I'm baffled by https://rt.perl.org/Ticket/Display.html?id=123497 I've never seen any shebang issues with OS X .. anyone know what's going on there
15:55 stmuk_ hmm /usr/local/Cellar is homebrew
15:58 Zoffix left #perl6
16:07 geekosaur most systems have a limit to how deeply you can nest #! lines
16:07 geekosaur on linux that limit is fairly high; on *BSD (including OS X) it's low
16:08 geekosaur so at some point the exec fails and the shell's fallback path interprets it
16:09 stmuk_ still puzzled to why they are seeing it. If anything its more likely under rakudobrew I'd have thought
16:09 geekosaur it's been seen under rakudobrew
16:10 geekosaur https://stackoverflow.com/questions/9988125/shebang-pointing-to-script-also-having-shebang-is-effectively-ignored
16:11 stmuk_ hmm homebrew seems to use its own shims
16:12 geekosaur yes
16:14 nicq20 joined #perl6
16:14 nicq20 left #perl6
16:15 Dunearhp joined #perl6
16:20 geekosaur I'd have to dog through ,y logs to find references but people using rakudobrew have definitely run into it before and it's one of the reasons people here sometimes get grumpy about use of rakudobrew
16:20 rindolf joined #perl6
16:26 mvr707 joined #perl6
16:31 mvr707 "zef install <module>" works on native machine where perl6 is compiled. But when I copy the install to a lower memory machine, perl6 is working fine, but "zef install" reports problem "fetching" the module. Any ideas?
16:33 [Coke] zef install is fetching from the network - are you sure your second machine has access to whatever the module is?
16:34 rindolf joined #perl6
16:37 eliasr joined #perl6
16:45 |oLa| joined #perl6
16:48 leont joined #perl6
16:52 Cabanossi joined #perl6
16:52 dubi0us joined #perl6
16:59 zakame joined #perl6
16:59 dubi0us joined #perl6
17:05 dubi0us joined #perl6
17:09 ugexe what problem?
17:10 ugexe i believe it should tell you the backends available and which ones are not
17:11 dubi0us joined #perl6
17:12 ugexe mvr707: pastebin the output of `ZEF_PLUGIN_DEBUG=1 zef --debug install CSV::Parser` and I can give you a better idea
17:17 mcmillhj joined #perl6
17:18 dubi0us joined #perl6
17:24 domidumont joined #perl6
17:41 mr-foobar joined #perl6
17:52 Cabanossi joined #perl6
17:57 espadrine joined #perl6
18:01 nicq20 joined #perl6
18:01 dubi0us joined #perl6
18:04 lucasb joined #perl6
18:17 TimToady joined #perl6
18:18 pilne joined #perl6
18:22 Cabanossi joined #perl6
18:25 mr-foobar joined #perl6
18:30 wamba joined #perl6
18:35 evanm joined #perl6
18:35 andrzejk_ joined #perl6
18:36 andrzejk_ it looks very nice with shaders
18:36 andrzejk_ however I like more the previous version
18:38 rightfold Does Perl 6 feature STM?
18:40 timotimo it does not
18:40 timotimo if you mean software transactional memory
18:40 timotimo there were thoughts about that at some point
18:40 rightfold OK!
18:40 pierre__ joined #perl6
18:41 evanm Hi, I have a question about wrapping C libraries
18:42 evanm Is there a preferred convention for Enum values? Let's say in C there's something like:
18:42 evanm enum { LXW_CHART_LINE, LXW_CHART_SCATTER }
18:43 evanm I'm curious whether I should make the Perl 6 API "enum Chart <line scatter>" or "enum Chart <LXW_CHART_LINE LXW_CHART_SCATTER>"
18:44 evanm (or even <lxw-chart-line lxw-chart-scatter>)
18:44 timotimo yeah that's a good question
18:44 timotimo i have no good answer to
18:46 evanm I prefer the first style, but I've hit strange errors if there are name conflicts in the same file
18:46 zakharyas joined #perl6
18:46 setty1 joined #perl6
18:47 evanm e.g. it doesn't seem to like "enum Chart <line scatter>" and "enum Shape <line rectangle>" in the same scope
18:48 geekosaur I think that's expected, yes, since the enum values get exported into the main namespace
18:48 geekosaur although arguably it should be a warning and then require qualification on names
18:48 geekosaur (currently said qualification is optional, which is why it's an error to reuse names)
18:49 skids joined #perl6
18:54 evanm geekosaur: it looks like if I put the enums in separate compunits I can effectively require qualifications
18:54 moritz m: enum Shape <line circle>; enume Char <line scatter>; say Shape::line
18:54 camelia rakudo-moar 8aa1b0: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    Char used at line 1␤Undeclared routine:␤    enume used at line 1. Did you mean 'rename'?␤␤»
18:55 moritz m: enum Shape <line circle>; enume Chart <line scatter>; say Shape::line
18:55 camelia rakudo-moar 8aa1b0: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared name:␤    Chart used at line 1␤Undeclared routine:␤    enume used at line 1. Did you mean 'rename'?␤␤»
18:55 moritz m: enum Shape <line circle>; enum Chart <line scatter>; say Shape::line
18:55 camelia rakudo-moar 8aa1b0: OUTPUT: «Potential difficulties:␤    Redeclaration of symbol 'line'␤    at <tmp>:1␤    ------> 3<line circle>; enum Chart <line scatter>7⏏5; say Shape::line␤line␤»
19:08 colomon joined #perl6
19:08 TEttinger joined #perl6
19:15 gfldex joined #perl6
19:28 linfir joined #perl6
19:34 evanm joined #perl6
19:40 Geth_ ¦ marketing: a828697fb9 | (Zoffix Znet)++ | 6 files
19:40 Geth_ ¦ marketing: Tweak "Rakudo Concise" poster; stmuk_++
19:40 Geth_ ¦ marketing:
19:40 Geth_ ¦ marketing: To make it more obvious "Concise" ain't part of the name
19:40 Geth_ ¦ marketing: review: https://github.com/perl6/marketing/commit/a828697fb9
19:40 dwarring joined #perl6
19:45 dubi0us joined #perl6
19:49 AlexDaniel joined #perl6
19:55 Rawriful joined #perl6
20:09 devmikey joined #perl6
20:16 rindolf Hi all! Can anyone tell me how to make this p6 code faster in rakudo/moar? http://www.shlomifish.org/Files/files/text/prob343-shlomif-p6.txt ; this runs much faster - https://github.com/shlomif/project-euler/blob/master/project-euler/343/euler_343_v2.bash
20:23 nicq20 rindolf: What is this designed to do?
20:24 rindolf nicq20: solve https://projecteuler.net/problem=343
20:27 epony joined #perl6
20:27 nicq20 Ah, ok.
20:28 ChoHag joined #perl6
20:30 nicq20 rindolf: Just looking at the concept, it seems like it can be done in a much more consise way. What is the 'Primes' class used for exactly?
20:30 rindolf nicq20: for finding the factors
20:30 rindolf nicq20: see MAIN
20:31 nicq20 rindolf: Oh, I see now.
20:33 rindolf nicq20: yes
20:34 rindolf nicq20: I copied it from prob003-lanny.pl
20:35 pierrot joined #perl6
20:36 nicq20 Ok, I think I got a much simpler version working
20:37 nicq20 m: sub f(Rat $r) { my $n = $r.numerator; my $d = $r.denominator; return $r if $d <= 1; f1((++$n)/(--$d)); }; f(1/20)
20:37 camelia rakudo-moar 103869: OUTPUT: «5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤    f1 used at line 1. Did you mean 'fc'?␤␤»
20:37 nicq20 m: sub f(Rat $r) { my $n = $r.numerator; my $d = $r.denominator; return $r if $d <= 1; f((++$n)/(--$d)); }; f(1/20)
20:37 camelia rakudo-moar 103869: ( no output )
20:37 nicq20 m: sub f(Rat $r) { my $n = $r.numerator; my $d = $r.denominator; return $r if $d <= 1; f((++$n)/(--$d)); }; say f(1/20)
20:37 camelia rakudo-moar 103869: OUTPUT: «6␤»
20:37 nicq20 Ah, there we go.
20:38 nicq20 rindolf: Unless I'm misunderstanding the problem, this function will do it when given 1/k
20:53 rindolf nicq20: ah, i think it's not efficient
20:53 nadim joined #perl6
20:54 nicq20 rindolf: I agree.
21:19 skids joined #perl6
21:43 colomon_ joined #perl6
21:50 cognominal joined #perl6
22:02 dubi0us joined #perl6
22:03 pilne joined #perl6
22:11 dubi0us joined #perl6
22:23 dubi0us joined #perl6
22:32 d4l3k_ joined #perl6
22:32 perlpilot joined #perl6
22:35 smash joined #perl6
22:35 arnsholt joined #perl6
22:35 hahainternet joined #perl6
22:35 llfourn joined #perl6
22:35 ranguard joined #perl6
22:35 dubi0us joined #perl6
22:36 lilgreen joined #perl6
22:44 mcmillhj joined #perl6
22:46 dubi0us joined #perl6
22:47 cyphase joined #perl6
22:51 Cabanossi joined #perl6
22:52 dubi0us joined #perl6
22:53 Fong joined #perl6
23:01 dubi0us joined #perl6
23:04 BenGoldberg joined #perl6
23:09 kybr anyone have pointers on setting up callbacks with c libraries and NativeCall?
23:16 timotimo we have a few projects that do it
23:16 timotimo and there's tests in t/nativecall under rakudo that also show how it's done
23:16 timotimo kybr: ^
23:17 timotimo GTK::Simple has callbacks, for example. the async SSH one does, too
23:27 kybr timotimo: thanks. that's just what i wanted.
23:31 dubi0us joined #perl6
23:33 kybr MoarVM panic: Internal error: Unwound entire stack and missed handler :(
23:35 geekosaur you have to handle perl 6 errors including Failures inside your callback; there's nothing to do with them otherwise because C has no clue what they even are
23:36 geekosaur (note that Nil is a delayed silent 'exception' and Failure is a delayed noisy one)
23:42 mcmillhj joined #perl6
23:45 timotimo yeah, there's nothing in C that moarvm could cooperate with to do stack unwinding and cleanup. the C code you were calling that called you back, it could have done all sorts of things on the stack, like it could assume its stack frame would live a bit longer and pass some pointers to the stack around
23:46 timotimo not to mention resources allocated between oyu calling it and it calling you back. that's buffers malloced, sockets created or other kinds of files opened ...
23:46 timotimo anyway, bedtime
23:46 bpmedley joined #perl6
23:52 Cabanossi joined #perl6
23:57 mcmillhj joined #perl6
23:57 cdg joined #perl6

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

Perl 6 | Reference Documentation | Rakudo