»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or /msg camelia p6: ... | irclog: irc.perl6.org or colabti.org/irclogger/irclogger_log/perl6 | UTF-8 is our friend! 🦋 Set by Zoffix on 25 July 2018. |
|||
00:01
MasterDuke left
00:06
w_richard_w joined
00:07
w_richard_w left,
pecastro left
|
|||
timotimo | wakelift.de/2018/11/10/rakudo-perl...ss-report/ - lol i blogged a second time! | 00:23 | |
00:26
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|
|||
[ptc] | timotimo++ # blog post :-) | 00:36 | |
timotimo | :) | ||
i'm thinking i should probably record a screencast or something detailing exactly how to install and run all of this | |||
until the frontend gains some automatic "run this code and profile it and load the profile" button | 00:37 | ||
00:40
pmurias left
00:42
ryn1x joined
00:43
p6bannerbot sets mode: +v ryn1x
00:50
SyrupThinker left
00:51
ryn1x left
00:55
SyrupThinker joined
00:56
p6bannerbot sets mode: +v SyrupThinker
00:57
ryn1x joined
00:58
p6bannerbot sets mode: +v ryn1x
|
|||
MasterDuke | timotimo: package it as a docker container/appimage/snap/flatpack? | 00:59 | |
timotimo | i looked into appimage. it was a little bit No | ||
i'll probably go for docker, that ought to be a bit easier | 01:00 | ||
though i'm not entirely sure how to easily make the system-wide perl6 installation available to be used from inside the docker container without building some hacky RPC | |||
basically a container-escape exploit, but on purpose | 01:01 | ||
MasterDuke | not include perl6 in the container? | 01:09 | |
timotimo | it has to be in there for the cro app to run | 01:12 | |
MasterDuke | then why do you need access to the system perl6? | 01:13 | |
timotimo | well, the user wants to benchmark their code, right? | 01:21 | |
they probably have some libraries they want to use | |||
woolfy | timotimo++ I hope you get the attention it deserves. I posted it also on Perl6 facebook: www.facebook.com/groups/perl6/perm...944747019/ | 01:23 | |
MasterDuke | ah, right | 01:26 | |
timotimo | thank you, woolfy :) | ||
Xliff | \o | 01:34 | |
Did I miss a [Coke] blog post about Cro? | |||
01:35
MasterDuke left
|
|||
Xliff | Who can I talk to about CArrays and CUnions?> | 01:46 | |
01:50
SakiTW joined,
p6bannerbot sets mode: +v SakiTW,
delon left
01:57
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke
02:04
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
02:14
delon joined,
p6bannerbot sets mode: +v delon
|
|||
holyghost | Xliff: that's in google if I remember | 02:17 | |
02:51
khisanth_ left
02:55
molaf left
|
|||
holyghost | Xliff: did you look at Mathx::Stat, I've modified it with proper unit module/class syntax | 02:56 | |
Xliff | Haven't yet, but I will | 02:57 | |
Still working on setting up the server for you, and working on my own code and... personal stuff. | |||
holyghost | ok, do a PR or something, give me the login, server name and pass on [email@hidden.address] | 02:58 | |
good luck with your code | |||
Xliff | You can guess what is taking the time, and no... no further details will be given. I'm more the if-you-don't-worry-you'll-be-happier types. | ||
holyghost | ok | ||
Xliff | Yeah, I'll do that when it's done. | ||
holyghost | thanks | 02:59 | |
really appreciate it | |||
Xliff | Sent you a reply | ||
holyghost | I'll take a look later on | 03:00 | |
Xliff | Now back to eeevil GTK example. | ||
bbl | |||
holyghost | lol I do GTK in C# on a mac | ||
have fun | |||
03:02
entonian joined
03:03
p6bannerbot sets mode: +v entonian
03:04
entonian left
03:05
khisanth_ joined
03:06
p6bannerbot sets mode: +v khisanth_
03:08
molaf joined
03:09
p6bannerbot sets mode: +v molaf
|
|||
holyghost | I'm not going to work in the weekend, so patience with my modules | 03:09 | |
Game::Markov needs much more reading, so is Mathx::Stat (the chaos theory I mentioned) | 03:22 | ||
the seeking of attractors | 03:23 | ||
03:38
ryn1x left
03:43
ryn1x joined
03:44
p6bannerbot sets mode: +v ryn1x
04:06
Itaipu left
04:08
Itaipu joined,
p6bannerbot sets mode: +v Itaipu
|
|||
Xliff | m: say (pi/2).cos == 0 | 04:11 | |
camelia | False | ||
Xliff | What's the best way to get that to be True? | ||
m: say (pi/2).cos =~= 0 | 04:12 | ||
camelia | True | ||
Xliff | \o./ | ||
04:14
Cabanossi left
04:15
Cabanossi joined
|
|||
holyghost | m: say unless { (pi/2).cos } | 04:15 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Unsupported use of bare "say"; in Perl 6 please use .say if you meant to call it as a method on $_, or use an explicit invocant or argument, or use &say to refer to the function as a noun at <tmp>:1… |
||
04:16
holyghost left,
p6bannerbot sets mode: +v Cabanossi
04:17
ferreira left
|
|||
SmokeMachine | Xliff: does cos expect rad? | 04:17 | |
m: cos pi/2 | 04:18 | ||
camelia | WARNINGS for <tmp>: Useless use of "cos pi/2" in expression "cos pi/2" in sink context (line 1) |
||
SmokeMachine | m: say cos pi / 2 | 04:19 | |
camelia | 6.123233995736766e-17 | ||
zostay | so i'm looking at all my travis-ci failures for perl6 and... am i really going to have to update every module to move use v6 up one line in every file? | 04:24 | |
Xliff | zostay: I'm afraid so, yes. | 04:25 | |
SmokeMachine: Yeah. =~= saves the day! ;) | |||
m: say (pi/2).cos =~= 0 | |||
camelia | True | ||
Xliff | m: say (pi/2 + 0.01).cos =~= 0 | 04:26 | |
camelia | False | ||
Xliff | m: say (pi/2 + 0.001).cos =~= 0 | ||
camelia | False | ||
Xliff | m: say (pi/2 + 0.0001).cos =~= 0 | ||
camelia | False | ||
Xliff | m: say (pi/2 + 0.00001).cos =~= 0 | ||
camelia | False | ||
Xliff | m: say (pi/2 + 0.000001).cos =~= 0 | ||
camelia | False | ||
Xliff | m: say (pi/2 + 0.0000001).cos =~= 0 | ||
camelia | False | ||
Xliff | Something tells me I need more zeros. :) | 04:27 | |
zostay | ugh | ||
Xliff | zostay: :( | ||
zostay | i so look forward to perl6 releases breaking every module i've written at least once a year... it's my fave :-p | 04:28 | |
this one should at least be easy to script | |||
Xliff | Yes. :) | 04:29 | |
SmokeMachine | zostay: perl6 -i -pe ‘BEGIN say “use v6;”; next if /^ \s* use \s+ v6\s* ; \s* $/; .say ‘ ? | 04:30 | |
Xliff: :tolerance? | 04:31 | ||
zostay | something like that... then i just have to run it on all the .pm6 files in every project in my perl6 dir | ||
buggable | New CPAN upload: Email-Address-0.1.tar.gz by HANENKAMP cpan.metacpan.org/authors/id/H/HA/...0.1.tar.gz | ||
zostay | one step closer to being able to replace my p5 mail filtering scripts with ones in p6 | 04:32 | |
Xliff | zostay: find perl6dir -name \*.perl6 -exec replace_script {} \; | 04:34 | |
SmokeMachine: Yep. | |||
SmokeMachine | zostay: or ggOuse v6;<esc>/use v6<enter>dd As a vi macro... | ||
Xliff | zostay: You really want that in a script so your ';' characters don't screw up find. | ||
04:41
poohman left
04:59
hamhu3_ joined
05:00
p6bannerbot sets mode: +v hamhu3_
05:01
ferreira joined
05:02
p6bannerbot sets mode: +v ferreira,
hamhu3 left
|
|||
Xliff | .seen timotimo | 05:15 | |
yoleaux | I saw timotimo 01:26Z in #perl6: <timotimo> thank you, woolfy :) | ||
05:22
hamhu3_ left,
hamhu3 joined
05:23
p6bannerbot sets mode: +v hamhu3
05:32
ferreira left
05:38
delon left
06:16
w_richard_w joined
06:17
p6bannerbot sets mode: +v w_richard_w
06:24
molaf left
06:34
w_richard_w left
07:23
ferreira joined
07:24
p6bannerbot sets mode: +v ferreira
|
|||
Xliff | m: my ($x, $y) = (4, 4); ($x, $y) -= (1, 2); $x.say; $y.say | 07:44 | |
camelia | 0 (Any) |
||
Xliff | m: my ($x, $y) = (4, 4); ($x, $y) >>-=<< (1, 2); $x.say; $y.say | ||
camelia | 3 2 |
||
Xliff | say [-]( |(2, 3) »*« (2, 3) ) | 07:59 | |
evalable6 | -5 | ||
woolfy | woolfy | 08:09 | |
(sigh) | |||
08:10
domidumont joined
08:11
p6bannerbot sets mode: +v domidumont
08:25
noganex_ left
08:26
noganex joined,
p6bannerbot sets mode: +v noganex
08:39
parv joined
08:40
p6bannerbot sets mode: +v parv
08:42
AlexDaniel left
08:48
lichtkind left
08:50
sno left
09:02
lichtkind joined,
p6bannerbot sets mode: +v lichtkind
09:04
rindolf joined
09:05
p6bannerbot sets mode: +v rindolf
09:08
ryn1x left,
ryn1x joined
09:09
p6bannerbot sets mode: +v ryn1x
09:13
cydf joined
09:14
p6bannerbot sets mode: +v cydf
09:26
ryn1x left
09:31
ChoHag left
09:50
parv left
10:00
noganex_ joined,
p6bannerbot sets mode: +v noganex_
10:02
noganex left
10:06
Itaipu left
10:07
Itaipu joined
10:08
p6bannerbot sets mode: +v Itaipu,
rindolf left
10:24
rindolf joined
10:25
p6bannerbot sets mode: +v rindolf
10:27
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel
10:43
pmurias joined,
p6bannerbot sets mode: +v pmurias,
sena_kun joined
10:44
p6bannerbot sets mode: +v sena_kun
10:45
kerframil left
10:59
pmurias left
11:00
pmurias joined,
p6bannerbot sets mode: +v pmurias
11:20
fengc joined
11:21
p6bannerbot sets mode: +v fengc
11:22
fengc left
11:37
ChoHag joined,
p6bannerbot sets mode: +v ChoHag
11:38
noganex joined
11:39
p6bannerbot sets mode: +v noganex
11:42
noganex_ left
11:52
PotatoGim left
11:54
PotatoGim joined,
p6bannerbot sets mode: +v PotatoGim
12:34
Itaipu left
|
|||
lizmat | . | 12:35 | |
12:38
Itaipu joined
12:39
p6bannerbot sets mode: +v Itaipu
12:44
ambs joined,
p6bannerbot sets mode: +v ambs
|
|||
timotimo | yo xliff i'm still on the move, but you can ask me already if its still relevant | 12:49 | |
stmuk_ | www.reddit.com/r/perl6/comments/9v...ndar_2019/ | 12:53 | |
12:55
yqt joined
12:56
p6bannerbot sets mode: +v yqt
13:03
Sound joined,
p6bannerbot sets mode: +v Sound
13:16
jeff18 joined,
jeff18 left
13:24
Itaipu left
13:28
nwellnhof joined,
p6bannerbot sets mode: +v nwellnhof
13:30
Itaipu joined,
p6bannerbot sets mode: +v Itaipu
|
|||
timotimo | uh oh | 13:34 | |
it has sleep sort with actual "sleep" | |||
that won't work with too many numbers | |||
13:34
AlexDaniel left
|
|||
timotimo | that's ash's website? | 13:36 | |
13:43
Itaipu left
13:46
ChoHag left
13:48
Itaipu joined
13:49
p6bannerbot sets mode: +v Itaipu
14:02
Itaipu left
14:10
Itaipu joined
14:11
p6bannerbot sets mode: +v Itaipu
14:22
Itaipu left
14:24
lichtkind left
14:27
Itaipu joined
14:28
p6bannerbot sets mode: +v Itaipu
14:36
Mikasi joined
14:37
p6bannerbot sets mode: +v Mikasi
14:44
AlexDaniel joined,
p6bannerbot sets mode: +v AlexDaniel
14:48
MasterDuke left
15:01
Sgeo left,
Sgeo joined
|
|||
buggable | New CPAN upload: Email-Address-0.2.tar.gz by HANENKAMP modules.perl6.org/dist/Email::Addre...:HANENKAMP | 15:01 | |
15:02
p6bannerbot sets mode: +v Sgeo
15:11
Itaipu left
15:17
Itaipu joined
15:18
p6bannerbot sets mode: +v Itaipu
|
|||
AlexDaniel | releasable6: status | 15:20 | |
releasable6 | AlexDaniel, Next release in ≈7 days and ≈3 hours. 4 blockers. 0 out of 103 commits logged | ||
AlexDaniel, Details: gist.github.com/62de313f9cb9d38d1c...215a72ce03 | |||
15:30
Itaipu left
15:35
ChoHag joined
15:36
p6bannerbot sets mode: +v ChoHag
15:42
Itaipu joined
15:43
p6bannerbot sets mode: +v Itaipu
15:49
sno joined,
p6bannerbot sets mode: +v sno
15:51
Sgeo_ joined
15:52
p6bannerbot sets mode: +v Sgeo_
15:53
Sgeo left
15:54
nwellnhof left
16:06
Itaipu left
16:08
Itaipu joined
16:09
irdr left,
p6bannerbot sets mode: +v Itaipu
16:10
irdr joined,
p6bannerbot sets mode: +v irdr
16:11
irdr left
16:20
irdr joined
16:21
p6bannerbot sets mode: +v irdr
16:28
ryn1x joined
16:29
p6bannerbot sets mode: +v ryn1x
16:45
titsuki left
16:55
Mikasi left
16:58
cydf left
17:01
MasterDuke joined,
p6bannerbot sets mode: +v MasterDuke,
MasterDuke left,
MasterDuke joined,
herbert.freenode.net sets mode: +v MasterDuke,
p6bannerbot sets mode: +v MasterDuke
|
|||
buggable | New CPAN upload: AWS-Session-0.7.tar.gz by HANENKAMP modules.perl6.org/dist/AWS::Session...:HANENKAMP | 17:01 | |
17:17
Itaipu left
|
|||
sena_kun | I cannot generate(as in compiler) Perl 6 code if I don't want to work with a textual code representation and its pains, can I? | 17:19 | |
oh, stop, maybe I don't need to. | 17:20 | ||
17:22
Itaipu joined,
p6bannerbot sets mode: +v Itaipu
17:29
zakharyas joined,
p6bannerbot sets mode: +v zakharyas
17:31
zakharyas left
|
|||
moritz | .tell Zoffix the TLS cert for perl6.party has expired | 17:32 | |
yoleaux | moritz: I'll pass your message to Zoffix. | ||
17:33
zakharyas joined
17:34
p6bannerbot sets mode: +v zakharyas,
grumble left
17:36
grumble joined,
p6bannerbot sets mode: +v grumble
|
|||
timotimo | sena_kun: but you totally can, you can build QAST :) | 17:39 | |
sena_kun | timotimo, well, I thought I need a compiler, but "Hmm, if everything is interpreted here, why must it be a compiler again?" and I couldn't answer. :) | 17:40 | |
17:41
Itaipu left
17:46
Itaipu joined
17:47
Itaipu left
|
|||
tobs | I'm in a similar situation. I have an AST of a mini-language inside my Perl 6 program and want to compile it into a Callable. I can but *should* I use QAST in this case? | 17:50 | |
17:51
Itaipu joined
|
|||
tobs | I mean is it part of the implementation details of which we are always reminded not to use them, when someone mentions nqp? | 17:51 | |
timotimo | you don't have to, no :) | ||
you can actually stack a bunch of callables together by way of closures deciding what to call where | |||
17:52
p6bannerbot sets mode: +v Itaipu
|
|||
tobs | ^ that's what I'm doing now | 17:52 | |
timotimo | good call | ||
tobs | and hoping that they are inlined eventually | ||
timotimo | hm, it's true though, qast is even a little bit worse than just using nqp ops | ||
17:53
ryn1x left,
ryn1x joined
17:54
p6bannerbot sets mode: +v ryn1x
|
|||
tobs | might still be fun to try though, with a fallback :-) | 17:57 | |
18:00
musca left
18:01
ExtraCrispy left
18:05
pecastro joined
|
|||
pmurias | tobs: what are you building? | 18:06 | |
18:06
p6bannerbot sets mode: +v pecastro
18:08
musca joined
18:09
p6bannerbot sets mode: +v musca
|
|||
tobs | pmurias: a propositional calculus module. Having a very small Callable for a Boolean function would be much better than walking the AST representation when generating a truth table. | 18:18 | |
18:20
ChoHag left
18:22
ChoHag joined,
p6bannerbot sets mode: +v ChoHag
18:25
kent\n left
18:34
SCHAPiE left
18:37
Guest33831 left,
success joined,
success is now known as Guest64918,
SCHAPiE joined,
p6bannerbot sets mode: +v SCHAPiE
18:38
p6bannerbot sets mode: +v Guest64918
18:49
emerson left
18:52
Sound left
18:54
noganex left
18:55
noganex joined
18:56
p6bannerbot sets mode: +v noganex
|
|||
buggable | New CPAN upload: Hash-MultiValue-0.7.tar.gz by HANENKAMP modules.perl6.org/dist/Hash::MultiV...:HANENKAMP | 19:01 | |
19:05
Sound joined,
p6bannerbot sets mode: +v Sound
19:12
evilem joined,
p6bannerbot sets mode: +v evilem
|
|||
Xliff | \o | 19:29 | |
Geth | doc: 5feaf6e59c | (Tim Smith)++ | doc/Language/operators.pod6 Fix typo in example identifier name |
||
synopsebot | Link: doc.perl6.org/language/operators | ||
19:29
ryn1x left
|
|||
Xliff | timotimo and sena_kun: gist.github.com/Xliff/8e402d623cea...45e820d7fd | 19:29 | |
gist.github.com/Xliff/b98f00d93194...c65ad3c737 | 19:30 | ||
Long standing weirdness. | |||
The first link has code that is completely self-contained. | |||
19:43
ryn1x joined,
p6bannerbot sets mode: +v ryn1x
|
|||
sena_kun | Xliff, I am sorry, but I am not sure why I am being casted in this case. | 19:47 | |
Xliff | sena_kun: Sorry. I thought you knew a little about NativeCall. | 19:49 | |
sena_kun | ah, no problem then, but no, I think I am not. :) | ||
Xliff | :) | ||
19:53
noganex_ joined,
p6bannerbot sets mode: +v noganex_
19:56
noganex left
19:59
irdr left
20:00
Sgeo_ left,
Sgeo_ joined
|
|||
jdv79 | is there any docs on what IO::Socket::Async does when the far side closes | 20:01 | |
20:01
p6bannerbot sets mode: +v Sgeo_
|
|||
jdv79 | is that just a "done" on the Supply's taps? | 20:01 | |
20:01
domidumont left,
irdr joined
20:02
p6bannerbot sets mode: +v irdr
|
|||
timotimo | jdv79: done in one case, quit in another, i expect | 20:04 | |
20:05
noganex_ left,
Guest64918 left,
success joined
|
|||
jdv79 | what cases would that be? | 20:05 | |
20:06
success is now known as Guest96901,
delon joined
|
|||
timotimo | reset by peer or something? | 20:06 | |
20:06
p6bannerbot sets mode: +v Guest96901
|
|||
timotimo | anything erroneous, when you get an RST? | 20:06 | |
Xliff: do you ever have to introspect the types involved? what happens if you turn them all into Pointer? | 20:07 | ||
20:07
p6bannerbot sets mode: +v delon
|
|||
timotimo | for example, if your GValue is somehow not the right size, it could make init_value and friends write into unowned memory | 20:08 | |
you could compare "nativesizeof GValue" with what you get from sizeof(GValue) in gdb | |||
Xliff | Yes. It's 24 bytes across the board. | 20:12 | |
I think I talk about that in the second link. | |||
jnthn | jdv79: stackoverflow.com/questions/530545...ocketasync | 20:13 | |
yoleaux | 5 Nov 2018 20:05Z <Xliff> jnthn: Is this a bug in CArray, or how I am using it? gist.github.com/Xliff/b98f00d93194...c65ad3c737 | ||
Xliff | Oh. Wow! Great timing! | ||
jnthn: Self contained code is here - gist.github.com/Xliff/8e402d623cea...45e820d7fd | 20:14 | ||
20:15
cydf joined
|
|||
jnthn | I'm probably way to full of cold to think about anything difficult :) | 20:15 | |
20:15
p6bannerbot sets mode: +v cydf
|
|||
Xliff | Heh! No worries. | 20:16 | |
jnthn | I wonder if it's relevant that CArray, when allocated from the Perl 6 program, allocates memory up to the size of the last assigned element | ||
timotimo | have you valground it yet? | ||
jnthn | And that also it caches the Perl 6 values | ||
So if it's some kind of out-dated data problem then there's some native refresh thingy that is sometimes needed. | 20:17 | ||
I forget the details. | |||
Xliff | timotimo: No. No valgrinding, yet. | ||
jnthn | And yeah, what timotimo said; valgrind can do wonders in explaining memory problems. | ||
Xliff | Excellent! Then that's a place to start. Thanks. | 20:18 | |
20:20
yqt left
20:27
Itaipu left,
noganex joined,
p6bannerbot sets mode: +v noganex
|
|||
jdv79 | jnthn: thanks | 20:29 | |
20:29
Itaipu joined
20:30
p6bannerbot sets mode: +v Itaipu
20:34
cydf left
20:35
cydf joined,
p6bannerbot sets mode: +v cydf
20:39
kensanata joined,
p6bannerbot sets mode: +v kensanata
|
|||
kensanata | Style question, cro related: I have $pw is cookie declared and to decode it. That means I can't use the same variable name. So: my $pw_decoded = uri_decode_component($pw || ''); Now I need to all a function and would love to use :$pw but no, I need to use pw => $pw_decoded. What am I doing wrong? What I really want to do is $pw = uri_decode_component($pw || '') and then use :$pw. | 20:42 | |
sena_kun | well, I am not sure you can avoid that. If you mean something like "I want to tell Cro to apply this decoder to this cookie, so do it for me", we don't have anything like that. And it is, in fact, more of user side of things, imho. So I'd do it with `pw => $pw-decoded`, as it relates to application logic, not http processing. | 20:46 | |
kensanata, ^ | |||
if you have, like, 10 such cookies per route and it makes the code look worse, I'd factor this decoding & response setting piece out into a subroutine, but no more. | 20:49 | ||
kensanata | Well, I guess I could frame it as a general case: perl6 offers the shortcut :$foo, but disallows the changing of functino arguments, forcing me to write ugly code for every function that has an argument $foo, has to do something to the value and wants to pass it along to the next one, still calling it $foo. | ||
sena_kun | kensanata, can you try with `is rw` applied to cookie parameter? I suspect it might be a bad thing in Cro case, but as in general case, it might help. | 20:53 | |
kensanata | sena_kun: interesting proposition. I thought that only applied to classes and attributes... | 20:54 | |
sena_kun | ahh | 20:55 | |
nope, I am wrong. | |||
20:55
kent\n joined,
p6bannerbot sets mode: +v kent\n
|
|||
sena_kun | m: sub bar(:$foo) { $foo.say }; sub foo(:$foo is rw) { $foo = $foo + 10; bar(:$foo) }; | 20:55 | |
camelia | 5===SORRY!5=== Error while compiling <tmp> Cannot use 'is rw' on optional parameter '$foo'. at <tmp>:1 |
||
sena_kun | well, then I don't know. And, probably, don't even consider the code you worry about as _too_ ugly to worry about. | 20:56 | |
s/you worry about/you write/ | 20:57 | ||
kensanata | Both! :D | ||
sena_kun | well, without `:g`, only first one, or at least I remember it being so. :) | ||
timotimo | you probably don't want rw, you'll want copy instead | 20:58 | |
m: sub bar(:$foo is copy) { $foo.say }; bar(99) | |||
camelia | Too many positionals passed; expected 0 arguments but got 1 in sub bar at <tmp> line 1 in block <unit> at <tmp> line 1 |
||
timotimo | m: sub bar(:$foo is copy) { $foo.say }; bar(foo => 99) | ||
camelia | 99 | ||
timotimo | "is copy" works with optional parameter | ||
sena_kun | m: sub bar(:$foo) { $foo.say }; sub foo(:$foo is copy) { $foo = $foo + 10; bar(:$foo) }; foo(foo => 10); | ||
camelia | 20 | ||
sena_kun | kensanata, ^ | 20:59 | |
timotimo++ | |||
20:59
SakiTW left
|
|||
kensanata | Awesome. Will try! | 21:00 | |
21:01
cydf left
|
|||
kensanata | That seems to work. Thanks, timotimo! | 21:01 | |
timotimo | YW :) | 21:02 | |
21:06
ryn1x left
|
|||
jnthn | Probably `is copy` is cleanest, though an alternative is `:pw($pw-undec)` to decouple the named parameter name from the variable it's bound into | 21:09 | |
You may also want to file a Cro feature request for a way to ask the router to do a certain decoding of cookies; we might be able to add such a feature at some point. | 21:10 | ||
sena_kun | jnthn, with matching API for e.g. headers? | 21:12 | |
21:15
ryn1x joined
21:16
p6bannerbot sets mode: +v ryn1x
21:17
cydf joined
21:18
p6bannerbot sets mode: +v cydf
21:22
Itaipu left
21:24
Itaipu joined
21:25
p6bannerbot sets mode: +v Itaipu
21:28
ryn1x left
|
|||
jnthn | sena_kun: I'm not sure that's so commonly needed | 21:31 | |
21:38
random_yanek left
21:39
Itaipu left
21:43
Itaipu joined
21:44
p6bannerbot sets mode: +v Itaipu
21:50
random_yanek joined
21:51
p6bannerbot sets mode: +v random_yanek
22:00
stux|RC-- joined
22:01
stux|RC left,
p6bannerbot sets mode: +v stux|RC--
22:03
SakiTW joined,
p6bannerbot sets mode: +v SakiTW
22:06
Itaipu left
22:09
Itaipu joined
22:10
p6bannerbot sets mode: +v Itaipu
|
|||
kensanata | I'm not sure what to suggest. I'm using URI::Encode because I'm encoding two or three strings. Is this rare? Common? Do people store complex data? Is base64 what they expect? I have no idea. So perhaps all I would ask is for an example in the documentation? | 22:10 | |
buggable | New CPAN upload: Oddmuse-0.0.4.tar.gz by SCHROEDER modules.perl6.org/dist/Oddmuse6:cpan:SCHROEDER | 22:11 | |
kensanata | Next challenge: writing a new, grammar-based, extensible Markdown-to-HTML converter... with automated tests from the CommonMark project. | 22:13 | |
22:16
zakharyas left
22:22
sena_kun left
22:24
kensanata left,
kst left
22:44
Itaipu left,
Itaipu joined
22:45
p6bannerbot sets mode: +v Itaipu
22:58
pmurias left,
breinbaas left,
breinbaas joined
22:59
p6bannerbot sets mode: +v breinbaas,
hamhu3_ joined
23:00
p6bannerbot sets mode: +v hamhu3_
23:02
hamhu3 left
23:09
hamhu3_ left
23:10
hamhu3 joined
23:11
p6bannerbot sets mode: +v hamhu3,
Itaipu left
23:16
Itaipu joined
23:17
p6bannerbot sets mode: +v Itaipu
23:18
ryn1x joined,
p6bannerbot sets mode: +v ryn1x
23:25
rindolf left
23:39
Celelibi left
23:42
tehidiot joined
23:43
p6bannerbot sets mode: +v tehidiot
23:45
Celelibi joined
23:46
p6bannerbot sets mode: +v Celelibi
23:49
noganex left
23:50
noganex joined,
p6bannerbot sets mode: +v noganex
|