»ö« 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 moritz on 3 May 2013. |
|||
00:05
leprevost left
00:07
btyler joined
00:19
leprevost joined
00:23
btyler left
00:35
berekuk left,
preflex left
00:36
berekuk joined
00:44
adu joined
00:53
LoRe_ joined
00:55
btyler joined
00:57
berekuk left
00:58
preflex joined
00:59
japhb_ left
01:05
xilo joined
01:06
FROGGS left
01:11
bbkr joined
01:13
kurahaupo left,
anuby joined
01:17
adu left
01:19
FROGGS joined
01:21
kurahaupo joined
01:22
mikemol left
01:23
xilo left
01:25
xilo joined
01:34
adu joined
01:42
thou left
01:44
census left
01:46
leprevost left
01:48
prevost joined
02:03
bonsaikitten left
02:04
DreamingInCode1 left
02:06
DreamingInCode joined
02:09
bonsaikitten joined
02:13
lustlife joined
|
|||
diakopter | google+, y u completely different from 3 hours ago | 02:47 | |
02:48
adu left
|
|||
Pleiades` | imitating facebook? | 02:49 | |
03:05
lizmat_ joined,
census joined
03:08
smash_ joined,
dagurval joined
03:09
ivan``_ joined
03:10
odoacre_ joined,
nyuszika7h left,
szbalint_ joined,
atrodo_ joined,
nebuchad` joined
03:11
rhr_ joined,
nyuszika7h joined
03:12
mls joined,
[Coke]_ joined,
jlaire_ joined
03:13
lizmat left,
atrodo left,
odoacre left,
atrodo_ is now known as atrodo
03:14
pmichaud joined,
Rix joined
|
|||
labster | rn: enum Toggle <MAGIC MORE_MAGIC>; multi infix:<=> (Toggle $a, Toggle $b) { say "$a | $b"; nextsame; }; my Toggle $a = MAGIC; $a = MAGIC; | 03:27 | |
camelia | niecza v24-51-g009f999: OUTPUT«Toggle() | MAGICUnhandled exception: Illegal control operator: nextsame/nextwith at /home/p6eval/niecza/lib/CORE.setting line 1533 (nextsame @ 4)  at /tmp/fqiMJQEnPN line 1 (infix:<=> @ 6)  at /tmp/fqiMJQEnPN line 1 (mainline @ 5)  at /home/p6eval… | ||
..rakudo 570d1d: ( no output ) | |||
labster | .oO ( Maybe this work work if I set it to MORE_MAGIC? ) | 03:28 | |
03:31
bpalmer joined
03:35
census left
03:55
rindolf joined
03:58
adu joined
04:05
djanatyn joined
04:12
adu left
04:20
adu joined
04:23
btyler left
|
|||
lue | labster: here's the sub line for = in src/core/operators.pm: sub infix:<=>(Mu \a, Mu \b) is rw { | 04:24 | |
04:25
Psyche^ joined
|
|||
lue | (It's not a multi in the core, so I doubt that would work) | 04:26 | |
04:26
Patterner left,
Psyche^ is now known as Patterner
04:37
dagurval left
04:45
kurahaupo left,
kurahaupo joined
04:49
anuby_ joined,
fhelmberger joined
04:50
fhelmberger left
04:51
konundra joined
04:52
anuby left
05:00
thou joined
05:03
dmol joined
05:12
erkan joined,
erkan left,
erkan joined
05:23
rindolf left,
rindolf joined
05:30
rindolf left,
rindolf joined
05:37
rindolf left
05:38
rindolf joined
05:48
rindolf left,
rindolf joined
05:54
kurahaupo left
05:56
fhelmberger joined
05:57
rindolf left
05:58
SamuraiJack joined,
rindolf joined
06:02
rindolf left
06:03
rindolf joined
06:08
rindolf left
06:11
prevost left
06:17
dmol left
06:26
FROGGS left
06:31
_jaldhar_ left
06:45
nebuchad` is now known as nebuchadnezzar
|
|||
lizmat_ | good *, #perl6! | 06:47 | |
sorear | lizmat_! | 06:48 | |
06:53
kaleem joined
|
|||
jnthn yawns | 07:05 | ||
moritz | \o * | ||
jnthn | Teaching today, so only occasionally about. | 07:06 | |
07:07
domidumont joined
07:11
bpalmer left
07:13
brrt joined
07:17
DreamingInCode left
07:31
jlaire_ is now known as jlaire
07:40
FROGGS joined
07:41
domidumont left
07:42
domidumont joined
07:48
sqirrel joined
07:53
kaleem left
07:58
berekuk joined,
kivutar joined
07:59
snoopy left
|
|||
labster | good morning | 08:02 | |
sorear | o/ labster | 08:03 | |
brrt | hi #perl6 | 08:04 | |
08:07
lizmat_ is now known as lizmat,
kaleem joined
08:09
domidumont left
08:10
thou left
08:13
Tene left,
djanatyn left
08:24
djanatyn joined
08:26
Tene joined,
Tene left,
Tene joined
08:41
dakkar joined
08:50
sqirrel left
09:04
donaldh joined
09:05
daxim joined
09:14
domidumont joined
09:22
xinming left
|
|||
labster | \o sorear | 09:23 | |
09:23
cognominal__ joined
|
|||
labster | delayed reaction there | 09:23 | |
09:24
xinming joined
09:25
cognominal left
09:41
berekuk left
|
|||
donaldh | Argh, Java classpath separator on Windows is ; but classpaths require quoting for this to work on Cygwin | 09:44 | |
Do we want to support nqp / jvm on Cygwin? | |||
labster | I'm pretty sure that someone here is using cygwin. | 09:45 | |
donaldh | Yeah, I was just trying it in the absence of a Windows compiler toolchain. | 09:46 | |
But realize it really behaves like a third platform. | |||
labster | Also, I feel your pain on multiple platform weirdness. | ||
tadzik | donaldh: are you working on rakudo/jvm runner? | 09:47 | |
donaldh | tadzik: yeah | ||
tadzik | donaldh: perhaps something could be stolen from nqp? It has a runner too, maybe the problem is solved there | ||
donaldh | I've queued a pull request already. It's not tested on Windows because I don't have a toolchain | 09:48 | |
And yes, it's largely stolen from nqp. | |||
09:49
xinming left
10:02
xinming joined,
brrt left
10:09
anuby_ left
10:38
breinbaas joined
10:39
rking1 left
10:48
sqirrel joined
10:49
xinming left
10:51
xinming joined
11:10
census joined
11:11
rking1 joined
|
|||
FROGGS | std: use v5; say $] | 11:44 | |
camelia | std 9906f18: OUTPUT«ok 00:01 53m» | ||
11:53
_jaldhar_ joined
11:54
gudahtt joined
12:04
kivutar left
|
|||
lizmat | r: my %h=a=>1; for %h.keys { say "{$_.WHAT}" } # me thinks this is a rakudo bug | 12:08 | |
camelia | rakudo 570d1d: OUTPUT«use of uninitialized value of type Str in string context in block at /tmp/PdHofbm1Cl:1» | ||
12:08
skids left
|
|||
lizmat | r: my %h=a=>1; for %h.keys { say $_.WHAT } # this works | 12:08 | |
camelia | rakudo 570d1d: OUTPUT«(Str)» | ||
FROGGS | r: my %h=a=>1; for %h.keys { say "{$_}" } # me thinks this is a rakudo bug | 12:09 | |
camelia | rakudo 570d1d: OUTPUT«a» | ||
lizmat | r: my %h=a=>1; for %h.keys { say "{$_}" } # so does this | ||
camelia | rakudo 570d1d: OUTPUT«a» | ||
FROGGS | r: my %h=a=>1; for %h.keys { say "{$_.Str}" } # me thinks this is a rakudo bug | ||
camelia | rakudo 570d1d: OUTPUT«a» | ||
moritz | lizmat: afaict it works according to the specs (more) | ||
lizmat: your confusion stems from the fact that .WHAT returns a type object, which say() turns into (Type), but stringification leads to empty string + warning | 12:10 | ||
(say uses .gist instead of .Str for conversion) | |||
if you want to get the name of a type as a string, use $obj.^name | 12:11 | ||
FROGGS | r: my %h=a=>1; for %h.keys { say "{$_.WHAT.gist}" } | ||
camelia | rakudo 570d1d: OUTPUT«(Str)» | ||
12:11
adu left
|
|||
lizmat | ok, I now understand why it does this | 12:11 | |
still it feels incorrect... | 12:12 | ||
FROGGS | r: say ~Str | 12:13 | |
camelia | rakudo 570d1d: OUTPUT«use of uninitialized value of type Str in string context in block at /tmp/qVjEuegmaR:1» | ||
FROGGS | then this must feel the same | ||
lizmat | indeed… | ||
guess it's one of those things to get used to, as having to put a comma behind the block in grep | 12:14 | ||
FROGGS | yeah | ||
lizmat | moritz++, FROGGS++ for the clarification | 12:15 | |
12:19
ivan``_ left
12:20
rindolf joined
12:21
adu joined
12:24
adu left
|
|||
lizmat | r: my %h=a=>1; for %h.kv -> $k,$v is rw { $v=3 }; say %h # is this NYI ? | 12:26 | |
camelia | rakudo 570d1d: OUTPUT«("a" => 1).hash» | ||
lizmat | expected a => 3 | ||
FROGGS | n: my %h=a=>1; for %h.kv -> $k,$v is rw { $v=3 }; say %h # is this NYI ? | ||
camelia | niecza v24-51-g009f999: OUTPUT«Potential difficulties: $k is declared but not used at /tmp/EgQU4BuOmk line 1:------> my %h=a=>1; for %h.kv -> ⏏$k,$v is rw { $v=3 }; say %h # is this {"a" => 3}» | ||
12:27
ivan`` joined
|
|||
FROGGS | looks like | 12:27 | |
12:27
btyler joined
|
|||
lizmat | r: my %h=a=>1; for %h.values -> $v is rw { $v=3 }; say %h # same for .values | 12:27 | |
camelia | rakudo 570d1d: OUTPUT«("a" => 1).hash» | ||
lizmat | n: my %h=a=>1; for %h.keys -> $k is rw { $k="b" }; say %h | 12:28 | |
camelia | niecza v24-51-g009f999: OUTPUT«Unhandled exception: Writing to readonly scalar at /tmp/gy03ZaGbp_ line 1 (mainline @ 8)  at /home/p6eval/niecza/lib/CORE.setting line 4331 (ANON @ 3)  at /home/p6eval/niecza/lib/CORE.setting line 4332 (module-CORE @ 582)  at /home/p6eval/niecza/li… | ||
lizmat | r: my %h=a=>1; for %h.keys -> $k is rw { $k="b" }; say %h # not expecting this to work, but also not silently fail | 12:29 | |
camelia | rakudo 570d1d: OUTPUT«("a" => 1).hash» | ||
12:34
konundra left
12:36
konundra joined
|
|||
colomon | lizmat: it's not silently failing. | 12:39 | |
you're changing the list of keys you created, not the original hash | 12:40 | ||
lizmat | r: my %h=a=>1; for %h.values -> $v is rw { $v=3 }; say FAIL if %h<a> != 3 | ||
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Undeclared name: FAIL used at line 1» | ||
lizmat | r: my %h=a=>1; for %h.values -> $v is rw { $v=3 }; say "FAIL" if %h<a> != 3 | ||
camelia | rakudo 570d1d: OUTPUT«FAIL» | ||
lizmat | colomon: nothing with keys in this one | 12:41 | |
colomon | nr: my %h = a => 1; my @a := %h.keys; @a[0].key = "boo!"; say @a.perl; say %h.perl | ||
camelia | niecza v24-51-g009f999: OUTPUT«Unhandled exception: Unable to resolve method key in type Str at /tmp/anEbtj0Pz1 line 1 (mainline @ 6)  at /home/p6eval/niecza/lib/CORE.setting line 4331 (ANON @ 3)  at /home/p6eval/niecza/lib/CORE.setting line 4332 (module-CORE @ 582)  at /home/p6… | ||
..rakudo 570d1d: OUTPUT«No such method 'key' for invocant of type 'Str' in block at /tmp/cYDvt8gVWv:1» | |||
colomon | lizmat: yes, that one is values | ||
same difference | |||
nr: my %h = a => 1; my @a := %h.keys; @a[0] = "boo!"; say @a.perl; say %h.perl | 12:42 | ||
camelia | niecza v24-51-g009f999: OUTPUT«Unhandled exception: Writing to readonly scalar at /tmp/rWdVgUQand line 1 (mainline @ 5)  at /home/p6eval/niecza/lib/CORE.setting line 4331 (ANON @ 3)  at /home/p6eval/niecza/lib/CORE.setting line 4332 (module-CORE @ 582)  at /home/p6eval/niecza/li… | ||
..rakudo 570d1d: OUTPUT«("boo!",).list("a" => 1).hash» | |||
colomon | okay, that's interesting. | ||
(and you'd already gotten it above) | 12:43 | ||
lizmat | p5eval: my %h=(a=>1); for $v (values %h) { $v=3 }; say "OK" if $h{a} == 3 # is what I expected | ||
p5eval | lizmat: OK1 | ||
[Coke]_ | p5eval: 1; | 12:45 | |
p5eval | [Coke]_: 1 | ||
moritz | (the 1 in OK1 is the return value from say()) | ||
[Coke]_ | wonder if we should make that ignore the return value, like p6eval. | ||
lizmat | p5eval: my %h=(a=>1); for $v (values %h) { $v=3 }; "OK" if $h{a} == 3 # just testing p5eval | 12:46 | |
p5eval | lizmat: OK | ||
colomon | lizmat: presumably one of those is an error, but I don't have any notion which one it is. | ||
lizmat | I think it's more a matter of NYI, let's wait for jnthn/masak/pmichaud to become available | 12:47 | |
afk for a bit | |||
12:48
btyler left
|
|||
moritz wonders if he should write an apache module that bans IPs that requests URLs ending in signup.php | 13:01 | ||
13:02
kaare_ joined
|
|||
hoelzro | moritz: just use fail2ban =) | 13:08 | |
that's what I do | |||
arnsholt | Sounds like a good idea to me =) | ||
moritz | hoelzro: isn't fail2ban on the ssh level? | 13:09 | |
hoelzro | moritz: it analyses any log file and takes actions based on patterns | ||
so I have a series of patterns for my web server log | |||
and an iptables rule is added for addresses that match | 13:10 | ||
I use it for all of my external-facing services | |||
13:11
kivutar joined
|
|||
moritz | I am now experimenting with mod_evasive for irclog.perlgeek.de/ | 13:13 | |
the problem is that now and then, a crawler discovers the site, and follows all links, and causes immense load | |||
13:14
mikemol joined
|
|||
moritz | but there is also a legitimate use case of causing many requests: the front page loads a .png for every channel | 13:15 | |
arnsholt | Do you cache the images? | 13:16 | |
13:17
SmokeMachine left
|
|||
moritz | arnsholt: they are static files | 13:17 | |
but mod_evasive can't count request for only-dynamic files | |||
arnsholt | That counts. Just checking in case they were on-demand | 13:18 | |
moritz | I'm not that crazy :-) | 13:20 | |
arnsholt | Good, good =) | ||
moritz | I've now set the limit to 50 requests in 15 seconds | ||
that allows loading the front page and then a bit of browsing | 13:21 | ||
13:21
bluescreen10 joined
|
|||
moritz | if you get many 403s on the irclog page, please tell me :-) | 13:21 | |
we'll see if it actually prevents accidental crawler DOS | 13:22 | ||
LoRe_ | moritz: did bing make a visit to you? | 13:23 | |
13:23
SmokeMachine joined
|
|||
moritz | LoRe_: bing *and* msn | 13:23 | |
LoRe_: I've added bing's /16 net to my blacklist | |||
LoRe_ | i've created a robots.txt: pb.rbfh.de/cRxXLL6pkubA that helped :) | 13:25 | |
13:26
btyler joined
|
|||
moritz | LoRe_: the problem is that once it starts hammering the site, it's too late to install a robots.txt | 13:26 | |
13:26
prevost joined
|
|||
moritz | because it has already fetched the robots.txt, and doesn't feel the need to re-fetch | 13:27 | |
LoRe_ | yeah, for the current run i blocked them too und unblocked them 24h later, since then it works :) | ||
13:39
skids joined
|
|||
lizmat | r: my %h{Any}; %h<a><b>=1 # could it be that the auto-vivication of object hashes is NYI ? | 13:48 | |
camelia | rakudo 570d1d: OUTPUT«No such method 'postcircumfix:<{ }>' for invocant of type 'Mu' in block at /tmp/59VwgIfXOm:1» | ||
lizmat | r: my %h{Str}; %h<a><b>=1 # could it be that the auto-vivication of object hashes is NYI ? | 13:49 | |
camelia | rakudo 570d1d: OUTPUT«No such method 'postcircumfix:<{ }>' for invocant of type 'Mu' in block at /tmp/6x0kSaQ9W0:1» | ||
moritz | looks like | ||
lizmat | any place in the code I could look at for this? | 13:50 | |
13:50
clkao_ is now known as clkao
13:51
PacoAir joined
|
|||
moritz | src/core/Hash.pm search for TypedHash | 13:51 | |
lizmat | thanks, will have a stab at it | 13:52 | |
13:55
alester left
|
|||
arnsholt | "Saying Perl is hard to use because of its symbols is like saying Greek is hard to learn because it has a different alphabet." =D | 14:01 | |
14:06
arlinius left
14:11
sxw joined
14:12
xilo left
|
|||
lizmat | afk for a few hours | 14:15 | |
geekosaur | txt proves people find language hard to use because of all the letters and punctuation. (u agree?) :p | 14:17 | |
TimToady always thought it was the phonology, morphology, semantics, and pragmatics that made it hard... | 14:28 | ||
oh, and syntax | |||
14:28
sxw left
|
|||
colomon | nah, it's just the speling | 14:30 | |
14:30
spider-mario joined
|
|||
TimToady | just have to learn speliology then | 14:31 | |
14:31
xilo joined
14:36
mtk left
14:37
census left,
mtk joined
|
|||
nwc10 | these days decent version control makes speliology a lot less painful | 14:39 | |
TimToady | I suspect that visitor-y methods like .values should be allowed to return containers if that's the fastest way to return things that already have containers | 14:40 | |
it's the later binding that tends to be readonly or rw | |||
however, for arrays of native types, we can't require that .values return containers, since that would be a lot of extra overhead | |||
in that case, there should probably be a .values-rw that forces containerization | 14:41 | ||
afk & | 14:42 | ||
14:52
smash_ is now known as smash
14:58
mucker joined,
patspam joined
14:59
patspam left
15:03
mucker left
15:04
arlinius joined
15:08
kbenson joined
|
|||
jnthn | evening, #perl6 o/ | 15:16 | |
colomon | \o | ||
PerlJam | jnthn: greetings! | ||
FROGGS | o/ | 15:18 | |
15:22
btyler left
15:23
patspam joined
15:38
btyler joined
15:47
cognominal__ left
15:49
bluescreen100 joined
15:52
bluescreen10 left
15:53
kivutar left
15:55
cognominal joined
15:56
denisboyun joined
|
|||
gtodd | hmm long ago when IRC was young there was regexp creation race channel | 15:59 | |
if I recall .... | 16:00 | ||
I guess mad regexp skills are so pre y2k ... | |||
16:02
kaleem left,
domidumont left
16:06
denisboyun left
16:11
FROGGS[mobile] joined
16:17
FROGGS left
16:23
SmokeMachine left,
SmokeMachine joined
|
|||
daxim | rakudo: say Set.WHAT | 16:27 | |
camelia | rakudo 570d1d: OUTPUT«(Set)» | ||
daxim | rakudo: say Set.methods | 16:28 | |
camelia | rakudo 570d1d: OUTPUT«No such method 'methods' for invocant of type 'Set' in block at /tmp/8yAiPFQ8jD:1» | ||
daxim | rakudo: say Set.methods() | ||
camelia | rakudo 570d1d: OUTPUT«No such method 'methods' for invocant of type 'Set' in block at /tmp/FqfWSr9GdJ:1» | ||
daxim | rakudo: say Set.^methods | ||
camelia | rakudo 570d1d: OUTPUT«default keys values elems exists Bool Numeric Real hash at_key exists_key new BUILD postcircumfix:<( )> iterator list pick roll of Str gist perl elems infinite item fmt Int Num chrs Numeric Str» | ||
dalek | kudo/jvm-support: 8e54191 | jonathan++ | src/core/ (2 files): Unbust the Parrot build after JVM tweaks. |
16:32 | |
16:34
SmokeMachine left
|
|||
dalek | kudo/jvm-support: c8d0895 | (Donald Hunter)++ | / (3 files): Added a simple perl6 runner on JVM. |
16:35 | |
kudo/jvm-support: 7e1b46d | (Donald Hunter)++ | tools/build/Makefile-JVM.in: Add perl6.class to clean. |
|||
kudo/jvm-support: aaea644 | jonathan++ | / (3 files): Merge pull request #140 from donaldh/jvm-support Added a simple perl6 runner on JVM. |
|||
16:37
mucker joined
|
|||
daxim | where's the documentation for the Test module? | 16:38 | |
16:42
AndChat|356841 joined
16:43
FROGGS joined,
domidumont joined
16:44
AndChat|356841 left
|
|||
[Coke]_ | daxim: perlcabal.org/syn/S24.html is the closest I see. | 16:46 | |
16:46
[Coke]_ is now known as [Coke],
FROGGS[mobile] left
|
|||
daxim | that suffices, thanks | 16:46 | |
[Coke] | (probably out of date compared to rakudo's Test.pm - github.com/rakudo/rakudo/blob/nom/lib/Test.pm | 16:47 | |
mucker | perl6: sub ∑ { return @_ }; ∑(1,2,3); | 16:48 | |
camelia | niecza v24-51-g009f999: OUTPUT«===SORRY!===Malformed block at /tmp/bvyxHxRmmz line 1:------> sub ⏏∑ { return @_ }; ∑(1,2,3);Parse failed» | ||
..rakudo 570d1d: OUTPUT«===SORRY!===Missing blockat /tmp/N3WMiDs_Lh:1------> sub ⏏∑ { return @_ }; ∑(1,2,3); expecting any of: statement list prefix or term prefix or meta-prefix new name to be defined»… | |||
donaldh | jnthn: did you test the runner on Windows? | 16:49 | |
[Coke] wonders if anyone would like a hangout in place of a #phaser occasionally. | 16:52 | ||
donaldh | as in G+ ? | ||
jnthn | donaldh: Not yet, got a build running of the JVM stuff now | 16:53 | |
donaldh | :) | ||
jnthn | Was just unbusting the Parrot build first. | ||
But feeling hungry, so may go and hunt down some curry and test it after :) | |||
donaldh | good call | ||
[Coke] | donaldh: they just revamped hangouts, so "yes, sort of" | 16:54 | |
donaldh | jnthn: what would be most useful to work on next? | ||
16:55
lichtkind joined
|
|||
jnthn | donaldh: In 08b9fff I stubbed some nqp:: ops that are not yet implemented in Ops.java. Same for 029e3ad5. | 16:56 | |
(sha1s both in nqp repo) | |||
Alternatively, could work on getting the file/line info incorporated into the backtrace printed by the ExceptionHandling class. | 16:57 | ||
It's probably a little fun as it needs correlating frames from the Java stack trace with the caller chain of CallFrame. | 16:58 | ||
donaldh | yikes | ||
jnthn | ;) | ||
16:59
dakkar left
|
|||
jnthn | Well, we have the MethodHandle reachable from each CallFrame, which should help. | 16:59 | |
The other thing that would be a startup time improvement would be to look at the code-gen in P6opaque and see when backing classes could be shared. | |||
Though not sure how often that will be... | |||
The alternative is generating them on first instantiation I guess. | |||
donaldh | Have you thought about generating more readable class and method names? | 17:00 | |
On the java side. | |||
jnthn | We could but (a) each compilation unit is a single Java class, so it's hard to know what to call it and we need to make sure they end up unique, and (b) the method names would need mangling 'cus there's various chars you may not have in a Java method name. | 17:01 | |
Not to mention the uniqueness thing. | |||
Is there no annotation for "name to show in the debugger", ooc? | |||
[Coke] | pony6code | ||
donaldh | Sure, was just thinking about incorporating aspects of the compunit filename and method names to aid reading java stack traces. | ||
I'll investigate. | 17:02 | ||
jnthn | Yeah. There's a reason ExceptionHandling tries to do something better than the Java stack trace :) | ||
But I guess for folks wanting to use tools, that ain't such a good story. | |||
It'd be nice if the Indy frames and similar could be hidden also. I dunno what the options are there. | 17:03 | ||
donaldh | I suspect it requires a debugger extension to munge the stacktrace view. Also require an Eclipse extension for source file breakpoints. | ||
jnthn | Mmmm...an Eclipse Perl 6 extension... :) | 17:04 | |
donaldh | Might be something that can be added to E.P.I.C. | ||
jnthn | That'd be an E.P.I.C. win... | 17:05 | |
donaldh | Anyhoo, time to go and 'relax' at a rock climbing wall. | ||
jnthn | Have fun | ||
donaldh | Might have some hacking calories later. | ||
jnthn too | |||
donaldh | bye o/ | ||
jnthn | o/ | ||
dinner & | |||
17:05
donaldh left
|
|||
dalek | : e966f41 | (Tobias Leich)++ | Makefile: add the source files as a dep for their target |
17:08 | |
: a8aff27 | (Tobias Leich)++ | lib/Perl5/ (3 files): treat $] like a normal variable, so we can export it from Perl5::Terms |
|||
: fc0825f | (Tobias Leich)++ | lib/Perl5/ (2 files): make qr// and m// work The modifiers are not handled yet. |
|||
v5: 6545f9d | (Tobias Leich)++ | lib/Perl5/ (4 files): | |||
17:10
fgomez left
|
|||
daxim | I have a module under development. it sits in lib, tests in t. I run prove -e perl6 for TDD. it does not find the module in lib. what do I have to do? prove -l does not help, obviously | 17:16 | |
man perl6 doesn't say anything about include dirs | 17:18 | ||
arnsholt | PERL6LIB=lib prove | 17:20 | |
Or use ufo and make test =) | |||
daxim | tell me more about ufo | 17:22 | |
I found its readme. do NOT tell me more about ufo | 17:24 | ||
arnsholt | It's a weird README | 17:25 | |
daxim | I'm going to be the poopyhead now and say that playfulness in the documentation is over the top for my taste | ||
arnsholt | But it autocreates the Makefile for you | ||
daxim | pfffff Failed to get the directory contents of 'Subdir': readdir failed: No such file or directory | 17:27 | |
17:30
dmol joined
17:34
SamuraiJack left
|
|||
daxim | rakudo: method Int::is-perfect { say 'fnord' }; 6.is-perfect; | 17:35 | |
camelia | rakudo 570d1d: OUTPUT«Useless declaration of a has-scoped method in mainlineNo such method 'is-perfect' for invocant of type 'Int' in block at /tmp/ZJka2Du4Ou:1» | ||
daxim | how do I add a method to an existing class? | 17:36 | |
moritz | r: use MONKEY_TYPING; augment class Int { method foolish() { 42 } }; say Int.foolish | 17:37 | |
camelia | rakudo 570d1d: OUTPUT«42» | ||
17:37
kaleem joined
17:38
kaleem left
17:40
SamuraiJack joined
|
|||
daxim | rakudo: use MONKEY_TYPING; augment class Set { method have-some-more(Str $foo) { say $foo } }; set <fnord quux>.have-some-more('stuff'); | 17:40 | |
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Class 'Set' already has a Parrot v-table override for 'invoke'» | ||
daxim | this error message lacks a remedy | ||
17:42
fhelmberger left
|
|||
moritz | and it looks weird | 17:44 | |
you didn't try to override invoke | |||
17:47
SamuraiJack_ joined
17:48
SamuraiJack left
|
|||
pmichaud | good morning, #perl6 | 17:49 | |
also, it seems to me that .have-some-more('stuff') would end up working on the list ("fnord", "quux") and not the Set. | 17:51 | ||
rakudo: <fnord quux>.have-some-more('stuff'); | |||
camelia | rakudo 570d1d: OUTPUT«No such method 'have-some-more' for invocant of type 'Parcel' in block at /tmp/eF8EbJ8OQH:1» | ||
pmichaud | rakudo: set <fnord quux>.have-some-more('stuff'); | ||
camelia | rakudo 570d1d: OUTPUT«No such method 'have-some-more' for invocant of type 'Parcel' in block at /tmp/dZiKI59Efs:1» | ||
pmichaud | ...but I guess it never even got that far. | 17:52 | |
17:57
Chillance joined
17:59
berekuk joined
18:00
btyler left
|
|||
dalek | rl6-roast-data: a6c04d7 | coke++ | / (4 files): today (automated commit) |
18:01 | |
18:03
daxim left
|
|||
[Coke] | niecza has been dirty for 303 days. pugs has been clean for 3 days. rakudo has been dirty for 12 days. | 18:04 | |
rjbs | What do dirty and clean mean, here? Passing believed-to-pass tests? | 18:05 | |
[Coke] | running against roast. | ||
so rakudo has been failing roast spec tests for 12 days in a row. (but, as noted by FROGGS, et al., only on feather, it seems) | |||
I would be happy to use better words than dirty/clean if someone can suggest them. ;) | 18:06 | ||
18:07
btyler joined
|
|||
pmichaud | "dirty" sounds about right to me. | 18:07 | |
it's definitely not clean. :) | |||
are the feather failures logged somewhere? | |||
[Coke] | raw.github.com/coke/perl6-roast-da...ummary.out is the daily log. there's an RT for this particular failure. | 18:09 | |
rt.perl.org/rt3/Ticket/Display.html?id=117957 | |||
that first URL looks wrong. raw.github.com/coke/perl6-roast-da...ummary.out | 18:10 | ||
second is the ticket for that failure with more details. | |||
ah. and that failure has masked other failures. rakudo is now failing 37 tests, up from 36 yesterday, up from 7, up from the 3 I knew about. | 18:11 | ||
S32-hash/delete-adverb.rakudo S29-os/system.t S09-hashes/objecthash.rakudo | 18:12 | ||
18:13
on joined,
on is now known as Guest85417
|
|||
pmichaud | those are useful links... I'll want to review them when I have p6-tuits again. | 18:14 | |
gtodd | p5eval: perl -E 'foreach (keys %ENV) { say if /PERL*/ } ' | ||
p5eval | gtodd: ERROR: syntax error at (eval 7) line 1, near "E 'foreach (keys %ENV) { say if /PERL*/ } '" | ||
[Coke] | pmichaud: also just added this one: | ||
pmichaud | loos like lots of lhf in the summary output | ||
*looks | |||
[Coke] | github.com/coke/rakudo-star-daily | 18:15 | |
pmichaud | \o/ Coke++ | ||
[Coke] | (more helpfully: github.com/coke/rakudo-star-daily/...dules.log_ | ||
(more helpfully: github.com/coke/rakudo-star-daily/...dules.log) | |||
pmichaud | "Rakudo Star Daily" sounds like a news service. :) | ||
[Coke] | once I have a few days worth of data, I'll see about whipping up a summary file. | ||
heh! | |||
pmichaud | I guess I should wander towards my gate so as not to miss my flight. | 18:16 | |
bbl | |||
gtodd | arrgh sorry bout hat | ||
lizmat | [Coke]: S32-hash/delete-adverb.rakudo would be mine, probably | 18:17 | |
Ulti | mmb.pcb.ub.es/~carlesfe/funnypapers...Comparison | 18:18 | |
[Coke] | lizmat: is the test failing for you? | 18:20 | |
18:20
gdey joined
|
|||
lizmat | no, it's not | 18:20 | |
[Coke] | let me do a run of just that test using the last built version. | 18:21 | |
lizmat | apart from the warnings, is there something failing there? | ||
18:22
mucker left
|
|||
[Coke] | feather.perl6.nl/~coke/lizmat.out | 18:22 | |
Yes. | |||
You sure you pushed everything? | |||
lizmat | some of my stuff is still in a pull request :-( | 18:23 | |
[Coke] | my copy of roast is shown here: github.com/coke/perl6-roast-data/b...s_rates#L2 f039dde | ||
lizmat: you should be able to commit directly to roast, no? | 18:24 | ||
lizmat | I guess I forgot to mark some of these tests as todo | ||
yes | |||
[Coke] | I thought rakudo proper was the only thing that we needed CLAs for. | ||
18:24
Guest85417 left
|
|||
lizmat | afaik, that's true, I already have a commit bit for e.g. nqp | 18:26 | |
moritz | lizmat: you even committed to roast before :-) | 18:27 | |
roast eq t/spec/ | |||
dalek | ast: e3e2560 | (Elizabeth Mattijsen)++ | S32-hash/delete-adverb.t: Fudging in delete-adverb tests needed until my pull request is merged Spotted by [Coke]++ |
18:30 | |
lizmat | moritz: yes, and quite a few already :-) | ||
18:30
SmokeMachine joined
|
|||
lizmat | that's what's caused some of the smoke ;-( | 18:30 | |
[Coke]: I *think* it is fine now | 18:31 | ||
grrrs… hold it | |||
[Coke] | ooooh, I thought you meant a pull request to ROAST was holding things up. | 18:32 | |
still six failures. | |||
dalek | ast: f83718b | (Elizabeth Mattijsen)++ | S32-hash/delete-adverb.t: Further fudging of delete-adverb tests |
18:34 | |
[Coke] | lizmat++ | 18:35 | |
lizmat | [Coke]: no, it is a pull request in nom: I hope pmichaud finds the time soon to have a look at it | 18:36 | |
[Coke] | S09-hashes/objecthash.t - dies after test 25 | ||
might need a skip for new tests? | |||
lizmat | I don't think I touched that | 18:37 | |
fwiw, that doesn't fail for me | |||
[Coke] | checking. | ||
5c7b4be9 (Elizabeth Mattijsen 2013-05-14 16:40:50 +0200 75) | 18:38 | ||
lizmat | hmmm.. I changed the plan? | ||
good thing there is git blame | |||
I'll fudge them | |||
is the number in the fudge the number of lines, or the number of tests? | 18:41 | ||
jnthn | tests | ||
lizmat | no, it's not, it's lines | 18:42 | |
jnthn | Oh? | ||
I've always treated it as tests :P | |||
lizmat | uncommented lines, actually | ||
the test dies on "my %h{Mu};" | 18:43 | ||
jnthn | r: my %h{Mu} | ||
camelia | rakudo 570d1d: ( no output ) | ||
lizmat | hmmm…. | 18:44 | |
jnthn | .tell donaldh the runner seems to work fine on Windows | ||
yoleaux | jnthn: I'll pass your message to donaldh. | ||
lizmat | r: my %h{Mu}; %h{Mu}=2 | 18:46 | |
camelia | rakudo 570d1d: OUTPUT«Cannot call 'postcircumfix:<{ }>'; none of these signatures match::(: Mu *%_):(: :p(:$p)!, Mu *%_):(: :k(:$k)!, Mu *%_):(: :kv(:$kv)!, Mu *%_):(: :v(:$v)!, Mu *%_):(: :BIND(:$BIND)!, Mu *%_):(\SELF: $key, Mu *%_):(\SELF: $key, Mu \$BIND, Mu *%_):(\SELF: $k… | ||
lizmat | r: my %h{Mu}; say %h{*} | ||
camelia | rakudo 570d1d: OUTPUT«» | ||
lizmat | r: my %h{Mu}; %h<a>=1; say %h{*} | 18:47 | |
camelia | rakudo 570d1d: OUTPUT«1» | ||
dalek | ast: e53a16e | (Elizabeth Mattijsen)++ | S09-hashes/objecthash.t: Still need to fudge %h{Mu} related tests Also pending my pull request to nom. [Coke]++ for spotting |
18:49 | |
lizmat | [Coke]: good chance it is ok now | 18:50 | |
[Coke] | lizmat++ | 18:53 | |
lizmat | sorry for the smoke. Please blame this on getting the workflow going | 18:54 | |
[Coke] | no worries. | 18:55 | |
more concerned about the one that's been failing for 2 weeks. :| | |||
lizmat | fwiw, S02-types/bool.t succeeds with me | 18:59 | |
also S29-os/system.t | 19:00 | ||
19:02
SamuraiJack_ left
19:03
rindolf left
19:09
Guest12382 joined
19:10
sqirrel left
|
|||
lizmat | r: my %h{Mu}; say %h.WHAT # how am I supposed to find out that "Mu" is what the hash was typed with? | 19:12 | |
camelia | rakudo 570d1d: OUTPUT«(Hash+{TypedHash})» | ||
jnthn | Good question. For the value you use the .of method on the hash. | 19:14 | |
er, value type that is. | |||
lizmat | hmm… that's in Cool or higher, as I can't find it in ^methods | 19:15 | |
unless I use my eyes of course, duh :-( | |||
thanks, jnthn++ | 19:16 | ||
r: my %h of Mu; say %h.of # makes it much clearer | |||
camelia | rakudo 570d1d: OUTPUT«(Mu)» | 19:17 | |
19:17
zby_home_ joined
|
|||
lizmat | r: my %h1 of Mu; my %h2{%h1.of} # how to create a hash with the same type as another hash | 19:19 | |
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Invalid hash shape; type expected» | ||
PerlJam | lizmat++ (asking the question I've been wondering about but never got around to asking) | ||
lizmat | r: my %h1 of Mu; my %h2 of %h1.of | ||
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Confusedat /tmp/7u7AETCHfg:1------> my %h1 of Mu; my %h2 of ⏏%h1.of expecting any of: scoped declarator» | ||
lizmat | std: my %h1 of Mu; my %h2 of %h1.of | 19:20 | |
camelia | std 9906f18: OUTPUT«===SORRY!===Invalid type name at /tmp/o9paKfWPNN line 1:------> my %h1 of Mu; my %h2 of ⏏%h1.of expecting typenameParse failedFAILED 00:00 42m» | ||
dalek | kudo/jvm-support: 67feb5a | jonathan++ | src/ (2 files): Fix 'say 42' (and probably loads more). |
||
masak waves tiredly in greeting | 19:22 | ||
lizmat | masak! | ||
tadzik | hey masak! | ||
labster | masak o/ | 19:23 | |
lizmat congratulates jnthn++ and masak++ for bringing home the bacon for yet another day! | |||
jnthn | o⁄ masak | ||
labster | mmm bacon | 19:24 | |
masak | hey, thanks. | ||
yeah, today felt good. | |||
teaching JavaScript is weirdly satisfactory. | |||
19:25
zby_home_ left
|
|||
FROGGS | I want bacon, naow | 19:25 | |
and eggs | |||
:/ | |||
jnthn | FROGGS: So grab the frying pan? :) | ||
19:25
bloonix joined,
on joined
|
|||
FROGGS | I dont have bacon ó.ò | 19:25 | |
19:25
on is now known as Guest54409
|
|||
nwc10 | oooh, numbers | 19:25 | |
FROGGS takes a walk to the kitchen | 19:26 | ||
lizmat | you're *that* skinny ? | ||
masak | if I backlog #perl6, will I find discussion about the schwern thing? | ||
lizmat | no | ||
jnthn | The Schwern thing? | ||
PerlJam | masak: I hope now. Mostly that's been on #yapc | ||
s/now/not | |||
lizmat | this was the first mention, afaik | ||
flussence | for some reason that name rings a bell, but not from here | 19:27 | |
lizmat | and I hope this will be the last: schwern thing | ||
19:27
domidumont left
|
|||
flussence | but it sounds like something I don't want to be reminded of anyway | 19:28 | |
masak | the schwern thing: blog.schwern.net/2013/05/15/yapcna-...ithdrawal/ | ||
lizmat | *sigh* | ||
gtodd | perl -E 'foreach (keys %ENV) { say if /PERL/ }' | ||
sigh | 19:29 | ||
flussence | oh, I must've been thinking of a different name. | ||
tadzik | oh ffs | ||
masak | tadzik: that's about the size of it. | ||
gtodd | EMOUSECUTSEL | ||
tadzik | well, I'm still going to go there and be nice to everyone, CoC or not | 19:30 | |
sorear | let's not have a spillover | ||
skids | What's wrong with Corrosion of Conformity :-) | 19:31 | |
lizmat | tadzik: that's an autopun? | ||
19:31
jac50 joined
|
|||
masak | I'm sorry. spillover was the last thing I wanted. | 19:32 | |
tadzik | lizmat: if it is, I didn't notice :) | ||
masak | I just think that matters of community maintenance are automatically on-topic here. | ||
skids wonders if TLA saturation follows moore's law. | |||
masak | (since it's one of the reasons Perl 6 was created.) | ||
lizmat is repressing the urge to comment | 19:33 | ||
19:34
domidumont joined
|
|||
lizmat | r: my %h of Mu; %h.of ~~ m/\w+/; say ~$/ # instead point out some more NYI's / bugs / nags | 19:34 | |
camelia | rakudo 570d1d: OUTPUT«No such method 'match' for invocant of type 'Mu' in block at /tmp/_RaQdyyO__:1» | ||
lizmat | r: my %h of Mu; say ~%h.of | 19:36 | |
camelia | rakudo 570d1d: OUTPUT«Nominal type check failed for parameter ''; expected Any but got Mu instead in sub prefix:<~> at src/gen/CORE.setting:1271 in block at /tmp/rR0sj51D6R:1» | ||
lizmat is trying to figure out a way to create a hash with the same type as another *reliably* | 19:37 | ||
r: my %h{Int}; say %h.of | 19:38 | ||
camelia | rakudo 570d1d: OUTPUT«(Mu)» | ||
lizmat giving up for now | |||
flussence | just to be clear: are you looking for type constraints on the keys or the values? | 19:39 | |
masak | lizmat: .clone ? | ||
moritz | lizmat: %h{Int} types the keys, .of gives the type constraint of the values | ||
flussence | (because "of" doesn't seem to do anything on my end...) | ||
moritz | TypedHash doesn't seem to expose the types | 19:40 | |
lizmat | moritz: aha! | ||
19:41
domidumont left
|
|||
lizmat | masak: .clone also copies the contents | 19:41 | |
lizmat has a look at the clone code | |||
masak | ah, troo. | 19:42 | |
I definitely agree that getting a new container with the same .of seems a reasonable thing to do. | 19:43 | ||
even before I have a concrete use case. | |||
nwc10 | jnthn: for Rakudo on the JVM, in the ./perl6 for *nix, you need "" round $@, ie exec java ... perl6 "$@" | 19:46 | |
and I have to admit that I prefer the startup speed of NQP | 19:47 | ||
jnthn | .new should do it. If it doesn't, that'd be a bug. | ||
nwc10 | I couldn't work out where that ./perl6 comes from | ||
jnthn | nwc10: The startup speed of both of them on the JVM sucks at the moment. | ||
nwc10 | parrot has to be an order of magniture better for somethign :-) | 19:48 | |
19:48
Guest54409 left
|
|||
masak | lizmat: what jnthn++ said. I shoulda thought of that. | 19:50 | |
dalek | kudo/jvm-support: c52bedd | jonathan++ | tools/build/create-jvm-runner.pl: Fix runner for *nix; nwc10++. |
||
lizmat | r: my %h{Mu}; say %h.WHAT; my %h2=%h.new; say %h2.WHAT; | 19:51 | |
camelia | rakudo 570d1d: OUTPUT«(Hash+{TypedHash})(Hash)» | ||
lizmat | the .new loses the Type information :-( | ||
seems it is using the one from Hash: method new(*@args) { @args.hash } | 19:52 | ||
jnthn | lizmat: Yeah, so I notice... | ||
19:53
fgomez joined
|
|||
lizmat | simply putting a method new in the TypedHash would not solve the pb, I think, as it probably lies deeper, no? | 19:53 | |
jnthn | Probably we need to look at the way Hash.new works. | ||
lizmat | so what *is* the way to get at the Type? ".of" is about constraining the values, as moritz pointed out | 19:54 | |
jnthn | lizmat: there isn't one implemented. S09 may have one spec'd, but I don't recall it. | 19:55 | |
nwc10 | Bother: | 19:56 | |
nick@raspberrypi:~/test$ ./perl6 -e 'say "Hello portable world"' | |||
Unhandled exception: java.lang.BootstrapMethodError: call site initialization exception in <anon> in <anon> | |||
so much for Java bytecode being portable | |||
jnthn | Oddnes. | 19:57 | |
nwc10 | yes. | 19:58 | |
jnthn | What does java -version show? | ||
nwc10 | Although IIRC that was the exception thrown when I tried to build nqp-jvm on the raspberry pi | ||
java version "1.7.0_03" | |||
OpenJDK Runtime Environment (IcedTea7 2.1.7) (7u3-2.1.7-1) | |||
OpenJDK Zero VM (build 22.0-b10, mixed mode) | |||
it was built by this Java: | 19:59 | ||
java version "1.7.0_19" | |||
OpenJDK Runtime Environment (rhel-2.3.9.1.el6_4-x86_64) | |||
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) | |||
jnthn | I actually managed to get the nqp-jvm build to segfault one of the earlier ones in the 7 serious. | ||
*series | |||
nwc10 | pwnage! | ||
jnthn | Segfaulting the JVM felt like an, uh, achievement... | ||
But it was already fixed in a later version. | |||
nwc10 | Sadly the properly sarcastic headline isn't in the URL: www.theregister.co.uk/2013/05/15/or...ng_scheme/ -- "Oracle updates Java versioning to allow more security fixes" | 20:00 | |
20:00
breinbaas left
|
|||
jnthn | heh :) | 20:01 | |
20:06
breinbaas joined
20:08
gdey left
20:16
dorlamm joined
20:21
estrabd joined,
kaare_ left
20:35
jac50 left
20:38
dmol left,
spider-mario_ joined
20:39
betterwo1ld joined
|
|||
lizmat | r: gist.github.com/lizmat/5594924 | 20:40 | |
camelia | rakudo 570d1d: OUTPUT«("Foo::Bar" => {"perl6" => {}}).hashNominal type check failed for parameter 'lhs'; expected Any but got Mu instead in sub METAOP_TEST_ASSIGN:<//> at src/gen/CORE.setting:13798 in sub module2stash at /tmp/_BTgCQ8SZ_:15 in block at /tmp/_BTgCQ8SZ_:22»… | ||
lizmat | I'm stumped, haven't been able to simplify this down further :-( | ||
masak | '= Any' better written '?' | ||
lizmat | that changes things | 20:41 | |
masak | ah. | 20:42 | |
lizmat | no it doesn't :-( must put quotes around ? | ||
20:42
Timbus|Away joined
|
|||
lizmat | ah, ok, gotcha now | 20:42 | |
20:42
spider-mario left,
betterworld left
|
|||
lizmat | no changes | 20:42 | |
20:43
Timbus left,
Timbus|Away is now known as Timbus
|
|||
dalek | : 5980153 | (Tobias Leich)++ | lib/Perl5/Grammar.nqp: support ${foo} variable name syntax |
20:44 | |
: 5f94a6c | (Tobias Leich)++ | / (4 files): move undef to Perl5::Terms |
|||
lizmat | the lines with return Proxy:new can be removed, it still creates the same error | ||
masak | is the sub necessary? | 20:46 | |
lizmat | masak: do you see anything else wrong with the code ? | 20:47 | |
the sub? | |||
masak | I mean, does the failing code have to be in a sub? | ||
or can you just set the parameters as variables? | |||
lizmat | for testing, yes... | ||
ultimately it has to become a sub | |||
FROGGS | r: say "abc" ~~ m?a?g | ||
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Regex not terminatedat /tmp/9hP6aNAAnu:1------> say "abc" ~~ m?a?g⏏<EOL> expecting any of: postfix infix stopper infix or meta-infix prefix or term prefix or meta-prefix… | 20:48 | |
masak | lizmat: for the purposes of golfing. | ||
lizmat | r: gist.github.com/lizmat/5594924 # golfed | 20:50 | |
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Two terms in a rowat /tmp/W2J319ZHpe:1------> https⏏://gist.github.com/lizmat/5594924 # go expecting any of: argument list postfix infix stopper infix or meta-infix st… | ||
20:50
[Coke] left,
yakshavr left,
clkao left,
yakshavr joined
|
|||
lizmat | r: gist.github.com/lizmat/5594924 | 20:51 | |
camelia | rakudo 570d1d: OUTPUT«("Foo::Bar" => {"perl6" => {}}).hashNominal type check failed for parameter 'lhs'; expected Any but got Mu instead in sub METAOP_TEST_ASSIGN:<//> at src/gen/CORE.setting:13798 in block at /tmp/FVbfGg38LX:11» | ||
lizmat | grrsss… when using a URL, you can't comment | ||
so: no sub | 20:52 | ||
masak: you agree that this *should* work? | 20:54 | ||
20:58
[Coke] joined
20:59
clkao joined,
spider-mario_ is now known as spider-mario
|
|||
masak | lizmat: yes, definitely. | 21:00 | |
lizmat | I'll try to golf it further down | ||
masak | r: my $auths = do { my %h{Any} of Hash; %h }; my $versions = $auths{Any}; say "alive" | 21:01 | |
camelia | rakudo 570d1d: OUTPUT«alive» | ||
masak | hm. | ||
lizmat | down to 5 lines, it is related to %h{Any} being stored as a value in a hash | 21:04 | |
masak | r: (my %h{Any} of Hash){Any} //= my % | 21:07 | |
camelia | rakudo 570d1d: OUTPUT«Nominal type check failed for parameter 'lhs'; expected Any but got Mu instead in sub METAOP_TEST_ASSIGN:<//> at src/gen/CORE.setting:13798 in block at /tmp/QD7khTjRjR:1» | ||
masak | this is as golf'd as I can get it. | ||
lizmat | r: my $froms= do { my %h{Any} of Hash; %h }; $froms<a> //= do { my %h{Any} of Hash; %h }; # my golf | 21:08 | |
camelia | rakudo 570d1d: OUTPUT«Nominal type check failed for parameter 'lhs'; expected Any but got Mu instead in sub METAOP_TEST_ASSIGN:<//> at src/gen/CORE.setting:13798 in block at /tmp/773hQw7_T5:1» | ||
masak | I think that makes it fairly clear that something is Wrong, at least. | ||
jnthn is a little surprised to discover that "use v6;" actually depends on *a gather block*! | |||
o.O | |||
lizmat | why would this involve a META op ? | 21:09 | |
jnthn | The foo= form is a meta-op | ||
timotimo | will we be getting a jakudo evalbot thingie for the channel? | ||
jnthn | timotimo: Probably, when it's worth having :) | 21:10 | |
lizmat | ah, of course, yes | ||
21:11
spider-mario left
|
|||
dalek | p/rak-jvm-support: 0440860 | jonathan++ | src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java: Implement nqp::getlexcaller. |
21:11 | |
p/rak-jvm-support: 1baee5d | jonathan++ | src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java: Some more decont, tweaks. |
|||
lizmat | seems to me the code generated isn't getting the left hand side passed to it if the destination is a non-existent hash value on the left | 21:12 | |
r: my $froms= do { my %h{Any} of Hash; %h }; $froms<a>=Any; $froms<a> //= do { my %h{Any} of Hash; %h }; say $froms; # works | 21:13 | ||
camelia | rakudo 570d1d: OUTPUT«("a" => {}).hash» | ||
lizmat | adding a $h<key>=Any apparently creates a container that //= can find | 21:14 | |
r: my %h{Any}; %h<a> //= "a" #golfed shortest | 21:16 | ||
camelia | rakudo 570d1d: OUTPUT«Nominal type check failed for parameter 'lhs'; expected Any but got Mu instead in sub METAOP_TEST_ASSIGN:<//> at src/gen/CORE.setting:13798 in block at /tmp/Q3e_ebVOMA:1» | ||
lizmat | r: my %h{Any}; %h<a>=Any; %h<a> //= "a" #golfed shortest | ||
camelia | rakudo 570d1d: ( no output ) | ||
dalek | kudo/jvm-support: b47f7a3 | jonathan++ | src/vm/jvm/runtime/org/perl6/rakudo/Ops.java: Implement nqp::p6recont_ro. |
||
lizmat | masak: rakudobug? | ||
masak submits | 21:17 | ||
lizmat | masak++ | 21:18 | |
BTW, same goes for ||= and &&= | |||
also note that there is no problem if the hash is not typed | 21:19 | ||
jnthn | Possible patch (please somebody else try it) for the lizmat++ bug: gist.github.com/jnthn/5595193 | ||
[Coke] | jnthn: is there anyone aside from you who can wrangle GC bugs that pass through sixmodel's PMC's destroy() vtable? | 21:20 | |
lizmat | jnthn: I'll try that | ||
jnthn | [Coke]: Somewhere in the world, probably... :) | 21:21 | |
21:21
adu joined
|
|||
jnthn | [Coke]: is it a double free happening inside there? | 21:21 | |
adu | hi jnthn | ||
jnthn | o/ adu | ||
adu | how goes? | 21:22 | |
[Coke] | jnthn: aye. | ||
jnthn | Tiredly... | ||
[Coke] | er... at one point it presented as a double free, anyway. | ||
jnthn | [Coke]: A while back I tried and failed to hunt one of those. I got it down to being related to mixins and bigints interacting interestingly. | ||
adu | o right, Europe time | ||
[Coke] | current error was: *** glibc detected *** ./perl6: free(): invalid next size (fast): | 21:23 | |
21:23
skids left
|
|||
jnthn | [Coke]: As in, those seemed to be the ingredients. I never managed to get down to the exact issue. | 21:23 | |
[Coke] | rt.perl.org/rt3/Ticket/Display.html?id=117957 is the ticket if, you know, you have spare time. :) | ||
jnthn | ;) | ||
[Coke] | I don't think there are any bigints near this one. | 21:24 | |
~~ | 21:26 | ||
21:33
kurahaupo joined
21:35
gdey joined
21:36
PacoAir left
21:37
sdo joined
|
|||
sdo | hello | 21:37 | |
lizmat | hi sdo! | ||
kurahaupo | sdo: hi | 21:38 | |
sdo | lizmat: hi kurahaupo: I am reading at this time UsingPerl6 | ||
masak | hi, sdo. | ||
sdo | hi masak: | ||
lizmat | jnthn: alas, no change | 21:40 | |
sdo | and I was wondering is Perl6 can be considered as a program that can allow constraint programing as can do ada the NG? | ||
sorear | .oO( solar observation spacecraft studying perl 6 ) |
||
sdo | NG: Next Generation | ||
jnthn | lizmat: Hmm...OK, then it's not that I thought it was. That patch feels needed even if not sufficient, mind... | ||
lizmat | ok | 21:42 | |
sdo | the book UsingPerl6 is good but hard to assimilate | ||
adu | sdo: Ada95? | ||
sdo | no ADA 2012 | ||
adu | I'm not familiar with that | ||
sdo | as far as I know Ada 95 is full object | 21:43 | |
adu | sdo: what do you mean constraint programing? | 21:44 | |
lizmat | jnthn: did you catch me saying that this happens if the key is not in the hash yet? If you do %h<key>=Any first, it doesn't happen | ||
sdo | sub circle-radius-from-area(Real $area where { $area >= 0 }) {($area / pi).sqrt} say circle-radius-from-area(3); # OK | ||
lizmat | fwiw: now that I know what the problem is, I can work around it | 21:45 | |
jnthn | lizmat: Yes, which led me to suspect busted auto-viv things, which I thought the patch I suggested may fix. But it seems not. | ||
sdo | I mean to certify that an object respect constraint | ||
lizmat | jnthn: but doesn't at_key return Mu if the key doesn't exist? | ||
jnthn | lizmat: It should return a con...oh...wait a moment... | 21:46 | |
FROGGS | sdo: I believe you can do that with perl6 | ||
21:46
btyler left
|
|||
sdo | that's perl 6 | 21:46 | |
FROGGS | jnthn: dary? | ||
adu | sdo: there is something called "as" | ||
lizmat | r: my %h{Mu}; say %h.at_key("a") # typed hash returns Mu, not Any | ||
camelia | rakudo 570d1d: OUTPUT«(Mu)» | ||
FROGGS | what is a condary? | ||
jnthn | lizmat: no, I though it may be missing "is rw" on those at_pos methods...but it ain't... | 21:47 | |
adu | sdo: wait, apparently there is a "where" also | 21:48 | |
jnthn | FROGGS: What? | ||
sdo | I don't know about as because I am at page 42 | ||
FROGGS | jnthn: just a joke (legen... dary) | ||
r: sub a ( Int $a where $a > 5 ) { say $a }; a( 42 ) | |||
lizmat | r: my %h; say %h.at_key("a") # untyped hash returns Any | ||
camelia | rakudo 570d1d: OUTPUT«42» | ||
rakudo 570d1d: OUTPUT«(Any)» | |||
FROGGS | r: sub a ( Int $a where $a > 5 ) { say $a }; a( 2 ) | ||
camelia | rakudo 570d1d: OUTPUT«Constraint type check failed for parameter '$a' in sub a at /tmp/rhXNBbSHrO:1 in block at /tmp/rhXNBbSHrO:1» | ||
jnthn | r: my %h{Mu}; say %h.at_key("a") | ||
camelia | rakudo 570d1d: OUTPUT«(Mu)» | ||
jnthn | r: my %h; say %h.at_key("a") | ||
camelia | rakudo 570d1d: OUTPUT«(Any)» | ||
FROGGS | sdo: see? works | 21:49 | |
jnthn | lizmat: ah...sorry, I'm really slow tonight :) | ||
lizmat | I'm very glad that you're here at all! :-) jnthn++ | ||
jnthn | r: my %h{Mu} of Any; say %h.at_key("a") | ||
camelia | rakudo 570d1d: OUTPUT«(Mu)» | ||
21:49
pecastro left
|
|||
jnthn | r: my Any %h{Mu}; say %h.at_key("a") | 21:49 | |
camelia | rakudo 570d1d: OUTPUT«(Any)» | ||
jnthn | ahya | ||
hmmmm. | |||
lizmat: Take two: gist.github.com/jnthn/5595395 | 21:50 | ||
masak | 'night, #perl6 | 21:51 | |
adu | omg, this syntax just blew up my mind: $obj = { pair 1, 2, 3, 4, 5, 6 } | ||
lizmat | night masak! | ||
FROGGS | I think I've got a fix for: "abc" ~~ m?abc? | ||
lizmat | jnthn: testing | ||
r: my $obj = { pair 1, 2, 3, 4, 5, 6 }; say $obj | 21:52 | ||
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Undeclared routine: pair used at line 1. Did you mean '&pairs'?» | ||
dalek | rl6-bench: 00d48f6 | (Geoffrey Broadwell)++ | analyze: Untabify analyze |
21:53 | |
rl6-bench: 3d439fb | (Geoffrey Broadwell)++ | analyze: Allow individual Perls to be clicked on and off using legend in plots |
|||
rl6-bench: 77647e8 | (Geoffrey Broadwell)++ | README: Update dates in README a bit |
|||
rl6-bench: 323bde2 | (Geoffrey Broadwell)++ | README: Small tweaks to README to make it work better as Markdown using: `pandoc -s --toc -f markdown -o README.html README` |
|||
21:57
dorlamm left,
sdo left
|
|||
labster | If I have a statement like `my Cool $foo = 3;`, how do I get the container type from $foo (i.e. Cool instead of Int)? | 21:59 | |
21:59
konundra left
|
|||
FROGGS | r: my Cool $foo = 3; say $foo.^WHAT | 22:00 | |
camelia | rakudo 570d1d: OUTPUT«===SORRY!===Cannot use .^ on a non-identifier method callat /tmp/j0QRyDKbzc:1------> my Cool $foo = 3; say $foo.^WHAT⏏<EOL> expecting any of: method arguments» | ||
FROGGS | r: my Cool $foo = 3; say $foo.WHAT | ||
camelia | rakudo 570d1d: OUTPUT«(Int)» | ||
jnthn | r: my Cool $foo = 3; say $foo.VAR.of | ||
camelia | rakudo 570d1d: OUTPUT«No such method 'of' for invocant of type 'Scalar' in block at /tmp/MObM9NlnUX:1» | ||
jnthn | r: my Cool $foo = 3; say $foo.VAR.type | ||
camelia | rakudo 570d1d: OUTPUT«No such method 'type' for invocant of type 'Scalar' in block at /tmp/BEGDxZB9oO:1» | ||
jnthn | hmm :) | ||
FROGGS | r: my Cool $foo = 3; say $foo.VAR.^methods | ||
camelia | rakudo 570d1d: OUTPUT«Int Num Rat FatRat abs Bridge chr sqrt base expmod is-prime floor round ceiling sign conj rand sin asin cos acos tan atan atan2 sec asec cosec acosec cotan acotan sinh asinh cosh acosh tanh atanh sech asech cosech acosech cotanh acotanh unpolar cis Complex log exp … | ||
FROGGS | r: my Cool $foo = 3; say $foo.VAR.^attr | ||
camelia | rakudo 570d1d: OUTPUT«No such method 'attr' for invocant of type 'Perl6::Metamodel::ClassHOW' in block at /tmp/DYucNTlMtc:1» | ||
jnthn | r: my Cool $foo = 3; say $foo.VAR.name | ||
camelia | rakudo 570d1d: OUTPUT«$foo» | 22:01 | |
jnthn | well, that's something... :) | ||
FROGGS | hehe | ||
22:01
chayin_ joined
|
|||
FROGGS | r: my Cool $foo = 3; say $foo.VAR.^attributes | 22:01 | |
camelia | rakudo 570d1d: OUTPUT«No such method 'gist' for invocant of type 'BOOTSTRAPATTR' in method gist at src/gen/CORE.setting:5259 in method gist at src/gen/CORE.setting:893 in sub say at src/gen/CORE.setting:10920 in block at /tmp/4GXaMOXpbC:1» | ||
FROGGS | sad | ||
lizmat | Success, jnthn++ | 22:02 | |
FROGGS | r: my Cool $foo = 3; print $foo.VAR.^attributes | ||
camelia | rakudo 570d1d: OUTPUT«Nominal type check failed for parameter '$got'; expected Any but got BOOTSTRAPATTR instead in method REIFY at src/gen/CORE.setting:6571 in method reify at src/gen/CORE.setting:5650 in method gimme at src/gen/CORE.setting:6058 in method print at src/gen/CORE… | ||
labster | This is related to fixing RT#93980 , assigning Nil to that would set it to Cool | ||
22:02
chayin left
|
|||
lizmat | jnthn: will run a spectest now to see if it doesn't break anything | 22:02 | |
will let you know tomorrow, ok? | |||
jnthn | lizmat: ok | 22:03 | |
FROGGS, labster: gist.github.com/jnthn/5595470 | |||
Sleep time for me... 'night | |||
lizmat | night jnthn, sleep tight! | ||
jnthn | hope so :) | ||
o/ | |||
labster | night, thanks | ||
22:04
lustlife left
|
|||
lizmat also calling it a night, cu all tomorrow! | 22:05 | ||
22:08
donaldh joined
22:24
donaldh left
22:27
bluescreen100 left
22:31
konundra joined
22:34
v5DsX joined
22:36
v5DsX left
|
|||
adu | omg Ada2012 has a video | 22:38 | |
we should make a video for Perl6 | |||
just have a bunch of people send me interviews with themselves, then I could splice it together and add soundtrack | 22:39 | ||
22:41
gudahtt left
|
|||
timotimo | ... interviews? why not ... space stations and guitars? | 22:41 | |
FROGGS | I sold my guitar ages ago :/ | ||
timotimo | a friend of mine recently introduced me to the erlang movie and its "sequel" | ||
22:43
gdey left
|
|||
flussence | if you want to impress lots of people with a programming language, give them something made in it that runs at 60fps. | 22:43 | |
timotimo | i don't quite see that happen with perl6 soon :| | 22:46 | |
flussence | probably not, but it's something to aim for | ||
FROGGS | not at 60fps, no | ||
flussence | (took a while before Javascript could do that, too) | ||
timotimo | and now there's asm.js and we have unreal engine stuff running in browsers, that's pretty crazy | 22:47 | |
22:48
avuserow joined
|
|||
avuserow | good *, #perl6 :) | 22:49 | |
adu | timotimo: have you seen this? bellard.org/jslinux/ | ||
labster | hello avuserow | ||
avuserow | hey labster, how's it going? | 22:51 | |
labster | pretty good: jnthn++ gave me some code I needed to solve a problem, and I'm going to YAPC:NA. How about you? | 22:52 | |
avuserow | not much here, wrapping up $dayjob soon. I've been enjoying watching jnthn++'s progress on the JVM port too. | 22:54 | |
and I am planning on going to YAPC::NA. Unfortunately I have to leave wednesday evening but I'll be around starting on Saturday, assuming I get my hotel plans figured out | |||
22:56
UTrGm joined
|
|||
adu | flussence: you mean a first person shooter? or frames per second? | 22:57 | |
22:57
skids joined
|
|||
adu | flussence: also, it depends on the setup, because povray is a very nice language, but it usually runs at around 0.00000000001 fps | 22:58 | |
FROGGS | frames per seconds I think | 22:59 | |
adu | FROGGS: I think first person shooter would also fit the theme of the statement | 23:00 | |
23:00
UTrGm left
|
|||
adu | is moritz here? | 23:06 | |
FROGGS | adu: already sleeping I suppose | ||
23:07
jerome__ joined
23:23
xilo left
|
|||
labster | what does 'is pure' mean in rakudo? | 23:25 | |
FROGGS | I believe "having no side effects" | 23:32 | |
23:39
DNQcj joined
23:41
xilo joined
23:43
DNQcj left
23:45
gdey joined
23:58
berekuk left
|