»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
skids gist.github.com/3882578 # one obstacle to Sum modules working from panda precompiles 00:33
grondilu n: say "hello" 00:36
p6eval niecza v22-9-g7ae412a: OUTPUT«hello␤»
grondilu rn: class Foo { method postfix:<!> { say "foo" } }; sub postfix:<!>(Foo $) { say "bar" }; Foo!; Foo.postfix:<!>()
p6eval rakudo 547fcb, niecza v22-9-g7ae412a: OUTPUT«bar␤foo␤» 00:37
grondilu rn: class Foo { method postfix:<!> { say "foo" } }; sub postfix:<!>(Foo $) { say "bar" }; Foo.&postfix:<!>() 00:37
p6eval rakudo 547fcb, niecza v22-9-g7ae412a: OUTPUT«bar␤» 00:38
grondilu rn: role Modular { has $.modulo }; sub infix:<+>($a, Modular $b) { ($a+$b) % $b.modulo }; my ($a, $b) = 4, 7; say $a + ($b but Modulo(10)); 00:46
p6eval niecza v22-9-g7ae412a: OUTPUT«===SORRY!===␤␤Undeclared name:␤ 'Modulo' used at line 1␤␤Unhandled exception: Check failed␤␤ at /home/p6eval/niecza/boot/lib/CORE.setting line 1437 (die @ 5) ␤ at /home/p6eval/niecza/src/STD.pm6 line 1147 (P6.comp_unit @ 37) ␤ at /home/… 00:47
..rakudo 547fcb: OUTPUT«===SORRY!===␤CHECK FAILED:␤Undefined routine '&Modulo' called (line 1)␤»
grondilu rn: role Modular { has $.modulo }; sub infix:<+>($a, Modular $b) { ($a+$b) % $b.modulo }; my ($a, $b) = 4, 7; say $a + ($b but Modular(10));
p6eval niecza v22-9-g7ae412a: OUTPUT«(timeout)» 00:47
..rakudo 547fcb: OUTPUT«maximum recursion depth exceeded␤current instr.: 'print_exception' pc 88369 (src/gen/CORE.setting.pir:42327) (src/gen/CORE.setting:9039)␤called from Sub 'infix:<+>' pc 202 ((file unknown):102) (/tmp/LrBnwWnNty:1)␤called from Sub 'infix:<+>' pc 228 ((file unknown):1…
grondilu rn: role Modular { has $.modulo }; sub infix:<+>($a, Modular $b) { callsame % $b.modulo }; my ($a, $b) = 4, 7; say $a + ($b but Modular(10)); 00:48
p6eval niecza v22-9-g7ae412a: OUTPUT«===SORRY!===␤␤Non-declarative sigil is missing its name at /tmp/VPWDnmMpkh line 1:␤------> ub infix:<+>($a, Modular $b) { callsame ⏏% $b.modulo }; my ($a, $b) = 4, 7; say $␤␤Potential difficulties:␤ $a is declared but n…
..rakudo 547fcb: OUTPUT«===SORRY!===␤Non-declarative sigil is missing its name␤at /tmp/Tmnqgf6_3z:1␤»
grondilu rn: role Modular { has $.modulo }; sub infix:<+>($a, Modular $b) { callsame() % $b.modulo }; my ($a, $b) = 4, 7; say $a + ($b but Modular(10));
p6eval niecza v22-9-g7ae412a: OUTPUT«Potential difficulties:␤ $a is declared but not used at /tmp/GiefRg4aCJ line 1:␤------> Modular { has $.modulo }; sub infix:<+>(⏏$a, Modular $b) { callsame() % $b.modulo␤␤Unhandled exception: No next function to call!␤ at /home/p6eval/n…
..rakudo 547fcb: OUTPUT«callsame is not in the dynamic scope of a dispatcher␤ in block at src/gen/CORE.setting:478␤ in sub infix:<+> at /tmp/nMgumPoBbJ:1␤ in block at /tmp/nMgumPoBbJ:1␤␤»
grondilu gives up 00:49
dalek ecza: 664c87c | (Solomon Foster)++ | lib/ (3 files):
Import Cook's implementation of LogGamma.
02:44
dalek ecza: 15c5b26 | (Solomon Foster)++ | lib/ (2 files):
Add log1p.
02:56
sorear n: say lgamma 129 03:01
p6eval niecza v22-11-g15c5b26: OUTPUT«496.40547848721758␤»
sorear n: say (lgamma 129 - 2 * lgamma 65) / log 2
p6eval niecza v22-11-g15c5b26: OUTPUT«Unhandled exception: System.ArgumentException: Error: Expected a non-negative value but received -281.336398965282. ␤ at SpecialMathFunctions.Validate.IsNonNegative (Double x, System.String extra) [0x00000] in <filename unknown>:0 ␤ at SpecialMathFunctio…
sorear n: say (lgamma(129) - 2 * lgamma 65) / log(2) 03:02
p6eval niecza v22-11-g15c5b26: OUTPUT«124.17143420017372␤»
sorear n: say (lgamma(1025) - 2 * lgamma 513) / log(2)
p6eval niecza v22-11-g15c5b26: OUTPUT«1018.6738997148517␤»
colomon I've been wondering how I should set up tests for these.... file for each function? One file for all of them (in roast) until they are more official/settled? Nothing in roast? 03:06
dalek ecza: 960f328 | (Solomon Foster)++ | lib/ (3 files):
Add Cook's Erf implementation.
03:09
sorear colomon: I've wrestled with the same problem, and I don't really have a good answer 03:11
sorear is trying to figure out how much COok is involved with p6/niecza 03:12
sorear found www.johndcook.com/blog/2012/10/09/t...avascript/ 03:12
colomon he just saw Damian give a presentation last week, I believe. 03:13
and then I wrote him to ask if we could borrow some of his C# math functions.
afk # bedtime 03:16
masak johndcook++ 04:43
sorear masak! 04:47
tadzik good morning 07:05
Woodi cześć :) 07:09
maybe you know do we have some ppls from Russia in Perl6 community ? 07:10
it's big country :)
tadzik well, the Perl community is big there 07:12
Ulti my \ℤ = 3; say ℤ; surely it should be my \ℤ = 0..Inf; say ℤ; :D 07:50
skids: I had the same problem with POD and precompiled modules, the contents is in the pir file but its not accessible 07:52
Ulti is there a way to get a character from stdin without echoing and without the need to terminate with a newline in Rakudo 09:01
I've even tried directly doing nqp::p6box_s($!MyIO.read(1)) but it still needs new line termination :/ 09:02
where MyIO is a bound attribute to a PIR stdin handle 09:03
Ulti ;___; even doing something dumb like run(stty -echo) *read stuff* run(stty echo) doesn't work 09:20
also this is kind of what I wanted to do but for perl6 bpython-interpreter.org/screenshots/ 09:23
Timbus Ulti, i think you need to set the terminal up to provide stdin to the program instantly 09:50
something about canonical.. er.
stty -icanon 09:51
you could try using nativecall to set the terminal thru termios but i don't like your chances 09:52
jnthn o/ from npw 11:54
moritz \o to npw :-) 11:55
jnthn surivived a 40 minute talk that lasted 60 minutes and was 90% live demo 11:56
dalek kudo-debugger: cc1d58c | jonathan++ | bin/perl6-debug.nqp:
Don't call macro declarator action.

It seems to be missing. Not sure why...may be Rakudo issue.
11:57
kudo-debugger: 8bb85f6 | jonathan++ | / (2 files):
Reset debugger state between runs.

This makes things better for multiple debug runs in the REPL.
kudo-debugger: 68b1b13 | jonathan++ | lib/Debugger/UI/CommandLine.pm:
Fix step-out bug.
GlitchMr r: say "i want >>" 13:23
p6eval rakudo 547fcb: OUTPUT«i want >>␤»
GlitchMr thanks
jnthn GlitchMr: Huh? :) 13:32
r: say 128 +> 4
p6eval rakudo 547fcb: OUTPUT«8␤»
jnthn That's how you write >>, if that's what you mean :)
GlitchMr I wanted to get » for copy and paste 13:38
jnthn oh :)
Ulti thanks Timbus 13:45
Ulti I think I will give up for now and work some more sentiment analysis stuff 13:46
jnthn Ulti: Did .getc not work for you?
Ulti I get a character but you have to press return and it echoes back to the terminal 13:47
jnthn Oh?
I know the echo not but the press return
Ulti yeah
jnthn hm, you're right :/ 13:48
Ulti even if I read(1) I have to press return to get the buffer back its very odd... I can't see from the Rakudo source why it would be true other than parrot doing this
jnthn Probably that Parrot does it that way
Ulti c'est la vie
on the upside it made me look at the Rakudo source and it wasn't as scary as I was expecting 13:49
skids jnthn: any thoughts on gist.github.com/3882578 ? # Apologies of this is a dup line, IRC flapped.
jnthn skids: looking
skids: urgh, that looks problematic. 13:50
Please Rakudo-bug it, I'll have a look.
skids ok, will do. 13:52
jnthn++
jnthn I'm gonna be doing a bunch of work on pre-comp and so on soonish (automatic pre-comp and so on)
moritz r: constant a = Buf.new(1, 2) 13:59
p6eval rakudo 547fcb: ( no output )
moritz r: constant a = Buf.new(1, 2); say a
p6eval rakudo 547fcb: OUTPUT«Buf:0x<01 02>␤» 14:00
moritz I thought that one failed
skids sigh. perl.org rejects email from me; it's using one of the overly anal spamhaus lists and my outgoing proxy broke a few days back so I can't rakudobug. 14:01
moritz nopaste your rakudobug, and I'll send it 14:02
skids moritz: I edited the above gist 14:09
moritz skids: submitted 14:11
skids thanks moritz++ 14:12
skids succumbs to Borderlands2 temptation 14:14
moritz skids: it's now #115240 14:18
jnthn bere & 14:23
arnsholt o/ 16:38
sorear o/ 17:35
moritz \o 17:36
sjohnson o/ 17:39
Ulti \o (couldn't leave you hanging) 17:41
cognominal perl6: my %a := { from => 0 }; say %a.perl; my @a; @a.push: %a; say @a.perl 18:01
p6eval niecza v22-12-g960f328: OUTPUT«{"from" => 0}.hash␤["from" => 0].list␤»
..rakudo 547fcb: OUTPUT«("from" => 0).hash␤Array.new("from" => 0)␤»
cognominal I expected the first element of @a to be a hash. What should I have done to get that? 18:03
moritz @a.push: %a.item
or
@a.push: $(%a)
or @a.push: $%a if it's implemented
moritz r: my @a; @a.push: %%*ENV; say @a.elems 18:18
p6eval rakudo 547fcb: OUTPUT«===SORRY!===␤Non-declarative sigil is missing its name␤at /tmp/m6hRD5Gi55:1␤»
moritz r: my @a; @a.push: $%*ENV; say @a.elems
p6eval rakudo 547fcb: OUTPUT«===SORRY!===␤Unsupported use of $% variable; in Perl 6 please use Form module␤at /tmp/O094TqbODu:1␤»
moritz r: my @a; @a.push: $(%*ENV); say @a.elems
p6eval rakudo 547fcb: OUTPUT«1␤»
moritz r: my @a; @a.push: %*ENV; say @a.elems
p6eval rakudo 547fcb: OUTPUT«23␤» 18:19
dalek kudo/nom: b2f2f63 | moritz++ | src/Perl6/World.pm:
add some more native types to World.pm
18:58
kudo/nom: e2eb219 | moritz++ | src/Perl6/Metamodel/RoleToClassApplier.pm:
fix #115212: accessor method does not count as implementation of required method
ast: ca253f0 | moritz++ | S14-roles/stubs.t:
unfudge test for RT #115212
18:59
moritz has a local monkeypatch for 'handles' on methods 19:28
it's really cool that I can traits outside of rakudo 19:29
dalek kudo/nom: bdd23f2 | moritz++ | src/core/traits.pm:
basic implementation of "handles" on methods
19:42
ast: ed2fdad | moritz++ | S12-methods/delegation.t:
add basic method delegation tests
19:49
kudo/nom: f6bf915 | (Timothy Totten)++ | src/core/Buf.pm:
Added 'x' to pack.

Signed-off-by: Moritz Lenz [email@hidden.address]
19:51
kudo/nom: 8230aef | moritz++ | t/spectest.data:
run method delegation tests
19:52
moritz it feels good to have hacked a bit on rakudo again :-) 19:59
and while the wildcard cases aren't implemented, I think it's good enough to flip the bit in the feature matrix 20:03
dalek atures: dba2bda | moritz++ | features.json:
Rakudo now does most cases of method delegation
tadzik moritz++! 20:15
tadzik ossum 20:16
_edwin rosettacode.org/wiki/Paraffins#Perl_6 21:18
my first RC entry that works with both niecza and rakudo, I think
sorear yay 21:23
sorear notes that the task makes no mention of things like tetra-t-butyl-methane 21:25
_edwin quite a lot faster on niecza, however I was not patient enough to reach n=200 :/
sorear, interesting. while doing the task, in fact I wondered if all of these theoretical isomers would really fit within 3-dim. space :} 21:28
didn't know there were even named ones that don't
and such small ones, too 21:30
sorear There are rules by which names can be given for any tree structure 21:31
If you were feeling really ambitious you could even code the rules into your solution :) 21:32
although "tetra-t-butyl-methane" is not really a kosher name, it should be "3,3-di-t-butyl 2,2,4,4-tetramethyl pentane" 21:33
_edwin that would be a nice addition to the RC "extra credit" 21:34
sorear finding noncanonical but shorter names is probably P^NP-hard 21:35
skids moritz++ I'm sure I have some commented out code somewhere wanting to use that feature. 21:42
_edwin 30 tasks to got to reach the RC top ten (if other langs would stagnate)
_edwin thanks to moritz++'s fix, rosettacode.org/wiki/Formal_power_series#Perl_6 has "role FPS" now 21:48
not_gerd hello, #perl6 21:53
if someone wants to dig into the readline failure on latest Parrot: gist.github.com/3886259
Parrot_io_readline_s gets called with some random number instead of something sensible like \n 21:54
(as terminator argument, that is)
jnthn good beer, #perl6
er, *evening*. good *evening*...
tadzik yeah, right 21:55
jnthn The beer was good too :P
jnthn has first talk at NPW in the morning. Thankfully it's at 10am :)
Dangerous discovery: Stockholm has a place with 600 types of beer available. 21:56
Oh wow, moritz++ has been patching :) 21:57
jnthn moritz: Since a parent class is good enough to provide a required method, I think the :local(1) in e2eb219a may not be needed. 21:58
dalek ast: e248ff0 | (Edwin Steiner)++ | S14-roles/stubs.t:
Test that an accessor from a parrot class counts as an implementation of a required method.
22:14
_edwin argh! *parent* class :(
at least I got it right in the code itself 22:15
jnthn :) 22:19
_edwin++ # writing tests
OK, time to sleep :)
_edwin same here, good night 22:20
not_gerd bye, #perl6 22:25
diakopter rn: say <<<\>'n'>> 23:04
p6eval niecza v22-12-g960f328: OUTPUT«<>'n'␤»
..rakudo 8230ae: OUTPUT«===SORRY!===␤Missing << or >>␤at /tmp/3d7nN0j6TR:1␤»
diakopter rn: say <<'m'<\>'n'>> 23:05
p6eval rakudo 8230ae: OUTPUT«'m'<\>'n'␤»
..niecza v22-12-g960f328: OUTPUT«'m'<>'n'␤»
diakopter rn: say <'m'<\>'n'> 23:06
p6eval niecza v22-12-g960f328: OUTPUT«===SORRY!===␤␤Preceding context expects a term, but found infix < instead at /tmp/TrYGWuzYpM line 1:␤------> say ⏏<'m'<\>'n'>␤␤Parse failed␤␤»
..rakudo 8230ae: OUTPUT«'m'<>'n'␤»
diakopter well, there's 3 interesting-ish discrepancies
diakopter r: say my $=_ = 4 23:14
p6eval rakudo 8230ae: OUTPUT«4␤»
diakopter = is a twigil there?
sorear r: say my $ =_ = 4 23:20
p6eval rakudo 8230ae: OUTPUT«===SORRY!===␤Preceding context expects a term, but found infix = instead␤at /tmp/9o6pVaCZ3f:1␤»
sorear yes
diakopter n: say my$=my$ 23:21
p6eval niecza v22-12-g960f328: OUTPUT«===SORRY!===␤␤Variables with the = twigil cannot be declared using my; they are created by parsing POD blocks. at /tmp/OzYibzMiix line 1:␤------> say my$=my⏏$␤␤Confused at /tmp/OzYibzMiix line 1:␤------> say my$=my…
diakopter sorear: what do you think of the 3 discrepancies mentioned above 23:22
(17 min ago) 23:23
sorear diakopter: they all match my mental models, though the 3rd has a LTA error message 23:25
should be "unclosed string" or something
diakopter niecza' output matches you mean? 23:26
*'s
sorear yes 23:27
diakopter phenny: ask masak masakbot see preceding; maybe rakudobug(s) 23:28
phenny diakopter: I'll pass that on when masak is around.
sorear std: <\>
p6eval std 77327a4: OUTPUT«===SORRY!===␤Unable to parse quote words at /tmp/LeugnmNe3W line 1:␤------> <BOL>⏏<\>␤Couldn't find final '>'; gave up at /tmp/LeugnmNe3W line 1 (EOF):␤------> <\>⏏<EOL>␤Parse failed␤FAILED 00:00 41m␤»…
sorear std: <<\>>
p6eval std 77327a4: OUTPUT«===SORRY!===␤Unable to parse shell-quote words at /tmp/fa8kZALwzY line 1:␤------> <BOL>⏏<<\>>␤Couldn't find final '>>'; gave up at /tmp/fa8kZALwzY line 1 (EOF):␤------> <<\>>⏏<EOL>␤Parse failed␤FAILED 00:00 41m␤…
sorear std: <'m'<\>'n'> 23:29
p6eval std 77327a4: OUTPUT«===SORRY!===␤Unable to parse quote words at /tmp/NoV0rsOJWc line 1:␤------> <BOL>⏏<'m'<\>'n'>␤Couldn't find final '>'; gave up at /tmp/NoV0rsOJWc line 1 (EOF):␤------> <'m'<\>'n'>⏏<EOL>␤Parse failed␤FAILED 00:00…
sorear std: say <'m'<\>'n'>
p6eval std 77327a4: OUTPUT«===SORRY!===␤Unable to parse quote words at /tmp/3JAPDRvAzZ line 1:␤------> say ⏏<'m'<\>'n'>␤Couldn't find final '>'; gave up at /tmp/3JAPDRvAzZ line 1 (EOF):␤------> say <'m'<\>'n'>⏏<EOL>␤Parse failed␤FAILED 00…
sorear clearly a nieczabug then
diakopter oh 23:30
r: my $a -=[]=5; say $a 23:37
p6eval rakudo 8230ae: OUTPUT«-5␤»
diakopter sorear: discuss.
:P 23:38
sorear r: []=5 23:39
p6eval rakudo 8230ae: ( no output )
sorear n: []=5
p6eval niecza v22-12-g960f328: OUTPUT«Unhandled exception: Writing to readonly scalar␤ at /tmp/ew248Z8fUW line 1 (mainline @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4211 (ANON @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4212 (module-CORE @ 579) ␤ at /home/p6eval/niecza/li…
sorear I call rakudobug
diakopter phenny: ask masak see preceding; radkuobgu
phenny diakopter: I'll pass that on when masak is around.
still rn: my int $i;say $i 23:51
p6eval rakudo 8230ae: OUTPUT«0␤»
..niecza v22-12-g960f328: OUTPUT«===SORRY!===␤␤Malformed my at /tmp/TaboUhUggX line 1:␤------> my⏏ int $i;say $i␤␤Parse failed␤␤»
still r: my int $i = 5;say $i
p6eval rakudo 8230ae: OUTPUT«5␤» 23:52
still r: my str $i = '5';say $i
p6eval rakudo 8230ae: OUTPUT«5␤»
still r: my str $i;say $i 23:53
p6eval rakudo 8230ae: OUTPUT«␤»
still good!
diakopter rn: say 5 //$_<>/ 4 23:53
p6eval rakudo 8230ae, niecza v22-12-g960f328: OUTPUT«5␤»
diakopter sorear: I'm so Confusd
^^
oh wait.
nm