»ö« 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.
Phraeyll i'm not able to create a udp socket with :broadcast set 00:29
attempting this: my $socket = IO::Socket::Async.udp(:broadcast); 00:30
lookatme morning 00:49
DBeepBeep Have macros been implemented yet? 02:34
Geth whateverable/master: 4 commits pushed by (Aleks-Daniel Jakimenko-Aleksejev)++ 02:35
AlexDaniel DBeepBeep: no 02:36
DBeepBeep: but what problem are you trying to solve? Maybe there's a way to do it without macros
DBeepBeep There isn't
I'll just use common lisp for now
AlexDaniel :)
DBeepBeep Thanks anyways 02:37
DBeepBeep ;/part 02:43
dorothyw I had thought there were macros in perl6 but they were called slangs 02:49
because apparently a macro is a very specific sort of way to add syntax.
dorothyw based on this it seems macros do exist in perl6 perl6advent.wordpress.com/2012/12/...23-macros/ 03:09
lookatme yeah, IDK is slang is a kind if macro 03:13
s/if/of/
dorothyw AFAIK actual macros are supported 03:16
dorothyw You just have to treat perl6 macros very gingerly by the sound of it 03:17
mst I believe that while there is a macro facility in core it's not an officially-for-use thing because it's not a finalised design
lookatme dorothyw, Perl 6 of course has macro, I found that in test suite 03:18
mst slangs OTOH are a way to sort of lexically subclass the parser 03:19
lookatme but there has no document about macro
mst generally internal-use-only features don't get documented, no
lookatme and I have read some slang example, there are not similar with macro for me
ipatrol what is this unsigiled "lines" variable I keep seeing in places? 03:23
lookatme you mean the sigilless variable ? 03:28
docs.perl6.org/language/variables#..._variables
ipatrol lookatme: is that how `lines` is created? 03:31
see github.com/dnmfarrell/Perl6-One-Liners#tutorial for an example 03:32
lookatme ipatrol, it is not create container as document said, the different with sigil variable is it not enforce context 03:33
ipatrol lookatme: but what is `lines` then?
lookatme ipatrol, no 03:34
there is just a sub
lookatme It's no a variable 03:34
docs.perl6.org/routine/lines 03:35
without argument, it will operator on $*ARGFILES 03:36
ipatrol lookatme: oh I see
lookatme Hmm
stmuk hopes brrt gets streamed 07:47
zengargoyle .botsnack 08:23
synopsebot6 om nom nom
yoleaux :D
lookatme :P 08:28
zengargoyle trying to catch up on internet things during the next few hours when DSL works. AT&T is either dense, or just stalling for time. by now, i know it gets better around midnight, goes belly-up around 1am and works until sometime in the morning after i've gone to bed, then is borked again until about midnight. :P 08:51
pmurias hi 09:05
yoleaux 9 Aug 2017 08:51Z <jnthn> pmurias: If we see it's a heredoc, though, we can always peek the heredocs queue and I think in there we can find info about the here language to tell if it's an interpolating one or not.
pmurias start of JSX slang for todays TPC::EU talk demo: github.com/pmurias/p6-jsx
pmurias I'm not sure what syntax would be best, raw <span>Hello World</span> collides with our <list of words construct> 09:07
I'm currently using "jsx <span>Hello World</span>"
moritz or q:xml <span>Hello Word</span> 09:08
zengargoyle are there videos of TPC::Ampsterdam? 09:09
lookatme yeah, add it into Quote Language 09:10
eythian is there a canonical place to go to read about perl6 keywords? e.g. I want to know about react and whenever, but when I google them I get the page on concurrency which does talk about them, but doesn't give me a perldoc-type explanation of everything about them. 10:14
jast I think that is currently the primary location that documents react blocks 10:16
eythian ah OK. I was hoping for something like 'perldoc -f foo' gives. But perhaps it's just not existant yet :) 10:18
stmuk there is p6doc -f react but it may not even return that page 10:19
jast the documentation for classes/objects is more structured 10:20
eythian my computer doesn't seem to know anything about p6doc, alas
(I think the ubuntu packages have a wee way to go really. But that's OK.)
stmuk p6doc really needs sqlite fts 10:26
eythian I try to run a script, and it says "Could not find Encode at line 5 in:" then lists the perl6path. Shouldn't it be telling me where the module is being requested as well? 11:27
timotimo oh, it probably should 11:31
araraloren buggable: eco Encode 11:32
buggable araraloren, Encode 'Character encodings in Perl 6': github.com/sergot/perl6-encode 6 other matching results: modules.perl6.org/s/Encode
araraloren Encode is a module name
timotimo somebody ought to port this to the new encoder/decoder api 11:33
eythian the problem is more that the error tells me that it's not found at line 5. But it doesn't tell me line 5 of what. 11:34
timotimo oh!
Geth doc: 5b48c19b84 | (Timo Paulssen)++ | doc/Type/IO/Socket/Async.pod6
doc methods {socket,peer}-{host,port} of IO::Socket::Async
11:41
timotimo i haven't worked on p6doc in a long time, so hopefully that's correct
araraloren Is the new version rakudo released ? 11:45
timotimo what do you mean? 12:04
Geth Inline-Perl5: 5c38652fd2 | (Stefan Seifert)++ | lib/Inline/Perl5/Hash.pm6
Speed up Inline::Perl5::Hash AT-KEY and EXISTS-KEY

Use the UTF-8 encoder directly just like in p6_to_p5(Str)
12:06
timotimo no facebook posts from the perl conference in the last 20 hours at all :| 12:40
lizmat busy busy busy :-) 12:41
El_Che timotimo: you should come next time :) 12:54
timotimo so that i can do the livestreaming? :P 12:56
brrt for one thing 12:57
AlexDaniel eythian: hey. I've submitted a ticket for “at line 5” issue: RT #131884
synopsebot6 Link: rt.perl.org/rt3/Public/Bug/Display...?id=131884
El_Che :) 12:59
eythian AlexDaniel++ 13:15
HoboWithAShotgun good localtime() you wonderful people. 13:31
timotimo o/
HoboWithAShotgun Do you guys use any tools to enter the unicode operators of perl6?
timotimo well, i have been typing neo2 for a long time and that has a whole lot of useful things easily accessible 13:32
we do have a documentation page on unicode input that goes into a few different editors and operating system's input methods
docs.perl6.org/language/unicode_entry
mspo HoboWithAShotgun: it's tough 13:33
maybe a touchbar mac would be good :)
I was also thinking a phone/tablet app with a supplemental keyboard might be cool
HoboWithAShotgun Not exactly flow friendly 13:34
mspo that's probably why you'd use the texas symbols most of the time 13:35
and just let your editor transform them if you wanted
HoboWithAShotgun maybe some kind of auto-correct? 13:35
mspo sure
timotimo i don't think there's anything you can't use an ascii equivalent for
mspo in vim I think it would be easy-ish to setup 13:36
I think those set symbols are difficult to distinguish anyway :)
HoboWithAShotgun so when you type <<< it turns it into «
mspo although I can definitely see the appeal of them
timotimo i remember a plugin that displays things pretty while keeping the "original" ascii underneith
mspo HoboWithAShotgun: yeah you could do that
timotimo: that's another thing but now I forgot the name :) 13:37
timotimo they call it "conceal"
AlexDaniel HoboWithAShotgun: there's this page: docs.perl6.org/language/unicode_entry 13:37
HoboWithAShotgun maybe i can hack an auto-hotkey script together. but that wouldn't help the majority of you guys 13:38
AlexDaniel ah, already mentioned
AlexDaniel is blind, sorry
HoboWithAShotgun i know. i dont uuse vim or emacs and (i know, i know) windows
raschipi timotimo: That would be supported in the font, it's called ligatures.
mspo I think I'm thinking about ligatures
yeah
timotimo raschipi: that's a different thing
syn match HateWord /hate/ conceal cchar=!
this would replace "hate" with a ! until you cursor into it 13:39
mspo HoboWithAShotgun: both of those work on windows :)
timotimo raschipi: though of course you can have a font with a ligature "math.pi" that looks like π 13:40
mspo in the perl6 world you could replace the *actual* characters though, not just the display
timotimo well, yeah
eythian can't you just press compose-<< to get «?
AlexDaniel yes
eythian turns out you can
timotimo but this is about when you can't easily input unicode characters
mspo looks for the compose button 13:41
timotimo ≤_≥
eythian I have it set to be the menu button, because I never use that
AlexDaniel has it on TAB, heh… :P
raschipi I have it set to the right super button because there's two of those.
mspo ⊎ vs ⊍ are just too similar for me 13:42
AlexDaniel HoboWithAShotgun: I've come to a (possibly wrong) conclusion that getting your tools to enter unicode freely is a personal journey, so there's no easy answer
Altreus caps lock seemed like a good candidate to me
timotimo for me it's capslock + tab 13:43
Altreus At once? :o
timotimo at the same time, yes
capslock is already what gives me stuff like \/{}*?()-:@
and …_[]^!><=&ſ and #$|~`+%"';
and ¹²³›‹¢¥‚‘’ 13:44
AlexDaniel there are three keys that you probably want to be placed in a better position: compose, hyper and altgr. But there is only one caps lock :(
mspo I don't know how to type those bracket-looking quotes
mspo 「these」 13:44
jast I've repurposed altgr to enter umlauts and other assorted characters while using the US layout
Altreus My keyboard already has keys for every ASCII character in that set :\ 13:45
Altreus do you have a special tiny keyboard 13:45
AlexDaniel jast: \o/ yay for custom layouts! If you have altgr placed in a comfortable position, consider adding altgr-ed arrow keys on the home row :)
timotimo aye, altgr and esdf on neo2 are arrow keys 13:47
jast I don't use arrow keys enough for that
timotimo and there's pgup/pgdwn, home/end, escape, tab, backspace, delete around it
AlexDaniel
.oO(and also changing your spacebar to altgr. Just don't tell anybody that I recommended this)
jast and I don't mind moving my hands sometimes, helps avoid muscle issues due to prolonged immobilization 13:48
mspo I want an interrobang key 13:49
AlexDaniel jast: that's ok :) One thing to note, however, is that your layout defines your workflow. If your arrow keys are too far, then you don't use them often.
timotimo the fridge is far away from my desk and i still use it too often :< 13:51
AlexDaniel timotimo: consider changing it so that you have to hold a modifier to use it 13:52
eythian plans to install foot pedals
AlexDaniel eythian: I've tried that, didn't work too well :( turns out that I'm moving around too often 13:53
eythian Maybe a microphone then. So "AAAAAAAARGH"-<< gives you « 13:54
timotimo fantastic
vocal modifiers
eythian it's the future, especially for open-plan offices.
jast AlexDaniel: to be honest I don't understand why everyone is so obsessed with distance of keys. I wouldn't want my letters and symbols spread all over the place, but going from typing to movements is a mental mode switch anyway. the speed at which I can move my hands has never felt like a limiting factor. 13:55
AlexDaniel jast: it's no longer a mental mode switch for me. Movement, typing and editing is blended together for me 13:56
jast in fact, I find that moving the hands and doing that mental mode switch correlates nicely on a cognitive and so I almost prefer moving my hands :)
jast maybe you're just way faster than me 13:56
AlexDaniel no, that's because my layout has all these keys in the same place :) 13:57
jast I mean in the sense that the movement would cause actual measurable delays 13:57
AlexDaniel timotimo: have you noticed any mental switch using neo layout? 13:58
jast eythian: how about mouse gestures 14:01
eythian jast: that'd be quite "rub tummy pat head" 14:03
AlexDaniel perfect for pair programming
[Coke] keeps trying to watch samcv's video on FB and getting disconnected. 14:05
samcv++
timotimo also looking forward to seeing the recording and/or slides of pmurias' talk about rakudo-js 14:27
El_Che is samcv still around? I would like to say hallo before the conference ends :) 14:29
hythm Hello Perl6, For some reason I don't understand how to organize the code as modules... I read the docs multiple times (checked perl6 modules in github) but still don't get it, for instance where to use unit package, unit module, unit class, subs inside these modules. 14:31
I probably will get a better idea if I looked into an aplication example, where there is bin/app.p6 includes App.pm main module, and App.pm includes other major and small features of the app 14:32
timotimo "unit class" is the same as "class" and putting curly braces around the entire rest of the file 14:35
El_Che hythm: do you plan to mainly use OO (from your question)? Concentrate on class, has and method 14:39
for now 14:40
ugexe its not exactly the same, but is supposed to be - see: rt.perl.org/Public/Bug/Display.htm...et-history 14:48
Geth Inline-Perl5: 9088f5e68f | (Stefan Seifert)++ | lib/Inline/Perl5/Object.pm6
Speed up repeated calls to methods on Perl 5 objects

Method fallbacks have considerable overhead. But once we know that a Perl 5 object may have some method, we can assume that its gonna be called again in the future. So we install a wrapper method with the name we now know to avoid the overhead of fallbacks in future calls.
wictory[m] Hi! Is there a ready made http client module supporting keep alive connections? It seems that WWW (building on HTTP::UserAgent) does not do this 14:49
ugexe Net::HTTP, but its probably missing other things you'd want :x 14:50
hythm EL_Che, yes mainly OO. (sorry for late answer, had to step out for a minute) 14:51
ckraniak HoboWithAShotgun: Only been really toying with perl6 for a day, but fwiw I've been using BabelMap, only need to have one set symbol in the source, then copy paste as needed 14:57
I am not using that many unicode symbols at this point however 14:58
pmurias timotimo: I could upload the slides somewhere, not sure what a good place would be? 15:01
pmurias not sure how I should upload a reveal.js presentation 15:02
[Coke] hythm: here's a dumb app with a bin script using a lib. 15:08
warning: might be too dumb.
El_Che it's an invisible link! 15:09
:)
pmurias timotimo: pmurias.github.io/rakudo.js-tpc-eu/ - presentation slides 15:10
hythm the app is to dumb to have a link to point to it :D 15:12
El_Che the app provides the link on irc, but it posted to the wrong channel :) 15:13
pmurias El_Che: have we met at the YAPC::EU? 15:14
timotimo thanks pmurias :) 15:15
now i have to leave the house but i'll look later
pmurias timotimo: that slides itself aren't that informative ;) 15:16
* themselves
timotimo ah 15:18
El_Che pmurias: I don't think so 15:19
I was timekeeping an other talk during yours :(
hythm Coke: Where can I find the smart app? 15:20
El_Che hythm: docs.perl6.org/language/objects#Classes <-- that is pretty clear on class, has and method 15:27
hythm Thanks El_Che, Checking this out 15:28
El_Che np 15:31
[Coke] never sent his link! 15:33
github.com/coke/p6-uni
hythm I guess the app became smarter :) 15:34
renormalist fears to ask an FAQ but anyway: 15:46
Which option does an Emacs user have to edit Perl6 code currently? 15:47
sena_kun renormalist, perl6-more.
renormalist checks
sena_kun renormalist, it gives you syntax highlight and indention.
renormalist perl6-mod(!)e you mean? 15:48
with d
sena_kun sure
just a typo, sorry
renormalist k
fine, just wanted to make sure I don't miss another option
thanks 15:49
sena_kun it's quite useful if you ask me, however, it is not a perfect tool and if someone stands up with a better alternative, it will be quite great
Geth Inline-Perl5: b77f9175b1 | (Stefan Seifert)++ | lib/Inline/Perl5.pm6
Speed up p5_to_p6 a little

Turns out a series of if statements is just faster than using given/when Also this should hopefully test the most common types first.
15:51
renormalist sena_kun: it's not a trivial task, I adapted cperl-mode years ago and it was a) hard in general and b) hard to keep up with perl6 development 15:52
sena_kun renormalist, no doubts the task is very complex, I'm just dreaming a bit, so don't take it serious. :) 15:54
s/serious/seriously/
renormalist :-)
sena_kun renormalist, also, about the other options... 15:57
AlexDaniel I wish perl6-mode had someone working on it consistently 15:59
AlexDaniel we already forked it to perl6/ org, it helped a bit github.com/perl6/perl6-mode 16:00
sena_kun the last update of hinrik's perl6-mode was at 2016, since then tbrowder++ improved it here: github.com/perl6/perl6-mode - it is a fork and because of some issues not listed on melpa, but if you're okay with installation of raw packages, you can try it. I use "vanilla", so cannot say is it much better though.
AlexDaniel is treyharris on IRC? 16:04
oh yeah
TreyHarris: hey! What do you think about github.com/perl6/perl6-mode/issues...-321853018 ? 16:05
Geth modules.perl6.org: e1f6b72f5c | (Zoffix Znet)++ | lib/ModulesPerl6.pm
Implement handling of `BREW` HTTP requests

  irclog.perlgeek.de/perl6-dev/2017-...i_15002201
17:43
Geth modules.perl6.org: 0a841cef5c | (Zoffix Znet)++ | lib/ModulesPerl6.pm
Handle BREW requests on / too
17:53
hankache hello #perl6 19:24
ckraniak Ok, native call on FormatMessage 19:47
stmuk finds an odd looking object which appears to be a Uk->Swiss plug adaptor 19:49
useful!
ckraniak "Native call expected return type with CPointer representation, but got a P6opaque (Int)" 19:50
timotimo yeah, you passed an int where you were supposed to pass a pointer
geekosaur I don't think you can use Int with NativeCall because it's a boxed, arbitrary-sized value 19:51
ckraniak The call has uint32 (DWORD) in it
timotimo oh god not windows api 19:51
geekosaur m: my uint32 $x = 0 19:52
camelia ( no output )
geekosaur but that is not Int
timotimo why does it say "return value" though?
ckraniak That is once I call it 19:53
I assume it's because I am not setting up the return buffer right but I cannot find any example code that returns that way
timotimo what's your definition look like? in perl6 code i mean 19:55
thunderheart hi all, am doing my first steps into Perl6. Can you explain me the help syntax from docs.perl6.org, ie multi sub infix:<lcm>($a, $b --> Int:D) ? 20:00
ckraniak sub __FormatMessage(uint32 $flags, Pointer[void] $source, uint32 $message-id, uint32 $language-id, Str $buffer is rw, uint32 $size, OpaquePointer $arguments --> uint32) is native('kernel32') is symbol('FormatMessageW') { ... } 20:01
But
ckraniak I have been messing with the signature to try to extract a different error message 20:01
ckraniak So the pointers and Str are just whatever right now 20:02
Been messing with types for $buffer and $argument mostly 20:03
ckraniak I am pretty sure OpaquePointer is wrong 20:03
timotimo oh, this is about variable number of arguments? 20:05
ckraniak Maybe? 20:06
Is this a known issue?
timotimo yeah, we don't have proper support for var args yet, but you can declare multiple multi candidates that have any number of arguments ...
ckraniak Tried leaving it off and that gives the same message 20:07
Documentation indicates a uint32 is rw will be accepted there
ckraniak I don't understand the current error message and can't make it do any others 20:09
ckraniak Or a Pointer[Pointer[uint32]] 20:12
I think
ckraniak Jesus Christ it's because it can't coerce 0 to void* 20:17
ckraniak Feeling pretty stupid bout that one 20:21
Geth ecosystem: 1096674cf6 | (David Warring)++ | META.list
add PDF::Content class library
21:56
tyil[m] lizmat: is the hackathon still planned? 22:03
Geth ecosystem: 814b55959b | (David Warring)++ | META.list
add PDF::Lite - A minimal class for manipulating PDF content
22:40