»ö« 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.
00:02 stevieb joined 00:05 pierre_ joined 00:07 pierre_ left 00:08 pierre_ joined 00:12 Unavowed left 00:19 Unavowed joined 00:28 pdcawley left, rgrinberg joined
grondilu learns about hypot: en.wikipedia.org/wiki/Hypot 00:36
m: say hypot(1, 2)
camelia rakudo-moar 447d59: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Undeclared routine:␤ hypot used at line 1␤␤»
grondilu that looks LTA
though it'd be very easy to make a module. 00:45
perlawhirl yeah, that pseudocode in the wikipedia article just needs some 'my' and '$' thrown in and it's almost good to go 00:46
grondilu write it
perlawhirl gist.github.com/0racle/a6e351c878d...f45e579a38 00:47
m: gist.github.com/0racle/a6e351c878d...f45e579a38
camelia rakudo-moar 447d59: OUTPUT«47.7598157450382␤»
perlawhirl maybe change all the vars to \vars, throw in some type constraints
00:49 Zoffix joined 00:51 adu left
Zoffix m: sub hypot { abs Complex.new: $^a, $^b }; say hypot 3, 4 00:52
camelia rakudo-moar 447d59: OUTPUT«5␤»
00:54 bob777 joined
perlawhirl or just that 00:54
00:54 adu joined
Zoffix m: use NativeCall; sub hypot (num32 $x, num32 $y) returns num32 is native {}; say hypot 3e0, 4e0 00:54
camelia rakudo-moar 447d59: OUTPUT«434.445037841797␤»
Zoffix there's some way to do that, if you get the types right :)
grondilu m: sub hypot { .max*sqrt(1 + (.min/.max)²) given minmax($^x.abs, $^y.abs) }; say hypot 1, 2 00:55
camelia rakudo-moar 447d59: OUTPUT«2.23606797749979␤»
grondilu m: sub hypot { .max*sqrt(1 + (.min/.max)²) given minmax($^x.abs, $^y.abs) }; say hypot 3, 4
camelia rakudo-moar 447d59: OUTPUT«5␤»
Zoffix m: sub hypot { abs Complex.new: $^a, $^b }; say hypot 1, 2
camelia rakudo-moar 447d59: OUTPUT«2.23606797749979␤»
grondilu m: sub hypot { abs Complex.new: $^a, $^b }; say hypot 1e0, 2e0; 00:56
camelia rakudo-moar 447d59: OUTPUT«2.23606797749979␤»
grondilu the wikipedia page should give a numeric example where there is a problem with the naive implementation.
timotimo yeah 00:57
00:59 bob777 left
grondilu mentions it in the talk page. 01:01
geekosaur I think you wanted hypotf for the NativeCall one 01:04
unless you pass doubles (num64?) 01:05
and likewise return
01:05 pierre_ left
Zoffix m: use NativeCall; sub hypotf (num32 $x, num32 $y) returns num32 is native {}; say hypotf 3e0, 4e0 01:07
camelia rakudo-moar 447d59: OUTPUT«5␤»
Zoffix ah
grondilu oh that's cool 01:10
01:11 pierre_ joined
grondilu m: use NativeCall; sub hypotfl(num64 $, num 64 $) returns num64 {*}; say hypotfl 3e0, 4e0 01:11
camelia rakudo-moar 447d59: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤A parameter may only have one prefix type constraint␤at <tmp>:1␤------> 3 NativeCall; sub hypotfl(num64 $, num 647⏏5 $) returns num64 {*}; say hypotfl 3e0, ␤»
grondilu m: use NativeCall; sub hypotfl(num64 $, num64 $) returns num64 {*}; say hypotfl 3e0, 4e0 01:12
camelia rakudo-moar 447d59: OUTPUT«This type cannot unbox to a native number: P6opaque, Whatever␤ in sub hypotfl at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»
grondilu meh
m: use NativeCall; sub hypotfl(num64 $, num64 $) returns num64 {}; say hypotfl 3e0, 4e0
camelia rakudo-moar 447d59: OUTPUT«Cannot unbox a type object␤ in sub hypotfl at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»
grondilu m: use NativeCall; sub hypotfl(num64 $, num64 $) returns num64 is native {}; say hypotfl 3e0, 4e0 01:13
camelia rakudo-moar 447d59: OUTPUT«Cannot locate symbol 'hypotfl' in native library ''␤ in method setup at /home/camelia/rakudo-m-inst-1/share/perl6/sources/24DD121B5B4774C04A7084827BFAD92199756E03 (NativeCall) line 310␤ in method CALL-ME at /home/camelia/rakudo-m-inst-1/share/perl6/s…»
grondilu m: use NativeCall; sub hypotl(num64 $, num64 $) returns num64 is native {}; say hypotl 3e0, 4e0
camelia rakudo-moar 447d59: OUTPUT«Inf␤»
grondilu jeez
01:13 mr-foobar joined
geekosaur l is long double 01:14
hypot is double
grondilu isn't long double num64?
timotimo we don't have support for long double in moar 01:15
geekosaur long double is 80 bit on intel
grondilu ok
geekosaur m: use NativeCall; sub hypot(num64 $, num64 $) returns num64 is native {}; say hypot 3e0, 4e0
camelia rakudo-moar 447d59: OUTPUT«5␤»
scott cppreference says "long double - extended precision floating point type. Does not necessarily map to types mandated by IEEE-754. Usually 80-bit x87 floating point type on x86 and x86-64 architectures."
geekosaur yep
01:16 pierre_ left
timotimo there's also long long double 01:17
but on MSVC++, a long double is 64bit
unless you give it some flag
scott I've never heard of long long double 01:18
only float/double/long double and char/short/int/long/long long
timotimo i've been fascinated by extra-long floating point types for a few weeks 01:19
geekosaur long double is nonstandard, as cppreference implied. msvc "supported" it as an alias for double, then finally when they added their own extended precision double had to invent long long double 01:20
scott lol
timotimo en.wikipedia.org/wiki/Extended_precision
geekosaur (msvc's behavior there caused much gnashing of teeth among numeric methods types, because it silently didn't provide the precision everyone expected) 01:21
scott actually, I still can't find google results for "long long double", even MSVC-related
01:21 ka joined 01:22 Unavowed left, pierre_ joined, Unavowed joined
geekosaur www.google.com/webhp?sourceid=chro...0double%22 01:23
need the quotes or google silently drops the second "long" as a duplicate
01:24 Zoffix left
geekosaur "long long long double" --- seems to have been a thinko... 01:24
timotimo *shrug*
grondilu that makes me wonder. Are there functions in rakudo that are defined as Native? 01:25
scott geekosaur: I had the quotes, and there is nothing official-looking in those results 01:26
timotimo grondilu: no 01:28
01:32 avalenn joined 01:36 finanalyst joined, finanalyst left 01:37 FROGGS_ joined 01:41 FROGGS left 01:42 Unavowed left 01:43 Unavowed joined 01:44 grondilu left 01:46 ilbot3 left 01:47 labster left, ilbot3 joined 01:54 eliasr left 01:58 pdcawley joined 02:00 zakharyas joined 02:03 Unavowed left 02:04 Unavowed joined 02:07 nadim left 02:09 noganex_ joined 02:13 noganex left 02:24 Unavowed left, pdcawley left, Unavowed joined 02:29 pdcawley joined 02:40 kanl left 02:45 cog__ joined 03:05 Unavowed left 03:06 Unavowed joined
BenGoldberg m: use NativeCall; my $h = sub (num64 $, num64 $) returns num64 is native is symbol("hypot") {*}; say $h(3e0, 4e0); 03:18
camelia rakudo-moar 447d59: OUTPUT«5␤»
03:18 adu left
BenGoldberg m: use NativeCall; (sub (num64 $, num64 $) returns num64 is native is symbol("hypot") {*}).(3e0, 4e0).say; 03:19
camelia rakudo-moar 447d59: OUTPUT«5␤»
03:20 cbk_ joined
scott why do people write the bodies of native subs as `{*}`? 03:20
03:25 aries_liuxueyang left 03:26 aries_liuxueyang joined 03:27 cog__ left
ugexe m: class Foo { proto method foo(|) {say 1; {*}; say 3; }; multi method foo { say 2;} }; Foo.foo 03:29
camelia rakudo-moar 447d59: OUTPUT«1␤2␤3␤»
scott I'm not sure how that applies to native calls (was it supposed to?) 03:31
03:32 cpage_ left
ugexe it works the same way 03:32
03:33 [1]ringer1 left
scott I tried it with native sub and it said `{*} may only appear in proto` 03:34
I don't see why plain native subs have a `*`
ugexe you are declaring the signature and delegating somewhere 03:35
scott it also works without the `*`
as far as I can tell 03:36
in fact the body generally just seems to be ignored
03:38 timotimo left 03:46 Actualeyes left 03:47 Actualeyes joined 03:49 timotimo joined 03:56 timotimo left 04:00 cpage_ joined 04:01 timotimo joined 04:05 Cabanossi left 04:08 Cabanossi joined 04:11 BenGoldberg left 04:18 rgrinberg left 04:29 benchable6 left, committable6 left, bisectable6 left 04:45 wamba joined 04:47 pierre_ left 04:56 pierre_ joined 05:00 pierre_ left 05:03 Cabanossi left 05:05 Cabanossi joined 05:09 Unavowed left, Unavowed joined, Guest2621 left, FROGGS_ left 05:10 andrzejku joined 05:27 skids left 05:29 Unavowed left 05:30 Unavowed joined 05:33 ponbiki joined 05:34 ponbiki is now known as Guest99694
andrzejku hello :) 05:46
05:50 labster joined, Unavowed left 05:51 Unavowed joined
perlawhirl hi andrzejku... it's quiet around this time 05:51
andrzejku ye I see
quiet and threateningly
perlawhirl threateningly? how so? 05:52
05:52 wamba left 05:57 pierre_ joined 05:59 domidumont joined 06:00 domidumont1 joined, domidumont left 06:01 dj_goku left 06:02 pierre_ left 06:03 domidumont1 left 06:04 domidumont joined, dj_goku joined
bbkr good morning perl6 06:05
perlawhirl afternoon 06:07
here anyways
06:11 Unavowed left 06:12 Unavowed joined 06:14 galuh joined, galuh left 06:20 pierre_ joined 06:21 domidumont left 06:22 domidumont joined 06:23 cog__ joined 06:26 firstdayonthejob joined 06:28 salva joined 06:30 rindolf joined 06:31 mohae_ joined 06:32 Unavowed left, Unavowed joined 06:34 mohae left 06:35 cog__ left, perlawhirl left 06:43 firstdayonthejob left 06:44 domidumont left 06:46 domidumont joined 06:47 rindolf left, domidumont left, domidumont joined 06:50 labster left 06:54 nadim joined, wamba joined 07:02 andrzejku left 07:03 andrzejku joined 07:05 andrzejku left 07:14 darutoko joined 07:17 Unavowed left 07:18 Unavowed joined 07:29 dakkar joined 07:32 CIAvash joined
lizmat clickbaits p6weekly.wordpress.com/2016/09/26/...oar-tests/ 07:38
moritz lizmat: shouldn't that be :$!a in the submethod BUILD signature? 07:39
lizmat++ 07:40
07:44 wamba left 07:47 wamba joined 07:50 labster joined 07:52 bjz joined
dalek osystem/MARTIMM-patch-1: 4a876a1 | (Marcel Timmerman)++ | META.list:
PRECIS framework

Implementation of PRECIS framework implementing rfc7564. Also rfc7613 etc. obsoleting stringprep and saslprep.
07:58 RabidGravy joined 07:59 Unavowed left, Unavowed joined, Ven` joined 08:02 perigrin left, perigrin joined 08:05 ka left 08:06 andrzejku joined 08:07 bjz left 08:12 TheDir_ left 08:13 TheDir joined 08:15 xiaomiao left 08:16 wamba left 08:17 xiaomiao joined 08:22 bjz joined 08:23 girafe left
dalek osystem: 4a876a1 | (Marcel Timmerman)++ | META.list:
PRECIS framework

Implementation of PRECIS framework implementing rfc7564. Also rfc7613 etc. obsoleting stringprep and saslprep.
osystem: 8ebaf88 | RabidGravy++ | META.list:
Merge pull request #254 from perl6/MARTIMM-patch-1

PRECIS framework
08:28 kurahaupo joined 08:32 frew joined
lizmat moritz: good catch, fixed :-) 08:33
moritz lizmat: now you know that people actually read your posts :-) 08:35
lizmat :-)
baest lizmat: I've read it too :) Interesting as always 08:48
08:54 wamba joined, wamba left 08:59 wamba joined 09:00 john51 left 09:01 AlexDaniel left 09:02 andrzejku left, andrzejku joined
El_Che lizmat: much appreciated posts 09:03
09:03 larion joined 09:04 ka joined 09:10 eliasr joined 09:12 pierre_ left
dalek line-Perl5: 8331ff2 | niner++ | META.info:
Version 0.14
09:19 pierre_ joined 09:20 mohae joined, pierre_ left, pierre_ joined 09:21 pierre_ left 09:22 melezhik_ left 09:23 mohae_ left, pierre_ joined 09:26 melezhik_ joined 09:31 cog__ joined 09:37 canopus left 09:45 canopus joined 09:52 labster left 09:54 TEttinger left, cog__ left 09:56 raydiak left 09:57 DrForr left 09:58 DrForr joined 10:00 bjz left, bjz joined 10:01 raydiak joined 10:02 Unavowed left 10:03 Unavowed joined 10:04 buggable joined, huggable joined 10:05 andrzejku left, NeuralAnomaly joined 10:07 pdcawley left, pdcawley joined 10:08 andrzejku joined 10:09 pdcawley left 10:10 pdcawley joined 10:14 Ven` left 10:22 zakharyas left 10:23 zakharyas joined, pdcawley left 10:24 pdcawley joined 10:25 kurahaupo left 10:27 zakharyas left 10:40 wamba left 10:44 Unavowed left 10:45 Unavowed joined, pierre_ left 10:49 cpage_ left 11:05 Unavowed left 11:11 Unavowed joined 11:21 andrzejku left 11:24 CIAvash left 11:26 andrzejku joined 11:30 Unavowed left 11:31 nine_ is now known as nine, cbk_ left 11:33 rindolf joined 11:37 Unavowed joined 11:41 sammers joined 11:55 stevieb left 11:57 kaare_ joined, Unavowed left 11:59 pierre_ joined 12:03 vike left 12:04 vike joined 12:05 andrzejku left, bjz_ joined 12:06 imcsk8_ joined, bjz left, imcsk8 left 12:08 stevieb joined 12:09 Unavowed joined
moritz m: say dd 42 12:19
camelia rakudo-moar 222d16: OUTPUT«42␤Nil␤»
12:23 pierre_ left
rindolf h: dd 12:26
docs.perl6.org/routine/dd - I see. 12:27
12:27 andrzejku joined
rindolf How is it different from .perl? 12:27
12:30 pierre_ joined
dalek c: f907bcd | (Zoffix Znet)++ | doc/Type/Cool.pod6:
Document behaviour of .round at mid-points
moritz m: my Int $x = 42; dd $x 12:31
camelia rakudo-moar 222d16: OUTPUT«Int $x = 42␤»
moritz rindolf: ^^ see above; includes variable name, type, and output
hackedNODE rindolf: .perl is for roundtripping code and is part of Perl 6. dd is for dumping data for development inspection and is a Rakudo-specific function
12:32 aindilis left
hackedNODE m: my $x = 42; $x.perl.EVAL.say; 12:32
camelia rakudo-moar 222d16: OUTPUT«42␤»
hackedNODE m: my $x = 42; dd($x).EVAL.say;
camelia rakudo-moar 222d16: OUTPUT«Int $x = 42␤Use of Nil in string context␤ in block <unit> at <tmp> line 1␤Nil␤»
ilmari dd prints the output, it doesn't return it 12:33
hackedNODE ah
rindolf moritz: hackedNODE : OK, thanks.
[ptc] rakudo 2016.09, nqp and moar just accepted into Debian unstable (amd64). Great work by the Debian maintainer team! 12:39
12:41 kurahaupo joined, pierre_ left
RabidGravy cool 12:43
Juerd Very.
masak debian++ 12:44
RabidGravy fedora is trailing on 2016.07
12:51 cog__ joined
rindolf [ptc]: great! 12:53
12:53 rgrinberg joined
nine openSUSE is at 2016.07.1, too. Who's that sloth that fell so far behind? 12:53
yoleaux 23 Sep 2016 22:22Z <jnthn> nine: About your question about wrap of a core method in backlog, you'd better stick "no precompilation" on your code if you do that, since it's a monkey patch and those don't compose under precomp.
nine Oh, it's me
hackedNODE m: multi foo (Real) {'wrong'}; multi foo (Cool) {'wrong'}; multi foo (Numeric) {'right'}; say foo 4e0 12:54
camelia rakudo-moar 222d16: OUTPUT«wrong␤»
hackedNODE Is there a value that will hit foo(Numeric)?
.... and which can be used as a number in multiplication, without custom ops 12:55
kurahaupo maybe a Rat?
hackedNODE Rat is real
m: multi foo (Real) {'wrong'}; multi foo (Cool) {'wrong'}; multi foo (Numeric) {'right'}; say foo 4.5
camelia rakudo-moar 222d16: OUTPUT«wrong␤»
moritz hackedNODE: a Complex
psch m: multi foo (Real) {'wrong'}; multi foo (Cool) {'wrong'}; multi foo (Numeric) {'right'}; say foo 4i
camelia rakudo-moar 222d16: OUTPUT«right␤»
psch moritz++
moritz m: say Complex ~~ Cool
camelia rakudo-moar 222d16: OUTPUT«True␤»
moritz hm
maybe not
hackedNODE Well, can't use Complex either. It's a candidate too 12:56
psch but Numeric is narrower than Cool
hackedNODE (sorry, omited that one)
psch oh
kurahaupo hackedNODE: rational and floating point don't coincide
hackedNODE kurahaupo: floating point is Num 12:57
psch m: multi foo (Real) {'wrong'}; multi foo (Cool) {'wrong'}; multi foo (Numeric) {'right'}; my $val = Numeric.^pun but 0; say foo $val; say $val * 2
hackedNODE c: &postfix:<i>, \(class :: does Numeric {})
camelia rakudo-moar 222d16: OUTPUT«right␤Use of uninitialized value of type Numeric+{<anon|61261280>} in numeric context␤ in block <unit> at <tmp> line 1␤0␤»
Undercover hackedNODE, Ehhh... I'm too scared to run that code.
psch uh hmm
m: multi foo (Real) {'wrong'}; multi foo (Cool) {'wrong'}; multi foo (Numeric) {'right'}; my $val = Numeric.^pun.new but 0; say foo $val; say $val * 2
12:57 ZoffixW joined
camelia rakudo-moar 222d16: OUTPUT«right␤Memory allocation failed; could not allocate 131072 bytes␤» 12:57
moritz looking at docs.perl6.org/images/type-graph-Numeric.svg I don't see a type that should hit it
ZoffixW c: &postfix:<i>, \(class :: does Numeric {})
psch right
Undercover ZoffixW, The code is NOT hit during stresstest See perl6.WTF/src_core_Complex.pm.coverage.html#L465 for details
hackedNODE Trying to hit ^ that one 12:58
psch i think that candidate is for the benefit of non-CORE Numeric types in the first place? 12:59
'cause we probably want narrower candidates for everything that we already know about
hackedNODE I see.
ZoffixW c: &infix:<*>, \(class :: does Numeric {}, i) 13:00
Undercover ZoffixW, The code is hit during stresstest See perl6.WTF/src_core_Numeric.pm.coverage.html#L198 for details
hackedNODE How can a non-core Numeric work there then? As in, how can it be used in multiplication with standard ops and still get right value? From what I see above seems like it'll just go into an infiniloop 13:01
m: class :: does Numeric {} * 42
camelia rakudo-moar 222d16: OUTPUT«WARNINGS for <tmp>:␤Useless use of "*" in expression "class :: does Numeric {} * 42" in sink context (line 1)␤Use of uninitialized value of type <anon|68069232> in numeric context␤ in block <unit> at <tmp> line 1␤»
hackedNODE m: say class :: does Numeric {} * 42
camelia rakudo-moar 222d16: OUTPUT«Use of uninitialized value of type <anon|75660368> in numeric context␤ in block <unit> at <tmp> line 1␤0␤»
hackedNODE oh
Is there a way to give it some value? 13:02
13:02 mcmillhj joined
hackedNODE m: say class :: does Numeric { method Numeric { 42 } } * 42 13:02
camelia rakudo-moar 222d16: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Cannot have a multi candidate for 'Numeric' when an only method is also in the package '<anon|63683920>'␤at <tmp>:1␤»
hackedNODE wat
m: say class :: does Numeric { multi method Numeric { 42 } } * 42
camelia rakudo-moar 222d16: OUTPUT«1764␤»
hackedNODE m: say class :: does Numeric { multi method Numeric { 42 } } * i
camelia rakudo-moar 222d16: OUTPUT«0+42i␤»
hackedNODE m: use Test; cmp-ok postfix:<i>( class :: does Numeric { multi method Numeric { 42 } } ), '==', 42i 13:03
camelia rakudo-moar 222d16: OUTPUT«ok 1 - ␤»
hackedNODE Thanks, all
13:04 ZoffixW left 13:10 cdg joined 13:12 gregf_ joined 13:15 cog__ left 13:26 pierre_ joined 13:30 Unavowed left, Unavowed joined 13:41 ocbtec joined
dalek c: a6d207f | (Zoffix Znet)++ | doc/Type/Str.pod6:
fix typo
hackedNODE The type graph on docs.perl6.org/type/Cool shows IO::Path is Cool, but... 13:46
m: say IO::Path ~~ Cool
camelia rakudo-moar 222d16: OUTPUT«False␤»
13:47 wamba joined
hackedNODE m: say ("foo\x[308]" ~~ /.+/).subst-mutate: 'x', 'o' 13:47
camelia rakudo-moar 222d16: OUTPUT«Cannot resolve caller subst-mutate(Match: Str, Str); none of these signatures match:␤ (Cool:D $self is rw: $matcher, $replacement, *%named)␤ in block <unit> at <tmp> line 1␤␤»
hackedNODE m: say Match ~~ Cool
camelia rakudo-moar 222d16: OUTPUT«True␤»
hackedNODE ? How come it doesn't match that candidate?
oh, nm, is rw
m: say "meow".IO ~~ Cool 13:50
camelia rakudo-moar 222d16: OUTPUT«True␤»
hackedNODE shrugs
m: say "meow".IO.^name 13:51
camelia rakudo-moar 222d16: OUTPUT«IO::Path␤»
hackedNODE m: say "meow".IO ~~ IO::Path
camelia rakudo-moar 222d16: OUTPUT«False␤»
hackedNODE what's going on 13:52
13:52 skids joined
hackedNODE m: use MONKEY-GUTS; say nqp::istype("meow".IO, IO::Path) 13:53
camelia rakudo-moar 222d16: OUTPUT«0␤»
13:54 poohman joined 13:56 pierre_ left
hackedNODE And the answer is... 13:56
ilmari m: "mew".IO.WHAT.say
camelia rakudo-moar 222d16: OUTPUT«(Path)␤»
hackedNODE *drumroll*
dam restricted setting :)
m: Proc::Async.WHAT.say 13:57
camelia rakudo-moar 222d16: OUTPUT«Proc::Async is disallowed in restricted setting␤ in sub restricted at src/RESTRICTED.setting line 1␤ in method gist at src/RESTRICTED.setting line 33␤ in block <unit> at <tmp> line 1␤␤»
hackedNODE Well, it'd say '(Async)'
Strangely, locally the .say complains: "Too few positionals passed; expected at least 2 arguments but got only 1" 13:59
13:59 poohman left
timotimo that usually happens when you try to .say("foobar") on a handle, but it ended up not giving you one 14:00
moritz pro tip: say $thing.^name for debugging :-) 14:02
hackedNODE :)
moritz not sure why people are so fixed on .WHAT
hackedNODE Yeah, I use .^name instead of .WHAT, because .WHAT doesn't give you the full name 14:03
jnthn Or .WHO which is a char shorter *and* gives you the full name :)
moritz or, more to the point, .WHAT gives you the type *object* and you want the type *name*
hackedNODE m: "mew".IO.WHO.say
camelia rakudo-moar 222d16: OUTPUT«IO::Path␤»
hackedNODE m: "mew".IO.WHO.^name.say
camelia rakudo-moar 222d16: OUTPUT«Stash␤»
jnthn (And yes, this actually gives you the Stash, which gists to the name) 14:04
14:04 FROGGS joined 14:07 ka left 14:09 Actualeyes left, Actualeyes1 joined 14:11 FROGGS left, Khisanth left 14:14 ka joined 14:19 andrzejku left 14:25 Khisanth joined 14:26 acrussell joined
dalek c: ac4b28c | (Zoffix Znet)++ | doc/Type/Str.pod6:
Document :st, :nd, :rd, and :th adverbs on .subst
14:32 wamba left 14:38 mcmillhj left 14:39 mcmillhj joined 14:40 andrzejku joined, pmurias joined 14:41 andrzejku left 14:44 mcmillhj left 14:45 mcmillhj joined 14:47 andrzejku joined 14:50 FROGGS joined 14:57 andrzejku left 15:00 Cabanossi left 15:02 lichtkind left, lichtkind joined 15:03 mcmillhj left, petercommand joined 15:04 Cabanossi joined, cdg left 15:06 itaipu joined 15:07 rindolf left 15:09 gregf_ left, mcmillhj joined 15:12 rindolf joined 15:13 AlexDaniel joined 15:14 mcmillhj left, rgrinberg left 15:20 Ven` joined
Ven` m: sub infix:{'+'}($a, $b) { $a - $b }; say 3 + 1; 15:20
camelia rakudo-moar 222d16: OUTPUT«===SORRY!===␤Internal error: find_var_decl could not find $_␤»
Ven` m: constant my $a = '+'; BEGIN say $a; 15:22
camelia rakudo-moar 222d16: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Missing initializer on constant declaration␤at <tmp>:1␤------> 3constant my7⏏5 $a = '+'; BEGIN say $a;␤»
Ven` m: constant $a = '+'; BEGIN say $a;
camelia rakudo-moar 222d16: OUTPUT«+␤»
Ven` m: constant $a = '+'; sub infix:<<$a>>($, $) {} 15:23
camelia ( no output )
Ven` m: constant $a = '+'; sub infix:<<$a>>($, $) {}; say 3 + 4
camelia rakudo-moar 222d16: OUTPUT«Nil␤»
TimToady m: sub infix:['+']($a, $b) { $a - $b }; say 3 + 1;
camelia rakudo-moar 222d16: OUTPUT«2␤»
TimToady m: sub infix:('+')($a, $b) { $a - $b }; say 3 + 1;
camelia rakudo-moar 222d16: OUTPUT«4␤»
Ven` TimToady: Ugh, obviously I forgot to escape my simple quotes when I tried that. Sigh... 15:24
15:25 mcmillhj joined
Ven` All works fine! Thanks. (well, I guess the error for {'x'} is a bit weird) 15:26
15:26 FROGGS left
TimToady well, :{} is gonna make a hash or a closure for the value, which is odd 15:26
15:27 domidumont left
TimToady :[] actually makes a list, but it knows it can handle a list, especially when you need multiple delims 15:28
as for :(), I have no idea what it's thinking there, since there's nothing to invoke 15:29
well, no, it's not invoking, so those are just grouping parens, like foo => (1,2,3)
so probably should work just like :[] 15:30
15:37 rgrinberg joined 15:38 andrzejku joined 15:41 FROGGS joined
dalek c: ba2cbe8 | (Zoffix Znet)++ | doc/Type/Str.pod6:
Document .subst-mutate returns a List when :g is used
15:47 cdg joined 15:52 raiph joined 15:57 acrussell left 16:00 salva left, CIAvash joined 16:11 cog__ joined 16:14 itaipu left 16:16 itaipu joined, mcmillhj left 16:17 AlexDaniel left 16:21 girafe joined 16:23 mcmillhj joined, acrussell joined 16:25 ka left, boby joined
boby rakudo: say 19+23 16:25
camelia rakudo-moar 222d16: OUTPUT«42␤»
raiph m: glot.io/snippets/eiuanq8oe9 16:26
camelia rakudo-moar 222d16: OUTPUT«5===SORRY!5=== Error while compiling <tmp>␤Confused␤at <tmp>:1␤------> 3https:7⏏5//glot.io/snippets/eiuanq8oe9␤ expecting any of:␤ colon pair␤»
boby rakudo: say (0, { $_ + 3 } ... 12);
camelia rakudo-moar 222d16: OUTPUT«(0 3 6 9 12)␤»
hackedNODE m: say 0, 3 … 12 16:27
camelia rakudo-moar 222d16: OUTPUT«(0 3 6 9 12)␤»
16:27 bbkr left
boby rakudo: say (0, { ($_ -1) + ($_ -2) } ... 13); 16:28
camelia rakudo-moar 222d16: OUTPUT«(0 -3 -9 -21 -45 -93 -189 -381 -765 -1533 -3069 -6141 -12285 -24573 -49149 -98301 -196605 -393213 -786429 -1572861 -3145725 -6291453 -12582909 -25165821 -50331645 -100663293 -201326589 -402653181 -805306365 -1610612733 -3221225469 -6442450941 -12884901885 …»
16:28 wamba joined
hackedNODE The bot also can be used via /msg 16:28
16:28 mcmillhj left
boby ok thank you 16:31
16:33 Ven` left 16:34 Xliff_ joined, girafe2 joined, sftp left, cdg_ joined, mad__ joined, perlpilot_ joined, setty2 joined 16:35 NEveD left, dataange` joined 16:36 atta joined, buggable left, eliasr left, ribasushi left, huggable left, tbrowder left, pnu_ left, cpage left, edenc left, Unavowed left, NeuralAnomaly left, DrParis left, huggable joined, Unavowed joined, NeuralAnomaly joined, canopus left, infina left, raiph left, mr-foobar left, skids left, telex left, risou_ left, nowan left, [particle]1 joined, krakan_ left, TimToady left, gfldex left 16:37 buggable joined, risou__ joined, obfusk_ left, ilmari[m] left, andrzejku left, Khisanth left, zoosha left, pdcawley left, tadzik left, setty1 left, jonas1 left, setty2 is now known as setty1, pdcawley_ joined, jcallen left, dalek left, Matthew[m] left, emdashcomma left, chansen_ left, dalek joined, keix left, rgrinberg left, pmurias left, ChanServ sets mode: +v dalek, Guest99694 left, integral left, girafe left, FROGGS left, Exodist left, captain-1dequate left, integral_ joined, imcsk8_ left, Shozan left, f3ew_ left, albongo left, sammers left, dakkar left, dataangel left, cdg left, dj_goku left, jsimonet1 joined, pierrot left, rodarmor left, jonas1 joined, albongo joined, integral_ left, integral_ joined, albongo left, albongo joined, acrussell left, kyclark left, Upasaka_ left, telex joined 16:38 dogbert17 left, vcv_ left, vcv joined, frew left, jcallen_ joined, sftp joined, Khisanth joined, mr-foobar joined, sammers joined, xiaomiao left, xxpor_ left, jonadab left, f3ew joined, larion_ joined, keix joined, woolfy left, [particle] left, clkao left, perlpilot left, Xliff__ left, obfusk joined, rodarmor joined, zoosha joined, chansen_ joined, cog__ left, Matias[m] left, atta_ left, larion left, yubimusubi left, cooper_ left, acrussell_ joined, MilkmanDan left, cpage_ joined, skids1 joined, emdashcomma joined, bbkr joined, cpage_ is now known as cpage, ggoebel left, Woodi left, gfldex joined, ocbtec left 16:39 captain-adequate joined, dogbert17 joined, xiaomiao joined, ggherdov left, SHODAN joined, jonadab joined, Woodi joined 16:40 ocbtec joined, edenc joined, dj_goku joined, dj_goku left, dj_goku joined, ribasushi joined, andrzejku joined, MilkmanDan joined 16:41 BuildTheRobots left, smash left, yoleaux left, Upasaka joined 16:42 mniip left, mcmillhj joined, smash joined, canopus joined, nowan joined 16:43 sivoais left 16:44 dogbert2 joined, Unavowed_ joined, Exodist joined, Possum joined, dogbert2 left 16:45 bbkr_ joined 16:46 setty1 left, [particle] joined, larion_ left, atta left, bjz_ left, [particle]1 left, dustinm`_ left, dogbert17 left, acrussell joined, dj_goku_ joined, dj_goku_ left, dj_goku_ joined 16:47 canopus left, xiaomiao left, perigrin left, zhmylove_ joined, chansen_ left, Actualeyes1 left, M-Illandan left, buggable_ joined, dustinm` joined, d4l3k_ joined, NeuralAnomaly_ joined, smash left, salparadise left, stmuk_ left, cdg_ left, wamba left, stevieb left, RabidGravy left, aries_liuxueyang left, buggable_ left, buggable_ joined, Actualeyes joined, jcallen joined, gfldex left, sammers left, timotimo left, Kaffe_ left, chee left, stmuk_ joined, zoosha left, vytas left, Guest81107 left, _chee joined, NeuralAnomaly left, ribasushi left, buggable left, captain-adequate left, risou__ left, zhmylove left, PotatoGim left, jnap_ left 16:48 captain-adequate joined, dj_goku left, Jonis left, jcallen_ left, obfusk left, rodarmor left, Unavowed left, cdg joined, andrzejku left, Kaffe joined, bjz joined, timeless left, cpage left, skids1 left, obfusk joined, bbkr left, vcv left, ponbiki joined, risou___ joined, mcmillhj left, profan left, SHODAN left, ribasushi_ joined, aries_liuxueyang joined, rodarmor joined, sammers joined, dalek left, timotimo joined, setty1 joined, Jonis__ joined, SHODAN joined, xiaomiao joined, d4l3k_ is now known as dalek, ChanServ sets mode: +v dalek, ponbiki is now known as Guest22062, domidumont joined 16:49 andrzejku joined, acrussell_ left, salparadise joined, profan joined, imcsk8 joined, skids joined 16:50 canopus joined, frew joined, TimToady joined 16:51 FROGGS joined, xxpor joined, pmurias joined 16:52 cpage joined, woolfy joined, smash joined, clkao joined, krakan joined, vcv joined 16:53 pnu_ joined, rgrinberg joined, atta joined 16:54 perigrin joined, sivoais joined 16:55 gfldex joined, eliasr joined 16:56 zoosha joined 16:57 giraffe joined 16:58 kyclark joined, giraffe is now known as Guest12963 16:59 mniip joined 17:00 mcmillhj joined, stevieb joined 17:01 sufrostico joined, lichtkind_ joined 17:02 RabidGravy joined, vytas joined 17:04 lichtkind left 17:06 ka joined 17:08 cdg_ joined 17:09 imcsk8_ joined 17:10 xxpor left, salparadise left, dj_goku_ left, acrussell left 17:11 Kaffe_ joined, SHODAN left, mr-foobar left, zhmylove_ left, zengargoyle left, mr-fooba_ joined, clkao left, synopsebot6 left, Undercover left, synopsebot6 joined, huggable_ joined, Undercover joined, d4l3k_ joined, eliasr left, sammers left, dustinm` left, nowan left, ocbtec left, awwaiid left, luis` left, SHODAN joined, ocbtec joined, dalek left, zoosha_ joined, sivoais left, jcallen left, nowan joined, sammers joined, woolfy1 joined, stmuk_ left, Upasaka left, jsimonet1 left, romrador joined, d4l3k_ is now known as dalek, ChanServ sets mode: +v dalek, Upasaka_ joined, bjz left, captain-adequate left, sftp left, huggable left, woolfy left, Kaffe left, obfusk left, cdg left, rodarmor left, lichtkind_ left, kyclark left 17:12 jsimonet1 joined, firstdayonthejob joined, jcallen joined, dustinm` joined, luis` joined, stmuk_ joined, risou___ left, Guest22062 left, Gothmog_ left, Guest12963 left, zengargo1le joined, zoosha left, imcsk8 left, andrzejku left, Gothmog_ joined, RabidGravy left, stevieb left, obfusk joined, risou___ joined, captain-adequate joined, domm1 left, andrzejku joined 17:14 kyclark joined, dj_goku joined, dj_goku left, dj_goku joined, xxpor joined 17:16 bjz joined, sftp joined, domm1 joined 17:17 ponbiki_ joined, salparadise joined 17:19 awwaiid joined 17:20 k_re joined, boby left 17:21 zhmylove joined, captain-1dequate joined, Undercover left, huggable_ left, pnu_ left, NeuralAnomaly_ left, huggable joined, NeuralAnomaly joined, Undercover joined, ka left, d4l3k_ joined, bjz left, scott left, romrador left, sftp left, dalek left, NeuralAnomaly left, NeuralAnomaly joined, zengargoyle joined, rodarmor joined, dj_goku left, ocbtec left, buggable_ left, Woodi left 17:22 [ptc]_ joined, d4l3k_ is now known as dalek, ChanServ sets mode: +v dalek, melezhik joined, melezhik_ left, profan left, [ptc] left, aries_liuxueyang left, itaipu left, [ptc]_ is now known as [ptc], domm1 left, sammers left, zostay left, kurahaupo left, aries_liuxueyang joined, frew1 joined, sftp joined, profan_ joined, captain-adequate left, zengargo1le left, pmurias left, Woodi_ joined, xxpor left, Gothmog_ left, frew left, itaipu_ joined, giraffe_ joined 17:23 sivoais joined 17:24 domm1 joined, telex left, RabidGravy joined, lichtkind_ joined, telex joined 17:25 dj_goku joined, dogbert17 joined, sammers joined 17:26 canopus_ joined, xxpor joined, krakan_ joined, Upasaka joined, pmurias joined 17:27 Gothmog_ joined, bjz joined 17:28 canopus left, skids left, pdcawley_ left, camelia left, b2gills left, dgl left, bitmap left, stevieb joined, camelia joined 17:32 pmurias_ joined, Upasaka_ left, krakan left, dalek left, xxpor left, SourceBaby left, huggable left, SourceBaby joined, huggable joined, albongo left, rodarmor left, dalek joined, timeless joined, sammers left, yeltzooo left, rodarmor joined, ChanServ sets mode: +v dalek, timeless left, timeless joined, timeless left, timeless joined, timeless left, timeless joined 17:33 Jonis_ joined, ggherdov joined, camelia left, jcallen left, jsimonet1 left, riatre_ left, profan joined, jsimonet1 joined, ircuse joined, infina joined, bjz left, pmurias left, profan_ left, krakan_ left, salparadise left, Jonis__ left, krakan_ joined 17:34 xxpor joined, riatre joined, BuildTheRobots joined, albongo joined, ocbtec joined 17:35 yeltzooo joined, jcallen joined, infina left, infina joined, bjz joined 17:36 sammers joined, camelia joined, ChanServ sets mode: +v camelia 17:39 DrParis joined, chansen_ joined, eliasr joined 17:40 infina left 17:42 pnu_ joined, Matias[m] joined 17:44 zostay joined, infina joined, infina left, infina joined, itaipu_ left 17:46 clkao joined 17:50 andrzejku left, skids joined 17:52 PotatoGim joined 17:55 jnap_ joined 17:56 aindilis joined 18:02 tbrowder joined 18:05 itaipu joined 18:09 andrzejku joined, labster joined 18:10 sivoais left, smash left, Actualeyes left, zostay left, DrParis left, rodarmor left, ggherdov left, dalek left, Actualeyes1 joined, d4l3k_ joined, tbrowder left, BuildTheRobots left, xxpor left, jsimonet1 left, profan left, [ptc] left, d4l3k_ is now known as dalek, jsimonet1 joined, rodarmor joined, ChanServ sets mode: +v dalek, sammers left, Jonis_ left, huggable left, Gothmog_ left, sftp left, NeuralAnomaly left, zoosha_ left, sivoais joined, Jonis_ joined, Gothmog_ joined, huggable joined, krakan joined 18:11 telex left, telex joined, krakan_ left, petercommand left, zoosha joined, [ptc] joined, sftp joined 18:12 xxpor joined, sammers joined 18:14 zostay joined 18:15 k_re left, ggherdov joined 18:16 profan joined, rgrinberg left 18:17 smash joined 18:19 andrzejku left, wamba joined, mrsolo left 18:20 andrzejku joined, Jonis__ joined, BuildTheRobots joined, jcallen left, Jonis_ left, itaipu left, ggherdov left, BuildTheRobots left, BuildTheRobots joined 18:21 BuildTheRobots left, BuildTheRobots joined, rgrinberg1 joined, jcallen joined, lichtkind_ left, itaipu_ joined, lichtkind_ joined 18:22 ggherdov joined 18:24 andrzejku left 18:25 mad__ is now known as cooper 18:26 bbkr_ left, harmil_wk joined, DrParis joined 18:28 tbrowder joined, mrsolo joined, mrsolo left, mrsolo joined, tbrowder left, tbrowder joined 18:29 nwc10 joined
nwc10 www.youtube.com/watch?v=A1YxNYiyALg - about 30 seconds to kick-off 18:29
ie t.co/SwNQJ9Ht4D
er, thanks
this: www.spacex.com/Mars 18:30
which should explain the on-topic-ness for the off-topic
18:30 itaipu_ left
hackedNODE "Activate Adobe Flash. This plugin is vulnerable and should be updated" 18:31
18:31 petercommand joined
hackedNODE watches intently 18:31
18:32 petercommand left, petercommand joined
nwc10 is wondering how soon the soon is 18:32
18:32 cdg_ left
nwc10 hopefully sooner than a Falcon Heavy. Is it 2013 yet? 18:32
18:32 pdcawley_ joined, b2gills joined, dgl joined, bitmap joined, grondilu joined
grondilu Hello #perl6 18:33
hackedNODE \o
grondilu off-topic: SpaceX's announcement about their mars plan www.youtube.com/watch?v=A1YxNYiyALg
hackedNODE lool
nwc10 grondilu++ # confirming my opinion about what off-topic is on-topic :-)
hackedNODE So what's the plan? I can't watch anything. 18:34
nwc10 yes, I am wondering this too
it's 4 minutes late
grondilu while you wait you can watch this I guess: www.youtube.com/watch?v=0qo78R_yYFA 18:35
18:35 maybekoo2 joined
grondilu it's their interplanetary vessel plan 18:35
released an hour ago. 18:36
El_Che I would watch if they put the US presidential candidates on it ;) 18:37
or in :)
hackedNODE or under...
I don't know why Muricans complain about their candidates. You brought this on your own lol :) 18:38
18:39 canopus_ is now known as canopus, kurahaupo joined
moritz anyone want to submit some p6 repos to hacktoberfest.digitalocean.com/ and mark some issues with the hacktoberfest tag to indicate that contributions would be welcome and easy? 18:39
hackedNODE pets his two Hacktoberfest T-shirts 18:40
18:40 yoleaux joined
Woodi_ prefers they finaly declassify that Star Gate gate for general public use... ;) 18:40
18:40 ChanServ sets mode: +v yoleaux, obfusk left
nwc10 curious that this new thing is three-fold symmetry (grid fins & landing legs) not 4 18:40
18:41 obfusk joined, CIAvash left 18:43 labster left
hackedNODE moritz: from what I understand, you don't submit repos to anywhere. You just tag Issues in any GitHub-hosted repo with "Hacktoberfest" label 18:46
Which, sadly, excludes any of Rakudo's issues :/ 18:47
18:51 sufrostico left 18:52 andrzejku joined 18:53 _chee is now known as chee
moritz why? 18:55
hackedNODE Rakudo's issue tracker is disabled
I mean, people can submit PRs, but we can't tag RT tickets with "Hacktoberfest" :)
moritz oh, right 18:56
hackedNODE Of course, we can enable it temporarily, open just some Hacktoberfest issues, and then close it at the end
hackedNODE isn't sure that's worth the effort
moritz no, we should just do it for other repos 18:57
docs, roast, website, you name it
18:57 pdcawley_ left, b2gills left, dgl left, bitmap left
nwc10 those might also be easier for new folks to contribute to 18:57
ooh, finally, live is live 18:58
19:02 labster joined
hackedNODE First Hacktoberfest issue done: github.com/perl6/roast/issues/161 19:04
I guess all LHF in docs repo can also be that
hackedNODE marks 19:05
zengargoyle LHF? 19:07
19:07 itaipu joined
[Coke] Low Hanging Fruit 19:07
19:10 lostinfog joined 19:11 m0ltar left, timeless left, rgrinberg1 left, sammers left, krakan left, avuserow left, petercom1and joined, sammers joined, krakan joined 19:12 Khisanth left, timeless joined, Khisanth joined, petercommand left 19:13 m0ltar joined 19:14 cbk_ joined 19:15 wamba left
zengargoyle ah 19:15
19:15 wamba joined 19:16 woolfy1 left, avuserow joined, terminalfool joined, terminalfool left 19:17 domidumont left 19:18 terminalfool joined, petercom1and is now known as petercommand, maybekoo2 left 19:24 giraffe_ left, grondilu_ joined 19:25 aindilis left 19:26 ggoebel joined, grondilu is now known as Guest7051, cbk_ left, avuserow left, zostay left, SourceBaby left, tbrowder left, ggherdov left, jnap_ left, clkao left, pnu_ left, labster left, labster joined, sammers left, sftp left, huggable left, rodarmor left, PotatoGim left, d4l3k_ joined, wamba1 joined, SourceBaby joined, huggable joined, dalek left, labster left, labster joined 19:27 albongo left, sammers joined, sftp_ joined, andrzejku left, Khisanth left, jcallen left, petercommand left, jsimonet1 left, Guest7051 left, albongo joined, grondilu_ left, d4l3k_ is now known as dalek, jcallen joined, ChanServ sets mode: +v dalek, jsimonet1 joined, sftp_ is now known as sftp, kurahaupo left, wamba left 19:28 obfusk left, rodarmor joined, obfusk joined, andrzejku joined, Woodi_ is now known as Woodi, petercommand joined 19:29 darutoko left, grondilu joined
ugexe Inline::Perl5 + DBIx::Class + runtime generated schemas (package App::DB; use base 'DBIx::Class::Schema::Loader') is pretty nice for prototyping 19:29
19:30 avuserow joined
dalek line-Perl5: ab7ce57 | niner++ | lib/Inline/Perl5.pm6:
Remove unused optional argument
19:30 nwc10 left, cbk_ joined
nine ugexe: :) 19:30
19:31 cognominal joined, Matias[m] left, Guest14330 joined 19:36 Guest14330 left, ribasushi_ left, ilogger2 joined, ChanServ sets mode: +v ilogger2 19:37 ingy joined, riatre joined, albongo joined
ugexe I guess I see why, since some perl6 modules have .pm extension and would then see packages in perl 5 that should not exist 19:37
nine ugexe: having both in the same tree might not be a good idea because the .pm extension is ambiguious
19:37 lizmat joined, kmwallio joined, jsimonet1 joined, zostay joined
Woodi_ is it possible to hang some station half-way to Mars ? for emergency or re supply ? 19:38
19:38 pochi joined, tbrowder joined
gfldex Woodi: no because of orbit mechanics it would drive away from it's half-way position fairly switfly 19:38
19:38 camelia joined
geekosaur also, earth and mars both move. where do you put it if earth and mars are in opposition? 19:38
19:39 sammers joined
geekosaur ...and rescue prospects for that station itself are kinda terrible 19:39
gfldex if you can get the timing right, you could have it at a halve way position for one mission tho
19:39 ChanServ sets mode: +v camelia 19:40 ribasushi joined
Woodi damn, everything swims :) 19:40
19:40 giraffe_ joined
moritz and then what? it's hard enough to reach the half-way point that you can't have a proper hospital there anyway 19:40
19:40 Khisanth joined, tinita joined,