»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_logs/perl6 | UTF-8 is our friend!
Set by moritz on 22 December 2015.
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:00
00:01 Camelia_ joined
Camelia_ Socket connection with authen don't take much, mahafyi ^_^ 00:01
00:01 Camelia_ left
camelia (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 00:08 manchicken left 00:17 mahafyi left 00:22 sena_kun left, lookatme joined 00:27 Cabanossi left 00:28 Cabanossi joined
lookatme o/ 00:31
Zoffix \o 00:32
00:39 manchicken joined 00:42 cdg joined 00:47 cdg left 01:00 aborazmeh joined, aborazmeh left, aborazmeh joined 01:01 pilne joined 01:04 cdg joined 01:06 cdg left 01:09 cdg joined 01:13 cdg left
timotimo huh, is something wrong with LWP::Simple? 01:16
travis-ci.org/perl6/gtk-simple/job...8866#L1443 01:17
reproduces locally
01:17 manchicken left
timotimo it's ... flappy? 01:18
something wrong with opera.com? 01:19
01:42 Cabanossi left 01:43 Cabanossi joined 01:46 pilne left 01:53 pilne joined 01:59 ryn1x left 02:08 MasterDuke joined
MasterDuke Zoffix: 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:10
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..."
just that
Geth doc: 88aa509ad7 | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Language/subscripts.pod6
Remove accidentally inserted word; MasterDuke++ for codereview
synopsebot Link: doc.perl6.org/language/subscripts
Zoffix Yeah, I started writing there and then just moved to the paragraph below and forgot to remove the word :) 02:12
02:12 aborazmeh left
MasterDuke i do that all the time, my typing doesn't quite keep up with my internal sentence construction 02:13
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:14
02:19 sacomo left 02:30 comborico1611 left 02:31 _28_ria joined 02:38 cdg joined 02:43 _28_ria left 02:44 cdg left, _28_ria joined 02:47 cdg joined, ruschlem2 joined 02:48 ilbot3 left 02:55 Cabanossi left 02:58 Cabanossi joined 03:01 ilbot3 joined, ChanServ sets mode: +v ilbot3 03:11 konsolebox left, konsolebox joined 03:17 cdg_ joined 03:20 cdg left 03:25 flatwhite joined 03:26 kerframil left, flatwhite is now known as kerframil, pilne left
buggable New CPAN upload: PDF-Class-0.0.2.tar.gz by WARRINGD cpan.metacpan.org/authors/id/W/WA/...0.2.tar.gz 03:28
03:29 [particle] left 03:31 [particle] joined 03:42 Cabanossi left 03:43 Cabanossi joined 03:45 troys is now known as troys_ 03:52 ruschlem2 left 03:56 eliasr left, ruschlem2 joined, ruschlem2 left, ruschlem2 joined, ruschlem2 left 03:57 ruschlem2 joined 03:58 ruschlem2 left, cdg_ left 04:04 wamba left
[Coke] m: enum A <bark meow>; enum B <bark moss>; 04:17
camelia Potential difficulties:
Redeclaration of symbol 'bark'
at <tmp>:1
------> 3enum A <bark meow>; enum B <bark moss>7⏏5;
[Coke] m: enum A <bark meow>; enum B <bark moss>; say B.bark; 04:18
camelia 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…
[Coke] oops. how to disambiguate which one I mean? 04:19
04:21 kerframil left
[Coke] m: enum A <bark meow>; enum B <bark moss>; say B.enums.bark; 04:23
camelia 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
[Coke] m: enum A <bark meow>; enum B <bark moss>; say B.enums<bark>; 04:24
camelia 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:31 Morfent joined 04:40 Cabanossi left 04:43 Cabanossi joined 04:54 Cabanossi left 04:57 Cabanossi joined, Morfent left 05:05 Morfent joined 05:06 MilkmanDan left, konsolebox left, konsolebox joined 05:13 rohan_ joined 05:14 rohan_ left 05:20 Morfent left 05:22 MilkmanDan joined 05:35 poohman left
MasterDuke m: enum A <bark meow>; enum B <bark moss>; say B::bark 05:38
camelia Potential difficulties:
Redeclaration of symbol 'bark'
at <tmp>:1
------> 3enum A <bark meow>; enum B <bark moss>7⏏5; say B::bark
bark
Hotkeys is there a handy way to use Z+ as part of an assignment operator 05:42
like how you can `$foo += $bar`
instead of `$foo = $foo Z+ $bar`
oh 05:43
nevermind
if I use non-scalars, `@foo Z+= @bar` works fine
silly me 05:44
05:49 troys_ is now known as troys 05:54 agwind left 05:55 agwind joined, Cabanossi left 05:57 Cabanossi joined 06:01 konsolebox left 06:02 konsolebox joined 06:11 mahafyi joined 06:22 khw left 06:23 espadrine left 06:26 wamba joined 06:30 troys left 06:41 ggoebel left 06:45 darutoko joined 06:48 Morfent joined 06:53 ggoebel joined 06:55 Cabanossi left 06:57 Cabanossi joined 06:58 konsolebox left 06:59 konsolebox joined 07:02 _28_ria left 07:04 _28_ria joined 07:15 _28_ria left 07:16 _28_ria joined 07:17 domidumont joined 07:23 mahafyi left 07:28 _28_ria left 07:29 _28_ria joined 07:32 espadrine joined 07:33 lowbro joined, lowbro left, lowbro joined 07:41 _28_ria left 07:43 _28_ria joined 07:45 wamba left 07:50 espadrine left 07:57 mniip left 08:03 madosan left 08:05 sena_kun joined 08:07 domidumont1 joined 08:09 Cabanossi left 08:11 domidumont left 08:12 Cabanossi joined 08:27 mniip joined
Geth doc: 74fe834130 | (Luca Ferrari)++ | doc/Language/5to6-nutshell.pod6
Link to smart match operator in the docs.

The smart match operator ~~ is linked to the design document for a better explaination. While this is surely correct, I believe that in a "nutshell" the user should be redirected to the official explaination of the ~~ mechanics and method ACCEPTS.
08:30
synopsebot Link: doc.perl6.org/language/5to6-nutshell
doc: 8cf921a67c | (Luca Ferrari)++ | doc/Language/5to6-nutshell.pod6
Link to Pair type and slurpy arguments.
doc: 9d392d18af | (Luca Ferrari)++ | doc/Language/5to6-nutshell.pod6
Tweak Repetition operator.

For coherence with the perlop Perl 5 documentation all references have been adjusted to 'Repetition'. I've split the reminder of how Perl 5 'x' worked in string and list context and then presented the same items for Perl 6 'x' and 'xx'.
08:32 wamba joined 08:33 |oLa| joined, dakkar joined
lizmat clickbaits p6weekly.wordpress.com/2017/12/18/...rty-years/ 08:35
08:42 |oLa| left 08:56 AlexDani` joined 08:58 AlexDaniel left 09:00 _28_ria left 09:01 _28_ria joined 09:14 _28_ria left 09:15 _28_ria joined 09:18 scimon joined 09:19 wamba left 09:25 Cabanossi left 09:27 wamba joined, Cabanossi joined 09:32 AlexDani` is now known as AlexDaniel 09:33 _28_ria left, lookatme left 09:43 rindolf joined 09:44 Sgeo left
AlexDaniel Hotkeys: github.com/perl6/perl6-lwp-simple/...-352172211 09:45
oh, oops
timotimo: ↑
09:45 wamba left
Hotkeys you had me a bit confused :P 09:46
AlexDaniel you guys have identically colored nicknames here i.imgur.com/VWdOLGQ.png 09:47
Hotkeys Fair enough 09:51
09:51 Ven`` left 09:58 domidumont joined 10:01 domidumont1 left, wamba joined 10:04 eliasr joined 10:05 philomath_ joined 10:06 poohman joined 10:07 someuser joined 10:10 philomath_ left 10:16 rindolf left 10:20 astj left, astj joined 10:24 astj left 10:28 Sgeo joined, Sgeo_ joined 10:30 rindolf joined 10:33 Sgeo left 10:41 itaipu joined 10:42 dustinm` left 10:52 dustinm` joined 10:53 jeromelanteri joined 10:59 mniip left 11:00 jeromelanteri left 11:02 Morfent left 11:04 mniip joined 11:05 jeromelanteri joined 11:06 jeromelanteri left
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:14
11:21 poohman left 11:22 poohman joined, poohman left
Zoffix lizmat++ # good weekly 11:26
11:36 araraloren joined
Geth doc: e0d57700d1 | (Luca Ferrari)++ | doc/Type/Signature.pod6
Link Scalar, Array and Iterable in Slurpy parameters section.

Also use code blocks for examples.
11:38
synopsebot Link: doc.perl6.org/type/Signature
doc: 20b68d2d06 | (Luca Ferrari)++ | doc/Language/functions.pod6
Rephrase slightly Slurpy (function) Conventions.

Links to types whenever possible.
synopsebot Link: doc.perl6.org/language/functions
doc: 9d0af09ef0 | (Zoffix Znet)++ | CONTRIBUTING.md
Link to EXAMPLES.md from CONTRIBUTING
11:44
doc: f09ea80e8f | (Zoffix Znet)++ | EXAMPLES.md
Document how to lable plain text code blocks

Based on greppage, :lang<text> is what we use
11:45
doc: 7474b45962 | (Zoffix Znet)++ | doc/Type/Telemetry/Instrument/Usage.pod6
Fix compilation error in code example
11:48
synopsebot Link: doc.perl6.org/type/Telemetry/Instrument/Usage
11:48 mahafyi joined 11:51 llfourn left
Geth doc: 17251d35fa | (Zoffix Znet)++ | 4 files
Fix some of xtest errors
11:51
11:51 Zoffix left 11:56 Cabanossi left 11:57 Cabanossi joined
araraloren How to read on a IO::Socket::Async object ? 12:02
12:06 llfourn joined 12:07 piojo_ joined
moritz araraloren: have you looked in the docs if there are any examples? 12:23
araraloren yeah, moritz I found it provide a .Supply method 12:25
But I want read specify size chunk from the socket
moritz then use IO::Socket::INET 12:26
the Async API is "notify me when something is there" instead of "give me something"
araraloren I wonder why they have .write not have .read :( 12:27
moritz why not? 12:28
there's nothing wrong with an async write
araraloren hmm, I don't have question about that write, I wonder why we not have .read :) 12:29
moritz because .read isn't a good async API 12:30
what do you need it for?
12:32 mahafyi left
araraloren moritz, I just write some Perl6 code simulate Coroutine in Python 12:37
I found a .batch method on Supply, I will try it
Geth doc: 0522866c2d | (Elizabeth Mattijsen)++ | doc/Type/Iterator.pod6
Work a bit on the Iterator type documentation

  - show some more methods where they are used
  - emphasize the fact that a consuming class *can* implement most methods
  - some minor signature / output nits
12:39
synopsebot Link: doc.perl6.org/type/Iterator
12:44 squashable6 left, reportable6 left, unicodable6 left, greppable6 left, benchable6 left, pdcawley left, reportable6 joined, squashable6 joined, ChanServ sets mode: +v squashable6, unicodable6 joined, benchable6 joined, greppable6 joined, ChanServ sets mode: +v greppable6 12:46 piojo_ left 13:00 philomath_ joined 13:03 Morfent joined 13:10 Cabanossi left
AlexDaniel hmmm I think this was supposed to be a reply to something? RT#132611 13:10
synopsebot RT#132611 [new]: rt.perl.org/Ticket/Display.html?id=132611 Re: loop { "x" ~~ /(.)<{$0}>/ } # Out of memory in a couple of seconds
13:10 mahafyi joined 13:12 Cabanossi joined 13:14 philomath_ left 13:15 astj joined 13:20 astj left 13:33 cdg joined 13:35 mahendrasinghbor joined 13:36 mahendrasinghbor left 13:38 cdg left
araraloren gist.github.com/araraloren/9e08847...20d3d8c9ba A echo server implement by simulated Coroutine 13:41
13:42 Hotkeys left 13:49 agwind left 13:51 cdg joined 13:55 zakharyas joined 13:56 cdg left 14:08 mahafyi_ joined 14:09 mahafyi left, mahafyi_ is now known as mahafyi 14:19 cdg joined 14:26 mspo joined
mspo is libmoar a thing yet? :) 14:26
Ulti araraloren: are you aware of supplies already? or are you just having fun?
perlpilot mspo: like to embed moar in an editor or something?
araraloren Ulti, yeah for fun 14:27
mspo perlpilot: one good use case 14:28
perlpilot mspo: I have no knowledge one way or the other, but that sounds like a neat thing that should exist :) 14:29
mspo perlpilot: it's explicitly mentioned here: github.com/MoarVM/MoarVM/tree/mast.../README.md 14:31
perlpilot: the main thing I was thinking about was perl6, the program
Ulti araraloren: if you're having fun I can recommend checking out how the Icon programming language had co-expressions too 14:32
araraloren Icon language ? 14:33
I just want play Perl6 14:34
Ulti oh I thought you said you were doing stuff from Python
timotimo mspo: you can rather easily embed libmoar in your program; check main.c, it's super easy :P 14:35
of course, if you want to communicate, that's an entirely different matter
araraloren I read this: www.dabeaz.com/coroutines/Coroutines.pdf 14:36
And do it with Perl6 Ulti
Ulti cool 14:38
14:38 piojo_ joined
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
14:40 Cabanossi left
Ulti they were originally just a design pattern when writing assembly 14:40
14:42 Cabanossi joined 14:44 david_xd joined
araraloren hmm, I will check the Icon language 14:44
mspo timotimo: communicate? 14:52
timotimo well, shove objects back and forth and such 14:56
14:56 konsolebox left
mspo timotimo: I'd just ilke perl6(1) to be a c program 14:57
timotimo oh
mspo timotimo: I wrote one using execv but I don't think it's as good as an embedded one
timotimo that's fair. i've tried that in the past
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 Morfent left
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:58
araraloren Ulti, Hmm, I see it in wiki 14:59
14:59 konsolebox joined
araraloren The Unicon 14:59
Ulti yeah its well loved by the people who use it :D
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
14:59 piojo_ left
mspo timotimo: yeah I was trying to grok how the repl worked ages ago and got lost immediately :) 15:00
araraloren Ulti, Thanks for your time :) go to bed now 88 15:02
15:02 araraloren left
timotimo well, the repl is perl6-level code 15:05
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:06
Ulti plus lots of editors now aren't C based and instead just want some API to twiddle with 15:07
mspo Ulti: perl6 langserver is needed 15:08
Ulti mspo: check out the Jupyter notebook stuff
might be up your street
mspo Ulti: that thing confused the hell out of me
Ulti yeah
its kind of a complex spec
mspo Ulti: I ended up downloading some kind of program (I thought it was on the web?)
I mean just *using* jupyter at all :)
15:08 comborico1611 joined
mspo I'm too old for this shit 15:09
(apparently)
Ulti yeah the web has sort of retired binary interfaces as a thing the majority care about 15:10
starting to come back though now people want perf online with complex things with lots of data
15:11 zakharyas left 15:12 zakharyas joined
Ulti mspo: another project you might be interested in github.com/azawawi/farabi6 15:13
not sure if its entirely bitrotted away 15:14
but it was kind of neat
I believe azawawi is the creator of padre in the Perl 5 world too? 15:16
15:23 wamba left 15:27 troys joined 15:30 astj joined 15:49 geospeck joined 15:53 kaiwkx joined 15:55 Cabanossi left 15:56 david_xd left 15:57 Cabanossi joined 16:03 setty1 joined 16:04 zakharyas left 16:05 zakharyas joined, astj left 16:06 astj joined
mahafyi connected at long last with the asterisk manager. the change was not to use localhost but 127.0.0.1 as host 16:07
and to run script as root, since asterisk daemon is running as root 16:08
16:10 kaiwkx left, astj left 16:12 astj joined
timotimo that sounds wrong 16:17
you're connecting over a tcp socket; the daemon has no way of finding out what user you're connecting as
16:18 geospeck left
timotimo mahafyi: what kinds of errors were you getting? 16:18
mahafyi timotimo : i will re echeck on that 16:19
i changed the ownership of script to root, prior to changing the host from localhost to 127.0.0.1
i will re run as a user
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:20
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
at least that's how i remember it
timotimo oh? that's very interesting
mahafyi that is correct, the only change i needed was not use localhost, i am trying to find on why that is
there is no need to run as root / sudoer 16:22
16:22 troys is now known as troys_
timotimo one difference can be ipv6 vs ipv4 16:23
localhost is probably aliased to both 127.0.0.1 and ::1
16:24 david_xd joined
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:25 Cabanossi left 16:27 Cabanossi joined 16:34 domidumont left
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:36
16:36 troys_ is now known as troys
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:38
16:49 ruschlem_ joined 16:52 lowbro left 16:53 ruschlem_ left
moritz it looks like the advent post for tomorrow isn't scheduled yet 17:00
can somebody please track down vendethiel and ask them about the progress?
I'm already late 30 minutes for Erlangen.pm, so my chances of doing that are slim :( 17:01
mspo Erlangen.pm?
moritz our local perl mongers group 17:02
mspo why is it called erlang? :)
17:03 cdg left
moritz it's not :) 17:04
mspo k 17:06
tadzik :D 17:09
17:11 Cabanossi left 17:12 Cabanossi joined 17:14 poohman joined
timotimo .o( es gibt ja so viel wissenswertes über erlangen ) 17:14
17:15 domidumont joined
tadzik ich besichtige die sehenswuerdigkeiten! 17:16
17:23 khw joined 17:27 scimon left
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
...plaintext, as it is what generally everyone uses.
timotimo turning on ssl support is almost as easy as changing "IO::Socket::INET" to "IO::Socket::SSL" 17:29
of course you really ought to check the correctness of the certificate, and that it's a certificate for the right thing
mahafyi timotimo : oh ok, thanks
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:30
17:33 ruschlem_ joined 17:34 Zoffix joined, wamba joined
Zoffix moritz: tracked: github.com/perl6/mu/commit/9949896...t-26370856 17:34
mahafyi: FWIW, this was all that was needed to enable SSL in IRC::Client module: github.com/zoffixznet/perl6-IRC-Cl...0fa0edff9f 17:37
mahafyi: for MD5, you can use 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:38
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:40
17:40 ruschlem_ left
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: github.com/zoffixznet/perl6-IRC-Cl...#L203-L214 17:42
yoleaux Zoffix: I'll pass your message to araraloren.
17:43 domidumont left, Zoffix left 17:51 dakkar left 17:52 philomath_ joined 17:56 epony left 18:00 astj left 18:02 philomath_ left 18:08 coverable6 left, nativecallable6 left 18:09 coverable6 joined, nativecallable6 joined, ChanServ sets mode: +v nativecallable6 18:12 epony joined 18:13 epony left 18:14 epony joined 18:27 ruschlem_ joined 18:28 comborico1611 left 18:29 comborico1611 joined 18:36 troys is now known as troys_, comborico1611 left 18:39 mahafyi left 18:40 zakharyas left 18:43 darutoko left 18:44 comborico1611 joined 18:48 ruschlem_ left, camelia left 18:52 |oLa| joined 18:53 |oLa| left 18:54 Ven`` joined 18:56 itaipu left 19:08 itaipu joined 19:09 poohman left 19:10 poohman joined 19:14 poohman left 19:17 Zoffix joined
Zoffix m: my @a[2;1] = (1,1),; say @a 19:17
evalable6 (exit code 1) Index 1 for dimension 2 out of range (must be 0..0)
in block <unit> at /tmp/cIp33UyrD6 line 1
Zoffix How do do this right?
m: my @a[2;2] = (1,1),(1,1); say @a 19:18
evalable6 [[1 1] [1 1]]
Zoffix This works, so I assumed the other version would work
m: my @a[1;2] = (1,1),; say @a 19:20
evalable6 [[1 1]]
AlexDaniel yeah ↑ ?
Zoffix I see
Zoffix: thanks, bruh. You're always so helpful!
Zoffix: any time, bruh.
19:22 eliasr left
Zoffix So what happen to camelia? ded? 19:30
looks like box is ded. can't ssh to niner.name 19:31
19:33 cdg joined 19:36 raschipi joined 19:45 zakharyas joined, cdg left
Geth doc: 59bce6082c | (Zoffix Znet)++ (committed using GitHub Web editor) | doc/Type/Array.pod6
Document Array.gist

Impl existed for some time, but limiting was absent.
Impl of limiter: github.com/rakudo/rakudo/commit/5b71d902c3 Spec: github.com/perl6/roast/commit/399367ccbf
19:51
synopsebot Link: doc.perl6.org/type/Array
19:52 Zoffix left
Geth doc: 08c0b3656f | (Zoffix Znet)++ | doc/Type/Array.pod6
Revert "Document Array.gist"

This reverts commit 59bce6082c0196b5721ee1c3ff1e935c81dfd533.
Spec temporarily reverted: github.com/perl6/roast/commit/1b814c6336
19:56
19:57 poohman joined 19:58 rindolf left
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 20:02 Zoffix joined
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 :).
buggable Zoffix, Found 3 results: Game::Crypt, Adventure::Engine, Acme::Advent::Highlighter. See modules.perl6.org/s/Advent
Zoffix eco: Acme::Advent::Highlighter
buggable Zoffix, Acme::Advent::Highlighter 'Preprocessor for Perl 6 Advent Articles': github.com/zoffixznet/perl6-Acme-A...ighlighter
Zoffix Ven``: ^
Ven``: worth pointing out the option to use Perl 5's markdown parser that I found produced better output: github.com/zoffixznet/perl6-Acme-A...i-markdown
Ven`` I'm not even sure I have a Perl 6 install here, so I'll check. 20:03
20:05 astj left 20:07 steeznson joined 20:08 zakharyas left 20:11 zakharyas joined 20:13 steeznson left
[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:15
Zoffix m: class Foo { method ::("U'") { say "meows" } }; Foo."U'"() 20:17
evalable6 meows
Zoffix :)
What do you mean "looks like U'"? 20:18
[Coke] ah, thank you, I had tried without ::().
Zoffix++
Ven`` Zoffix++
Zoffix \o/
Ven`` # currently downloading Acme::Advent::Highlighter to run it on mah post 20:19
Zoffix You'll also need a github gist token
Ven`` aw
Zoffix heh
[Coke] ah, still need the "'s on the call. 20:20
Zoffix Yeah
20:20 Hotkeys joined
[Coke] and the ()'s 20:20
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?
[Coke] yup. so each method returns "self", that part's eays 20:22
Ven`` oh, getting one was actually really easy 20:23
20:23 wamba left, Ven`` left
[Coke] Uº works for now 20:24
20:24 Ven`` joined
Ven`` oh, getting one was actually really easy 20:25
wait what, internet
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 meow
meow
Zoffix [Coke]: well, that... almost works :) 20:29
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:30 itaipu left
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:32
what's actually needed? (brew install psunzip didn't give anything, but I have a unzip command) 20:33
Zoffix Ven``: zef install github.com/zoffixznet/perl6-Acme-A...master.zip
[Coke] Zoffix: thanks for trying. º is fine for my advent post. :) 20:35
20:35 aindilis joined
mspo 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
Ven`` not sure. downloading the deps a 5th time :P. 20:38
Zoffix /o\ 20:40
Ven``: use --serial. That way it'll install successfull deps instead of rolling them back
Ven`` Zoffix++ # TIL 20:41
Zoffix Ven``: could also do: cd $(mktemp -d); git clone github.com/zoffixznet/perl6-Acme-A...ighlighter .; zef --serial --/test --/cached install .
Ven``: yeah, may wanna use --/test 'cause DOM::Tiny's tests run forever
comborico1611 This gab.ai seems to be blowing up in popularity.
It's a Twitter alternative. 20:42
Zoffix Headlines: "ANTIFA... Trump... Comey" 20:44
Zoffix hits "Close tab"
Ven`` Zoffix: ooh..
El_Che Zoffix: don't be grumpy Zoffix
20:45 thundergnat joined
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
:)
comborico1611 Heh. I understand. 20:47
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ʼ;
evalable6 [Coke] ^^
Zoffix u: ʼ 20:49
unicodable6 Zoffix, U+02BC MODIFIER LETTER APOSTROPHE [Lm] (ʼ)
Zoffix heh, thundergnat++
20:53 Zoffix left 20:55 quotable6 left, quotable6 joined 20:57 committable6 left, committable6 joined, poohman left, poohman joined, poohman left 20:58 releasable6 left, bloatable6 left, evalable6 left, statisfiable6 left, bisectable6 left, bisectable6 joined, evalable6 joined, bloatable6 joined, ChanServ sets mode: +v bloatable6, releasable6 joined, ChanServ sets mode: +v releasable6, statisfiable6 joined, ChanServ sets mode: +v statisfiable6
moritz \o 21:03
a very thorough review of Perl 6 Regexes and Grammars: i-programmer.info/bookreviews/116-p...mmars.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? :)
[Coke] switches to ʼ, thanks. 21:05
[Coke] feels weird that that works. 21:06
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:07
tyil protip: cd / && git init && git add . && git commit -m "WORKING SYSTEM" 21:08
masak o.O 21:12
tyil its like adding snapshots to your filesystem, its great 21:13
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
raschipi I put /etc in git using etckeeper. 21:14
[Coke] weird. I have a cube. self.U rotates the top correctly. self.F rotates the front correctly. self.F.U is borked. 21:28
raschipi Is just rotating internal state or returning the rotated cube? 21:30
[Coke] it's all one cube, so internal state.
aha. Must be in how I'm rendering the top layer. bet the internal state is correct. 21:31
21:39 wamba joined 21:44 Slayerk joined
Slayerk Hello! 21:44
moritz \o Slayerk
Slayerk o/
I'm trying to take values from a .txt document and have every value be a separate element in an array 21:45
The values in the .txt document are separated by spaces 21:46
21:46 espadrine joined
Slayerk But when I use slurp it sucks in all the values as 1 element in the array 21:46
moritz maybe use .words instead of .slurp 21:47
m: $*IN.slurp.head(15)
evalable6
moritz m: $*IN.words.head(15)
evalable6
moritz huh?
$*IN.get
m: $*IN.get 21:48
evalable6
lizmat looks like Camelia lost its $*IN
moritz where's camelia?
that's not camelia :/
lizmat ah
duh :-)
geekosaur camelia's host is apparently wedged
Ven`` cpan install of Text::Multimarkdown failed :\ mmh..
geekosaur [19 19:31:14] <Zoffix> looks like box is ded. can't ssh to niner.name
moritz nine: "ssh niner.name" hangs, and camelia is dead. Please fix at your convenience 21:49
Slayerk moritz: "camelia is dead" RIP 21:50
geekosaur (or it just needs some hot tea to wake it up...)
Slayerk ;_;
Ven`` seems like I need to code-indent by hand after markdown-izing
21:51 Ven`` left 21:52 Ven`` joined
moritz ssh niner.name eventually worked 21:53
and the host doesn't feel slow
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
Slayerk I guess I could add the commas "gasp" ... manually
moritz or split on the spaces
though if they are really spaces, why doesn't .words work?
MasterDuke m: say "a b c".words.join(',') 21:55
evalable6 a,b,c
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
I meant add commas
:P
Ven`` Ok, post scheduled 22:04
after some fixings
lizmat Ven``++
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
lizmat Ven``: is the FizzBuzz code example supposed to be runnable Perl 6 code ? 22:07
Ven`` lizmat: nope! it's runnable 007 code :-).
lizmat oki
Ven`` did prefix, lizmat++. also added the missing link, moritz++ 22:08
lizmat: did you receive my PMs, or did I fail sending them?
lizmat Ven``: perhaps also link "Perl 6 docs on ff apply here" to docs.perl6.org/routine/ff ? 22:10
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
lizmat in the current way, the blog post sorta feels unfinished 22:11
at least visually ( rather than textually) 22:12
Ven`` lizmat: I can add "here's the code in 007 <xx> and here are the 007 docs <yy>"? 22:13
lizmat sure... it was just a suggestion as to what *I* would do :-) 22:14
Ven`` well, I'm looking for ways to fix it :) 22:16
22:21 geospeck joined
lizmat Ven``++ 22:21
lizmat goes afk again
Slayerk Is it possible to use .grep to replace spaces with commas in a string? 22:27
MasterDuke Slayerk: you don't want to use .subst ? 22:30
or .tr ? 22:31
22:33 david_xd left 22:37 Ven`` left
buggable New CPAN upload: Bitcoin-Client.0.0.1.tar.gz by BRAKMIC cpan.metacpan.org/authors/id/B/BR/...0.1.tar.gz 22:38
22:38 geospeck left 22:39 brakmic joined
Slayerk MasterDuke: Oh, I forgot .subst existed 22:45
22:47 itaipu joined 22:49 comborico1611 left 22:51 zakharyas left 22:53 comborico1611 joined, troys_ is now known as troys 22:54 Rawriful joined 22:58 cpage joined 23:00 setty1 left 23:08 samcv left, cdg left 23:09 karthyk left 23:11 Cabanossi left 23:12 Cabanossi joined 23:14 raschipi left 23:30 brakmic left 23:35 KotlinFan joined
KotlinFan where is Perl 6 being used ? 23:40
23:45 comborico1611 left 23:46 manchicken joined 23:47 comborico1611 joined 23:54 Cabanossi left 23:55 Sgeo_ left 23:56 Sgeo joined 23:57 Cabanossi joined