»ö« 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. |
|||
adu | araujo: compiling? | 00:03 | |
00:07
adu left
|
|||
sergot | good night! o/ | 00:13 | |
00:13
sergot left
|
|||
araujo | ideone.com/HSRm4 | 00:18 | |
I get that trying to build latest rakudo | 00:19 | ||
00:41
adu joined
00:45
thelazydeveloper left
01:55
Guest48609 left
|
|||
adu | grr | 01:56 | |
diakopter | ? | 01:57 | |
adu | pastebin.com/raw.php?i=uMdcumbd | 01:58 | |
same grammar | |||
I can't get <semi> right | |||
diakopter | I don't know the intended syntax/semantics | 01:59 | |
adu | for reference: golang.org/ref/spec#Semicolons | ||
diakopter | well, maybe it's a whitespace problem | 02:02 | |
the <?after don't scan through whitespace if it's a token, i don't think | |||
adu | oic | ||
diakopter | of course I very well could be wrong | 02:03 | |
adu | I don't think so | ||
there shouldn't be any whitespace between the last token on line and \n | |||
diakopter | shouldn't, but some people do | ||
or put a comment | 02:04 | ||
adu | hmm | ||
diakopter | whta's the input you're trying to parse | 02:06 | |
02:07
xdbr left
|
|||
adu | 'package main\nimport "fmt"\n' | 02:07 | |
'package main;import "fmt";' parses just fine | 02:08 | ||
02:14
tokuhiro_ joined
02:18
xinming_ joined
02:21
xinming left
|
|||
adu | you know what | 02:21 | |
I think I have a better solution | 02:22 | ||
02:48
lumi_ left,
lumi_ joined
|
|||
sorear | good * #perl6 | 03:03 | |
adu | good? | ||
03:30
cbk left
03:33
crab2313 joined
03:43
Chillance left
|
|||
araujo | hello sorear o/ | 03:46 | |
sorear | o/ araujo | ||
adu | o I get it now, * = morning | evening | night | day, depending on your location | 03:55 | |
benabik | * is the whatever operator :-) | ||
adu | only in bash | 03:56 | |
benabik | Also in perl 6. | ||
adu | I thought it was 0..inf | ||
benabik | nom: (* * *)(2,2) | ||
p6eval | rakudo 9ad893: ( no output ) | ||
benabik | nom: say (* * *)(2,2) | ||
p6eval | rakudo 9ad893: OUTPUT«4» | ||
adu | how true that is | 03:57 | |
r: say (* + *)(2, 2) | |||
p6eval | rakudo 9ad893: OUTPUT«4» | ||
[Coke] yawns | 04:02 | ||
adu gives [Coke] some Coke | 04:19 | ||
04:37
crab2313 left
04:39
crab2313 joined
05:04
raiph left
05:18
birdwindupbird joined
05:57
birdwindupbird left
06:21
tokuhiro_ left
06:36
GlitchMr joined,
Entonian joined
06:37
kaare_ joined
06:41
Entonian left
06:54
cognominal joined
06:57
cognominal_ left
07:00
adu left
07:22
xiaq joined
07:25
xiaq left
07:50
dbr joined
07:55
cognominal left,
cognominal joined
08:17
sergot joined
|
|||
sergot | Hello o/ | 08:17 | |
sorear | o/ | ||
n: END die "moo" | 08:22 | ||
p6eval | niecza v18-6-ge52d6c3: OUTPUT«Unhandled exception: moo at <unknown> line 0 (ExitRunloop @ 0)  at /tmp/3p8mRqhpNq line 1 (ANON @ 2)  at <unknown> line 0 (ExitRunloop @ 0)  at /home/p6eval/niecza/boot/lib/CORE.setting line 1639 (List.gist @ 5)  at <unknown> line 0 (ExitRunloop @… | ||
08:30
fgomez left
08:38
birdwindupbird joined
|
|||
TimToady | just added rosettacode.org/wiki/Set_of_real_numbers#Perl_6 | 08:51 | |
if anyone wants to do the optional final part while I sleep, feel free | |||
oh, works with rakudo, doubt it works under niecza | 08:52 | ||
dalek | ecza/non-bootstrap: fcffb6e | sorear++ | / (4 files): Steal a bit more structure from NieczaFrontendSTD |
08:53 | |
sorear | TimToady: did you see my question about <[^x]> ? | 08:54 | |
TimToady | already >>todo, thanks | ||
zzz & | |||
sorear | I think that task should be renamed Borel_algebra | 08:55 | |
sleep& | 08:58 | ||
09:04
birdwindupbird left
09:20
grondilu joined
|
|||
grondilu | full log (stdin+stderr) of my compilation failure: s0.barwen.ch/~grondilu/nqp-parrot-compile-error | 09:20 | |
s/stdin/stdout/ | |||
uname -a: Linux blacky 3.4-1.slh.2-aptosid-686 #1 SMP PREEMPT Tue Jun 5 20:20:12 UTC 2012 i686 GNU/Linux | 09:22 | ||
debian/sid/aptosid pretty much up-to-dated | 09:23 | ||
09:25
[particle]1 joined,
sergot left
09:26
[particle] left
09:28
will joined
09:35
sergot joined
09:40
brrt joined
|
|||
dalek | c: afb84de | moritz++ | lib/List.pod: [List] sort, rotate |
09:44 | |
moritz | grondilu: have you ruled out interference by other parrot installations? | ||
09:48
tokuhiro_ joined
|
|||
dalek | c: 47dbe4a | moritz++ | lib/List.pod: [List] reduce |
09:51 | |
jnthn just did a clean NQP build here and...no luck | 10:04 | ||
(As in, it works...didn't manage to get the failure.) | |||
moritz | jnthn: no luck in building? or in reproducing? | ||
grondilu | moritz: I've removed all my rakudo dir and recloned it. | ||
moritz | grondilu: yes, but do you have any other parrot installation directories on your disc? | 10:05 | |
jnthn | moritz: In reproducing | ||
grondilu | moritz: indeed! | 10:06 | |
jnthn tries it on another box. | |||
grondilu | I had a copy of parrot in /usr/local/bin! | ||
a hard copy, not a symlink | 10:07 | ||
should I check anything else ? | |||
next time I'll make a symlink. Sorry for having bothered you with such a silly mistake | 10:09 | ||
10:09
grondilu left
|
|||
jnthn | ...so, did that fix the problem? | 10:10 | |
10:33
PacoAir joined,
whiteknight joined
10:34
whiteknight is now known as Guest64819,
spider-mario joined,
thelazydeveloper joined
10:59
Nick___ joined
11:08
[particle] joined,
Nick___ left
11:11
[particle]1 left
11:28
brrt left,
brrt1 joined
11:45
brrt1 left
12:03
tokuhiro_ left
12:10
mikemol joined
12:11
am0c joined
12:17
kaare_ left
12:20
Guest64819 left
12:21
JimmyZ_ joined
12:30
crab2313 left
12:31
crab2313 joined
12:48
tokuhiro_ joined
12:54
crab2313 left
13:08
Psyche^ joined
13:09
crab2313 joined
|
|||
moritz | jnthn: ping | 13:10 | |
jnthn | moritz: pong | ||
moritz | jnthn: I'm trying to figure out why require doesn't merge GLOBAL | ||
jnthn: reading the code it seems it should | |||
jnthn | You're calling the module loader and passing GLOBAL? | 13:11 | |
moritz | the code that is emitted for require calls ModuleLoader.load_module($name, GLOBAL) at run time | ||
make PAST::Op.new( | |||
:pasttype('callmethod'), :name('load_module'), | |||
PAST::Var.new( :name('ModuleLoader'), :namespace([]), :scope('package') ), | |||
$name_past, $*W.symbol_lookup(['GLOBAL'], $/) | |||
); | |||
13:12
Patterner left,
Psyche^ is now known as Patterner
|
|||
jnthn | Yeah, that looks like it should work to me too. | 13:12 | |
13:12
[particle]1 joined
|
|||
jnthn | Did you try looking at GLOBAL::.keys after doing the require? | 13:12 | |
Is it untouched? | |||
moritz | the required module does appear in GLOBAL::.keys | 13:14 | |
13:14
[particle] left
|
|||
jnthn | OK, that would seem to suggest the global merge worked out then | 13:15 | |
What access to it that you'd expect to work is failing? | |||
moritz | oh, I'm just stupid | 13:16 | |
jnthn | Oh? | ||
moritz | I wrote ::OUR{...} instead of OUR::{...} | ||
jnthn doubts that :) | |||
Oh! | |||
Doesn't that warn? | |||
moritz | r: say ::OUR{'Int'} | ||
jnthn | r: ::OUR{'foo'} | ||
p6eval | rakudo 9ad893: OUTPUT«Any()» | ||
rakudo 9ad893: ( no output ) | |||
jnthn | r: Int{'foo'} | 13:17 | |
p6eval | rakudo 9ad893: ( no output ) | ||
jnthn | oh...it's whence syntax... | ||
araujo tries go building rakudo again and see if it works | 13:19 | ||
moritz | Q: how do you turn a 17-month old girl who has been screaming for 10 solid minutes into a happy version of the same girl? A: give her blueberries! | 13:21 | |
tadzik | :) | ||
moritz | she so loves that stuff | 13:22 | |
dalek | kudo/require-arglist: 1ebfd94 | moritz++ | src/core/operators.pm: fix stupid thinkos in require import |
13:26 | |
jnthn | Blueberries are even pretty healthy too :) | 13:27 | |
moritz | sadly a bit expensive | 13:28 | |
at least here | |||
r: Any() | 13:29 | ||
p6eval | rakudo 9ad893: OUTPUT«No such method 'Any' for invocant of type 'Parcel' in <anon> at src/gen/BOOTSTRAP.pm:804 in <anon> at src/gen/BOOTSTRAP.pm:801 in any <anon> at src/gen/BOOTSTRAP.pm:796 in block <anon> at /tmp/hkchSzjbey:1» | ||
moritz | that's a weird error | ||
ah | |||
it tries to call .Any on the argument list | 13:30 | ||
which is an empty Parcel | |||
anyway, now require with arglist doesn't produce an error anymore, but puts Any into the variables from the import list :( | 13:31 | ||
diakopter | github for windows is neat, so far | 13:33 | |
13:33
grondilu joined
|
|||
grondilu | I thought removing /usr/local/bin/parrot would solve my compilation problem. But no, it still can't compile :( | 13:34 | |
grondilu is trying again and saves the full log | 13:35 | ||
13:36
birdwindupbird joined
|
|||
moritz | grondilu: you probably don't just have to remove the binary, but also the libraries etc. | 13:36 | |
grondilu | Once everything has been downloaded, how can I run compilation offline? Configure.pl by default always try to connect to update. | 13:37 | |
moritz | grondilu: you can run parrot's Configure.pl yourself | 13:38 | |
perl Configure.pl --optimize --prefix=$RAKUDO_DIR/install | |||
and then in nqp | |||
grondilu | ok | ||
moritz | erm, and in parrot, make install | 13:39 | |
and then in nqp | |||
perl Configure.pl --with-parrot=$RAKUDO_DIR/install/bin/parrot | |||
make install | |||
and then in rakudo simply 'perl Configure.pl' | |||
grondilu | and none of this is going to try to access internet, right? | ||
13:40
birdwind1pbird joined
|
|||
grondilu | because with the --gen-nqp or --gen-parrot, it does. | 13:41 | |
moritz | correct | 13:42 | |
13:44
JimmyZ_ left
|
|||
grondilu | anyway I don't see any other lib I should remove. There is nothing perl6 related in /usr/local/lib or /usr/local/bin and my /usr/local/src/rakudo is brand new. | 13:44 | |
jnthn | Grr...net connection here is up and down :/ | 13:45 | |
grondilu | my last compilation attempt: s0.barwen.ch/~grondilu/nqp-parrot-compile-error | 13:46 | |
grondilu I gotta go now, low battery. | |||
13:46
grondilu left
|
|||
jnthn | My word...the errors get stranger and stranger... | 13:46 | |
moritz | jnthn: when I have a PAST::Op.new(:pasttype<call>), can I do $past.push($thing) to add arguemnts to the call? | 13:47 | |
spacebat_ | is there a binary package of the latest rakudo star somewhere | ||
jnthn | moritz: yes | ||
moritz | spacebat_: not that I'm aware of | ||
spacebat_: but I found a fix to my compialtion problem, and by extension possibly to yours | |||
spacebat_ | damn, I clobbered my working version with the build that failed | ||
ooh | |||
you mentioned removing -pie | |||
but that it raised some other problem | 13:48 | ||
moritz | spacebat_: try perl Configure.pl --gen-parrot=master | ||
spacebat_ | ok I will | ||
moritz | spacebat_: I've pushed the fix to parrot master, so that should get the fixed version | ||
spacebat_ | noice | ||
do you know what package parrot depends on broke it? | |||
I assumed it was libc but maybe gcc? | |||
moritz | icu | 13:49 | |
spacebat_ | oh | ||
moritz | well | ||
spacebat_ | ok what do I know | ||
moritz | icu-config --ldflags now returns -pie -fPIE etc. | ||
but it seems what one should call is icu-config --ldflags-libsonly | |||
nick wellnhoefer found it | 13:50 | ||
spacebat_ | nick++ | ||
seems to have got past the point of failure, moritz++ | 13:52 | ||
13:54
UncleFester6 joined
|
|||
UncleFester6 | FWIW I think I am getting the same error as grondilu building the latest rakudo - gist.github.com/2905747 | 13:58 | |
araujo | ideone.com/HSRm4 | ||
any idea? I keep getting that error | |||
moritz | UncleFester6: do you have any other parrot installations lying around on your system? | 13:59 | |
UncleFester6 | Yes but none on my path and, if they are there, they have been there for ages. | ||
moritz | hm | 14:00 | |
dalek | kudo/require-arglist: 3605d62 | moritz++ | src/core/Exception.pm: X::Import::MissingSymbols needs to inherit from Exception |
14:01 | |
14:16
tokuhiro_ left
|
|||
dalek | kudo/require-arglist: 60a9808 | moritz++ | src/Perl6/Actions.pm: fix codegen for call to &REQUIRE_IMPORT |
14:17 | |
14:19
crab2313 left
14:20
crab2313 joined
14:26
sergot left
|
|||
moritz | ok, I know why that branch doesn't work as it should | 14:30 | |
it tries to bind to CALLER::{$symbol} | |||
and it does so in a for-loop | |||
and thus the CALLER refer to the caller of the block in the for-loop | 14:31 | ||
*refers | |||
14:33
kaare_ joined
14:41
spider-mario left
14:44
sergot joined
|
|||
moritz | jnthn: it seems that OUR:: in the setting does not see the same thing as OUR:: from user-space code | 14:44 | |
jnthn: I have a fixed version of REQUIRE_IMPORT which works when I put it into the file that does the 'require' | 14:45 | ||
jnthn: but when I use the identical subroutine from the setting, it tells me it can't find the symbols to import | |||
in fact OUR::.keys is empty when called from within the setting | 14:51 | ||
r: sub f() { say CALLER::OUR::.keys }; our &foo; f | |||
p6eval | rakudo 9ad893: OUTPUT«» | ||
moritz | r: sub f() { say CALLER::OUR::.keys }; our class A { }; f | ||
p6eval | rakudo 9ad893: OUTPUT«A» | ||
moritz tries that | 14:52 | ||
dalek | kudo/require-arglist: 200af35 | moritz++ | src/core/operators.pm: fix up REQUIRE_IMPORT now it works, except that it currently imports our-symbols and not exported symbols |
14:58 | |
moritz | tadzik: I've updated my branch of ufo to also install lib/*.pod files | 15:09 | |
tadzik: would be nice if you could change panda to do that too | |||
(it installs them in the same place as .pm files, where p6doc can find them) | |||
tadzik | moritz: yeah, I tried that yesterday, but lacked tuits to polish it | 15:12 | |
as in: it passed my tests but didn't work with p6doc :) | |||
15:17
adu joined,
Chillance joined
|
|||
moritz | I'm now checking if the star module-install.pl script copies over .pod files | 15:20 | |
15:21
sergot left
|
|||
moritz | it does not :( | 15:24 | |
dalek | kudo/require-arglist: d96f5ee | moritz++ | src/core/operators.pm: require now searches for exported symbols instead of our-scoped symbols |
15:26 | |
kudo/require-arglist: fd04ae0 | moritz++ | docs/ChangeLog: update ChangeLog |
|||
15:26
tadzik left,
tadzik joined
|
|||
dalek | ar: 36cc46c | moritz++ | skel/tools/build/module-install.pl: make module-install.pl copy .pod files |
15:29 | |
ar: 820a006 | moritz++ | / (2 files): include p6doc |
|||
15:32
am0c left
|
|||
adu | is that part of ufo? | 15:35 | |
15:40
whiteknight joined
|
|||
moritz | star is not part of ufo | 15:40 | |
15:40
whiteknight is now known as Guest32908
|
|||
moritz | adu: or which "that" are you talking of? | 15:40 | |
jnthn: require-arglist does what it should, and passes all spectests. Any objections to merging? | 15:41 | ||
jnthn | moritz: No | ||
adu | moritz: module-install.pl? | 15:42 | |
moritz | adu: that's part of rakudo star, not ufo | ||
dalek | kudo/nom: 715efa4 | moritz++ | src/Perl6/Actions.pm: compile-time evaluate argument lists to "require"; check for redeclarations |
15:44 | |
rakudo/nom: 2e974ac | moritz++ | src/Perl6/Actions.pm: | |||
rakudo/nom: oops, $<EXPR> is an RPA | |||
15:44
dalek left
|
|||
moritz | good bye dalek | 15:44 | |
jnthn | fail | 15:45 | |
moritz++ | |||
Another nice thing for the next release :) | |||
moritz | 's ok, you've seen all those commits in the branch anyway | ||
jnthn | OUR:: in the setting is a bit dubious. | ||
15:45
dalek joined,
ChanServ sets mode: +v dalek
|
|||
moritz | (except the merge commit) | 15:45 | |
jnthn | I know we should not install anything in GLOBAL in the setting | ||
moritz | CALLER::OUR:: worked | ||
jnthn | Yeah, that will be fine. | ||
Anyway, the setting's own version of GLOBAL gets ignored. | 15:46 | ||
We make a fresh one when starting to compile. | |||
Hmm...what on earth is going on with some people not being able to build current NQP :S | 15:47 | ||
moritz has no idea | 15:49 | ||
spacebat_: did your most recent build work? | |||
tadzik: do you have icu installed on your debian testing machine? | |||
tadzik | moritz: I think so, yes | ||
15:50
birdwindupbird left,
birdwind1pbird left
15:57
will left
15:58
hedgeward joined
15:59
birdwindupbird joined
|
|||
birdwindupbird | :resize -10 | 15:59 | |
16:09
icwiener_ joined
16:11
brrt joined
16:12
adu left
16:20
[particle]1 left
16:22
brrt left
|
|||
felher | Can nom set a default value for a hash? | 16:26 | |
hmm.. I guess is default(...) is not what i am searching for. | 16:28 | ||
sorear | What do you mean? | 16:29 | |
felher | I want %hash{3} return "blar" instead of Any if there is no {3} in %hash | ||
*to return | 16:30 | ||
moritz | it's not directly supported, but it's not too hard to write a role which can mix into your hash and which does just that | ||
I did a similar thing recently where somebody wanted non-existing hash keys to throw an exception instead | 16:31 | ||
felher | moritz: ok. Thanks. I'll use a mixin :) | ||
16:38
kaare_ left
|
|||
hedgeward | What's a good link for tracking the status of concurrency support in Rakudo? Or are the critical path blockers more in the Parrot implementation and scheduler? | 16:46 | |
moritz | hedgeward: the parrot folks are currently trying to make threads work on windows | 16:47 | |
hedgeward: only then will it be included in parrot's main branch, and available to rakudo | |||
hedgeward | Thanks. | 16:48 | |
16:50
kaare_ joined
|
|||
moritz | hedgeward: when rakudo gets threads, you'll be able to read about it in the release announcements, and probably on the blogs on planetsix.perl.org | 16:51 | |
16:53
Guest32908 left,
sporous left
16:54
sporous joined
|
|||
hedgeward | moritz: those I already track. I'll take a look at the Parrot branches and see what's going on, and whether they are starting with the scheduler,I/O support, or user threads. | 16:55 | |
moritz | hedgeward: there's also #parrot on irc.perl.org. iirc whiteknight and nine are working on the threads stuff | 16:57 | |
felher | perl6: class C { has $!e1; has $!e2; method BUILD() { $!e1 = 3; $!e2 = False but anon role { method Int() { return $!e1; } }; }; }; | 17:05 | |
p6eval | niecza v18-6-ge52d6c3, pugs: ( no output ) | ||
..rakudo 1b827c: OUTPUT«===SORRY!===Attribute $!e1 not declared in role <anon>at /tmp/clNJoyeuPg:1» | |||
felher | Hm... Is that NYI? | 17:06 | |
Hm.. would that even do what i expect it to do.... | 17:08 | ||
Hm i guess that tries to access $!e1 in the anon role, not in the instance of C. I guess i have to introduce a lexical for that... | 17:09 | ||
moritz | yes | 17:10 | |
or you can make a parametric role | |||
role mymixin[Int $v] { method Int() { $v } } ; $thing but mymixin[$!e2]; | 17:11 | ||
17:11
xinming_ left
|
|||
felher | moritz: okay, thanks :) | 17:12 | |
moritz | (there are some cases where lexicals and roles don't mix wll; the parametric role is more robust then) | 17:13 | |
17:18
crab2313 left
17:19
xinming joined
17:27
birdwindupbird left
17:29
cognominal_ joined
17:31
sivoais left
17:32
cognominal left
17:39
sivoais joined
17:42
mikemol left
17:45
mtk left
17:49
fgomez joined
|
|||
moritz | pmichaud: what's the rationale behind List elements being immutable, but allowing push/pop/shift/unshift/splice? | 17:57 | |
looks to me like those should go into Array | |||
sorear | good * #perl6 | 17:59 | |
moritz | \o sorear | 18:00 | |
dalek | c: 7578a27 | moritz++ | lib/List.pod: [List] pairs, splice |
18:02 | |
18:03
preflex left
18:05
sporous left,
preflex joined
18:06
sporous joined
18:08
spider-mario joined,
spider-mario left
18:09
spider-mario joined
|
|||
dalek | c: 9770e19 | moritz++ | lib/List.pod: [List] pop, push, shift, unshift |
18:13 | |
18:16
adu joined
|
|||
moritz | nr: say key 'a' => 1 | 18:17 | |
p6eval | niecza v18-6-ge52d6c3: OUTPUT«===SORRY!===Undeclared routine: 'key' used at line 1Unhandled exception: Check failed at /home/p6eval/niecza/boot/lib/CORE.setting line 1401 (die @ 5)  at /home/p6eval/niecza/src/STD.pm6 line 1147 (P6.comp_unit @ 37)  at /home/… | ||
..rakudo 1b827c: OUTPUT«===SORRY!===CHECK FAILED:Undefined routine '&key' called (line 1)» | |||
adu | nr: say (a=>1).key | 18:19 | |
p6eval | rakudo 1b827c, niecza v18-6-ge52d6c3: OUTPUT«a» | ||
adu | nr: say (a=>1).val | 18:20 | |
p6eval | rakudo 1b827c: OUTPUT«No such method 'val' for invocant of type 'Pair' in block <anon> at /tmp/RjgU8zTeAE:1» | ||
..niecza v18-6-ge52d6c3: OUTPUT«Unhandled exception: Unable to resolve method val in type Pair at /tmp/_XXIZZF7fW line 1 (mainline @ 3)  at /home/p6eval/niecza/lib/CORE.setting line 3917 (ANON @ 3)  at /home/p6eval/niecza/lib/CORE.setting line 3918 (module-CORE @ 562)  at /home/p6… | |||
dalek | c: 14571d2 | moritz++ | lib/Pair.pod: [Pair] mostly stolen from u4x |
||
adu | nr: say (a=>1).value | 18:25 | |
p6eval | rakudo 1b827c, niecza v18-6-ge52d6c3: OUTPUT«1» | ||
adu | that's odd I was sure it was .val | ||
Caldrin | r: 'a' !ne 'a' | ||
p6eval | rakudo 1b827c: ( no output ) | ||
Caldrin | :-) | ||
r: print "yes" if 'a' !ne 'a' | |||
p6eval | rakudo 1b827c: OUTPUT«yes» | ||
tadzik | :) | 18:26 | |
18:35
whiteknight joined,
whiteknight is now known as Guest30072
18:54
adu left
18:55
adu joined
19:17
adu left
|
|||
moritz | r: module A::B { }; say OUR::<A>.HOW.keys | 19:18 | |
p6eval | rakudo 1b827c: OUTPUT«No such method 'keys' for invocant of type 'Perl6::Metamodel::PackageHOW' in block <anon> at /tmp/n7s3ZEBTBF:1» | ||
moritz | r: module A { our module B { } }; say OUR::<A>.HOW.keys | 19:19 | |
p6eval | rakudo 1b827c: OUTPUT«No such method 'keys' for invocant of type 'Perl6::Metamodel::ModuleHOW' in block <anon> at /tmp/UgL7ouYzk8:1» | ||
moritz | r: module A { our module B { } }; say OUR::<A> | ||
p6eval | rakudo 1b827c: OUTPUT«A()» | ||
moritz | r: module A { our module B { } }; say OUR::<A>.HOW | ||
p6eval | rakudo 1b827c: OUTPUT«No such method 'gist' for invocant of type 'Perl6::Metamodel::ModuleHOW' in sub say at src/gen/CORE.setting:6972 in block <anon> at /tmp/1HfM8O1nDd:1» | ||
moritz | r: module A { our module B { } }; say OUR::<A>.HOW.keys | ||
p6eval | rakudo 1b827c: OUTPUT«No such method 'keys' for invocant of type 'Perl6::Metamodel::ModuleHOW' in block <anon> at /tmp/Gq361u4kiu:1» | ||
moritz | r: module A { our module B { } }; say OUR::<A>.WHO.keys | ||
p6eval | rakudo 1b827c: OUTPUT«B» | ||
moritz | r: module A::B { }; say OUR::<A>.WHO<B> | ||
p6eval | rakudo 1b827c: OUTPUT«A::B()» | ||
19:22
PacoAir left
19:23
PacoAir joined,
PacoAir left
|
|||
jnthn | HOW...WHO... :) | 19:24 | |
geekosaur | obviously we need some kind of convenience method .wat :} | 19:25 | |
19:27
birdwindupbird joined
|
|||
moritz | we could use a convenience method for lookup up nested method names in packages | 19:30 | |
r: module A::B { }; say OUR::<A::B> | |||
p6eval | rakudo 1b827c: OUTPUT«Any()» | ||
jnthn | r: module A::B { }; say OUR::('A::B') | 19:32 | |
p6eval | rakudo 1b827c: OUTPUT«A::B()» | ||
moritz | oh | 19:35 | |
that makes my code easier | |||
jnthn | You implemented that feature too! :P | 19:36 | |
moritz | oh right :-) | 19:37 | |
there's something fishy with exporting :/ | 19:38 | ||
r: module A::B { sub f is export(:bla) }; say OUR::('A::B::EXPORT::ALL').WHO.keys | 19:39 | ||
p6eval | rakudo 1b827c: OUTPUT«===SORRY!===Missing blockat /tmp/J6vGyUdT8C:1» | ||
moritz | r: module A::B { sub f is export(:bla) } }; say OUR::('A::B::EXPORT::ALL').WHO.keys | ||
p6eval | rakudo 1b827c: OUTPUT«===SORRY!===Missing blockat /tmp/17vA1cQcqT:1» | ||
moritz | r: module A::B { sub f is export(:bla) {} }; say OUR::('A::B::EXPORT::ALL').WHO.keys | ||
p6eval | rakudo 1b827c: OUTPUT«&f» | ||
dalek | ast: 89bcf0b | moritz++ | packages/Fancy/Utilities.pm: add another exported sub to a test module |
19:41 | |
moritz | $ ./perl6 -I t/spec/packages -e 'require Fancy::Utilities; say OUR::("Fancy::Utilities::EXPORT::ALL").WHO.keys' | 19:47 | |
&lolgreet | |||
shouldn't ALL the exports be in ALL? | 19:48 | ||
I guess i wrote that code :/ | |||
19:50
Guest30072 left
|
|||
jnthn | ALL should get all the exports, yes | 19:52 | |
I thought that bit worked already. | |||
moritz | I thought so too. | 19:53 | |
dalek | kudo/nom: 3855ccb | moritz++ | src/core/ (2 files): move Associative role from Pair to Enum also add :D type qualifiers to the infix:<cmp>(Pair, Pair) multi |
19:54 | |
kudo/nom: fb7d00a | moritz++ | src/core/operators.pm: [require] improve support for multi-joined namespaces |
|||
moritz | I think I found the problem | 19:55 | |
but it shows that nobody (yet) knows this stuff, and that it's severly undertested | 19:57 | ||
19:58
GlitchMr left
|
|||
moritz | spectesting a fix now | 20:05 | |
dalek | kudo/nom: eef772d | moritz++ | src/core/traits.pm: fix think in exporter previously some exports would go into the wrong tag |
20:12 | |
ast: 5ba71ba | moritz++ | S11-modules/require.t: test require and import lists |
20:13 | ||
moritz | s/think/thinko/ | ||
:/ | |||
20:13
rsimoes left
|
|||
moritz | anyway, that test now passes. | 20:13 | |
20:14
rsimoes joined
|
|||
dalek | c: 6e05ed4 | moritz++ | lib/Pair.pod: [Pair] small updates; mention Enum |
20:18 | |
20:32
cognominal joined
20:34
fridim_ left
20:35
cognominal_ left
20:41
cognominal left
20:42
cognominal joined
20:44
kaare_ left
20:49
japhb joined,
libertyprime left
20:50
sergot joined,
libertyprime joined
|
|||
dalek | rl6-bench: 0f6bc6f | (Geoffrey Broadwell)++ | TODO: Add a few more TODO items |
20:51 | |
rl6-bench: f3a1716 | (Geoffrey Broadwell)++ | bench: Add just enough option handling and documentation to handle --help|-h|-? and --man |
|||
20:51
sudokode left
20:56
sudokode joined
20:58
libertyprime left
20:59
libertyprime joined
21:02
birdwindupbird left
21:03
sudokode left
21:04
sudokode joined
21:10
libertyprime left
21:11
libertyprime joined
21:19
colomon left
21:23
kurahaupo joined
21:26
libertyprime left,
libertyprime joined
21:28
bruges joined
21:30
bruges_ left
21:35
spaceships joined
21:41
libertyprime left
21:47
libertyprime joined
21:55
cognominal_ joined
21:58
cognominal left
|
|||
dalek | rl6-bench: d9b2efb | (Geoffrey Broadwell)++ | / (3 files): Get all three rc-forest-fire variants showing the same thing * Remove yellow "ashes" phase in Perl 5 variant * Switch to bright red fire in Perl 5 variant * Switch to tree ideograms in Perl 5 to match NQP and Perl 6 * Switch to fire ideogram (instead of just red tree) in all variants * Reset color after printing every non-empty cell in Perl 5, like NQP/Perl 6 |
22:06 | |
22:10
whiteknight joined,
whiteknight is now known as Guest25536
|
|||
dalek | rl6-bench: b43b2f7 | (Geoffrey Broadwell)++ | TODO: Remove TODONE |
22:19 | |
22:22
colourspace joined
22:29
colourspace left
22:36
hedgeward left
22:44
thelazydeveloper left
22:47
spider-mario left
22:56
spaceships left
23:21
sergot left
|
|||
dalek | rl6-bench: e910fea | (Geoffrey Broadwell)++ | TODO: Add lots of possible test ideas to TODO, especially regarding basic algorithms and data structures |
23:37 | |
23:53
libertyprime left
23:58
Chillance left
23:59
colomon joined
|
|||
colomon | moritz, jnthn: change in the Rakudo error on ABC: it now says | 23:59 | |
===SORRY!=== | |||
No STable at index 8 |