»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg camelia perl6: ... | irclog: irc.perl6.org | UTF-8 is our friend!
Set by sorear on 25 June 2013.
[Coke] m: say uniname("\xa0"); 00:01
camelia rakudo-moar b25b86: OUTPUT«NO-BREAK SPACE␤»
dalek ast: e1043b1 | coke++ | S02-literals/listquote-whitespace.t:
Add RT for this issue
00:06
[Coke] m: sub foo($a, $b); my $siglist = :($a, $b); say foo.signature.perl; say $siglist.perl; 00:21
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/BUQ8FpR0nM␤Missing block␤at /tmp/BUQ8FpR0nM:1␤------> sub foo($a, $b)⏏; my $siglist = :($a, $b); say foo.signa␤ expecting any of:␤ statement list␤ p…»
ggoebel111118 lizmat: will precompiled code support multiple versions of the same *.pm6? If so, are you planning to stuff the version in the path, filename, ...?
[Coke] m: sub foo($a, $b) {}; my $siglist = :($a, $b); say foo.signature.perl; say $siglist.perl; 00:22
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/OonYvfgZS1␤Calling 'foo' requires arguments (if you meant to operate on $_, please use .foo or use an explicit invocant or argument)␤ Expected: :(Any $a, Any $b)␤at /tmp/OonYvfgZS1:1␤----…»
synopsebot Link: perlcabal.org/syn/S1.html#line_1
[Coke] m: sub foo($a, $b) {}; my $siglist = :($a, $b); say &foo.signature.perl; say $siglist.perl; 00:23
camelia rakudo-moar b25b86: OUTPUT«:(Any $a, Any $b)␤:($a, $b)␤»
[Coke] m: my $siglist = :(Any $a); say $siglist.perl; 00:24
camelia rakudo-moar b25b86: OUTPUT«:(Any $a)␤»
[Coke] m: say ....perl; 00:28
camelia rakudo-moar b25b86: OUTPUT«Unhandled exception: Stub code executed␤ at <unknown>:1 (/home/p6eval/rakudo-inst-1/languages/perl6/runtime/CORE.setting.moarvm:throw:4294967295)␤ from src/gen/m-CORE.setting:12866 (/home/p6eval/rakudo-inst-1/languages/perl6/runtime/CORE.setting.mo…»
dalek ast: c184227 | coke++ | S02-names-vars/perl.t:
narrow fudge, add a ticket #
00:53
zengargoyle m: sub foo { -> { say "woot" } }; my $f = foo(); $f.(); 00:59
camelia rakudo-moar b25b86: OUTPUT«woot␤»
zengargoyle m: sub foo { { say "woot" } }; my $f = foo(); $f.(); 01:00
camelia rakudo-moar b25b86: OUTPUT«woot␤Cannot find method 'postcircumfix:<( )>'␤ in block at /tmp/QE2_omSnJm:1␤␤»
[Coke] m: say foo().WHAT; my $a; sub foo() { $a++ } 01:01
camelia rakudo-moar b25b86: OUTPUT«(Int)␤»
zengargoyle another difference between bare { ... } and -> { ... }, bare is subject to immediate execution (or something like that)
[Coke] m: say foo(); my $a; sub foo() { $a++ }
camelia rakudo-moar b25b86: OUTPUT«0␤»
[Coke] m: use Test; nok foo().defined; my $a; sub foo() { $a++ }
camelia rakudo-moar b25b86: OUTPUT«not ok 1 - ␤»
[Coke] m: use Test; is foo().defined; my $a; sub foo() { $a++ }
camelia rakudo-moar b25b86: OUTPUT«Cannot call 'is'; none of these signatures match:␤:($got, $expected, Any $desc = { ... })␤ in sub is at lib/Test.pm:89␤ in block at /tmp/piPuyFJhMS:1␤␤»
zengargoyle m: sub foo { return { say "woot" } }; my $f = foo(); $f.(); 01:02
camelia rakudo-moar b25b86: OUTPUT«woot␤»
[Coke] the nok.*defined tests in S02-names-vars/variables-and-packages.t marked as nom regressions are dodgy. 01:07
dalek rl6-bench: 20a741a | (Geoffrey Broadwell)++ | analyze:
Skip noise timings when analyzing

Timing data that is barely above the ignore values (startup and compile times) is essentially noise and leads to junk values on the left side of plots, and more annoyingly, screws up peak rates used in many places. Just skip these for the greater good.
This has the annoying side effect of making enough of the left side of plots for very fast compilers disappear that there may end up being no vertical alignment at all of the plots of fast and slow compilers, but the trends generally remain clear.
01:46
grondilu sub foo { $_ }; say foo(4); 02:28
r: sub foo { $_ }; say foo(4);
camelia rakudo-{parrot,jvm,moar} b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤Calling 'foo' will never work with argument types (int)␤ Expected: :()␤at /tmp/tmpfile:1␤------> sub foo { $_ }; say ⏏foo(4);␤»
grondilu thought that was ok :/ 02:29
eval: sub foo { $_ }; print foo(4);
perl5: sub foo { $_ }; print foo(4);
grondilu was trying rosettacode.org/wiki/Evolutionary_a...thm#Perl_6 and noticed it failed with a weird error message 02:33
Internal error: zeroed target thread ID in work pass
shell returned 17
This is perl6 version 2014.06-118-gb25b868 built on MoarVM version 2014.06-63-g0fb638b
the error appears undeterministic, though, as the same program is currently running and has not failed again yet 02:35
dalek osystem: da0c574 | (Andrew Egeler)++ | META.list:
Add Net::AMQP
04:18
masak morning, #perl6 05:03
dalek rl6-bench: 962bb49 | (Geoffrey Broadwell)++ | perl6/parse-json:
Revert perl6/parse-json Niecza cross-compat hack that no longer works on Rakudo
06:07
sergot morning o/ 06:12
moritz we have Net::AMQP for perl6? \o/ 07:35
oh, and good morning all 07:39
I want a central place to document our infrastructure 07:40
on which host each service runs, as what user, what steps to do to start them 07:41
does that belong into the 'ecosystem' repo? or a separate 'infrastructure' repo?
timotimo japhb: glad to see you work on perl6-bench again nowadays :) 09:18
to be honest, benchmarking is also much more fun recently than it used to be :)
seeing nqp so close to perl5 and in microbenchmarks even surpassing it is a nice touch :)
betterworld r: ["x".trans(x=>"1"), "x".trans("x"=>"1")] 10:38
camelia ( no output ) 10:39
betterworld why does trans need double quotes to work?
FROGGS m: say ["x".trans(x=>"1"), "x".trans("x"=>"1")]
camelia rakudo-moar b25b86: OUTPUT«x 1␤»
betterworld thank you :)
vendethiel it's a named parameter in the first case ? 10:40
jnthn In the second case you're passing a named parameter x.
FROGGS m: say ["x".trans(x=>"1"), "y".trans(y=>"1")] 10:41
camelia rakudo-moar b25b86: OUTPUT«x y␤»
jnthn oops, in the *first* csae
Rather than a Pair.
vendethiel m: "x".trans((x => "1")) # this is really, really, really confusing
camelia ( no output )
vendethiel m: say "x".trans((x => "1")) # eh 10:42
camelia rakudo-moar b25b86: OUTPUT«1␤»
betterworld hm, ok. I was confused since (x=>"1").perl and ("x"=>"1").perl evaluates to the same thing
jnthn Extra parens have always been the way to disambiguate that...
vendethiel that doesn't make it less confusing
jnthn betterworld: Yes, but that is outside of an argument lsit.
vendethiel: Some things you just have to learn. 10:43
betterworld thanks
jnthn Note that the tr/// syntax should now work also; I know it was done/imrproved recently. 10:43
vendethiel well, obviously, but learning something by heart doesn't make it "perfect" :o)
jnthn May work out neater.
vendethiel it has its reasons, of course
just like flattening, this is something we need to explain the rules of early on so that people don't get confused by it 10:45
psch hi #perl6 \o 10:46
betterworld yes, I think I have read about those rules, but might have forgotten the details 10:48
ppabian hi. Who wants to adopt MongoDB driver and BSON repos? I'm not using this technology anymore and MongoDB module lost track with protocol changes and Rakudo compatibility back in 2012. If they won't be adopted I'll take them off from ecosystem list by the end of the week. 10:58
hoelzro morning #perl6 11:42
colomon_ \o
hoelzro so for my work on S26 stuff, I'm trying to add a stupid-simple class to hold WHY stuff 11:47
I added WHY.pm to src/core, with the contents 'my class WHY { ... }' (with the intent of filling out the rest later)
I also added src/core/WHY.pm to a/tools/build/Makefile-Moar.in
and now, when I try to build Rakudo, it seems to lock up! Is there anything else I should be doing?
vendethiel
.oO( don't ask WHY it doesn't work ... )
11:59
jnthn m: my class WHY { ... } 12:10
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/WpyY_v9XIJ␤The following packages were stubbed but not defined:␤ WHY␤at /tmp/WpyY_v9XIJ:1␤------> my class WHY { ... }⏏<EOL>␤ expecting any of:␤ argumen…»
jnthn It should be showing you that error...
hoelzro jnthn: hmm...it didn't 12:11
I also tried with the class filled out with two basic attrs
hoelzro ok, now it worked... 12:13
when I did the filled out class definition and a my class WHY { ... } in src/core/traits.pm
hoelzro shrugs
vendethiel if I have a foo.pm with `class Foo::A;` and in another file, I `use Foo::A;`, I should be able to `A.new` later down in that file, right ? 12:16
hoelzro vendethiel: I think you would have to 'use foo' 12:17
vendethiel I'm also doing that (I have use Foo; use Foo::A;)
hoelzro alright 12:20
wait, is it foo.pm or Foo.pm?
vendethiel Foo.pm6 12:21
jnthn vendethiel: Not unless you marked the class "is export"
vendethiel: Otherwise needs fully qualifying.
vendethiel okay; so I do have to mark the class is export
uh, didnt quite work. 12:26
(is `class A is export;` valid ?)
vendethiel uh; oh. 12:29
Ven m: my $a; for ^5 { LAST { $a = $_; }; last if $_ == 3; }; say $a 12:30
camelia rakudo-moar b25b86: OUTPUT«3␤»
Ven m: my Str $a; for <foo bar baz> { LAST { $a = $_; }; last if $_ eq 'bar'; }; say $a 12:32
camelia rakudo-moar b25b86: OUTPUT«bar␤»
timotimo can't you also import Foo::A in that case? 12:34
Ven for some reason, my LAST isn't being run. 12:34
(is that something that was broken not too long ago and got fixed ?)
Ven pulls 12:40
dalek kudo-star-daily: 0f6ff7b | coke++ | log/ (13 files):
today (automated commit)
12:40
Ven OH ! 12:56
m: my Str $a; my @a = do for "foo bar baz".split(" ") { LAST { $a = $_; }; last if $_ eq 'bar'; $_ }; say @a.perl, $a
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")(Str)␤»
hoelzro commute & 12:57
Ven this doesn't work, but this does :
m: my Str $a; my @a = do for <foo bar baz> { LAST { $a = $_; }; last if $_ eq 'bar'; $_ }; say @a.perl, $a
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")bar␤»
Ven And I don't understand why at all.
timotimo oh wow, the negativity of r/programming 13:10
the difference between my echo chamber and their echo chamber is pretty drastic 13:11
Ven timotimo: next you'll be noticing hackernews is full of bigots :P
vendethiel does anyone have a clue on what's happening above ? 13:13
timotimo oh, i haven't looked at Hater News in a long time now
m: my Str $a; my @a = do for <foo bar baz> -> $_ is copy { LAST { $a = $_; }; last if $_ eq 'bar'; $_ }; say @a.perl; say $a; 13:14
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")␤bar␤» 13:15
timotimo ^- could this be it?
Ven it works with <> but not with .split
well, might be why. 13:16
m: my Str $a; my @a = do for "foo bar baz".split(" ") <-> $_ { LAST { $a = $_; }; last if $_ eq 'bar'; $_ }; say @a.perl, $a
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")(Str)␤»
Ven m: my Str $a; my @a = do for "foo bar baz".split(" ") { LAST { $a = ~$_; }; last if $_ eq 'bar'; $_ }; say @a.perl, $a
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")(Str)␤»
timotimo in one case you don't get containers or something? 13:20
m: for "foo bar baz".words { say nqp::iscont($_) } 13:21
camelia rakudo-moar b25b86: OUTPUT«0␤0␤0␤»
timotimo m: for "foo bar baz".words -> $_ { say nqp::iscont($_) }
camelia rakudo-moar b25b86: OUTPUT«1␤1␤1␤»
timotimo m: for "foo bar baz".words <-> $_ { say nqp::iscont($_) }
camelia rakudo-moar b25b86: OUTPUT«0␤0␤0␤»
timotimo m: for "foo bar baz".words -> $_ is rw { say nqp::iscont($_) }
camelia rakudo-moar b25b86: OUTPUT«0␤0␤0␤»
timotimo m: for <foo bar baz> { say nqp::iscont($_) }
camelia rakudo-moar b25b86: OUTPUT«0␤0␤0␤»
timotimo m: for [<foo bar baz>] { say nqp::iscont($_) }
camelia rakudo-moar b25b86: OUTPUT«1␤»
timotimo er, oops :)
m: for @[<foo bar baz>] { say nqp::iscont($_) } 13:22
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/uQG0TY9a6E␤Unsupported use of @[ variable␤at /tmp/uQG0TY9a6E:1␤------> for ⏏@[<foo bar baz>] { say nqp::iscont($_) }␤ expecting any of:␤ statement list␤ …»
timotimo m: for @([<foo bar baz>]) { say nqp::iscont($_) }
camelia rakudo-moar b25b86: OUTPUT«1␤1␤1␤»
timotimo .o( how many differend kinds of parens can we put in there? :D )
Ven WATs 13:23
that works on 2014.03-p, btw (on my windows)
psch m: ("foo bar baz".split: ' ').perl.say; <foo bar baz>.perl.say 13:24
camelia rakudo-moar b25b86: OUTPUT«("foo", "bar", "baz").list␤("foo", "bar", "baz")␤»
psch m: my Str $a; my @a = do for <foo bar baz>.list -> $_ is copy { LAST { $a = $_; }; last if $_ eq 'bar'; $_ }; say @a.perl; say $a;
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")␤bar␤»
psch m: my Str $a; my @a = do for <foo bar baz>.list { LAST { $a = $_; }; last if $_ eq 'bar'; $_ }; say @a.perl; say $a; 13:25
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")␤bar␤»
Ven it works with <>. It doesn't with .split
psch i was wondering if the .list breaks it, apparently not
jnthn It'll be some silly bug somewhere... 13:26
Probably in MapIter
Where it decides whether to run LAST
Ven found a bug, for once
psch m: my Str $a; my @a = do for "foo bar baz" { LAST { $a = 1; }; last if $_ eq 'bar'; $_ }; say @a.perl; say $a; # ...? 13:27
camelia rakudo-moar b25b86: OUTPUT«Type check failed in assignment to '$a'; expected 'Str' but got 'Int'␤ in block at /tmp/1RRTWKlDj1:1␤␤»
psch ah split
m: my Str $a; my @a = do for "foo bar baz".split(" ") { LAST { $a = 1; }; last if $_ eq 'bar'; $_ }; say @a.perl; say $a; # ...?
camelia rakudo-moar b25b86: OUTPUT«Array.new("foo")␤(Str)␤»
Ven no no, it doesn't LAST. 13:28
I tried to put a `say something` in the LAST to try it, and it wouldn't print it
timotimo that'd be a bug then 13:33
[Coke] anyone know where to find the rule that covers the list processing in "my @a = <a b c>" ? 13:40
sergot "I wrote a tool called SQLrillex. When you run it, it drops all databases." 13:41
moritz today, I managed to a SQL UPDATE on a prod database where I forgot the WHERE clause 13:42
*to do
[Coke] hopefully no commit? 13:43
moritz [Coke]: it didn't run inside a transaction
[Coke]: but, it was "only" case folding, and in a table that doesn't change so often
moritz [Coke]: so I let the admins restore that table from backup, with a different name, and updated the old data into the prod table 13:44
[Coke] \o/ish
moritz [Coke]: no harm done, it seems, just 30 minutes of stress
yes, could have been much worse 13:45
still, I shouldn't log in to feather today :-)
timotimo more transactions for everybody! 13:47
Ven did the same once, but it was on a table managing how much money users had. *shrugs*
[Coke] accidentally dropped all the master NIS+ tables once. That was a fun recovery. (In the time before LDAP!) 13:50
rindolf moritz: wow, scary story about that SQL query. 13:54
zengargoyle lol sergot
timotimo rindolf: "scary story about an SQL query" invokes imagery of people sitting around a campfire shining the flashlight onto their faces from below :D 13:55
rindolf timotimo: heh.
timotimo: it was a dark and stormy night, and I had to write... COBOL! 13:56
Ven "let me tell you a story. The first time I try to read the source of phpBB. The time where I, for the first time, witnessed the horror of 7-level deep subqueries !" 13:57
rindolf runs away screaming from Ven. 13:58
sergot Sounds like Dance of death
rindolf wants his mommy.
sergot Iron Maiden I meant
rindolf TimToady: here?
timotimo rindolf: perhaps still occupied with his occulus 13:59
zengargoyle Skrillex drop == Transformer taking a dump
PerlJam rindolf: I imagine that a) it's a little early for TimToady and b) he's still recovering from eye difficulties
atroxaper Hello, #perl6 ! 14:02
yoleaux 12 Jul 2014 23:54Z <Mouq> atroxaper: github.com/atroxaper/Pod-SAX/pull/1
rindolf PerlJam: ah, OK. 14:04
lwall is approaching 60.
Ven (is the bug I "reported" earlier already on the tracker, or should it be rakudobugged ?) 14:06
sergot atroxaper: o/ 14:08
atroxaper sergot: o/
Ven "could not find module Sprockets::File to import module from" well yeah, it's a class 14:09
Ven class `Foo::Bar is export;` doesn't export `Bar` by itself in files `use`-ing `Foo::Bar`, it seems 14:11
sexyme27 err hello 14:13
Ven looks like I really have no idea how the module system works or how to use it 14:32
Ven "could not file symbol file" even using the fully-qualified name 14:34
or should the `use`s be outside of the `class` ?
Ven ooh ... It's because I'm `use`-ing from inside a class; 14:47
timotimo satnav is hard sometimes 15:18
ended up nowhere near a train station first, then ended up at the wrong train station and then almost drove to *another* wrong train station
fortunately i had the presence of mind to ask google maps rather than apple maps for the "main station" and it worked immediately
at least now i'll get some fresh air and crazy loud announcements before i get going 15:19
and i'll be posting the weekly from this train station or the train likely
atroxaper sergot++. There is about your post and your work! 16:11
sergot atroxaper++: thanks :) 16:14
glad you like it
:)
timotimo p6weekly.wordpress.com/?p=195&s...4023fea471 - please feel free to point out anything that's missing or is inaccurate 16:16
timotimo oh, i should really point out that raiph collected a whole bunch of things for me 16:16
carlin timotimo: "Will Coleda wrked" 16:17
japhb_ wrking: It's like working, only more compressed.
[Coke] Note: no actual wrking may have occurred. 16:21
timotimo :) 16:23
[Coke] (seirously, my name was on something I don't remember doing. :)
timotimo oh? 16:24
well, okay. good thing i asked :p
which part did you not do?
you threw out pugs from the daily runs, i remember that much
[Coke] oh, is this new stuff? I meant last week. :) 16:26
"did maintenance work on the host that runs our evalbot and such" - I killed a process I accidentally left running. not worth doc'ing.
timotimo %) 16:27
ok
p6weekly.wordpress.com/?p=195&s...40599002df - newest daft draft 16:30
timotimo no complaints? 16:58
or did nobody look? :P 16:59
retupmoca timotimo: I added a new module Net::AMQP 17:03
timotimo oh, what's AMQP? 17:03
something from amazon?
retupmoca used to interface with rabbitmq: www.rabbitmq.com/
timotimo "a message queue protocol"? :) 17:04
retupmoca en.wikipedia.org/wiki/Advanced_Mess...g_Protocol
timotimo okay, with that i could publish, i think 17:05
retupmoca Net::AMQP only does AMQP version 0.9.1, because that's what rabbitmq supports
if it's too specialized to publish, that's fine too :) 17:06
timotimo ah, my formulation may be wrong, in that case
retupmoca added a module for interfacing with RabbitMQ to the ecosystem, called Net::AMQP.
that's what i wrote
retupmoca oh, that works nicely
timotimo if you already know about rabbitmq and amqp, it'll be obvious to you 17:07
thanks for the input and thanks for your work, too! retupmoca++
nebuchadnezzar hello, I planned to do something like paste.debian.net/109707/ to start using pkg-config, but I wonder if it's a good idea to keep the compatible code, any hints? 17:08
timotimo pkg-config sounds like a good idea to use 17:17
timotimo yay i has internets again 17:59
Rotwang cannot be denied 18:03
dalek rl6-roast-data: 70227a1 | coke++ | / (5 files):
today (automated commit)
18:10
nebuchadnezzar timotimo: should I $(error) if it's not available or use some hardcoded compatibility PATH? 18:22
[Coke] r: ssay printf('%e', Inf);
r: say printf('%e', Inf); 18:23
camelia rakudo-{parrot,jvm,moar} b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/tmpfile␤Undeclared routine:␤ ssay used at line 1. Did you mean 'say'?␤␤»
rakudo-jvm b25b86: OUTPUT«java.lang.NumberFormatException␤␤»
..rakudo-moar b25b86: OUTPUT«-9223372036854775808.78e+18e-9.22337203685478e+18True␤»
..rakudo-parrot b25b86: OUTPUT«9223372036854775808.000NaNe+InfTrue␤»
timotimo nebuchadnezzar: i have no idea about such things ;( 18:24
teodozjan hi, is perlcabal.org/~coke/roast/ alive? google leads to it :D when I look for perl6 roast chart 18:26
timotimo seems thoroughly outdated
[Coke]: will you turn that into a redirect or revive it or something?
[Coke] That's not a public URL, no. 18:28
(was something I put up on feather briefly, not intended to live)
I don't rightly remember what it was. 18:29
do you have an archived copy? ;)
teodozjan [Coke] in internet everthing seems public, at least when google finds it :)
result varies on browser, in chrome its chart with no data 18:30
dalek ast: 41866eb | coke++ | S32-str/sprintf.t:
reference RT; narrow fudge scope
teodozjan in ffox its nothin 18:31
Ven what's the most common way to share test helpers ? 19:00
FROGGS put a module into t/lib and use it 19:01
Ven I guess :o)
FROGGS zavolaj (NativeCall) does it for example 19:03
dwarring r: gist.github.com/dwarring/13cdf1f047b3e085f4c2 19:10
camelia rakudo-{parrot,jvm,moar} b25b86: OUTPUT«gist not found»
Ven is getting "cannot find symbols" error all over the place 19:11
what zavolaj doesn't do, however, is to `use` modules 19:12
dwarring trying to run a gist 19:13
FROGGS it uses its CompileTestLib or what it is called
Ven yeah. but CompileTestLib doesn't use any module
FROGGS ahh, okay, true
Ven duh. I was only getting the error because I renamed the file(I tried to use dashes in filename) but then forgot to :tabnew to the new file ._. 19:15
I still don't understand why everything fails when I `use` inside of a module/class 19:16
Ven is it "scoped" ? 19:16
colomon yes, use is scoped 19:17
m: { use Test; is True; }; is True; 19:18
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/MVJumozZWY␤Undeclared routine:␤ is used at line 1␤␤»
colomon m: { use Test; is True; }; 19:19
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/LYfhopYAXH␤Calling 'is' will never work with argument types (Bool)␤ Expected any of: :($got, $expected, Any $desc = { ... })␤at /tmp/LYfhopYAXH:1␤------> { use Test; ⏏[31…»
Ven not what I mean.
colomon m: { use Test; ok True; };
camelia rakudo-moar b25b86: OUTPUT«ok 1 - ␤»
colomon m: { use Test; ok True; }; ok True;
camelia rakudo-moar b25b86: OUTPUT«===SORRY!=== Error while compiling /tmp/J2ueq63VUC␤Undeclared routine:␤ ok used at line 1. Did you mean 'on'?␤␤»
Ven `use A::B; module A::C; A::B.new` has a different behavior than `module A::C; use A::B; A::B.new;`
The first one works, the second one fails
FROGGS A gets stubbed in both cases... dunno why there is a difference 19:21
colomon Ven: I think they do have different meaning. what is the different behavior? 19:22
Ven colomon: can't find symbol B in the second case.
carlin dwarring: camelia running gists has been broken for a while :( 19:23
dwarring carlin: thanks!!
i found what I wanted anyway 19:24
colomon FROGGS, Ven: huh. if you say module A::C; use A::B, do you now have A::C::A::B ? 19:25
Ven I'd expect to have A::B.
dwarring this is already covered by a fudged test in S06-traits/precedence.t
it's a NYI 19:26
FROGGS colomon: dont, think so... `module A::C; module A::B { }` should give you both, A::C::A::B, and A::B as a shortcut
colomon: but not for a use statement
Ven NIY is an answer too :) 19:30
NYI, even 19:31
jnthn
.oO( The knights who say NYI )
19:32
Ven
.oO( I DEMAND A ... FUDGE ! )
19:33
[Coke] dwarring: who were you talking ato about the fudged test? (doesn't appear to be the use/module one) 19:36
dwarring [Coke]: I was thinking github.com/perl6/roast/blob/master...ence.t#L19 19:40
that's a prefix however, where my case is an infix 19:41
hmmm
[Coke]: I am comparing against gist.github.com/dwarring/13cdf1f04...tfile1-txt 19:44
mr-foobar TimToady: en.wikipedia.org/wiki/Perlin_noise 19:45
jnthn hah, I read that as "Perl line noise"... 19:48
mr-foobar and it got an academy award :P
timotimo %) 19:49
jnthn Challenge: implement the algorithm using as few chars matched by \w as possible :D
timotimo can you do it in the shape of a kitten? 19:51
mr-foobar ROFL
mr-foobar that's trivial, you want me to inflate a balloon as well, don't you ? 19:53
dwarring [Coke]: It's not just ignoring the precedence, its also ignoring scoping 19:54
timotimo :3
dwarring will add a couple more tests 19:55
Ven using prove with perl6 is just supposed to be `prove perl6` ? If I run "prove help", I get an error about a missing script wrapper. 19:57
hoelzro Ven: prove --exec perl6 is what I do
Ven thankies :)
Ven guessed -e would work 19:58
hoelzro I believe it will 20:02
cxreg is it too late to suggest that perl 6 reject operators that involve unbalanced braces? o.o 20:04
jnthn m: sub infix:<(()>($a, $b) { $a ~ $b }; say 'y' (() 'es' 20:05
camelia rakudo-moar b25b86: OUTPUT«yes␤» 20:05
jnthn (It's actually TimToady's call really... :)) 20:08
lizmat Is there something that can be done about this: 20:09
$ ./perl6-m -e1
$ cd t
$ ../perl6-m -e1
Unhandled exception: failed to load library 'dynext/libperl6_ops_moar.dylib'
at <unknown>:1 (/Users/liz/Github/rakudo.moar/perl6.moarvm::303)
timotimo lizmat: make install :)
and use the one from install/bin/ 20:10
lizmat ok, and how does that work with "make spectest" ?
dalek ast: 725f534 | coke++ | S02-names-vars/variables-and-packages.t:
remove stale comment
ast: 81ce684 | coke++ | / (10 files):
standardize on RT #, not URL
jnthn It doesn't. I'd try to avoid the problem by noting chdir'ing in the middle of the tests, as a first resort...
lizmat because doing a "cd foo" in a test file, make shelling out to $EXECUTABLE_NAME not work
lizmat feels like I'm fixing the wrong thing there 20:11
surely, someone will want to to a chdir sometime and a shell() afterwards ?
jnthn Yes, but they'll surely have make install'd too 20:12
lizmat well, fwiw, I *did* do make install
jnthn OK, then you need to drop the .. too...
lizmat but I guess we want the spectest not work on an installed
perl6
jnthn The usual sequence is make, make test, make install... :) 20:13
well, s/test/spectest/ in this case
lizmat ok, no chdir and shell($EXECUTABLE_NAME) in a test script
jnthn I think that's the easiest way, otherwise we're in for quite a yak shave...
lizmat gotcha
jnthn Invoking the installed one should work from any directory 20:14
dalek ast: 1a09b7e | (Elizabeth Mattijsen)++ | S22-package-format/local.t:
Fix test by not changing dir

Apparently, during spectesting, it is not wise to both do a chdir() *and* a shell($*EXECUTABLE_NAME)
20:18
dwarring [Coke]: typo in my gist - rakudo precedence is fine 20:21
dwarring scoping that is 20:22
[Coke] whew. 20:25
Ven I'm going to parse a file that'll contain directives (like `= foo`), and keep everything else intact, and I wonder if I should match the directive regexp and replace in the string, or if I should make a grammar and keep bits I didn't parse 20:30
I guess that match and replace will be far more efficient, though ..
jlaire the link to S15.html is a 404 here perlcabal.org/syn/ 21:09
link to raw pod works though, I can read that :)
dalek ast: 934d956 | jnthn++ | S16-filehandles/io.t:
Add a missing .close that Windows needs.
21:26
dalek p: d838af4 | jnthn++ | tools/build/MOAR_REVISION:
Bump to latest MoarVM; string/spesh improvements.
23:10
kudo/nom: 7360274 | jnthn++ | tools/build/NQP_REVISION:
Bump NQP_REVISION for Moar string improvements.
23:12