Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2017-12-19

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:00 Zoffix m: await IO::Socket::Async.connect('irc.freenode.net', 6667 ).then({given .result {.print("NICK Camelia_\nUSER NotCamelia localhost irc.freenode.net :notCamelia\nJOIN #perl6\nPRIVMSG #perl6 :Socket connection with authen don't take much, mahafyi  ^_^\n"); react {whenever .Supply {}}}})
00:01 Camelia_ joined #perl6
00:01 Camelia_ Socket connection with authen don't take much, mahafyi  ^_^
00:01 camelia rakudo-moar 3f90f663b: OUTPUT: «(timeout)»
00:01 Zoffix mahafyi: ^ so it'd be something like that, except instead of sending text that conforms to IRC protocol, you'd send one that conforms to whatever tht asterisk thing is using.
00:06 manchicken joined #perl6
00:22 lookatme joined #perl6
00:28 Cabanossi joined #perl6
00:31 lookatme o/
00:32 Zoffix \o
00:39 manchicken joined #perl6
00:42 cdg joined #perl6
01:00 aborazmeh joined #perl6
01:00 aborazmeh joined #perl6
01:01 pilne joined #perl6
01:04 cdg joined #perl6
01:09 cdg joined #perl6
01:16 timotimo huh, is something wrong with LWP::Simple?
01:17 timotimo https://travis-ci.org/perl6/gtk-simple/jobs/318368866#L1443
01:17 timotimo reproduces locally
01:18 timotimo it's ... flappy?
01:19 timotimo something wrong with opera.com?
01:43 Cabanossi joined #perl6
01:53 pilne joined #perl6
02:08 MasterDuke joined #perl6
02:10 MasterDuke Zoffix: https://github.com/perl6/doc/commit/58ec437f37 has a change that seems a little awkward to me (or i'm just not reading it correctly)
02:11 Zoffix MasterDuke: "reifies that returns" or something else too?
02:11 MasterDuke "=item '*' (whatever-star), reifies that returns the full slice (as if all keys/indices were specified)". i would think "reifier, that returns...", or "reifies, then returns..."
02:11 MasterDuke just that
02:11 Geth ¦ doc: 88aa509ad7 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/subscripts.pod6
02:11 Geth ¦ doc: Remove accidentally inserted word; MasterDuke++ for codereview
02:11 Geth ¦ doc: review: https://github.com/perl6/doc/commit/88aa509ad7
02:11 synopsebot Link: https://doc.perl6.org/language/subscripts
02:12 Zoffix Yeah, I started writing there and then just moved to the paragraph below and forgot to remove the word :)
02:13 MasterDuke i do that all the time, my typing doesn't quite keep up with my internal sentence construction
02:14 MasterDuke one of the main reasons i like the Perls, the less i have to type the closer i can get to programming as fast as i'm thinking
02:31 _28_ria joined #perl6
02:38 cdg joined #perl6
02:44 _28_ria joined #perl6
02:59 cdg joined #perl6
02:59 ruschlem2 joined #perl6
03:01 ilbot3 joined #perl6
03:01 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!
03:11 konsolebox joined #perl6
03:17 cdg_ joined #perl6
03:25 flatwhite joined #perl6
03:28 buggable New CPAN upload: PDF-Class-0.0.2.tar.gz by WARRINGD https://cpan.metacpan.org/authors/id/W/WA/WARRINGD/Perl6/PDF-Class-0.0.2.tar.gz
03:31 [particle] joined #perl6
03:43 Cabanossi joined #perl6
03:52 ruschlem2 left #perl6
03:56 ruschlem2 joined #perl6
03:56 ruschlem2 joined #perl6
03:57 ruschlem2 joined #perl6
04:17 [Coke] m: enum A <bark meow>; enum B <bark moss>;
04:17 camelia rakudo-moar 3f90f663b: OUTPUT: «Potential difficulties:␤    Redeclaration of symbol 'bark'␤    at <tmp>:1␤    ------> 3enum A <bark meow>; enum B <bark moss>7⏏5;␤»
04:18 [Coke] m: enum A <bark meow>; enum B <bark moss>; say B.bark;
04:18 camelia rakudo-moar 3f90f663b: OUTPUT: «Potential difficulties:␤    Redeclaration of symbol 'bark'␤    at <tmp>:1␤    ------> 3enum A <bark meow>; enum B <bark moss>7⏏5; say B.bark;␤No such method 'bark' for invocant of type 'B'. Did you mean 'base'?␤  in block <unit> at <tm…»
04:19 [Coke] oops. how to disambiguate which one I mean?
04:23 [Coke] m: enum A <bark meow>; enum B <bark moss>; say B.enums.bark;
04:23 camelia rakudo-moar 3f90f663b: OUTPUT: «Potential difficulties:␤    Redeclaration of symbol 'bark'␤    at <tmp>:1␤    ------> 3enum A <bark meow>; enum B <bark moss>7⏏5; say B.enums.bark;␤No such method 'bark' for invocant of type 'Map'␤  in block <unit> at <tmp> line 1␤␤»
04:24 [Coke] m: enum A <bark meow>; enum B <bark moss>; say B.enums<bark>;
04:24 camelia rakudo-moar 3f90f663b: OUTPUT: «Potential difficulties:␤    Redeclaration of symbol 'bark'␤    at <tmp>:1␤    ------> 3enum A <bark meow>; enum B <bark moss>7⏏5; say B.enums<bark>;␤0␤»
04:32 Morfent joined #perl6
04:43 Cabanossi joined #perl6
04:57 Cabanossi joined #perl6
05:05 Morfent joined #perl6
05:06 konsolebox joined #perl6
05:13 rohan_ joined #perl6
05:22 MilkmanDan joined #perl6
05:38 MasterDuke m: enum A <bark meow>; enum B <bark moss>; say B::bark
05:38 camelia rakudo-moar 3f90f663b: OUTPUT: «Potential difficulties:␤    Redeclaration of symbol 'bark'␤    at <tmp>:1␤    ------> 3enum A <bark meow>; enum B <bark moss>7⏏5; say B::bark␤bark␤»
05:42 Hotkeys is there a handy way to use Z+ as part of an assignment operator
05:42 Hotkeys like how you can `$foo += $bar`
05:42 Hotkeys instead of `$foo = $foo Z+ $bar`
05:43 Hotkeys oh
05:43 Hotkeys nevermind
05:43 Hotkeys if I use non-scalars, `@foo Z+= @bar` works fine
05:44 Hotkeys silly me
05:55 agwind joined #perl6
05:57 Cabanossi joined #perl6
06:02 konsolebox joined #perl6
06:11 mahafyi joined #perl6
06:26 wamba joined #perl6
06:45 darutoko joined #perl6
06:48 Morfent joined #perl6
06:53 ggoebel joined #perl6
06:57 Cabanossi joined #perl6
06:59 konsolebox joined #perl6
07:04 _28_ria joined #perl6
07:16 _28_ria joined #perl6
07:17 domidumont joined #perl6
07:29 _28_ria joined #perl6
07:32 espadrine joined #perl6
07:33 lowbro joined #perl6
07:33 lowbro joined #perl6
07:43 _28_ria joined #perl6
08:05 sena_kun joined #perl6
08:07 domidumont1 joined #perl6
08:12 Cabanossi joined #perl6
08:27 mniip joined #perl6
08:30 Geth ¦ doc: 74fe834130 | (Luca Ferrari)++ | doc/Language/5to6-nutshell.pod6
08:30 Geth ¦ doc: Link to smart match operator in the docs.
08:30 Geth ¦ doc:
08:30 Geth ¦ doc: The smart match operator ~~ is linked to the design document for a better
08:30 Geth ¦ doc: explaination. While this is surely correct, I believe that in a "nutshell"
08:30 synopsebot Link: https://doc.perl6.org/language/5to6-nutshell
08:30 Geth ¦ doc: the user should be redirected to the official explaination of the ~~
08:30 Geth ¦ doc: mechanics and method ACCEPTS.
08:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/74fe834130
08:30 Geth ¦ doc: 8cf921a67c | (Luca Ferrari)++ | doc/Language/5to6-nutshell.pod6
08:30 Geth ¦ doc: Link to Pair type and slurpy arguments.
08:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/8cf921a67c
08:30 Geth ¦ doc: 9d392d18af | (Luca Ferrari)++ | doc/Language/5to6-nutshell.pod6
08:30 Geth ¦ doc: Tweak Repetition operator.
08:30 Geth ¦ doc:
08:30 Geth ¦ doc: For coherence with the perlop Perl 5 documentation all references
08:30 Geth ¦ doc: have been adjusted to 'Repetition'. I've split the reminder of how
08:30 Geth ¦ doc: Perl 5 'x' worked in string and list context and then presented the same
08:30 Geth ¦ doc: items for Perl 6 'x' and 'xx'.
08:30 Geth ¦ doc: review: https://github.com/perl6/doc/commit/9d392d18af
08:32 wamba joined #perl6
08:33 |oLa| joined #perl6
08:33 dakkar joined #perl6
08:35 * lizmat clickbaits https://p6weekly.wordpress.com/2017/12/18/2017-51-thirty-years/
08:56 AlexDani` joined #perl6
09:01 _28_ria joined #perl6
09:15 _28_ria joined #perl6
09:18 scimon joined #perl6
09:27 wamba joined #perl6
09:27 Cabanossi joined #perl6
09:42 rindolf joined #perl6
09:45 AlexDaniel Hotkeys: https://github.com/perl6/perl6-lwp-simple/issues/13#issuecomment-352172211
09:45 AlexDaniel oh, oops
09:45 AlexDaniel timotimo: ↑
09:46 Hotkeys you had me a bit confused :P
09:47 AlexDaniel you guys have identically colored nicknames here https://i.imgur.com/VWdOLGQ.png
09:51 Hotkeys Fair enough
09:58 domidumont joined #perl6
10:01 wamba joined #perl6
10:04 eliasr joined #perl6
10:05 philomath_ joined #perl6
10:06 poohman joined #perl6
10:07 someuser joined #perl6
10:20 astj joined #perl6
10:28 Sgeo joined #perl6
10:28 Sgeo_ joined #perl6
10:30 rindolf joined #perl6
10:41 itaipu joined #perl6
10:52 dustinm` joined #perl6
10:53 jeromelanteri joined #perl6
11:04 mniip joined #perl6
11:05 jeromelanteri joined #perl6
11:14 Zoffix [Coke]: enum A <bark meow>; declares symbol "bark" in the current scope, as well as A::bark. You need to place them in separate scope, e.g. module A { our enum <bark meow> }; module B { our enum <bark meow> }; say A::bark
11:22 poohman joined #perl6
11:26 Zoffix lizmat++ # good weekly
11:36 araraloren joined #perl6
11:38 Geth ¦ doc: e0d57700d1 | (Luca Ferrari)++ | doc/Type/Signature.pod6
11:38 synopsebot Link: https://doc.perl6.org/type/Signature
11:38 Geth ¦ doc: Link Scalar, Array and Iterable in Slurpy parameters section.
11:38 Geth ¦ doc:
11:38 Geth ¦ doc: Also use code blocks for examples.
11:38 Geth ¦ doc: review: https://github.com/perl6/doc/commit/e0d57700d1
11:38 Geth ¦ doc: 20b68d2d06 | (Luca Ferrari)++ | doc/Language/functions.pod6
11:38 Geth ¦ doc: Rephrase slightly Slurpy (function) Conventions.
11:38 synopsebot Link: https://doc.perl6.org/language/functions
11:38 Geth ¦ doc:
11:38 Geth ¦ doc: Links to types whenever possible.
11:38 Geth ¦ doc: review: https://github.com/perl6/doc/commit/20b68d2d06
11:44 Geth ¦ doc: 9d0af09ef0 | (Zoffix Znet)++ | CONTRIBUTING.md
11:44 Geth ¦ doc: Link to EXAMPLES.md from CONTRIBUTING
11:44 Geth ¦ doc: review: https://github.com/perl6/doc/commit/9d0af09ef0
11:45 Geth ¦ doc: f09ea80e8f | (Zoffix Znet)++ | EXAMPLES.md
11:45 Geth ¦ doc: Document how to lable plain text code blocks
11:45 Geth ¦ doc:
11:45 Geth ¦ doc: Based on greppage, :lang<text> is what we use
11:45 Geth ¦ doc: review: https://github.com/perl6/doc/commit/f09ea80e8f
11:48 Geth ¦ doc: 7474b45962 | (Zoffix Znet)++ | doc/Type/Telemetry/Instrument/Usage.pod6
11:48 Geth ¦ doc: Fix compilation error in code example
11:48 Geth ¦ doc: review: https://github.com/perl6/doc/commit/7474b45962
11:48 synopsebot Link: https://doc.perl6.org/type/Telemetry/Instrument/Usage
11:48 mahafyi joined #perl6
11:51 Geth ¦ doc: 17251d35fa | (Zoffix Znet)++ | 4 files
11:51 Geth ¦ doc: Fix some of xtest errors
11:51 Geth ¦ doc: review: https://github.com/perl6/doc/commit/17251d35fa
11:51 Zoffix left #perl6
11:57 Cabanossi joined #perl6
12:02 araraloren How to read on a IO::Socket::Async object ?
12:06 llfourn joined #perl6
12:07 piojo_ joined #perl6
12:23 moritz araraloren: have you looked in the docs if there are any examples?
12:25 araraloren yeah, moritz I found it provide a .Supply method
12:25 araraloren But I want read specify size chunk from the socket
12:26 moritz then use IO::Socket::INET
12:26 moritz the Async API is "notify me when something is there" instead of "give me something"
12:27 araraloren I wonder why they have .write not have .read :(
12:28 moritz why not?
12:28 moritz there's nothing wrong with an async write
12:29 araraloren hmm, I don't have question about that write, I wonder why we not have .read :)
12:30 moritz because .read isn't a good async API
12:30 moritz what do you need it for?
12:37 araraloren moritz, I just write some Perl6 code simulate Coroutine in Python
12:37 araraloren I found a .batch method on Supply, I will try it
12:39 Geth ¦ doc: 0522866c2d | (Elizabeth Mattijsen)++ | doc/Type/Iterator.pod6
12:39 Geth ¦ doc: Work a bit on the Iterator type documentation
12:39 Geth ¦ doc:
12:39 Geth ¦ doc: - show some more methods where they are used
12:39 Geth ¦ doc: - emphasize the fact that a consuming class *can* implement most methods
12:39 synopsebot Link: https://doc.perl6.org/type/Iterator
12:39 Geth ¦ doc: - some minor signature / output nits
12:39 Geth ¦ doc: review: https://github.com/perl6/doc/commit/0522866c2d
12:44 reportable6 joined #perl6
12:44 squashable6 joined #perl6
12:44 unicodable6 joined #perl6
12:44 benchable6 joined #perl6
12:44 greppable6 joined #perl6
13:00 philomath_ joined #perl6
13:03 Morfent joined #perl6
13:10 AlexDaniel hmmm I think this was supposed to be a reply to something? RT#132611
13:10 synopsebot RT#132611 [new]: https://rt.perl.org/Ticket/Display.html?id=132611 Re: loop { "x" ~~ /(.)<{$0}>/ } # Out of memory in a couple of seconds
13:10 mahafyi joined #perl6
13:12 Cabanossi joined #perl6
13:15 astj joined #perl6
13:33 cdg joined #perl6
13:35 mahendrasinghbor joined #perl6
13:36 mahendrasinghbor left #perl6
13:41 araraloren https://gist.github.com/araraloren/9e088472525b6d369204db20d3d8c9ba A echo server implement by simulated Coroutine
13:51 cdg joined #perl6
13:55 zakharyas joined #perl6
14:08 mahafyi_ joined #perl6
14:19 cdg joined #perl6
14:26 mspo joined #perl6
14:26 mspo is libmoar a thing yet? :)
14:26 Ulti araraloren: are you aware of supplies already? or are you just having fun?
14:26 perlpilot mspo: like to embed moar in an editor or something?
14:27 araraloren Ulti, yeah for fun
14:28 mspo perlpilot: one good use case
14:29 perlpilot mspo: I have no knowledge one way or the other, but that sounds like a neat thing that should exist  :)
14:31 mspo perlpilot: it's explicitly mentioned here: https://github.com/MoarVM/MoarVM/tree/master/src/README.md
14:31 mspo perlpilot: the main thing I was thinking about was perl6, the program
14:32 Ulti araraloren: if you're having fun I can recommend checking out how the Icon programming language had co-expressions too
14:33 araraloren Icon language ?
14:34 araraloren I just want play Perl6
14:34 Ulti oh I thought you said you were doing stuff from Python
14:35 timotimo mspo: you can rather easily embed libmoar in your program; check main.c, it's super easy :P
14:35 timotimo of course, if you want to communicate, that's an entirely different matter
14:36 araraloren I read this: http://www.dabeaz.com/coroutines/Coroutines.pdf
14:36 araraloren And do it with Perl6 Ulti
14:38 Ulti cool
14:38 piojo_ joined #perl6
14:40 Ulti not actually sure which language had coroutines and generators with nice syntax first but Icon pulled it off in the later 70s, I assume lisp will have been the first to have something nice to use
14:40 Ulti they were originally just a design pattern when writing assembly
14:42 Cabanossi joined #perl6
14:44 david_xd joined #perl6
14:44 araraloren hmm, I will check the Icon language
14:52 mspo timotimo: communicate?
14:56 timotimo well, shove objects back and forth and such
14:57 mspo timotimo: I'd just ilke perl6(1) to be a c program
14:57 timotimo oh
14:57 mspo timotimo: I wrote one using execv but I don't think it's as good as an embedded one
14:57 timotimo that's fair. i've tried that in the past
14:57 Ulti araraloren the modern version is called Unicon with OO stuff in, but it is incredible niche like tens of people in the world who publicly use it... there are certain private institutes I know (but shouldnt) that use it
14:58 mspo timotimo: it also seems like it would make it easier to link libedit (for repl) and libarchive (for reading .tar bundles of code) or whatever
14:59 araraloren Ulti, Hmm, I see it in wiki
14:59 konsolebox joined #perl6
14:59 araraloren The Unicon
14:59 Ulti yeah its well loved by the people who use it :D
14:59 timotimo yeah, if those are statically (or even dynamically by ld.so) linked you don't have to bother with getting nativecall to find the files
15:00 mspo timotimo: yeah I was trying to grok how the repl worked ages ago and got lost immediately :)
15:02 araraloren Ulti, Thanks for your time :) go to bed now 88
15:05 timotimo well, the repl is perl6-level code
15:06 timotimo if you mean how it makes the "execute after a line has been put in" magic work ... that's rather ugly and has many bad side-effects
15:07 Ulti plus lots of editors now aren't C based and instead just want some API to twiddle with
15:08 mspo Ulti: perl6 langserver is needed
15:08 Ulti mspo: check out the Jupyter notebook stuff
15:08 Ulti might be up your street
15:08 mspo Ulti: that thing confused the hell out of me
15:08 Ulti yeah
15:08 Ulti its kind of a complex spec
15:08 mspo Ulti: I ended up downloading some kind of program (I thought it was on the web?)
15:08 mspo I mean just *using* jupyter at all :)
15:08 comborico1611 joined #perl6
15:09 mspo I'm too old for this shit
15:09 mspo (apparently)
15:10 Ulti yeah the web has sort of retired binary interfaces as a thing the majority care about
15:10 Ulti starting to come back though now people want perf online with complex things with lots of data
15:12 zakharyas joined #perl6
15:13 Ulti mspo: another project you might be interested in https://github.com/azawawi/farabi6
15:14 Ulti not sure if its entirely bitrotted away
15:14 Ulti but it was kind of neat
15:16 Ulti I believe azawawi is the creator of padre in the Perl 5 world too?
15:27 troys joined #perl6
15:30 astj joined #perl6
15:49 geospeck joined #perl6
15:53 kaiwkx joined #perl6
15:57 Cabanossi joined #perl6
16:03 setty1 joined #perl6
16:05 zakharyas joined #perl6
16:06 astj joined #perl6
16:07 mahafyi connected at long last with the asterisk manager. the change was not to use localhost but 127.0.0.1 as host
16:08 mahafyi and to run script as root, since asterisk daemon is running as root
16:12 astj joined #perl6
16:17 timotimo that sounds wrong
16:17 timotimo you're connecting over a tcp socket; the daemon has no way of finding out what user you're connecting as
16:18 timotimo mahafyi: what kinds of errors were you getting?
16:19 mahafyi timotimo : i will re echeck on that
16:19 mahafyi i changed the ownership of script to root, prior to changing the host from localhost to 127.0.0.1
16:19 mahafyi i will re run as a user
16:20 timotimo who owns a script and who runs it are two different things, unless the setuid flag is set on the file; "setuid root" scripts are extremely risky things
16:21 huf nah, they're fine since the suid bit doesnt matter on the script unless the interpreter is also suid and does bad things.
16:21 huf at least that's how i remember it
16:21 timotimo oh? that's very interesting
16:21 mahafyi that is correct, the only change i needed was not use localhost, i am trying to find on why that is
16:22 mahafyi there is no need to run as root / sudoer
16:23 timotimo one difference can be ipv6 vs ipv4
16:23 timotimo localhost is probably aliased to both 127.0.0.1 and ::1
16:24 david_xd joined #perl6
16:25 mahafyi right, and i will leave it aside actually for now. i have to understand what asterisk::perl is doing first. looks like i have to start out now bu understanding functions and how to use them in programs
16:25 timotimo there's a method of connecting to services that are on machines that have both an ipv4 and ipv6 address but are only reacting on either of the two, which is to first try connecting via ipv6, and if that fails, somewhat-quickly fall back to ipv4
16:27 Cabanossi joined #perl6
16:36 mahafyi there are only three things , write ACTION string to the socket , which is simply Action: some-action-text , followed by crlf separated params specific to each Action, then await and do something on Response. And then there are events, which are written into that socket as specified by the asterisk admin in config files.
16:38 mahafyi looks simple, but i guess its going to be a long uphill work for me. its all made in functional and OO programs, i checked python and php libs also for asterisk in github
16:49 ruschlem_ joined #perl6
17:00 moritz it looks like the advent post for tomorrow isn't scheduled yet
17:00 moritz can somebody please track down vendethiel and ask them about the progress?
17:01 moritz I'm already late 30 minutes for Erlangen.pm, so my chances of doing that are slim :(
17:01 mspo Erlangen.pm?
17:02 moritz our local perl mongers group
17:02 mspo why is it called erlang? :)
17:04 moritz it's not :)
17:06 mspo k
17:09 tadzik :D
17:12 Cabanossi joined #perl6
17:14 poohman joined #perl6
17:14 timotimo .o( es gibt ja so viel wissenswertes über erlangen )
17:15 domidumont joined #perl6
17:16 tadzik ich besichtige die sehenswuerdigkeiten!
17:23 khw joined #perl6
17:28 mahafyi in asterisk::perl,  there is one function which all other Actions use, like  %resp = $self->sendcommand( Action => 'Login', param1 => 'param1-value' etc). So I go back to the books now and learn to do the same, i suppose if one action worked, everything else will too. Then I can have a custom module to use for asterisk manager. Also, need to do with ssl support and md5 auth instead of...
17:28 mahafyi ...plaintext, as it is what generally everyone uses.
17:29 timotimo turning on ssl support is almost as easy as changing "IO::Socket::INET" to "IO::Socket::SSL"
17:29 timotimo of course you really ought to check the correctness of the certificate, and that it's a certificate for the right thing
17:29 mahafyi timotimo : oh ok, thanks
17:30 timotimo under the hood, you'll be sending a stream of bytes and receiving a stream of bytes the same way in SSL or TCP
17:33 ruschlem_ joined #perl6
17:34 Zoffix joined #perl6
17:34 wamba joined #perl6
17:34 Zoffix moritz: tracked: https://github.com/perl6/mu/commit/994989602f963975aa754c6c21af7439f9bbf9e3#commitcomment-26370856
17:37 Zoffix mahafyi: FWIW, this was all that was needed to enable SSL in IRC::Client module: https://github.com/zoffixznet/perl6-IRC-Client/commit/bf3b492f3eda79a5b492a87750b26d4228777601#diff-1dbf71872cd219ba8fcdb00fa0edff9f
17:38 Zoffix mahafyi: for MD5, you can use https://github.com/cosimo/perl6-digest-md5 to do the hashing, so "md5 auth" sounds like something from last century and with today's hardware is easily cracked
17:40 mahafyi Zoffix, thank you verymuch. I missed your last message yesterday, though i got it first thing from irc log today and thats what connected to the asterisk manager. i will work on it. As for the md5, sure, i guess the security controls comes from firewalling the port and later on maybe more. right now, i will use it only only localhost and disallow everything else.
17:42 Zoffix .tell araraloren FWIW, here's how IRC::Client reads from an async sock. It just parses what it gets as much as it can and saves left over stuff for the next time some data arrives: https://github.com/zoffixznet/perl6-IRC-Client/blob/master/lib/IRC/Client.pm6#L203-L214
17:42 yoleaux Zoffix: I'll pass your message to araraloren.
17:43 Zoffix left #perl6
17:52 philomath_ joined #perl6
18:09 coverable6 joined #perl6
18:09 nativecallable6 joined #perl6
18:12 epony joined #perl6
18:14 epony joined #perl6
18:27 ruschlem_ joined #perl6
18:29 comborico1611 joined #perl6
18:44 comborico1611 joined #perl6
18:52 |oLa| joined #perl6
18:53 |oLa| left #perl6
18:54 Ven`` joined #perl6
19:08 itaipu joined #perl6
19:10 poohman joined #perl6
19:17 Zoffix joined #perl6
19:17 Zoffix m: my @a[2;1] = (1,1),; say @a
19:17 evalable6 Zoffix, rakudo-moar 3f90f663b: OUTPUT: «(exit code 1) Index 1 for dimension 2 out of range (must be 0..0)␤  in block <unit> at /tmp/cIp33UyrD6 line 1␤␤»
19:17 Zoffix How do do this right?
19:18 Zoffix m: my @a[2;2] = (1,1),(1,1); say @a
19:18 evalable6 Zoffix, rakudo-moar 3f90f663b: OUTPUT: «[[1 1] [1 1]]␤»
19:18 Zoffix This works, so I assumed the other version would work
19:20 Zoffix m: my @a[1;2] = (1,1),; say @a
19:20 evalable6 Zoffix, rakudo-moar 3f90f663b: OUTPUT: «[[1 1]]␤»
19:20 AlexDaniel yeah ↑ ?
19:20 Zoffix I see
19:20 Zoffix Zoffix: thanks, bruh. You're always so helpful!
19:20 Zoffix Zoffix: any time, bruh.
19:30 Zoffix So what happen to camelia? ded?
19:31 Zoffix looks like box is ded. can't ssh to niner.name
19:33 cdg joined #perl6
19:36 raschipi joined #perl6
19:45 zakharyas joined #perl6
19:51 Geth ¦ doc: 59bce6082c | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Array.pod6
19:51 Geth ¦ doc: Document Array.gist
19:51 Geth ¦ doc:
19:51 Geth ¦ doc: Impl existed for some time, but limiting was absent.
19:51 Geth ¦ doc:
19:51 synopsebot Link: https://doc.perl6.org/type/Array
19:51 Geth ¦ doc: Impl of limiter: https://github.com/rakudo/rakudo/commit/5b71d902c3
19:51 Geth ¦ doc: Spec: https://github.com/perl6/roast/commit/399367ccbf
19:51 Geth ¦ doc: review: https://github.com/perl6/doc/commit/59bce6082c
19:52 Zoffix left #perl6
19:56 Geth ¦ doc: 08c0b3656f | (Zoffix Znet)++ | doc/Type/Array.pod6
19:56 Geth ¦ doc: Revert "Document Array.gist"
19:56 Geth ¦ doc:
19:56 Geth ¦ doc: This reverts commit 59bce6082c0196b5721ee1c3ff1e935c81dfd533.
19:56 Geth ¦ doc:
19:56 Geth ¦ doc: Spec temporarily reverted: https://github.com/perl6/roast/commit/1b814c6336
19:56 Geth ¦ doc: review: https://github.com/perl6/doc/commit/08c0b3656f
19:57 poohman joined #perl6
19:59 Ven`` .ask Zoffix I heard about you having a script md-to-wordpress-with-p6-highlighting. I'm interested in such a thing :).
19:59 yoleaux Ven``: I'll pass your message to Zoffix.
20:00 astj joined #perl6
20:02 Zoffix joined #perl6
20:02 Zoffix eco: Advent
20:02 yoleaux 19:59Z <Ven``> Zoffix: I heard about you having a script md-to-wordpress-with-p6-highlighting. I'm interested in such a thing :).
20:02 buggable Zoffix, Found 3 results: Game::Crypt, Adventure::Engine, Acme::Advent::Highlighter. See https://modules.perl6.org/s/Advent
20:02 Zoffix eco: Acme::Advent::Highlighter
20:02 buggable Zoffix, Acme::Advent::Highlighter 'Preprocessor for Perl 6 Advent Articles': https://github.com/zoffixznet/perl6-Acme-Advent-Highlighter
20:02 Zoffix Ven``: ^
20:02 Zoffix Ven``: worth pointing out the option to use Perl 5's markdown parser that I found produced better output: https://github.com/zoffixznet/perl6-Acme-Advent-Highlighter#--multi-option-for-multi-markdown
20:03 Ven`` I'm not even sure I have a Perl 6 install here, so I'll check.
20:07 steeznson joined #perl6
20:11 zakharyas joined #perl6
20:15 [Coke] I want a method that looks like U' - what's the closest I can get? a ' postfix that passes in a named arg to U?
20:17 Zoffix m: class Foo { method ::("U'") { say "meows" } }; Foo."U'"()
20:17 evalable6 Zoffix, rakudo-moar 334b87226: OUTPUT: «meows␤»
20:17 Zoffix :)
20:18 Zoffix What do you mean "looks like U'"?
20:18 [Coke] ah, thank you, I had tried without ::().
20:18 [Coke] Zoffix++
20:18 Ven`` Zoffix++
20:18 Zoffix \o/
20:19 Ven`` # currently downloading Acme::Advent::Highlighter to run it on mah post
20:19 Zoffix You'll also need a github gist token
20:19 Ven`` aw
20:19 Zoffix heh
20:20 [Coke] ah, still need the "'s on the call.
20:20 Zoffix Yeah
20:20 Hotkeys joined #perl6
20:20 [Coke] and the ()'s
20:21 [Coke] Looking at a rubik's cube solver, want something like self.F.U'.R2
20:21 Zoffix And that would call self's method F, then method U' on the result and method R2 on the result of that?
20:22 [Coke] yup. so each method returns "self", that part's eays
20:23 Ven`` oh, getting one was actually really easy
20:24 [Coke] Uº works for now
20:24 Ven`` joined #perl6
20:25 Ven`` oh, getting one was actually really easy
20:25 Ven`` wait what, internet
20:28 Zoffix m: use nqp; BEGIN $*LANG.refine_slang: 'MAIN', role { token dotty:sym<.> { "'"? <sym> <dottyop> <O(:prec<y=>, :assoc<unary>, :dba<methodcall>, :1fiddly)>} }; class Foo { method U { say "meow "; self } }; Foo.U'.U
20:28 evalable6 Zoffix, rakudo-moar 334b87226: OUTPUT: «meow ␤meow ␤»
20:29 Zoffix [Coke]: well, that... almost works :)
20:29 Zoffix Can't use it on the end. I guess it'd work if you tweak token identifier, but doing so without breaking strings and stuff
20:32 Ven`` Zoffix: [git path tar p5tar unzip] don't understand perl6-Acme-Advent-Highlighter.git. You may need to configure one of the following backends - [psunzip]
20:33 Ven`` what's actually needed? (brew install psunzip didn't give anything, but I have a unzip command)
20:33 Zoffix Ven``: zef install https://github.com/zoffixznet/perl6-Acme-Advent-Highlighter/archive/master.zip
20:35 [Coke] Zoffix: thanks for trying. º is fine for my advent post. :)
20:35 aindilis joined #perl6
20:35 mspo http://opentracing.io/
20:35 Zoffix dunno what it don't like. If thefirst things are the backends it knows, I would've thought `git` could do it, but it's an https URL so I'd've figured even git ain't needed maybe
20:38 Ven`` not sure. downloading the deps a 5th time :P.
20:40 Zoffix /o\
20:40 Zoffix Ven``: use --serial. That way it'll install successfull deps instead of rolling them back
20:41 Ven`` Zoffix++ # TIL
20:41 Zoffix Ven``: could also do:  cd $(mktemp -d); git clone  https://github.com/zoffixznet/perl6-Acme-Advent-Highlighter .; zef --serial --/test --/cached install .
20:41 Zoffix Ven``: yeah, may wanna use --/test 'cause DOM::Tiny's tests run forever
20:41 comborico1611 This gab.ai seems to be blowing up in popularity.
20:42 comborico1611 It's a Twitter alternative.
20:44 Zoffix Headlines: "ANTIFA... Trump... Comey"
20:44 * Zoffix hits "Close tab"
20:44 Ven`` Zoffix: ooh..
20:44 El_Che Zoffix: don't be grumpy Zoffix
20:45 thundergnat joined #perl6
20:46 Zoffix El_Che: not wanting to be bombarded with US politics 24/7 isn't equivalent to being grumpy
20:46 El_Che Zoffix: you missed the globalisation memo, it seems
20:46 El_Che :)
20:47 comborico1611 Heh.  I understand.
20:48 comborico1611 I think it's going to get big, though.
20:48 thundergnat m: class A { method Uʼ { "[Coke] ^^" } }; my $z = A.new; say $z.Uʼ;
20:48 evalable6 thundergnat, rakudo-moar 334b87226: OUTPUT: «[Coke] ^^␤»
20:49 Zoffix u: ʼ
20:49 unicodable6 Zoffix, U+02BC MODIFIER LETTER APOSTROPHE [Lm] (ʼ)
20:49 Zoffix heh, thundergnat++
20:53 Zoffix left #perl6
20:55 quotable6 joined #perl6
20:57 committable6 joined #perl6
20:57 poohman joined #perl6
20:58 bisectable6 joined #perl6
20:58 evalable6 joined #perl6
20:58 bloatable6 joined #perl6
20:58 releasable6 joined #perl6
20:58 statisfiable6 joined #perl6
21:03 moritz \o
21:04 moritz a very thorough review of Perl 6 Regexes and Grammars: http://i-programmer.info/bookreviews/116-perl/11399-parsing-with-perl6-regexes-and-grammars.html
21:04 * [Coke] hopefully will soon have a rubik's cube that he can scramble and turn deliberately and print out, and then I have... 2 days to implement the solving algorithm? :)
21:05 * [Coke] switches to ʼ, thanks.
21:06 * [Coke] feels weird that that works.
21:07 [Coke] ah, that horrible feeling when you accidentally rm a file you've been working on. Followed by the flood of relief when you can do a 'git checkout' and get it right back.
21:08 tyil protip: cd / && git init && git add . && git commit -m "WORKING SYSTEM"
21:12 masak o.O
21:13 tyil its like adding snapshots to your filesystem, its great
21:13 tyil if you do just /dev in a git repo, you can make snapshots of all devices, no matter the fs on them!
21:14 cdg joined #perl6
21:14 raschipi I put /etc in git using etckeeper.
21:28 [Coke] weird. I have a cube. self.U rotates the top correctly. self.F rotates the front correctly. self.F.U is borked.
21:30 raschipi Is just rotating internal state or returning the rotated cube?
21:30 [Coke] it's all one cube, so internal state.
21:31 [Coke] aha. Must be in how I'm rendering the top layer. bet the internal state is correct.
21:39 wamba joined #perl6
21:44 Slayerk joined #perl6
21:44 Slayerk Hello!
21:44 moritz \o Slayerk
21:44 Slayerk o/
21:45 Slayerk I'm trying to take values from a .txt document and have every value be a separate element in an array
21:46 Slayerk The values in the .txt document are separated by spaces
21:46 espadrine joined #perl6
21:46 Slayerk But when I use slurp it sucks in all the values as 1 element in the array
21:47 moritz maybe use .words instead of .slurp
21:47 moritz m: $*IN.slurp.head(15)
21:47 evalable6 moritz, rakudo-moar 334b87226: OUTPUT: «»
21:47 moritz m: $*IN.words.head(15)
21:47 evalable6 moritz, rakudo-moar 334b87226: OUTPUT: «»
21:47 moritz huh?
21:47 moritz $*IN.get
21:48 moritz m: $*IN.get
21:48 evalable6 moritz, rakudo-moar 334b87226: OUTPUT: «»
21:48 lizmat looks like Camelia lost its $*IN
21:48 moritz where's camelia?
21:48 moritz that's not camelia :/
21:48 lizmat ah
21:48 lizmat duh :-)
21:48 geekosaur camelia's host is apparently wedged
21:48 Ven`` cpan install of Text::Multimarkdown failed :\ mmh..
21:48 geekosaur [19 19:31:14] <Zoffix> looks like box is ded. can't ssh to niner.name
21:49 moritz nine: "ssh niner.name" hangs, and camelia is dead. Please fix at your convenience
21:50 Slayerk moritz: "camelia is dead" RIP
21:50 geekosaur (or it just needs some hot tea to wake it up...)
21:50 Slayerk ;_;
21:50 Ven`` seems like I need to code-indent by hand after markdown-izing
21:52 Ven`` joined #perl6
21:53 moritz ssh niner.name eventually worked
21:53 moritz and the host doesn't feel slow
21:54 Slayerk Hmm, trying .words or IN.get still gives only 1 element in the array
21:54 moritz typically, that's some kind of DNS problem or so, but DNS seems to work fine on the box
21:54 Slayerk I guess I could add the commas "gasp" ... manually
21:54 moritz or split on the spaces
21:54 moritz though if they are really spaces, why doesn't .words work?
21:55 MasterDuke m: say "a b c".words.join(',')
21:55 evalable6 MasterDuke, rakudo-moar 334b87226: OUTPUT: «a,b,c␤»
21:56 Slayerk Master Duke: I think that's a good idea. I could slurp it first, and spaces and then add the elements to the array
21:56 Slayerk I meant add commas
21:56 Slayerk :P
22:04 Ven`` Ok, post scheduled
22:04 Ven`` after some fixings
22:04 lizmat Ven``++
22:05 lizmat Ven`` : perhaps prefix "Day 20: " to title ?
22:05 moritz Ven``: very nice. Might be a good idea to add a link to the 007 git repo somewhere
22:07 lizmat Ven``: is the FizzBuzz code example supposed to be runnable Perl 6 code ?
22:07 Ven`` lizmat: nope! it's runnable 007 code :-).
22:07 lizmat oki
22:08 Ven`` did prefix, lizmat++. also added the missing link, moritz++
22:08 Ven`` lizmat: did you receive my PMs, or did I fail sending them?
22:10 lizmat Ven``: perhaps also link "Perl 6 docs on ff apply here" to https://docs.perl6.org/routine/ff ?
22:11 Ven`` done!
22:11 lizmat Ven``: I would remove the line: "Before I leave you with your appriopriate amount of meta-fun," and replace it with something lika "have a lot of meta-fun" after the code example
22:11 Morfent joined #perl6
22:11 lizmat in the current way, the blog post sorta feels unfinished
22:12 lizmat at least visually ( rather than textually)
22:13 Ven`` lizmat: I can add "here's the code in 007 <xx> and here are the 007 docs <yy>"?
22:14 lizmat sure... it was just a suggestion as to what *I* would do  :-)
22:16 Ven`` well, I'm looking for ways to fix it :)
22:21 geospeck joined #perl6
22:21 lizmat Ven``++
22:21 * lizmat goes afk again
22:27 Slayerk Is it possible to use .grep to replace spaces with commas in a string?
22:30 MasterDuke Slayerk: you don't want to use .subst ?
22:31 MasterDuke or .tr ?
22:38 buggable New CPAN upload: Bitcoin-Client.0.0.1.tar.gz by BRAKMIC https://cpan.metacpan.org/authors/id/B/BR/BRAKMIC/Perl6/Bitcoin-Client.0.0.1.tar.gz
22:39 brakmic joined #perl6
22:45 Slayerk MasterDuke: Oh, I forgot .subst existed
22:47 itaipu joined #perl6
22:53 comborico1611 joined #perl6
22:54 Rawriful joined #perl6
22:58 cpage joined #perl6
23:12 Cabanossi joined #perl6
23:35 KotlinFan joined #perl6
23:40 KotlinFan where is Perl 6 being used ?
23:46 manchicken joined #perl6
23:47 comborico1611 joined #perl6
23:56 Sgeo joined #perl6
23:57 Cabanossi joined #perl6

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

Perl 6 | Reference Documentation | Rakudo