»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'p6: say 3;' or rakudo:, std:, or /msg camelia p6: ... | irclog: irc.perl6.org | UTF-8 is our friend! | feather will shut down permanently on 2015-03-31 Set by jnthn on 28 February 2015. |
|||
ugexe | i dont think so. grepping the kept promises | 00:00 | |
raydiak | yes grepping currently (erroneously) breaks laziness if I'm not mistaken | ||
ugexe | ah. i dont suspect its a bug though. i remember seeing it on one of jnthns slides in an example | 00:02 | |
raydiak | m: my $p = Promise.new; my @p = $p; $p.keep; await Promise.allof(@promises); say 'done'; | 00:04 | |
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/wPludcDqbHVariable '@promises' is not declared. Did you mean 'Promise'?at /tmp/wPludcDqbH:1------> 3; $p.keep; await Promise.allof(@promises7⏏5); say 'done'; expecting any of: pos…» | ||
raydiak | m: my $p = Promise.new; my @p = $p; $p.keep; await Promise.allof(@p); say 'done'; | ||
camelia | rakudo-moar 176304: OUTPUT«done» | ||
raydiak | m: my $p = Promise.new; my @p = $p; start { $p.keep }; await Promise.allof(@p); say 'done'; | ||
camelia | rakudo-moar 176304: OUTPUT«done» | ||
00:05
pierrot joined
|
|||
raydiak | m: my @p; start { my $p = Promise.new; @p.push: $p; $p.keep }; await Promise.allof(@p); say 'done'; | 00:05 | |
camelia | rakudo-moar 176304: OUTPUT«(timeout)» | 00:06 | |
raydiak | m: my @p; await Promise.allof(@p); say 'done'; | ||
camelia | rakudo-moar 176304: OUTPUT«(timeout)» | ||
raydiak | okay, the .allof(@promises) is running before $p2 is pushed...and $p never does get pushed...so awaiting on .allof(empty list) never returns I guess | 00:07 | |
except that makes no sense with grep fixing it | 00:12 | ||
m: my @p; start { my $p = Promise.new; @p.push: $p; $p.keep }; say @p; await Promise.allof(@p); say 'done'; | 00:13 | ||
camelia | rakudo-moar 176304: OUTPUT«Promise.new(scheduler => ThreadPoolScheduler.new(initial_threads => 0, max_threads => 16, uncaught_handler => Callable), status => PromiseStatus::Kept)done» | ||
raydiak | really looks like a laziness bug from there | 00:14 | |
m: my @p; start { my $p = Promise.new; @p.push: $p; $p.keep }; await Promise.allof(@p); say 'done'; | |||
camelia | rakudo-moar 176304: OUTPUT«(timeout)» | ||
00:15
Akagi201_ left,
jack_rabbit_ left
|
|||
danstoner | At this point should I be able to install / build IO::Socket::SSL via panda? | 00:26 | |
Currently erroring on build of OpenSSL | |||
===SORRY!=== Error while compiling lib/OpenSSL/Bio.pm6 | 00:27 | ||
No appropriate parametric role variant available for 'Native' | |||
at lib/OpenSSL/Bio.pm6:40 | |||
00:31
tinyblak joined
00:32
tinyblak_ joined
00:36
tinyblak left
00:40
mr-foobar joined
00:44
Ugator left
00:47
telex left
00:48
telex joined
|
|||
raydiak | danstoner: works here; how old is your rakudo? | 00:59 | |
danstoner | This is perl6 version 2015.02 built on MoarVM version 2015.02 | ||
raydiak | that's why | ||
danstoner | I should download the whole next version of rakudo? I didn't see a way to do an upgrade with panda. | 01:00 | |
raydiak | nope there isn't | ||
danstoner | ok thanks! | 01:01 | |
raydiak | you're welcome :) | ||
if you use rakudobrew it can build the very latest version and reinstall the modules you had installed before (once you're already using it), but don't think it works on windows | 01:03 | ||
ugexe | it did the last time i tried 2 months ago | ||
raydiak | cool | 01:04 | |
01:05
][Sno][ left
|
|||
timotimo | o/ | 01:06 | |
01:06
BenGoldberg left
01:08
TimToady joined
|
|||
raydiak | \o | 01:09 | |
danstoner | I'm on Linux (Ubuntu) | 01:14 | |
rakudo star 2015.03 build process seems to be confused since I already have 2015.02 moar | 01:16 | ||
Building NQP ... | |||
/usr/bin/perl Configure.pl --prefix=/usr/local --backends=moar --make-install | |||
Found /usr/local/bin/moar version 2015.02, which is too old. | |||
That's after I do: | |||
sudo perl Configure.pl --gen-moar --prefix=/usr/local/ | 01:17 | ||
from the extracted 2015.03 directory | |||
I actually first tried: $ sudo perl Configure.pl --backend=moar --gen-moar --prefix=/usr/local/ | 01:20 | ||
timotimo | oh, directly into /usr/local | 01:21 | |
i have a special "install" folder that i use as the prefix so that i can sometimes just throw it away completely | 01:22 | ||
danstoner | Heh. I moved /usr/local/bin/moar out of the way and then it built and used 2015.03 version. | ||
raydiak | idk if that'll be new enough for the feature you're missing but we'll see | 01:23 | |
danstoner | is there a proper "uninstall" then for 2015.02 ? | ||
timotimo | nope | 01:24 | |
danstoner | brb, looks like build is working.... | ||
01:27
yeahnoob joined
|
|||
raydiak | I did get a test failure on IO::Socket::SSL, but dunno if you'll get the same thing, my rakudo is from...30 hours ago | 01:28 | |
01:32
dnmfarrell joined
01:33
dnmfarrell left
01:34
dfarrell joined
|
|||
danstoner | Should I be using a "pastebin" here (for multiple lines) ? | 01:37 | |
Got further but failed again in OpenSSL. | |||
raydiak | yes please...we usually just gist it on github but whereever we can see it is fine | 01:38 | |
01:38
Akagi201 joined
|
|||
danstoner | The latest (30 hours ago) thing... same kind of .tar.gz as the release bundle? | 01:39 | |
raydiak | nope... github.com/tadzik/rakudobrew | ||
danstoner | raydiak: thanks. I'll either look at that or wait for next rakudo star release. | 01:41 | |
p.s. panda needs a --version option | |||
raydiak | it's very easy, just clone rakudobrew into a dir (usually ~/.rakudobrew), put its bin/ in your path, and run 'rakudobrew build moar' whenever you want the latest everything | 01:43 | |
yes we are in a phase where we're working through many questions of deployment like versioning etc | 01:44 | ||
(oh you'll want a rakudobrew build-panda after "build moar" the first time, too) | 01:45 | ||
01:51
Ugator joined
02:00
dayangkun joined
02:01
Ugator left
|
|||
raydiak | .tell sergot github.com/sergot/io-socket-ssl/pull/11 | 02:10 | |
yoleaux | raydiak: I'll pass your message to sergot. | ||
02:12
cognominal left
02:16
noganex joined
|
|||
ugexe | merged | 02:17 | |
raydiak | thanks :) | ||
02:19
noganex_ left
02:25
rmgk_ joined,
rmgk is now known as Guest64908,
Guest64908 left,
rmgk_ is now known as rmgk
02:29
jack_rabbit_ joined
|
|||
skids | m: my @h = (1,2,3); for 0..4 { @h X+= 1,0; }; @h.say | 02:33 | |
camelia | rakudo-moar 176304: OUTPUT«1 2 3» | ||
skids | m: my @h = (1,2,3); for 0..4 { @h X+= 1,0; "OHAI".say }; @h.say | ||
camelia | rakudo-moar 176304: OUTPUT«OHAIOHAIOHAIOHAIOHAI6 7 8» | ||
02:38
xinming_ joined
02:40
dfarrell left
02:41
xinming left
|
|||
raydiak | I think that's the 3rd array heisenbug I've seen today; something recently wrong with laziness perhaps | 02:50 | |
02:51
chenryn joined
|
|||
timotimo | i don't see a reason for there to be any lazyness in there; perhaps sink-related things instead? :\ | 02:54 | |
raydiak is very fuzzy on the lazy and the sinky | 02:58 | ||
probably because those things should be mostly invisible when they work right :) | 02:59 | ||
timotimo | m: my @h = (1,2,3); for 0..4 { say "test"; @h X+= 1,0 }; @h.say | 03:00 | |
camelia | rakudo-moar 176304: OUTPUT«testtesttesttesttest1 2 3» | ||
timotimo | m: my @h = (1,2,3); do for 0..4 { say "test"; @h X+= 1,0 }; @h.say | 03:01 | |
camelia | rakudo-moar 176304: OUTPUT«testtesttesttesttest6 7 8» | ||
timotimo | my first guess: something clones the thing in the last statement of the block in the "for" case but not in the "do for" case? | 03:02 | |
and with that, i'll leave you to it :P | |||
timotimo goes to bed | |||
raydiak | g'night timo | 03:04 | |
timotimo | i hope so! | 03:05 | |
skids | raydiak: I don't think my build is fresher than several days ago. | 03:08 | |
03:13
Erendis42d joined
03:33
jepeway_ left
03:34
jepeway joined
03:41
broquaint left
03:42
thou joined
03:57
skids left
04:06
kaare_ joined
04:07
vendethiel joined,
Akagi201 left
04:08
Akagi201 joined
04:26
konsolebox joined
04:28
chenryn left
04:30
vendethiel left
04:41
mr-foobar left
04:42
mr-foobar joined
04:47
cognominal joined
04:48
[Sno] joined
04:49
vendethiel joined
05:00
kaare_ left
05:02
cognominal left
05:08
mr-foobar left
05:12
vendethiel left
05:13
jack_rabbit_ left
05:29
chenryn joined
05:34
chenryn left
|
|||
dalek | ast: 9c40515 | (David Farrell)++ | S (236 files): fixed appended RT number to be within quoted string |
05:38 | |
ast: 8b45ba8 | usev6++ | S (232 files): Remove merge conflicts for PR 59 |
|||
ast: 80933b1 | usev6++ | S (232 files): Merge PR 59 from dnmfarrell++ (added RT ticket #s to skip/todo tickets) |
|||
ast: c6ffcf7 | usev6++ | S (10 files): Fix wrongly quoted reasons for fudges |
|||
05:43
bartolin left,
bartolin joined
05:45
chenryn joined
|
|||
bartolin | .tell [Coke] yes, there was an update on the pull request. that update didn't resolve all problems though. | 05:46 | |
yoleaux | bartolin: I'll pass your message to [Coke]. | ||
Erendis42d | nice! | 05:47 | |
*v* | 05:48 | ||
05:48
dustinm` left
|
|||
bartolin | .tell [Coke] a few 'RT #xxxxxx' were not moved inside 'reason' correctly and I had to resolve some other conflicts (like removing fudges for parrot and two other changes which happend to roast in the meantime) | 05:49 | |
yoleaux | bartolin: I'll pass your message to [Coke]. | ||
bartolin | .tell [Coke] also, there are still more than 300 fudged tests for rakudo without a RT number. I think they were missed because they are indented. (grep -r '#?rakudo' | grep -c -v 'RT') | 05:53 | |
yoleaux | bartolin: I'll pass your message to [Coke]. | ||
05:58
cdc_ is now known as cdc
06:03
dustinm` joined
06:09
vendethiel joined
06:11
jack_rabbit_ joined
06:12
diana_olhovik_ joined
06:16
Akagi201 left
06:17
jack_rabbit_ left
06:28
go|dfish left
06:31
vendethiel left
06:34
RabidGravy joined
|
|||
RabidGravy | morning | 06:34 | |
06:34
ycaymanbo left
06:35
ycaymanbo joined,
aindilis left
06:36
aindilis joined
06:38
tinyblak joined
06:39
kaare_ joined
06:41
tinyblak_ left
|
|||
Erendis42d | hi | 06:43 | |
06:43
FROGGS left
06:48
jdv79 left,
jdv79 joined
06:50
domidumont joined
06:54
itz_ left
06:55
domidumont left
06:56
domidumont joined
|
|||
masak | morning, #perl6 | 06:56 | |
06:56
go|dfish joined
06:57
Foxcool joined
06:58
[particle] left
|
|||
sjn | \o | 06:58 | |
06:59
[particle] joined
07:00
FROGGS joined,
colomon left
07:01
_mg_ joined,
thou left
07:02
itz joined
07:03
vendethiel joined
|
|||
[ptc] | o/ | 07:04 | |
07:04
Ven joined
07:05
Ven left
07:06
FROGGS left,
itz left
07:13
bjz joined,
itz joined
07:20
FROGGS joined
|
|||
grondilu | have you seen pypyjs.org/ on HN lately? It's sad that there's nothing like that yet for Perl6. | 07:25 | |
lizmat | good morning, #perl6! | 07:26 | |
07:26
vendethiel left
|
|||
lizmat | grondilu: I guess we need more people working on the Javascript backend ? :-) | 07:26 | |
grondilu | I wish I was more talented and less lazy so I could help you guys. But you have my full moral support :P | 07:28 | |
07:28
bjz left
07:30
_mg_ left
|
|||
dalek | Heuristic branch merge: pushed 105 commits to roast/newio by lizmat | 07:31 | |
nwc10 | good *, #perl6 | ||
07:32
pecastro left
|
|||
lizmat | nwc10 o/ | 07:34 | |
did you make it to Dresden ? | |||
nwc10 | yes. train did run to Dresden. | 07:35 | |
Message that point was .... .... .... bus .... .... bus .... bus .... bus .. bus bus | |||
(I did actually follow the .... bits) | |||
but, just in case you didn't get it, there was then a bus onwards to Berlin (the usual destination of the train) | |||
I have power, coffee and internet. | 07:36 | ||
and it looks like the organisers are really organised as there seems to be proper tea too. | |||
07:36
domidumont left
|
|||
FROGGS | so much bus words :o) | 07:36 | |
lizmat | good to hear.... | ||
DrForr | I nearly had to do that on the way to Essen. Strike, but I had a ride Dusseldorf-Essen courtesy woolfy. | 07:37 | |
lizmat is about to take a smaller bus to Hornbaek | |||
nwc10 | however, I am not awake | ||
RabidGravy | being awake is over-rated | ||
lizmat | it's sort of a pre-req for *giving* a presentation | 07:38 | |
nwc10 | I see that the trains are officially (and hence not inaccurately) described as "overnight trains" | ||
"sleeper" - no, wisely no such implied promise of sleep :-) | |||
RabidGravy | lizmat, oh I don't know ;-) | ||
07:40
domidumont joined
|
|||
lizmat | commute to OSDC, part 1 & | 07:41 | |
07:42
lizmat left
07:45
bjz joined
07:46
bjz left
07:50
domidumont left
07:53
virtualsue joined
07:54
darutoko joined,
zakharyas joined
07:57
virtualsue_ joined
07:58
virtualsue left,
virtualsue_ is now known as virtualsue,
abraxxa joined
08:00
domidumont joined
08:07
colomon joined
08:08
Isp-sec joined
08:12
Ven joined
08:14
Ven left
08:15
vendethiel joined
08:18
Ven joined
08:19
[Sno] left
|
|||
Ven | \o, #perl6! | 08:20 | |
08:20
[Sno] joined
|
|||
Erendis42d | ¦* | 08:22 | |
tadzik | hello hello | 08:25 | |
Ven | Do we have a script for shell expansion-like things? I saw gist.github.com/eatonphil/7d57257f65673b343441 go through, and I wondered if we had anything in perl6 to generate some nice Spam :P | 08:26 | |
Ha, sounds like this could be a thing that exists on rosettacode. | 08:27 | ||
dalek | c: 935985d | (Jonathan Stowe)++ | lib/Language/concurrency.pod: Add section for Lock |
08:34 | |
08:34
fhelmberger joined
08:38
vendethiel left
08:42
ShimmerFairy left,
ShimmerFairy joined
08:44
dakkar joined,
domidumont left
08:47
domidumont joined
08:58
colomon left,
darutoko left,
itz left,
chenryn left,
xinming_ left,
sjn left,
Possum left,
b^_^d left,
BooK_ left,
torbjorn left,
ponbiki left,
agentzh left,
vendethiel joined
09:00
colomon joined,
darutoko joined,
itz joined,
chenryn joined,
xinming_ joined,
sjn joined,
Possum joined,
torbjorn joined,
b^_^d joined,
BooK_ joined,
ponbiki joined,
agentzh joined
09:10
espadrine joined
09:14
Ven left
09:16
Akagi201 joined
09:17
bjz joined,
broquaint joined
09:19
vendethiel left
09:35
rindolf joined
09:42
Isp-sec left
09:45
chenryn left
09:46
pecastro joined,
chenryn joined
09:47
Erendis42d left
|
|||
RabidGravy | quiet this morning | 09:54 | |
09:55
vendethiel joined
09:56
yeahnoob left
10:01
RabidGravy left
10:03
FROGGS left
10:07
RabidGravy joined
|
|||
RabidGravy | there isn't anything in core or in a module that already does crypt(3) yet is there? | 10:07 | |
10:14
domidumont left
|
|||
grondilu runs 'ack crypt ~/rakudo' and finds nothing quite relevant | 10:17 | ||
10:18
dayangkun left
|
|||
RabidGravy | 6 line module without POD | 10:18 | |
RabidGravy just does it | |||
10:18
vendethiel left
10:28
FROGGS joined
|
|||
grondilu | std: sub infix:<foo>($, $) is equiv(&infix:<+>) {...} | 10:31 | |
camelia | std 28329a7: OUTPUT«ok 00:00 145m» | ||
grondilu | std: sub infix:<foo> is equiv(&infix:<+>) ($, $) {...} | ||
camelia | std 28329a7: OUTPUT«ok 00:00 145m» | ||
grondilu | I didn't know both of these syntaxes were ok ^ | 10:32 | |
m: sub infix:<foo> is equiv(&infix:<+>) ($, $) {...} | |||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/7N1IAPqST4Missing blockat /tmp/7N1IAPqST4:1------> 3sub infix:<foo> is equiv(&infix:<+>)7⏏5 ($, $) {...} expecting any of: new name to be defined» | ||
grondilu | though apparently rakudo does not accept it | ||
grondilu found out about this while looking at rosettacode.org/wiki/Ternary_logic#Perl_6 | |||
10:35
FROGGS left
|
|||
grondilu | btw what the shorthand for &infix:<+>? | 10:35 | |
std: &[+] | 10:36 | ||
camelia | std 28329a7: OUTPUT«ok 00:00 138m» | ||
grondilu | m: say &[+](1, 2) | 10:37 | |
camelia | rakudo-moar 176304: OUTPUT«3» | ||
grondilu | ok | ||
m: say 1 [&[+]] 2 # :P | 10:40 | ||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/_Vbh6YboYsUnable to parse expression in bracketed infix; couldn't find final ']' at /tmp/_Vbh6YboYs:1------> 3say 1 [&7⏏5[+]] 2 # :P» | ||
grondilu | std: say 1 [&[+]] 2 | ||
camelia | std 28329a7: OUTPUT«5===SORRY!5===Unable to parse bracketed infix at /tmp/et9XcgJD5X line 1:------> 3say 1 7⏏5[&[+]] 2Couldn't find final ']'; gave up at /tmp/et9XcgJD5X line 1:------> 3say 1 [&7⏏5[+]] 2Parse failedFAILED 00:00 136m» | ||
grondilu | std: say 1 [&atan2] 2 | ||
camelia | std 28329a7: OUTPUT«ok 00:00 140m» | ||
grondilu | m: say 1 [&atan2] 2 | ||
camelia | rakudo-moar 176304: OUTPUT«0.463647609000806» | ||
grondilu | m: say [&atan2] 1 .. 5 | 10:41 | |
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/b7EOykP4mZTwo terms in a rowat /tmp/b7EOykP4mZ:1------> 3say [&atan2]7⏏5 1 .. 5 expecting any of: infix infix stopper postfix statement end …» | ||
grondilu | m: say [[&atan2]] 1 .. 5 | ||
camelia | rakudo-moar 176304: OUTPUT«0.00766290033960824» | ||
grondilu | m: say [\[&atan2]] 1 .. 5 | 10:42 | |
camelia | rakudo-moar 176304: OUTPUT«1 0.463647609000806 0.153336049410316 0.038315251658701 0.00766290033960824» | ||
grondilu | so that's how I can use the triangular reduce with an arbitrary binary function. | 10:43 | |
m: say [\{ $^a + $^b }] 1 .. 5 | |||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/ovhET59CJlTwo terms in a rowat /tmp/ovhET59CJl:1------> 3say [\{ $^a + $^b }]7⏏5 1 .. 5 expecting any of: infix infix stopper postfix statement end…» | ||
grondilu | m: say [\[{ $^a + $^b }]] 1 .. 5 | ||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/avhbabhvbqTwo terms in a rowat /tmp/avhbabhvbq:1------> 3say [\[{ $^a + $^b }]]7⏏5 1 .. 5 expecting any of: infix infix stopper postfix statement end…» | ||
grondilu | hum, not quite | 10:44 | |
m: say 1 [{ $^a + $^b }]] 2 | |||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/uOLO0bB8VIMissing infix inside []at /tmp/uOLO0bB8VI:1------> 3say 1 [7⏏5{ $^a + $^b }]] 2 expecting any of: bracketed infix infix infix stopper» | ||
grondilu | m: say 1 [{ $^a + $^b }] 2 | ||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/km7_JKs1DxMissing infix inside []at /tmp/km7_JKs1Dx:1------> 3say 1 [7⏏5{ $^a + $^b }] 2 expecting any of: bracketed infix infix infix stopper» | ||
grondilu | m: say 1 [sub { $^a + $^b }] 2 | 10:45 | |
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Gdgff51hN0Missing infix inside []at /tmp/Gdgff51hN0:1------> 3say 1 [7⏏5sub { $^a + $^b }] 2 expecting any of: bracketed infix infix infix stopper» | ||
10:47
Ven_ joined
10:51
FROGGS joined
10:53
uncleyear left
|
|||
FROGGS | m: say "abab".match(rx/ab/, :g).WHAT | 10:54 | |
camelia | rakudo-moar 176304: OUTPUT«(List)» | ||
FROGGS | m: say "abab".match(rx/ab/, :2x).WHAT | ||
camelia | rakudo-moar 176304: OUTPUT«(Parcel)» | ||
FROGGS | why is that? | ||
10:55
uncleyear joined
|
|||
FROGGS | m: say "abab".match(rx/ab/, :1g).WHAT | 10:59 | |
camelia | rakudo-moar 176304: OUTPUT«(List)» | ||
11:00
telex left
11:02
telex joined
|
|||
FROGGS | 'think I found it | 11:03 | |
11:04
andreoss joined
|
|||
andreoss | m: my @x = 1,2,3; my @y = 0,2,5; say max @x Z<=> @y; | 11:04 | |
camelia | rakudo-moar 176304: OUTPUT«More» | ||
FROGGS | okay, my regex problem boils down to this: | 11:14 | |
m: say 42 ~~ (42, 43); say 42 ~~ (42, 43).list | |||
camelia | rakudo-moar 176304: OUTPUT«False42 43» | ||
FROGGS | my fix will be to call .list on a subscript that produces a parcel, though I wonder if List.ACCEPTS is correct at all | 11:18 | |
11:20
Akagi201 left
|
|||
dalek | kudo/nom: 240cf01 | FROGGS++ | src/core/Str.pm: RT #125038 fix smart matching against m:2x/.../ |
11:21 | |
synbot6 | Link: rt.perl.org/rt3/Public/Bug/Display...?id=125038 | ||
dalek | ast: 9277997 | FROGGS++ | S05-modifier/repetition.t: RT #125038 unfudge now passing rx:2x/.../ tests |
11:22 | |
synbot6 | Link: rt.perl.org/rt3/Public/Bug/Display...?id=125038 | ||
11:24
Akagi201 joined
11:26
chenryn left,
uncleyear left,
uncleyear joined
|
|||
andreoss | is there a nicer way to iterate trough enums than MyEnum.enums.sort(*.value).keys.map({MyEnum($_)}) ? | 11:30 | |
Ven_ | you want to iterate on values? | 11:31 | |
m: enum X <a b c>; say X.enums.values.sort | 11:32 | ||
andreoss | m: enum X<A B C D E F>; my @e = X.enums.sort(*.value).keys; say @e.perl; | ||
camelia | rakudo-moar 176304: OUTPUT«0 1 2» | ||
rakudo-moar 176304: OUTPUT«[0, 1, 2, 3, 4, 5]<>» | |||
andreoss | m: enum X<A B C D E F>; my @e = X.enums.sort(*.value).keys.map({MyEnum($_)}); say @e.perl; | 11:33 | |
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Undeclared::Symbols===SORRY!===Error while compiling, type X::Undeclared::Symbols routine_suggestion: (unstringifiable object) post_types: (unstringifiable o…» | ||
andreoss | m: enum X<A B C D E F>; my @e = X.enums.sort(*.value).keys.map({X($_)}); say @e.perl; | ||
camelia | rakudo-moar 176304: OUTPUT«[X::A, X::B, X::C, X::D, X::E, X::F]<>» | ||
11:34
domidumont joined
|
|||
andreoss | why no .list on enums? | 11:35 | |
grondilu registered to a R forum in order to answer a question about a R slang: r.789695.n4.nabble.com/Integrate-R-...06844.html | 11:39 | ||
RabidGravy | boo! github broken | 11:52 | |
[ptc] wonders who's trying to hack github now... | 11:56 | ||
11:56
chenryn joined
|
|||
[ptc] | is it possible for github users to do a ddos attack on the attackers? ;-) | 11:56 | |
dalek | osystem: 1ea00fe | (Jonathan Stowe)++ | META.list: Add Crypt::Libcrypt |
11:58 | |
RabidGravy | there, it actually took longer to write the POD and README than make the module itself | 11:59 | |
12:02
Sqirrel left
12:06
Sqirrel joined
|
|||
andreoss | m: enum X<A B C>; enum Q<D E F>; multi infix:«~~»(X $a, Q $b) { True # all X match all Q }; say A ~~ F; | 12:08 | |
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Syntax::Missing===SORRY!===Cannot iterate object with P6str representation» | ||
andreoss | works in REPL | 12:09 | |
RabidGravy | not for me it doesn't | 12:11 | |
"2015.04-153-g31f3db1 built on MoarVM version 2015.04-57-g0c052ea" | |||
masak | andreoss: that '#' turns everything after it into a comment. | 12:12 | |
m: enum X<A B C>; enum Q<D E F>; multi infix:«~~»(X $a, Q $b) { True | |||
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Syntax::Missing===SORRY!===Cannot iterate object with P6str representation» | ||
masak | same error. | 12:13 | |
(which is Less Than Awesome, granted) | |||
andreoss | m: enum X<A B C>; enum Q<D E F>; multi infix:«~~»(X $a, Q $b) { True #`{all X match all Q} }; say A ~~ F; | ||
camelia | rakudo-moar 176304: OUTPUT«False» | ||
masak submits LTA rakudobug | |||
m: sub foo { True | |||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/IPnz50B8lgMissing blockat /tmp/IPnz50B8lg:1------> 3sub foo { True7⏏5<EOL> expecting any of: statement end statement modifier statement modifier loop» | ||
masak | hm. | ||
m: multi infix:«~~»($a, $b) { True | 12:14 | ||
camelia | rakudo-moar 176304: OUTPUT«5===SORRY!5=== Error while compiling /tmp/7JzNgtrdLjMissing blockat /tmp/7JzNgtrdLj:1------> 3multi infix:«~~»($a, $b) { True7⏏5<EOL> expecting any of: statement end statement modifier statement modi…» | ||
masak | m: enum X <A>; multi infix:«~~»(X $a, X $b) { True | ||
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Syntax::Missing===SORRY!===Cannot iterate object with P6str representation» | ||
masak | heh, the enum is an irreducible part of the LTA bug. :) | 12:15 | |
m: enum X <A>; sub infix:«~~»(X $a, X $b) { True | |||
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Syntax::Missing===SORRY!===Cannot iterate object with P6str representation» | ||
masak | m: enum X <A>; sub foo(X $a) { True | ||
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Syntax::Missing===SORRY!===Cannot iterate object with P6str representation» | ||
12:16
brrt joined
|
|||
andreoss | how i overload ~~ here? | 12:16 | |
brrt | i think you want ACCEPTS | ||
masak | aye | ||
12:17
Vlavv left
|
|||
masak | rhs.ACCEPTS(lhs), basically | 12:17 | |
brrt | m: class A { method ACCEPTS($x) { 1; } }; my $a = A.new; say $a ~~ "Foobar"; | ||
camelia | rakudo-moar 176304: OUTPUT«False» | ||
12:17
kaare_ left
|
|||
brrt | uhm, i'm doing something wrong clearly | 12:17 | |
[ptc] | andreoss: did you see the comment I left on PR #24 on perl6/examples? | 12:18 | |
andreoss: is that just a merge commit? | 12:19 | ||
brrt | oh by the way... how much time/tuits would it cost to host git repositories of rakudo/nqp/moar somewhere on perl6.org | ||
oh, rhs.ACCEPTS(lhs), i'm reading wrong | 12:21 | ||
andreoss | [ptc]: i didn't mean this pull request, sorry, i was trying to merge my own branches | ||
brrt | m: class A { method ACCEPTS($x) { True; } }; my $a = A.new; say "foobar" ~~ $a; | ||
camelia | rakudo-moar 176304: OUTPUT«True» | ||
12:22
espadrine left,
tinyblak left
|
|||
[ptc] | andreoss: no problems! I just wondered | 12:24 | |
andreoss: it looked like a merge :-) | |||
andreoss: is it ok if I close the PR? | |||
andreoss | i've already closed it | ||
[ptc] | andreoss: ah! I hadn't noticed, sorry | ||
12:25
Akagi201 left,
vendethiel joined
12:28
rarara joined
|
|||
dalek | pan style="color: #395be5">perl6-examples: be215ad | paultcochrane++ | categories/cookbook/01strings/01-01substrings.pl: Explain why Perl5 subst code doesn't work in Perl6 |
12:29 | |
pan style="color: #395be5">perl6-examples: 539edad | paultcochrane++ | categories/cookbook/01strings/01-03exchanging-values.pl: Minor whitespace improvement |
|||
pan style="color: #395be5">perl6-examples: fe9c110 | paultcochrane++ | categories/cookbook/01strings/01-19trim-whitespace.pl: Trim leading whitespace in pod ... oh the irony |
|||
pan style="color: #395be5">perl6-examples: 0c6ea29 | paultcochrane++ | categories/cookbook/01strings/01-13upper-lower-case.pl: Trim more trailing whitespace |
|||
pan style="color: #395be5">perl6-examples: 2d3a1a1 | paultcochrane++ | t/categories/cookbook/01strings.t: Add tests for the cookbook 01strings examples |
|||
12:29
_mg_ joined
12:30
Vlavv joined
12:34
rararara joined,
rarara left
12:39
tinyblak joined
|
|||
[Coke] | brrt: if it took any energy to host git on perl6.org it'd be too much, I think. | 12:44 | |
yoleaux | 05:46Z <bartolin> [Coke]: yes, there was an update on the pull request. that update didn't resolve all problems though. | ||
05:48Z <bartolin> [Coke]: a few 'RT #xxxxxx' were not moved inside 'reason' correctly and I had to resolve some other conflicts (like removing fudges for parrot and two other changes which happend to roast in the meantime) | |||
05:53Z <bartolin> [Coke]: also, there are still more than 300 fudged tests for rakudo without a RT number. I think they were missed because they are indented. (grep -r '#?rakudo' | grep -c -v 'RT') | |||
12:47
Ven_ left
|
|||
brrt | [Coke] really? | 12:49 | |
but everybody hates on github | |||
mostly DDoS-ers | |||
maybe even as a backup? | |||
dalek | pan style="color: #395be5">perl6-examples: 1412230 | paultcochrane++ | .travis.yml: Install dependency Algorithm::Soundex |
12:50 | |
12:51
cschwenz joined,
cschwenz left
|
|||
[Coke] | brrt: we have dozens of backups. | 12:51 | |
12:56
vendethiel left,
Ven_ joined,
muraiki joined,
espadrine_ joined
|
|||
brrt | that is true, of course | 12:56 | |
12:56
perlvim joined
|
|||
brrt | i'm just being idealistic perhaps :-) | 12:56 | |
12:59
perlvim_ joined,
Ven_ left
|
|||
RabidGravy | leaving aside the DDoS thing for the moment, the winning advantage of using github is that it lowers the barrier to contribution - there are going to be drive-by patches from people who wouldn't otherwise be bothered to mail a patch | 13:00 | |
13:01
perlvim left
13:03
_mg_ left
|
|||
masak | also, Git *is* distributed, so even if Github is down, most of the day-to-day work can still be done. it's just the "push to colleagues" bit that gets delayed. | 13:04 | |
13:04
_mg_ joined
|
|||
FROGGS | well you can easily gist... ohh wait | 13:06 | |
brrt | fair enough. i'm not suggesting we move from github to our own server, just that we have an authoritive and available repository | 13:07 | |
masak | m: enum X <A>; sub foo(A $a) { True | ||
camelia | rakudo-moar 176304: OUTPUT«Error while constructing error object:Could not locate compile-time value for symbol Syntax::Missing===SORRY!===Cannot iterate object with P6str representation» | ||
masak | ...and it doesn't have to be a type object (X), it can also be an enum (A). | 13:08 | |
perlvim_ | masak: Perl 6's CPAN is on github, Could we use backup git site to download module? META.info => "source-url" : [ "git://github.com/masak/ufo.git" | 13:12 | |
, "git://git.oschina.net/masak/ufo.git"] | |||
dalek | p/jsoff: 4723b26 | FROGGS++ | src/vm/moar/QAST/QASTOperationsMAST.nqp: foo |
||
masak | perlvim_: as long as Panda knows what to do with that information, sure. | ||
(but I'm not one to decide that. someone else may have a better overview of META.info and the tradeoffs involved.) | 13:13 | ||
13:14
dayangkun joined
|
|||
tadzik | what's up? | 13:15 | |
oh, hmm | |||
so a list of mirrors embedded in each META.info, basically | 13:16 | ||
masak | is there already such a functionality in META.info | 13:17 | |
if not, I was going to suggest putting it on a separate (optional) property | |||
`mirror-urls` or suchlike | |||
for back-compat, and to not overload the type of the `source-url` prop | |||
tadzik | it feels like we should rather have mirrors of the entire ecosystem, and teach panda to handle those | 13:18 | |
as cpan has | |||
masak | aye | ||
13:19
perlvim_ left
13:25
skids joined
13:31
FROGGS left,
chenryn left
13:32
kaare_ joined
13:33
FROGGS joined
|
|||
andreoss | my multi method ACCEPTS(MyEnum: Int $a) { True } | 13:34 | |
is this a way to define ~~ for enums? | |||
13:34
_mg_ left
|
|||
andreoss | or any method | 13:34 | |
dalek | pan style="color: #395be5">perl6-examples: 52a2054 | paultcochrane++ | t/003-categories.t: Check number of appended subcategories |
13:45 | |
pan style="color: #395be5">perl6-examples: 5a57ec7 | paultcochrane++ | t/003-categories.t: Fix subcategories list ordering assumption |
|||
13:51
domidumont left
13:52
cognominal joined,
domidumont joined
13:54
Akagi201 joined
13:55
_mg_ joined
13:59
_mg_ left
|
|||
RabidGravy | I am right in saying that a CStruct is not going to work for something like struct foo { char bar[4]; char zub[32]; } because you can't specify the length? | 14:04 | |
14:07
domidumont left
14:08
domidumont joined
|
|||
skids | RabidGravy: last time I checked array[] could not be a member. Maybe char char char char ... as a workaround? | 14:08 | |
14:09
larion joined
|
|||
skids | The plan is for that to eventually work, I think. | 14:09 | |
RabidGravy | I think it's probably make a shim that copies the explicit arrays to char * in an otherwise similar structure | 14:11 | |
[Coke] finds himself having to convert some svn repos to git, and the recommend instruction set (john.albin.net/git/convert-subversion-to-git) dies on step 5. anyone here have a favorite set of instructions for the conversion? | 14:12 | ||
nwc10 | I used the (IIRC) KDE stuff at work | 14:15 | |
I'm in Dresden. Work is in Vienna, and the machine in question has been hibernated, so I can't directly check | 14:16 | ||
this thing, I think | |||
techbase.kde.org/Projects/MoveToGi...ingSvn2Git | |||
14:17
dayangkun left
|
|||
timotimo | andreoss: you can mix in a role into your enum and that role can implement any method | 14:21 | |
[Coke] | nwc10: I will use that as a last resort as I'm on osx. Danke. | 14:23 | |
nwc10 | it's really fast. | 14:24 | |
the conversion is faster than svnadmindump load. | |||
on a machine with an SSD | |||
[Coke] | nwc10: all the conversions I've seen are via git-svn at this point | 14:25 | |
nwc10 | I used git-svn at previous employer. | ||
I found this one better, because it's faster (so re-doingit is less work) and alos it can map paths and move stuff around | |||
(although git filter-branch wasn't in my toolbox back then) | 14:26 | ||
at ex-employer I cleaned some things up by using sed on the Gb sized admin dumps | |||
14:28
zostay joined
|
|||
btyler | [Coke]: I've used github.com/nirvdrum/svn2git#readme with success ... that looks like something different from the KDE link, since the KDR thing talks about compiling Qt, where this is just a ruby script | 14:29 | |
nwc10 | the KDE thing does need Qt - I found that the 14.04 Ubuntu LTS packages were good enough | ||
($foo was good enough, I think that $foo was 14.04) | |||
14:32
chenryn joined
|
|||
nwc10 | FROGGS++ # "schlau" | 14:35 | |
[Coke] | nwc10: tried to clone the svn2git repo, got: fatal: Could not read from remote repository. I'll keep digging, but fyi. | ||
nwc10 | oh. gitorious. closing down. | ||
first obvious casulaty. | |||
I (obviously) have a clone on work desktop | 14:36 | ||
14:37
chenryn left
|
|||
PerlJam | Um ... jnthn == brrt? news.perlfoundation.org/2015/05/per...succe.html | 14:37 | |
timotimo | that's strange | 14:38 | |
jnthn + core dev fund + "first grant awarded" makes sense | 14:39 | ||
but the "advancing the moarvm jit" seems to be the wrong one | |||
did someone send a mail to karen yet? | |||
[Coke] | I'll email Karen | ||
timotimo | [Coke]++ | 14:40 | |
TimToady | don't expect a quick response, it's after midnight in Japan | ||
[Coke] | done. | 14:41 | |
yes, but if I wait to send the email, I'll forgot. :) | 14:42 | ||
TimToady | it does seem to indicate that they're classified together somehow in someone's head :) | 14:43 | |
14:43
vendethiel joined
|
|||
[Coke] | photos2.meetupstatic.com/photos/eve...59179.jpeg - shot of the hackathon. I'm the baldy standing up in the back. :) | 14:43 | |
sitting near me are the folks hacking on p6 that day. | 14:44 | ||
timotimo | oh, many persons | 14:45 | |
PerlJam | nice | ||
[Coke] | btyler: not to self. read -all- the docs on sv2git before running any of it. :) | 14:47 | |
hoelzro | morning #perl6 | ||
PerlJam | [Coke]: Is that a kid kinda on the right side of the image (in a blue shirt)? Or am I mistaken? | 14:48 | |
[Coke] | someone brought his kid who was hacking, but not perl. (on some kid friendly GUI language toolkit) | 14:49 | |
andreoss | m: enum Hand <Left Right>; Hand.enums.sort(*.value).keys.map({Hand($_)}).perl.say; | ||
camelia | rakudo-moar 240cf0: OUTPUT«(Hand::Left, Hand::Right)» | ||
andreoss | is there a better way to make a list from enum? | ||
btyler | [Coke]: uh oh, that sounds like a burned finger. something I should have warned about? | 14:50 | |
I did this sufficiently long ago that I only remember that it worked, and not the various "ouch" moments along the way | 14:51 | ||
14:51
thou joined
|
|||
PerlJam | andreoss: why do you want a list from an enum? Maybe Enum should have a .list method (or are you creating just that?) | 14:52 | |
andreoss | PerlJam: to iterate through it, i wonder too why there's no .list for Enum | 14:53 | |
moritz | m: enum Hand <Left Right>; say Hand.pairs.perl | ||
camelia | rakudo-moar 240cf0: OUTPUT«()» | ||
moritz | m: enum Hand <Left Right>; say Hand.enums.perl | ||
camelia | rakudo-moar 240cf0: OUTPUT«{:Left(0), :Right(1)}<>» | ||
timotimo | m: enum Hand <Left Right>; say @(Hand).perl | 14:55 | |
camelia | rakudo-moar 240cf0: OUTPUT«()» | ||
timotimo | mhm, mh | ||
shouldn't we want to have this? | |||
TimToady | from examination of EnumMap.pm, it does appear to be hard to achieve | 14:57 | |
by which I mean, there's no current method to do that, but probably oughta be | 14:58 | ||
jnthn | masak: Calling anything X is asking for trouble, since it hides the exceptions namespace | ||
yoleaux | 5 May 2015 22:30Z <raydiak> jnthn: I've added the gdb backtrace to github.com/jnthn/grammar-generative/issues/1 | ||
[Coke] | does it make sense that we renamed uniq to unique but skipped Exception and went right to X ? | 14:59 | |
moritz | yes, because exception class names tend to become rather long already | 15:00 | |
doc.perl6.org/type-exceptions.html | |||
PerlJam | (which would be fine if they weren't used so much :) | 15:01 | |
jnthn | raydiak: Thanks....thought looks...weird. | ||
TimToady | and we renamed unique more for semantic distinction than for huffman | ||
jnthn | *though | ||
Hah, TPF seems to have confuesd me and brrt. Maybe it's 'cus we're both wtht vwls... :) | 15:02 | ||
timotimo | maybe i should become tmtm just to make matters a bit more ... interesting | 15:03 | |
moritz | mrtz! | 15:05 | |
jnthn | timotimo: Such tradmark! | ||
timotimo | tmtm and tmtd | ||
what could go wrong | |||
jnthn | *trademark | ||
timotimo | ™™, yeah | ||
geekosaur | or they'll wonder why a GPS is contributing :p | ||
timotimo | gksr! | ||
geekosaur | well, it'd at least be different from being confused with Russ :) | 15:06 | |
brrt | oh, yeah, i wanted to tell you about that jnthn :-) | 15:10 | |
it is in fact true that nthr f s hv vwls n r nms | |||
jnthn | ts sprsng hw nmprtnt thy r | 15:12 | |
huf | hmm. i think the r-s are the vowels in your name. | ||
timotimo | just compare the unique count of words with and without vowels in /usr/share/dict/words | 15:13 | |
TimToady | yes, any contiuant can be forced into the middle of a syllable: see also "psst" | ||
huf | and that makes them a vowel of some sort :) | ||
TimToady | *continuant | ||
timotimo | n pssnt. | ||
huf | i support free movement between the sound classes | ||
TimToady | .oO(no pissant?) |
||
15:15
lolisa left
|
|||
skids | www.ecenglish.com/learnenglish/less...n-you-read | 15:15 | |
15:15
liztormato joined
|
|||
liztormato waves from a ferry | 15:16 | ||
brrt | why isn't y regarded a vowel... | ||
brrt waves back | |||
timotimo | it sometimes is | ||
jnthn | liztormato: I sea the journey's going well... :) | ||
15:16
larion left
|
|||
brrt | ah, such punning | 15:16 | |
jnthn | liztormato: Is that the Puttgarden one? | ||
liztormato | Aye | ||
jnthn | Enjoy it while it lasts. | 15:17 | |
timotimo | "waves" ... "ferry" ... | ||
lztrmt is still recognizable, too | |||
liztormato | Only 10 more minutes ;-) | ||
jnthn | Well, it's the "only a few more years" that I was thinking about. | ||
timotimo | in this scheme, would nwc10 become just nwc or do we consider numbers closer to consonants than to vowels? | 15:18 | |
jnthn | (They're building a tunnel.) | ||
PerlJam | brrt: y is a vowel in the word "hymn" | ||
liztormato | The "tax-free" shop is noticeable more empty now ;-) | ||
PerlJam | brrt: and w is a vowel in the word "cwm" | ||
brrt: and english is a crazy language ;) | |||
jnthn | ;-) | ||
timotimo | i wonder if camelia should have some environment variables set to things from the channel; so we can %*ENV<nicks>.words.pick or something :D | 15:19 | |
%*ENV<lastline>, %*ENV<lastnick> ... the possibilities are endless :) | |||
jnthn | When they build the tunnel, then I think Europe will be down to 1 place where they drive a train onto a ferry :( | ||
timotimo | and perhaps a module "use IRC" that makes those simpler to use | ||
jnthn | Well, finish building the tunnel, since I think they're already well on with it. | 15:20 | |
brrt | what, w is a vowel in ... what even | ||
liztormato | Well, no train on the one we're on ;-( | ||
brrt | what is 'cwm' | ||
PerlJam | brrt: www.merriam-webster.com/dictionary/cwm | 15:21 | |
jnthn | Ah, a loan from Welsh | 15:22 | |
liztormato | Disembarking& | ||
jnthn | That explains everything :p | ||
15:22
liztormato left
|
|||
brrt | right | 15:22 | |
15:29
vendethiel left
15:30
vendethiel joined
15:31
gfldex joined
15:33
chenryn joined
15:37
chenryn left
|
|||
masak | jnthn: heh -- I'm usually the one to tell people about the X:: namespace :P | 15:38 | |
15:38
sjn left
|
|||
masak | jnthn: I don't think it's actually bad in itself -- Perl 6 can handle the ambiguity, and all the X::** classes are still there. | 15:38 | |
timotimo | does anybody want to implement something clever for this error message? | ||
m: when X::Test { } | |||
camelia | rakudo-moar 240cf0: OUTPUT«5===SORRY!5===Function X::Test needs parens to avoid gobbling blockat /tmp/ZH1w8GsJCs:1------> 3when X::Test { }7⏏5<EOL>Missing block (apparently taken by 'X::Test')at /tmp/ZH1w8GsJCs:1------> 3when X::Test { }7⏏5<EOL>» | ||
15:38
sjn joined
|
|||
masak | it's more like it's bad style. | 15:38 | |
japhb | I saw a contest once to create a valid English sentence using every letter exactly once. The results of the contest: every winning entrant used the word 'cwm'. | 15:39 | |
15:39
muraiki left,
Akagi201 left
|
|||
timotimo | like, if the actual function hasn't been declared yet, suggest that maybe the user meant to declare/import a class with that name? | 15:39 | |
m: when WhatIsThis { } | |||
camelia | rakudo-moar 240cf0: OUTPUT«5===SORRY!5===Function WhatIsThis needs parens to avoid gobbling blockat /tmp/E9AS6HKwXR:1------> 3when WhatIsThis { }7⏏5<EOL>Missing block (apparently taken by 'WhatIsThis')at /tmp/E9AS6HKwXR:1------> 3when WhatIsThis { }7⏏…» | ||
timotimo | doesn't even need the X:: | ||
15:39
muraiki joined
15:40
brrt left
15:48
pecastro left
|
|||
PerlJam | japhb: there's another welsh word they could have used at the sacrifice of a few letters: crwth | 15:48 | |
15:52
cognominal left
|
|||
japhb | PerlJam: I'm guessing r, t, and h were too valuable for fitting other words into the sentence. But getting c, w, and m in one shot? Pure win. :-) | 15:53 | |
15:54
mr-foobar joined
|
|||
PerlJam | www.fun-with-words.com/pang_example.html has one with crwth: Squdgy fez, blank jimp crwth vox! | 15:55 | |
humans are a strange lot | |||
japhb | So true. | ||
TimToady | std: when X::Test { } | 15:59 | |
camelia | std 28329a7: OUTPUT«5===SORRY!5===Function 'X::Test' needs parens to avoid gobbling block at /tmp/G638dwpU20 line 1:------> 3when X::Test7⏏5 { }Missing block (apparently gobbled by 'X::Test') at /tmp/G638dwpU20 line 1:------> 3when X::Test { }7⏏5<EOL> …» | ||
TimToady | std: X::Test | 16:00 | |
camelia | std 28329a7: OUTPUT«5===SORRY!5===Undeclared name: 'X::Test' used at line 1Check failedFAILED 00:00 134m» | ||
TimToady | m: X::Test | ||
camelia | rakudo-moar 240cf0: OUTPUT«Could not find symbol '&Test' in any find_method_fallback at src/gen/m-Metamodel.nqp:2914 in any find_method at src/gen/m-Metamodel.nqp:1053 in block <unit> at /tmp/7xi7QvnZWg:1» | ||
16:02
diana_olhovik_ left
|
|||
TimToady | that's probably LTA | 16:02 | |
adding & assumes it's a function | |||
and find_method_fallback should be invisible in its failure to find one | 16:03 | ||
m: X::NoNeSuCh | 16:04 | ||
camelia | rakudo-moar 240cf0: OUTPUT«Could not find symbol '&NoNeSuCh' in any find_method_fallback at src/gen/m-Metamodel.nqp:2914 in any find_method at src/gen/m-Metamodel.nqp:1053 in block <unit> at /tmp/XGD1kItSMy:1» | ||
masak | m: enum D <A>; sub foo(D $a) { True | ||
camelia | rakudo-moar 240cf0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Qiqny5X8VKMissing blockat /tmp/Qiqny5X8VK:1------> 3enum D <A>; sub foo(D $a) { True7⏏5<EOL> expecting any of: statement end statement modifier statement modif…» | ||
masak | oh! so the choice of `X` actually matters o.O | 16:05 | |
m: enum IO <A>; sub foo(IO $a) { True | |||
camelia | rakudo-moar 240cf0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/1h05FMUQXkMissing blockat /tmp/1h05FMUQXk:1------> 3enum IO <A>; sub foo(IO $a) { True7⏏5<EOL> expecting any of: statement end statement modifier statement mod…» | ||
TimToady | m: XXX::NoNeSuCh | ||
camelia | rakudo-moar 240cf0: OUTPUT«Could not find symbol '&NoNeSuCh' in any find_method_fallback at src/gen/m-Metamodel.nqp:2914 in any find_method at src/gen/m-Metamodel.nqp:1053 in block <unit> at /tmp/G_CW5vYa9M:1» | ||
TimToady | not there :) | ||
masak | m: sub foo(X $a) { True | 16:06 | |
16:06
zakharyas left
|
|||
camelia | rakudo-moar 240cf0: OUTPUT«5===SORRY!5===X cannot be used as a type on a parameterat /tmp/c8cpb9Q2BA:1------> 3sub foo(X7⏏5 $a) { TrueMissing blockat /tmp/c8cpb9Q2BA:1------> 3sub foo(X $a) { True7⏏5<EOL> expecting any of: statement …» | 16:06 | |
TimToady | huh? | ||
masak | TimToady: it's an "uninhabited" namespace. | ||
m: enum X <A>; my X $x; say $x | 16:07 | ||
camelia | rakudo-moar 240cf0: OUTPUT«(X)» | ||
16:11
fhelmberger left
16:12
uncleyear left,
uncleyear joined
16:13
domidumont left
16:15
vendethiel left
|
|||
TimToady | well, then it should say something more like that | 16:16 | |
jnthn | Well, it's more that it's a package, so not something you can type-check against | 16:18 | |
Same with module | |||
16:21
perlvim joined,
tadzik left
16:22
tadzik joined
16:25
perlvim_ joined
|
|||
perlvim_ | p6: our $*foo = 1; say MY::<$*foo>; say OUR::<$*foo>; | 16:27 | |
camelia | rakudo-moar 240cf0: OUTPUT«1(Any)» | ||
jnthn | m: class A { has $*foo } | 16:28 | |
camelia | ( no output ) | ||
jnthn | Heh. :) | ||
Yeah, we should refuse to compile that :) | |||
(and the our one) | |||
16:28
perlvim left
16:29
perlvim__ joined,
perlvim_ left
|
|||
perlvim__ | p6: my \var = 1; var.say; | 16:31 | |
camelia | rakudo-moar 240cf0: OUTPUT«1» | ||
16:31
espadrine_ left
|
|||
timotimo | oh, what's the meaning behind the "perlvim" name? :) | 16:32 | |
perlvim__ | timotimo: ssq | ||
ssqq | |||
16:34
perlvim__ left
16:36
ssqq joined
16:38
vendethiel joined,
diana_olhovik_ joined
|
|||
timotimo | this is why you don't set up your company's account to automatically retweet everything with your name in it ... | 16:42 | |
twitter.com/alpnames | |||
ssqq | timotimo: I can't landing it.(twitter,facebook,etc) | 16:46 | |
timotimo | ah | 16:47 | |
ssqq | timotimo: even wordpress.com | ||
timotimo | well, basically i pointed out their "free domain for a year, then extremely expensive renewal" thing with the words "what a bargain!" | ||
and they retweeted it | |||
immediately | |||
masak | "what speedy feedback!" | 16:49 | |
ssqq | timotimo: I have serval domain, | ||
timotimo: you means I'd better register a IRC username? | 16:50 | ||
timotimo: I wonder if any subroutine's signature could save in one scalar container, then how to replace it to an exists subroutine signature? | 16:53 | ||
timotimo | i'm not sure i understand; do you mean something like { my $the_signatue = &my_subroutine.^signature }? | 16:54 | |
and then { &my_subroutine.^replace_signature($other_signature) } ? | |||
ssqq | timotimo: yes, it is. | ||
timotimo | hmm. the signature is used when the code inside the signature is compiled | 16:55 | |
PerlJam | why would you want to replace a subroutine's signature? | ||
timotimo | i don't know if it's possible to replace it with something very different | ||
well, there probably is some use case | 16:56 | ||
ssqq | timotimo: If we could save a piece of code lazily, and then dynamically eval it. just like quote of `lisp`. | 16:57 | |
timotimo | i don't know much lisp :( | ||
can you write some pseudocode? | |||
ssqq | p6: my @code = \(sub name ($x, $y) { $x + $y }); my $signature = @code[2]; | 16:58 | |
camelia | ( no output ) | ||
timotimo | p6: my &sub = sub name ($x, $y) { $x + $y }; my $signature = &sub.signature; say $signature.perl | 16:59 | |
16:59
FROGGS left
|
|||
camelia | rakudo-moar 240cf0: OUTPUT«:(Any $x, Any $y)» | 16:59 | |
timotimo | p6: my $signature = :($x, $y); say $signature.perl | ||
camelia | rakudo-moar 240cf0: OUTPUT«:($x, $y)» | ||
17:00
dakkar left
|
|||
ssqq | timotimo: How to set the default value of Type container? `my Int $x; $x == 1`; | 17:02 | |
17:03
mr-foobar left
|
|||
timotimo | p6: my Int $x is default 5; say $x; | 17:03 | |
camelia | rakudo-moar 240cf0: OUTPUT«5===SORRY!5=== Error while compiling /tmp/tmpfileType check failed in assignment to '$x'; expected 'Int' but got 'Bool'at /tmp/tmpfile:1» | ||
timotimo | p6: my Int $x is default(5); say $x; | ||
camelia | rakudo-moar 240cf0: OUTPUT«5» | ||
timotimo | p6: my Int $x is default(5); say $x; $x = 10; say $x; $x = Nil; say $x | ||
camelia | rakudo-moar 240cf0: OUTPUT«5105» | ||
timotimo | do you mean that? | ||
or do you mean "the default value for 'Int' should be ..."? | 17:04 | ||
ssqq | timotimo: this only set default value with some named variable, not Type container | ||
timotimo | ah, yes | 17:05 | |
that's difficult | |||
m: say 1 * Int; say 5 + Int; | 17:06 | ||
camelia | rakudo-moar 240cf0: OUTPUT«Invocant requires a 'Int' instance, but a type object was passed. Did you forget a .new? in block <unit> at /tmp/_8NpQb0MTL:1» | ||
timotimo | mhh | ||
ssqq | timotimo: specs said: Any container's default may be overridden by the ... not Any value's containers | 17:07 | |
17:07
konsolebox left
|
|||
timotimo | oh | 17:07 | |
"container" means like "the Scalar for $x" | |||
m: my $foo is default(10); say VAR($foo).perl | 17:08 | ||
camelia | rakudo-moar 240cf0: OUTPUT«Int.new» | ||
timotimo | ah, that call looks into the container again | ||
m: my $foo is default(10); say VAR($foo) | |||
camelia | rakudo-moar 240cf0: OUTPUT«10» | ||
timotimo | m: my $foo is default(10); VAR($foo).WHAT.say | ||
camelia | rakudo-moar 240cf0: OUTPUT«(Scalar)» | ||
timotimo | m: my $foo is default(10); VAR($foo).default.say | ||
camelia | rakudo-moar 240cf0: OUTPUT«10» | ||
timotimo is AFK for a bit | 17:09 | ||
17:10
xfix joined
|
|||
ssqq | timotimo: I see, then this ability is less useless. | 17:10 | |
timotimo: If I want use `5.times { say 'Oh' }` just like Ruby, How to design method of times with class `Int`, besides go to rakudo source code. | 17:12 | ||
andreoss | [ptc]: should i commit in my own branch on perl6-examples or it's okay to commit on master? | ||
geekosaur | ssqq, I think that's use MONEKY_PATCHING + augment class Int ... | 17:15 | |
*MONKEY_PATCHING | |||
that being a hint that it's considered a bad idea | |||
17:17
yqt joined
17:20
telex left,
bcode is now known as u
17:22
chenryn joined,
telex joined
17:24
FROGGS joined,
ssqq left
17:27
chenryn left
17:30
rindolf left
17:31
rindolf joined
|
|||
timotimo | well, you can 5.×: { ... } and just have a "sub times(Int $foo, &code) { &code for ^$foo } | 17:33 | |
we don't allow term + block just like that for custom things | |||
that's TTIAR, Two Terms In A Row | |||
dalek | kudo/nom: d7dbe15 | TimToady++ | src/core/Exception.pm: Awesomeize insufficiently type-like message |
17:34 | |
17:34
abraxxa left
17:35
grondilu left
|
|||
dalek | pan style="color: #395be5">perl6-examples: e328821 | (Andrei Osipov)++ | categories/euler/p (2 files): [euler] problem 54 solution |
17:37 | |
pan style="color: #395be5">perl6-examples: 5754db0 | (Andrei Osipov)++ | t/categories/euler.t: [euler] test for problem 54 |
|||
FROGGS | TimToady: /<foo>/ is always about regexes in scope (or methods of the current cursor), but never about subs, right? | 17:38 | |
17:38
pochi left,
pochi joined
|
|||
FROGGS | TimToady: for example, I think this is invalid: github.com/perl6/roast/blob/master...kets.t#L52 | 17:39 | |
TimToady | yes, that's invalid, but you could write it validly by having a Cursor as the first argument, and returning a Cursor | 17:41 | |
FROGGS | TimToady: so a subroutine which takes a Cursor would be valid? | ||
because we do not consider subs at all atm | 17:42 | ||
TimToady | m: sub try(Cursor $c) { say "HERE"; $c }; 'foobar' ~~ / foo <try> bar / | ||
camelia | rakudo-moar 240cf0: OUTPUT«Method 'try' not found for invocant of class 'Cursor' in block <unit> at /tmp/GqeHcgWkPr:1» | ||
timotimo | that sub isn't annotated to return a cursor, though | ||
should it be considered? | |||
TimToady | hmm, I would argue that should work | ||
FROGGS | and if subs are preferred over Cursor method this would surprise a lot of ppl me thinks | 17:43 | |
TimToady | m: sub try(Cursor $c --> Cursor) { say "HERE"; $c }; 'foobar' ~~ / foo <try> bar / | ||
camelia | rakudo-moar 240cf0: OUTPUT«Method 'try' not found for invocant of class 'Cursor' in block <unit> at /tmp/buEb88qEOV:1» | ||
timotimo | hopefully they would not be preferred | ||
TimToady | there can be no cursor method there | ||
we aren't in a grammar, and // doesn't see the current grammar if there were one | |||
FROGGS | m: grammar G; use Test; rule TOP { <ok> }; token ok { 'ok' }; say G.parse: 'ok' | 17:45 | |
camelia | rakudo-moar 240cf0: OUTPUT«「ok」 ok => 「ok」» | ||
FROGGS | so this would not work if we would consider subs? | ||
dalek | rl6-roast-data: e9002a9 | coke++ | / (9 files): today (automated commit) |
17:46 | |
[Coke] | karen responded, blog is fixed, I'm still in backscroll. | 17:47 | |
TimToady | we should probably recognize subs that take a Cursor as the first argument, and ignore the others | ||
we allow methods in places of regex, so it seems fair to also allow (some) subs | 17:48 | ||
FROGGS | I guess the only thing that makes me worry is that this would be the first spot where we would do such a thing | 17:49 | |
TimToady | m: sub try(Cursor $c --> Cursor) { say "HERE"; $c }; 'foobar' ~~ / foo <&try> bar / | ||
camelia | rakudo-moar d7dbe1: OUTPUT«HERE» | ||
17:49
liztormato joined
|
|||
TimToady | I guess we can get there with explicit &, so maybe we can leave it as-is | 17:50 | |
liztormato waves from a hotel | |||
FROGGS | hi liztormato | ||
TimToady: +1 to that because I think <...> does too many things already (as per implementation I mean) | |||
TimToady is at Builder Stage at Collision | |||
timotimo | heyo liztormato | 17:51 | |
FROGGS is at the GPW but in a hotel and puts @kids[^2] to bed | 17:52 | ||
17:52
u is now known as ilbelkyr
17:53
liztormato left
17:55
mr-foobar joined,
liztormato joined
|
|||
FROGGS | that's one of the tests (but without the &) | 17:55 | |
m: my $called_ok = 0; my sub test ($c, $a, $b) {$called_ok++ if $a && $b; $c}; say 'some text' ~~ /some <&test: 3, 5>/; | |||
camelia | rakudo-moar d7dbe1: OUTPUT«P6opaque: no such attribute '$!pos' in block <unit> at /tmp/OEESD9s30h:1» | ||
FROGGS | and without the $c actually | ||
m: my $called_ok = 0; my sub test (Cursor $c, $a, $b) {$called_ok++ if $a && $b; $c}; say 'some text' ~~ /some <&test: 3, 5>/; | |||
camelia | rakudo-moar d7dbe1: OUTPUT«「some」» | ||
FROGGS | m: say Cursor.^mro | 17:56 | |
camelia | rakudo-moar d7dbe1: OUTPUT«(Cursor) (Any) (Mu)» | ||
TimToady | that latter probably fails if you try to match anything after the <> | ||
oh, wait, never mind | 17:57 | ||
misread | |||
17:57
domidumont joined,
Erendis42d joined
17:58
liztormato left
18:00
liztormato joined
18:03
liztormato left
18:04
Vlavv left
18:06
[Sno] left
18:07
[Sno] joined
18:09
yqt left
18:14
andreoss left
|
|||
FROGGS | m: say 'foo:bar' ~~ m/ $1=(<-[:]>*) \: $0=<.ident> / | 18:15 | |
camelia | rakudo-moar d7dbe1: OUTPUT«「foo:bar」 1 => 「foo」 0 => 「bar」» | ||
FROGGS | m: say 'foo:bar' ~~ m/ $1=(<-[:]>*) \: (<.ident>) / | ||
camelia | rakudo-moar d7dbe1: OUTPUT«Method 'from' not found for invocant of class 'Any' in block <unit> at /tmp/z6STnluoAs:1» | ||
FROGGS | m: say 'foo:bar' ~~ m/ $1=(<-[:]>*) \: (<ident>) / | ||
camelia | rakudo-moar d7dbe1: OUTPUT«Method 'from' not found for invocant of class 'Any' in block <unit> at /tmp/CJR1iC4pJM:1» | ||
FROGGS | I guess that's worth an RT ticket | ||
m: say 'foo:bar' ~~ m/ $0=(<-[:]>*) \: (<ident>) / | 18:16 | ||
camelia | rakudo-moar d7dbe1: OUTPUT«「foo:bar」 0 => 「foo」 1 => 「bar」 ident => 「bar」» | ||
FROGGS | ahh | ||
18:18
Vlavv joined
|
|||
Erendis42d | perl<3 | 18:23 | |
timotimo | glad to hear it :) | ||
(<-[:]>*) ... what kind of emoticon is this? %) | |||
FROGGS | it is the so called Pig-Nosed Twinkle | 18:25 | |
timotimo | not bad | ||
though i think pig noses have the dots more like [··] | 18:26 | ||
rindolf | Hi all. pastie.org/10174333 - this gives me an error on line 17 with "perl6" (Rakudo) - why? | 18:27 | |
TimToady: hi! any idea? | 18:30 | ||
FROGGS | m: -> ($foo) { } | 18:31 | |
camelia | ( no output ) | ||
FROGGS | m: -> ($foo, $bar) { } | ||
camelia | ( no output ) | ||
FROGGS | m: (-> ($foo, $bar) { })( 1, 2 ) | 18:32 | |
camelia | rakudo-moar d7dbe1: OUTPUT«Too few positionals passed; expected 2 arguments but got 0 in sub-signature in block <unit> at /tmp/ZYLxcAHUc5:1» | ||
FROGGS | m: (-> $foo, $bar { })( 1, 2 ) | ||
camelia | ( no output ) | ||
FROGGS | rindolf: remove the parens after -> | ||
rindolf | FROGGS: ah. :-S | 18:33 | |
timotimo | superstitious parens etc etc | ||
FROGGS | you can remove other parens too, but these are problematic | ||
timotimo | no parens needed after if and for | ||
18:33
Isp-sec joined
|
|||
timotimo | and "$size+1 .. 4" could also be "$size ^.. 4" | 18:34 | |
18:34
Erendis42d left
|
|||
timotimo | and i'd write ($cnt == 1 ?? 1 !! 0) as +$cnt.Bool :P | 18:34 | |
oh, wait | |||
that's not right at all :) | |||
+($cnt == 1) | 18:35 | ||
given it's after a + anyway, no need for a prefix:<+> as well | |||
that pastebin has a pleasant font | |||
ah, it's probably using Monaco on my machine | |||
rindolf | timotimo, FROGGS : pastie.org/10174355 - now I'm getting an error on lines 7 and 27. | 18:36 | |
18:46
mr-foobar left,
gfldex left,
tinyblak left,
colomon left,
darutoko left,
itz left,
xinming_ left,
Possum left,
b^_^d left,
BooK_ left,
torbjorn left,
ponbiki left,
agentzh left
18:47
diana_olhovik_ left,
TimToady left,
pierrot left,
hernan left,
ilbot3 left,
ycaymanbo left,
domidumont left,
broquaint left,
xiaomiao left,
Gothmog_ left,
eiro left,
pochi left,
thou left,
Khisanth left,
dsm left,
bayprogrammer left,
Spot__ left,
cosimo left,
krakan_ left,
Isp-sec left,
telex left,
tadzik left,
ggoebel left,
silug left,
b2gills left,
pyrimidine left,
rhr left,
kbenson left,
maddingue left,
yakudza left,
simcop2387 left,
raydiak left,
StavroMueller left,
betterworld left,
dylanwh left,
dg left,
cxreg left,
diegok left,
tony-o left,
RabidGravy left,
eternaleye left,
|Tux| left,
Guest90792 left,
masak left,
nwc10 left,
SHODAN left,
psch left,
MilkmanDan left,
anocelot_ left,
Celelibi left,
gargamel_ left,
mattp left,
yeltzooo9 left,
lestrrat left,
ashleydev left,
apejens left,
hobbs left,
integral left,
japhb left,
dalek left,
synbot6 left,
[Tux] left,
smi1er left,
felher left,
nine left,
ugexe left,
mephinet left,
yogan left,
retupmoca left,
skarn left,
stux|RC left,
BinGOs left,
ilbelkyr left,
nebuchadnezzar left,
hoelzro left,
shmibs left,
pnu left,
zostay left,
Sqirrel left,
sue_ left,
Guest96 left,
haroldwu left,
Timbus_ left,
rivarun left,
sunnavy left,
kst left,
btyler left,
sergot_ left,
atta left,
arnsholt left,
sftp left,
charsbar__ left,
DrForr left,
bjz left,
jdv79 left,
jepeway left,
mls left,
vike left,
Psyche^ left,
Alina-malina left,
PZt left,
labster left,
mtj__ left,
jercos left,
jnthn left,
oetiker left,
cbk1090 left,
rararara left,
bartolin left,
geekosaur left,
ruoso left,
mathw left,
robinsmidsrod left,
timotimo left,
[ptc] left,
JimmyZ left,
kd` left,
preyalone left,
ggherdov left,
xxx left,
ingy left,
fernando___ left,
FROGGS left,
xfix left,
uncleyear left,
[particle] left,
dustinm` left,
coffee` left,
salva left,
Bucciarati left,
mst left,
revdiablo left,
zoosha_ left,
muraiki left,
ShimmerFairy left,
Foxcool left,
ir2ivps4 left,
PerlJam left,
JoaquinFerrero left,
estrabd_ left,
leedo_ left,
bobkare left,
huf left,
sivoais left,
pRiVi_ left,
f3ew left,
rudi_s left,
_sri_ left,
kshannon left,
sjn left,
rmgk left,
krunen left,
Pauekn left,
Grrrr left,
egrep left,
erdic left,
petercommand left,
moritz left,
smash left,
pmichaud left,
tictac left,
Vlavv left,
[Sno] left,
vendethiel left,
kaare_ left,
skids left,
virtualsue left,
ribasushi_ left,
camelia left,
cdc left,
wtw left,
yoleaux left,
prammer left,
hahainternet left,
vytas left,
DarthGandalf left,
Mouq left,
jantore left,
awwaiid left,
Exodist left,
[Coke] left,
Util left,
risou left,
tinita left,
jschulz left,
burnersk left,
danstoner left,
woshty left,
Humbedooh left,
osfameron left,
profan left,
literal left,
avar left,
jfried left,
rindolf left,
noganex left,
isacloud left,
flussence left,
nbrown04 left,
avuserow1 left,
Juerd left,
clkao left
18:49
Peter_R joined,
_mg_ joined,
Isp-sec joined,
Vlavv joined,
[Sno] joined,
domidumont joined,
pochi joined,
rindolf joined,
FROGGS joined,
telex joined,
xfix joined,
diana_olhovik_ joined,
vendethiel joined,
tadzik joined,
uncleyear joined,
muraiki joined,
sjn joined,
thou joined,
zostay joined,
kaare_ joined,
skids joined,
rararara joined,
Sqirrel joined,
RabidGravy joined,
broquaint joined,
bjz joined,
ShimmerFairy joined,
virtualsue joined,
[particle] joined,
Foxcool joined,
jdv79 joined,
ycaymanbo joined,
dustinm` joined,
bartolin joined,
jepeway joined,
rmgk joined,
noganex joined,
TimToady joined,
pierrot joined,
hernan joined,
isacloud joined,
ribasushi_ joined,
mls joined,
hobbs joined,
integral joined,
japhb joined,
camelia joined,
tepper.freenode.net sets mode: +v camelia,
cdc joined,
ggoebel joined,
sue_ joined,
dalek joined,
wtw joined,
synbot6 joined,
xiaomiao joined,
vike joined,
silug joined,
Guest96 joined,
yoleaux joined,
eternaleye joined,
coffee` joined,
krunen joined,
kd` joined,
|Tux| joined,
Pauekn joined,
[Tux] joined,
Grrrr joined,
Psyche^ joined,
egrep joined,
ir2ivps4 joined,
Gothmog_ joined,
Alina-malina joined,
ilbot3 joined,
erdic joined,
smi1er joined,
prammer joined,
Guest90792 joined,
PZt joined,
labster joined,
Khisanth joined,
haroldwu joined,
dsm joined,
bayprogrammer joined,
felher joined,
mtj__ joined,
Timbus_ joined,
nine joined,
hahainternet joined,
ugexe joined,
geekosaur joined,
mephinet joined,
rivarun joined,
sunnavy joined,
petercommand joined,
tepper.freenode.net sets mode: +vv dalek yoleaux,
salva joined,
kst joined,
b2gills joined,
masak joined,
Bucciarati joined,
moritz joined,
jercos joined,
vytas joined,
smash joined,
nwc10 joined,
yogan joined,
SHODAN joined,
pmichaud joined,
psch joined,
flussence joined,
pyrimidine joined,
rhr joined,
Spot__ joined,
jnthn joined,
btyler joined,
oetiker joined,
cbk1090 joined,
DarthGandalf joined,
PerlJam joined,
eiro joined,
retupmoca joined,
avuserow1 joined,
nbrown04 joined,
Mouq joined,
ruoso joined,
tictac joined,
skarn joined,
MilkmanDan joined,
cosimo joined,
JoaquinFerrero joined,
mathw joined,
anocelot_ joined,
krakan_ joined,
robinsmidsrod joined,
Juerd joined,
mst joined,
sergot_ joined,
leedo_ joined,
atta joined,
clkao joined,
stux|RC joined,
arnsholt joined,
jantore joined,
BinGOs joined,
sftp joined,
timotimo joined,
bobkare joined,
revdiablo joined,
kbenson joined,
[ptc] joined,
ilbelkyr joined,
Celelibi joined,
shmibs joined,
nebuchadnezzar joined,
charsbar__ joined,
zoosha_ joined,
huf joined,
sivoais joined,
gargamel_ joined,
JimmyZ joined,
hoelzro joined,
preyalone joined,
DrForr joined,
maddingue joined,
yakudza joined,
awwaiid joined,
simcop2387 joined,
pRiVi_ joined,
Exodist joined,
pnu joined,
apejens joined,
ashleydev joined,
lestrrat joined,
yeltzooo9 joined,
mattp joined,
jfried joined,
avar joined,
profan joined,
literal joined,
osfameron joined,
kshannon joined,
Humbedooh joined,
woshty joined,
fernando___ joined,
_sri_ joined,
danstoner joined,
burnersk joined,
jschulz joined,
tinita joined,
risou joined,
Util joined,
[Coke] joined,
rudi_s joined,
f3ew joined,
ingy joined,
xxx joined,
ggherdov joined,
raydiak joined,
StavroMueller joined,
betterworld joined,
dylanwh joined,
dg joined,
cxreg joined,
diegok joined,
tony-o joined,
gfldex joined,
tinyblak joined,
colomon joined,
darutoko joined,
itz joined,
xinming_ joined,
Possum joined,
torbjorn joined,
b^_^d joined,
BooK_ joined,
ponbiki joined,
agentzh joined
|
|||
dalek | : 539bb9d | usev6++ | misc/rt.perl.org/cleanup_nyc_hackathon_tickets.txt: Keep track of merged tickets |
18:50 | |
pan style="color: #395be5">perl6-examples: 76e4e37 | (Shlomi Fish)++ | categories/euler/prob151-shlomif.p6: Euler#151 solution. Slow... |
18:53 | ||
18:54
Erendis42d joined
|
|||
rindolf | github.com/perl6/perl6-examples/bl...shlomif.p6 - does anyone have any ideas for optimisation? | 18:54 | |
18:56
raiph joined
|
|||
dalek | pan style="color: #395be5">perl6-examples: 0144c93 | (Shlomi Fish)++ | categories/euler/prob151-shlomif.p6: Made the code more idiomatic. |
18:56 | |
raiph | rindolf: run it with --profile ? | 18:59 | |
rindolf | raiph: let me see. | ||
raiph | rindolf: tip for current use of --profile; keep the run very short | 19:00 | |
rindolf | raiph: hmmm... | ||
raiph: I could try to use a more efficient algorithm - with caching/memoisation/etc. | 19:01 | ||
raiph: but the equivalent perl 5 program runs much quicker. | |||
raiph | rindolf: it may still be useful to you and #perl6 to profile what you already have even if the conclusion based on the profile may be to try a different algo | 19:02 | |
19:03
Erendis42d left
|
|||
rindolf | raiph: OK. I'm profiling it now. | 19:04 | |
raiph | rindolf: i think you'll have to change the 4 on line 24 to 2 or perhaps 3 | 19:05 | |
19:07
yqt joined
19:10
Peter_R left
|
|||
rindolf | raiph: www.shlomifish.org/Files/files/text...55753.html - this is the profile report (with 4 in line 24). | 19:10 | |
timotimo | raiph: that's not it | ||
raiph: what's important for the size of the resulting file is the structure of the call tree | |||
and also, MoarVM got a thousand times more efficient at writing out the profiler results recently | |||
raiph | timotimo: ah, thanks | ||
timotimo | line 9724 ... that's most probably one of the reify's | 19:11 | |
that's the number one by exclusive time | 19:12 | ||
19:12
chenryn joined
|
|||
timotimo | 25% time spent in GC and 46% frames jit compiled, that's pretty bad | 19:12 | |
rindolf | OK, turns out I can get rid of keeping track of $total_num since it's equal to 1 at the end. | 19:13 | |
19:14
Erendis42d joined
|
|||
Erendis42d | . | 19:14 | |
19:15
spider-mario joined
19:16
chenryn left
|
|||
dalek | pan style="color: #395be5">perl6-examples: 212eb22 | (Shlomi Fish)++ | categories/euler/prob151-shlomif.p6: Optimisation. Get rid of $total_num . |
19:18 | |
19:18
Isp-sec left,
telex left,
tadzik left,
ggoebel left,
silug left,
b2gills left,
pyrimidine left,
rhr left,
kbenson left,
maddingue left,
yakudza left,
simcop2387 left,
raydiak left,
StavroMueller left,
betterworld left,
dylanwh left,
dg left,
cxreg left,
diegok left,
tony-o left,
gfldex left,
tinyblak left,
colomon left,
darutoko left,
itz left,
xinming_ left,
Possum left,
b^_^d left,
BooK_ left,
torbjorn left,
ponbiki left,
agentzh left,
RabidGravy left,
eternaleye left,
|Tux| left,
Guest90792 left,
masak left,
nwc10 left,
SHODAN left,
psch left,
MilkmanDan left,
anocelot_ left,
Celelibi left,
gargamel_ left,
mattp left,
yeltzooo9 left,
lestrrat left,
ashleydev left,
apejens left,
diana_olhovik_ left,
TimToady left,
pierrot left,
hernan left,
ilbot3 left,
yqt left,
ycaymanbo left,
_mg_ left,
domidumont left,
broquaint left,
xiaomiao left,
Gothmog_ left,
eiro left,
spider-mario left,
pochi left,
thou left,
Khisanth left,
dsm left,
bayprogrammer left,
Spot__ left,
cosimo left,
krakan_ left,
hobbs left,
integral left,
japhb left,
dalek left,
synbot6 left,
[Tux] left,
smi1er left,
felher left,
nine left,
ugexe left,
mephinet left,
yogan left,
retupmoca left,
skarn left,
stux|RC left,
BinGOs left,
ilbelkyr left,
nebuchadnezzar left,
hoelzro left,
shmibs left,
pnu left,
raiph left,
zostay left,
Sqirrel left,
sue_ left,
Guest96 left,
haroldwu left,
Timbus_ left,
rivarun left,
sunnavy left,
kst left,
btyler left,
sergot_ left,
atta left,
arnsholt left,
sftp left,
charsbar__ left,
DrForr left,
bjz left,
jdv79 left,
jepeway left,
mls left,
vike left,
Psyche^ left,
Alina-malina left,
PZt left,
labster left,
mtj__ left,
jercos left,
jnthn left,
oetiker left,
cbk1090 left,
rararara left,
bartolin left,
geekosaur left,
ruoso left,
mathw left,
robinsmidsrod left,
timotimo left,
[ptc] left,
JimmyZ left,
kd` left,
preyalone left,
ggherdov left,
xxx left,
ingy left,
fernando___ left,
FROGGS left,
xfix left,
uncleyear left,
[particle] left,
dustinm` left,
coffee` left,
salva left,
Bucciarati left,
mst left,
revdiablo left,
zoosha_ left,
muraiki left,
ShimmerFairy left,
Foxcool left,
ir2ivps4 left,
PerlJam left,
JoaquinFerrero left,
leedo_ left,
bobkare left,
huf left,
sivoais left,
pRiVi_ left,
f3ew left,
rudi_s left,
_sri_ left,
kshannon left,
sjn left,
rmgk left,
krunen left,
Pauekn left,
Grrrr left,
egrep left,
erdic left,
petercommand left,
moritz left,
smash left,
pmichaud left,
tictac left,
Erendis42d left,
Vlavv left,
[Sno] left,
vendethiel left,
kaare_ left,
skids left,
virtualsue left,
ribasushi_ left,
camelia left,
cdc left,
wtw left,
yoleaux left,
prammer left,
hahainternet left,
vytas left,
DarthGandalf left,
Mouq left,
jantore left,
awwaiid left,
Exodist left,
[Coke] left,
Util left,
risou left,
tinita left,
jschulz left,
burnersk left,
danstoner left,
woshty left,
Humbedooh left,
osfameron left,
profan left,
literal left,
avar left,
jfried left,
rindolf left,
noganex left,
isacloud left,
flussence left,
nbrown04 left,
avuserow1 left,
Juerd left,
clkao left
19:20
spider-mario joined,
Erendis42d joined,
yqt joined,
raiph joined,
agentzh joined,
ponbiki joined,
BooK_ joined,
b^_^d joined,
torbjorn joined,
Possum joined,
xinming_ joined,
itz joined,
darutoko joined,
colomon joined,
tinyblak joined,
gfldex joined,
_mg_ joined,
Isp-sec joined,
Vlavv joined,
[Sno] joined,
domidumont joined,
pochi joined,
rindolf joined,
FROGGS joined,
telex joined,
xfix joined,
diana_olhovik_ joined,
vendethiel joined,
tadzik joined,
uncleyear joined,
muraiki joined,
sjn joined,
thou joined,
zostay joined,
kaare_ joined,
skids joined,
rararara joined,
Sqirrel joined,
RabidGravy joined,
broquaint joined,
bjz joined,
ShimmerFairy joined,
virtualsue joined,
[particle] joined,
Foxcool joined,
jdv79 joined,
ycaymanbo joined,
dustinm` joined,
bartolin joined,
jepeway joined,
rmgk joined,
noganex joined,
TimToady joined,
pierrot joined,
hernan joined,
isacloud joined,
ribasushi_ joined,
mls joined,
hobbs joined,
integral joined,
japhb joined,
camelia joined,
cdc joined,
ggoebel joined,
sue_ joined,
dalek joined,
wtw joined,
synbot6 joined,
xiaomiao joined,
vike joined,
silug joined,
Guest96 joined,
yoleaux joined,
eternaleye joined,
coffee` joined,
krunen joined,
kd` joined,
|Tux| joined,
Pauekn joined,
[Tux] joined,
Grrrr joined,
Psyche^ joined,
egrep joined,
ir2ivps4 joined,
Gothmog_ joined,
Alina-malina joined,
ilbot3 joined,
erdic joined,
smi1er joined,
prammer joined,
Guest90792 joined,
PZt joined,
labster joined,
tepper.freenode.net sets mode: +vvv camelia dalek yoleaux,
Khisanth joined,
haroldwu joined,
dsm joined,
bayprogrammer joined,
felher joined,
mtj__ joined,
Timbus_ joined,
nine joined,
hahainternet joined,
ugexe joined,
geekosaur joined,
mephinet joined,
rivarun joined,
sunnavy joined,
petercommand joined,
salva joined,
kst joined,
b2gills joined,
masak joined,
Bucciarati joined,
moritz joined,
jercos joined,
vytas joined,
smash joined,
nwc10 joined,
yogan joined,
SHODAN joined,
pmichaud joined,
psch joined,
flussence joined,
pyrimidine joined,
rhr joined,
Spot__ joined,
jnthn joined,
btyler joined,
oetiker joined,
cbk1090 joined,
DarthGandalf joined,
PerlJam joined,
eiro joined,
retupmoca joined,
avuserow1 joined,
nbrown04 joined,
Mouq joined,
ruoso joined,
tictac joined,
skarn joined,
MilkmanDan joined,
cosimo joined,
JoaquinFerrero joined,
mathw joined,
anocelot_ joined,
krakan_ joined,
robinsmidsrod joined,
Juerd joined,
mst joined,
sergot_ joined,
leedo_ joined,
atta joined,
clkao joined,
stux|RC joined,
arnsholt joined,
jantore joined,
BinGOs joined,
sftp joined,
timotimo joined,
bobkare joined,
revdiablo joined,
kbenson joined,
[ptc] joined,
ilbelkyr joined,
Celelibi joined,
shmibs joined,
nebuchadnezzar joined,
charsbar__ joined,
zoosha_ joined,
huf joined,
sivoais joined,
gargamel_ joined,
JimmyZ joined,
hoelzro joined,
preyalone joined,
DrForr joined,
maddingue joined,
yakudza joined,
awwaiid joined,
simcop2387 joined,
pRiVi_ joined,
Exodist joined,
pnu joined,
apejens joined,
ashleydev joined,
lestrrat joined,
yeltzooo9 joined,
mattp joined,
tony-o joined,
diegok joined,
cxreg joined,
dg joined,
dylanwh joined,
betterworld joined,
StavroMueller joined,
raydiak joined,
ggherdov joined,
xxx joined,
ingy joined,
f3ew joined,
rudi_s joined,
[Coke] joined,
Util joined,
risou joined,
tinita joined,
jschulz joined,
burnersk joined,
danstoner joined,
_sri_ joined,
fernando___ joined,
woshty joined,
Humbedooh joined,
kshannon joined,
osfameron joined,
literal joined,
profan joined,
avar joined,
jfried joined
19:22
lizmat joined
|
|||
timotimo | the gc times are blowing up pretty crazy | 19:25 | |
El_Che | rindolf: the "masak - “How Perl 6 could kill us all!” link on perl-begin.org/learn/perl6/ is broken: clicking on it sends you to use.perl.org/use.perl.org/~masak/journal/39912 | 19:27 | |
19:27
espadrine_ joined,
rindolf left
19:28
rindolf joined
|
|||
El_Che | rindolf: the "masak - “How Perl 6 could kill us all!” link on perl-begin.org/learn/perl6/ is broken: clicking on it sends you to use.perl.org/use.perl.org/~masak/journal/39912 | 19:28 | |
moritz | updated link is strangelyconsistent.org/blog/how-pe...ill-us-all | ||
rindolf | El_Che: yes, use.perl.org's URLs got broken. | 19:29 | |
masak | moritz++ beat me to it. | ||
moritz | .oO( "have you stopped beating masak? ... to it, I mean" ) |
19:30 | |
El_Che | you guys are faster than the perl6 runtime | ||
El_Che ducks :) | |||
19:30
Peter_R joined
19:31
domidumont left
|
|||
masak decides to laugh at that, but only after a certain delay | 19:31 | ||
El_Che | lol | ||
dalek | kudo/nom: 3434745 | FROGGS++ | src/core/Match.pm: strip undefines from Match.caps we cannot sort by .from This fixes a blowup for: say "foo" ~~ m/ $42=\w / |
19:32 | |
jnthn notes that it's significantly faster than it used to be. :) | |||
lizmat waves from a lounge | 19:33 | ||
rindolf | El_Che, moritz, masak: Thanks! I updated it now. | 19:34 | |
19:34
tinyblak left
|
|||
thou | moritz: *minor* typo on your site: link at bottom of perlgeek.de/blog-en/perl-6/object-c...ation.html should go to doc.perl6.org/language/objects#Obje...nstruction , not ...#Object+Construction | 19:35 | |
TimToady | m: X::m: my X $x; | ||
camelia | rakudo-moar d7dbe1: OUTPUT«5===SORRY!5=== Error while compiling /tmp/NKU0Pm3n3PTwo terms in a rowat /tmp/NKU0Pm3n3P:1------> 3X::7⏏5m: my X $x; expecting any of: infix infix stopper statement end statement modifier…» | ||
jnthn | .u U | 19:36 | |
yoleaux | U+0055 LATIN CAPITAL LETTER U [Lu] (U) | ||
jnthn | what on earth :) | ||
TimToady | m: my X $x; | ||
camelia | rakudo-moar d7dbe1: OUTPUT«5===SORRY!5=== Error while compiling /tmp/0w2ZUzYQWPPackage X is insufficiently type-like to qualify a variableat /tmp/0w2ZUzYQWP:1------> 3my X $x7⏏5; expecting any of: constraint» | ||
jnthn | works for me :) | ||
TimToady | conference WiFi lag... :/ | 19:37 | |
timotimo | rindolf: how deep does the recursion go? | ||
oh my god. | |||
19:37
mohij joined,
Peter_R left
|
|||
TimToady | m: module XX {...}; sub foo (XX $p) {...} | 19:37 | |
camelia | rakudo-moar d7dbe1: OUTPUT«5===SORRY!5=== Error while compiling /tmp/OjioQszREfModule XX is insufficiently type-like to qualify a parameterat /tmp/OjioQszREf:1------> 3module XX {...}; sub foo (XX7⏏5 $p) {...}» | ||
Erendis42d | .u ☕ | ||
yoleaux | U+2615 HOT BEVERAGE [So] (☕) | ||
19:37
_mg_ left
|
|||
Erendis42d | :D | 19:37 | |
¦* | 19:38 | ||
timotimo | t.h8.lv/sinkgimmereifyrec.png | ||
SERIOUSLY | |||
19:39
espadrine joined,
espadrine_ left
|
|||
jnthn | timotimo: much wow :) | 19:39 | |
timotimo: But yeah, the GC has to walk all the stack frames, so if you go that deep... :) | |||
timotimo | yes, oh god | ||
the number of gen2 roots ... | 19:40 | ||
starts out innocent enough | |||
takes quite a while to switch over to the gc tab from the call graph tab | |||
22512 gen2 roots ... 96326 gen2 roots | |||
rindolf | timotimo: it goes up to 17. | 19:41 | |
lizmat | PerlJam was asking me the other day why Mu.clone did not have a multi for the no param, and the any named param case | ||
well, we can't with the current way MMD works | |||
m: multi a() { ... }; multi a(*%twiddles) { ... }; a | 19:42 | ||
camelia | rakudo-moar d7dbe1: OUTPUT«Ambiguous call to 'a'; these signatures all match::():(*%twiddles) in sub a at /tmp/WlMZY6I7MX:1 in block <unit> at /tmp/WlMZY6I7MX:1» | ||
timotimo | rindolf: with one layer of gimme, reify and sink each ... | ||
rindolf | timotimo: ah. | ||
lizmat | m: multi a() { ... }; multi a(*%twiddles!) { ... }; a # adding an exclamation mark doesn't work | ||
camelia | rakudo-moar d7dbe1: OUTPUT«5===SORRY!5=== Error while compiling /tmp/ezfPnBLh_uMissing blockat /tmp/ezfPnBLh_u:1------> 3multi a() { ... }; multi a(*%twiddles7⏏5!) { ... }; a # adding an exclamation » | ||
rindolf | timotimo: don't know what those are? | ||
lizmat | would be nice if that could somehow be made to work | 19:43 | |
jnthn | lizmat: But that case isn't relevant for a method, which Mu.clone is. | ||
lizmat: And a method has an implicit *%_ | |||
lizmat: You can't put ! on a slurpy... | |||
Even if we did decide to make the case you mentioned work for subs, it'd still not help. | 19:44 | ||
And if we do decide to make it work then we're in a real hole. | 19:45 | ||
'cus every method has a *%_ | |||
19:45
rindolf left,
rindolf joined
|
|||
dalek | pan style="color: #395be5">perl6-examples: f85b49d | (Shlomi Fish)++ | categories/euler/prob151-shlomif.p6: Cleanups/optimisations. |
19:45 | |
lizmat | m: class A { multi method a() { ... }; multi method a(*%twiddles) { ... } }; A.a # as a method | 19:46 | |
camelia | rakudo-moar d7dbe1: OUTPUT«Ambiguous call to 'a'; these signatures all match::(A $: *%_):(A $: *%twiddles) in block <unit> at /tmp/r6eNuCCgu1:1» | ||
jnthn | Right, but that's correct | ||
lizmat | perhaps we could make () on a method mean, no *%_ ? | ||
as opposed to the absence of () | 19:47 | ||
? | |||
jnthn | That'd be a really weird discontinuity. | ||
lizmat | anyways, my main point was really that my answer to PerlJam was wrong | ||
and this was the answer :-) | |||
jnthn | Aha, yes :) | ||
19:48
Peter_R joined
|
|||
lizmat | I guess my point *also* is that for an experienced Perl6er like PerlJam, this wasn't obvious either :-) | 19:49 | |
so it is a bit of a WAT | |||
19:50
espadrine left,
espadrine_ joined
|
|||
vendethiel | lizmat: I think in this case, it should match 'em all indeed | 19:50 | |
m: class A { multi method a() { ... }; multi method a(*%twiddles) { ... } }; A.a(:x) # you could argue for this one, however! | 19:51 | ||
camelia | rakudo-moar 343474: OUTPUT«Ambiguous call to 'a'; these signatures all match::(A $: *%_):(A $: *%twiddles) in block <unit> at /tmp/OwmP7h9VFb:1» | ||
lizmat | vendethiel: no, because the () sig means (*%_) | ||
vendethiel | lizmat: I know it does. I just mean -- the argumentless call has to be ambiguous with a splat one :) | ||
FROGGS | m: my $foo; "abcd" ~~ m/a $foo=(..) d/ # inneresting | ||
camelia | rakudo-moar 343474: OUTPUT«===SORRY!===QAST::Block with cuid cuid_1_1430941917.71998 has not appeared» | ||
vendethiel | m: multi foo() { 1 }; multi foo(*@x) { say @x.elems }; say foo; # this should fail as well for the same reason? | 19:52 | |
camelia | rakudo-moar 343474: OUTPUT«1» | ||
vendethiel | okay, then I agree :). The behavior is a bit weird, though. | ||
I guess "empty" is considered more specific | |||
jnthn | Named arguments don't really play in multi-dispatch. | 19:53 | |
19:53
Peter_R left
|
|||
jnthn | Only as constraints. | 19:53 | |
19:53
lizmat_ joined
|
|||
jnthn | And only then if they're required. | 19:53 | |
19:54
Peter_R joined
|
|||
lizmat_ | FROGGS: I would have done that as: | 19:55 | |
+ } elsif $p.value.DEFINITE { | |||
+ @caps.push: $p; | |||
so we don't waste a branch on that | |||
FROGGS | ahh, yeah | 19:56 | |
that's probably better | |||
19:57
lizmat left,
lizmat_ is now known as lizmat
|
|||
lizmat | .oO( bit flaky hotel wifi ) |
19:58 | |
vendethiel | m: multi foo() { 1 }; multi foo(*%x) { say %x.elems }; say foo; # this should fail as well for the same reason? | ||
camelia | rakudo-moar 343474: OUTPUT«Ambiguous call to 'foo'; these signatures all match::():(*%x) in sub foo at /tmp/k7Jz7WPoI5:1 in block <unit> at /tmp/k7Jz7WPoI5:1» | ||
vendethiel | lizmat: see :P | ||
20:01
lizmat_ joined
20:03
Peter_R left
20:05
rurban joined,
lizmat left
20:07
lizmat_ is now known as lizmat
|
|||
dalek | kudo/nom: 8dcef45 | FROGGS++ | t/spectest.data: also run S05-capture/alias.t |
20:07 | |
ast: 7e8dc19 | FROGGS++ | S05-capture/alias.t: make capture aliasing tests valid and add more tests |
20:08 | ||
masak | m: module Flaky::Hotel {}; my bit $Flaky::Hotel::wifi = 42 | ||
camelia | rakudo-moar 343474: OUTPUT«===SORRY!===Invalid int size for local/lexical» | ||
dalek | kudo/nom: 4752e70 | FROGGS++ | src/core/Match.pm: optimize latest patch to Match.caps, lizmat++ |
20:09 | |
FROGGS | m: say "foo" ~~ m/$42=\w/ | 20:10 | |
camelia | rakudo-moar 343474: OUTPUT«「f」 42 => 「f」» | ||
FROGGS | gnight #perl6 | ||
[ptc] | gn8 FROGGS | ||
timotimo | gnite FROGGS and family :) | ||
FROGGS | :o) | ||
20:10
FROGGS left
20:11
Sqirrel left
20:14
_dolmen_ joined
20:15
rindolf left
20:17
virtualsue_ joined
20:18
colomon left
20:19
virtualsue left,
virtualsue_ is now known as virtualsue
|
|||
dalek | ast: 62f8f60 | usev6++ | S02-types/array-shapes.t: Use unique ticket number for 'array shapes NYI' |
20:20 | |
ast: 25f28b6 | usev6++ | S02-types/array-shapes.t: Remove superfluous curly braces |
|||
ast: 2945c76 | usev6++ | S02-types/array-shapes.t: Native arrays are implemented |
|||
20:22
kurahaupo1 joined
|
|||
dalek | kudo/nom: 6640006 | lizmat++ | src/core/Signature.pm: Show an empty sig for what it really is Make this MMD dispatch error a bit clearer, I hope: $ perl6 -e 'multi a() { ... }; multi a(*%twiddles) { ... }; a' Ambiguous call to 'a'; these signatures all match: :(*%_) :(*%twiddles) |
20:25 | |
masak | m: role Multiple {}; role prefix {}; role constraints {}; my Multiple prefix constraints $not-yet-implemented = "Sorry." | 20:26 | |
camelia | rakudo-moar 8dcef4: OUTPUT«5===SORRY!5=== Error while compiling /tmp/aFi6iDJRXvMultiple prefix constraints not yet implemented. Sorry. at /tmp/aFi6iDJRXv:1------> 3aints {}; my Multiple prefix constraints7⏏5 $not-yet-implemented = "Sorry."» | ||
masak is in a somewhat silly mood tonight, it seems | |||
dalek | : d935289 | usev6++ | misc/rt.perl.org/cleanup_nyc_hackathon_tickets.txt: Some more resolved or merged tickets |
||
lizmat | masak jnthn : are you ok with the Signature.perl tweak ? | ||
jnthn | lizmat: Uh... | 20:27 | |
lizmat: but it's wrong? | 20:28 | ||
Subs don't have an implicit *%_ | |||
Only mehtods | |||
*methods | |||
The ambiguity there is 'cus the multi-dispatcher doesn't consider one narrower than the other. | |||
lizmat | then I don't understand why the MMD is ambiguous | ||
ah... | |||
because named params don't really play in MMD | 20:29 | ||
ok | |||
reverting | |||
jnthn | Yeah | ||
20:29
rurban left
|
|||
jnthn | And I'm afraid that as far as I can tell, if I fix it, we will get into trouble with methods. | 20:29 | |
[ptc] | m: my %blah = "a" => 1, "b" => 2, "c" => 3; for %blah.kv.sort(:by<key>) -> $key, $value { say "$key: $value" } | ||
camelia | rakudo-moar 8dcef4: OUTPUT«1: 23: ab: c» | ||
jnthn | Well, multi-methods | ||
[ptc]: By the time you do .kv you're already sorting a flat list of values | 20:30 | ||
dalek | kudo/nom: 51ccca9 | lizmat++ | src/core/Signature.pm: It's ambiguous because named params don't matter |
||
[ptc] | jnthn: ok, but why isn't it sorted? | ||
timotimo | right, you want .pairs.sort(*.key) | 20:31 | |
um | |||
it is sorted | |||
1, 2, 3, a, b, c | |||
jnthn | It is sorted. | ||
timotimo | m: my %blah = "a" => 1, "b" => 2, "c" => 3; say %blah.kv.perl | ||
camelia | rakudo-moar 8dcef4: OUTPUT«("a", 1, "c", 3, "b", 2)» | ||
[ptc] | m: my %blah = "a" => 1, "b" => 2, "c" => 3; for %blah.kv -> $key, $value { say "$key: $value" } | ||
camelia | rakudo-moar 8dcef4: OUTPUT«a: 1c: 3b: 2» | ||
[ptc] | the 'c' key comes out second | ||
that's what I mean by it not being sorted | |||
timotimo | oh | 20:32 | |
jnthn | That's how hashes work. | ||
timotimo | we mean 1: 23: ab: c | ||
[ptc] | has something changed recently with how hashes and arrays work that I've missed? | ||
lizmat | [ptc]: just as in P5 (but this happened only very recently) | ||
masak | [ptc]: no. it was always like that. | ||
[ptc] | some of the examples tests have stopped working and I'm trying to work out why | ||
jnthn | MoarVM used to maintain insertion order | ||
JVM never has | |||
masak | [ptc]: hashes give no ordering guarantees. | ||
jnthn | MoarVM no longer does | ||
[ptc] | aha, that'd it be it | ||
jnthn | It was an accident that Moar did rather than intent. | ||
[ptc] | yeah, hashes don't give ordering guarantees, I know that from P5 | 20:33 | |
jnthn | Or rather, we choes a hash library that happened to do it that way. | ||
And only recenlty got around to ripping it out. | |||
*recently | |||
(Which saves a good bit of memory :)) | |||
20:33
colomon joined
|
|||
[ptc] | however, jnthn's comment about moarvm's behaviour explained why it used to work the way it did | 20:33 | |
that's good it's changed, that way my expectations about hashes are consistent across languages :-) | 20:34 | ||
masak | which shows how dangerous it is to silently give people hash ordering :) | ||
[Coke] | bartolin++ # rt cleanup. | ||
[ptc] | yup :-) | ||
timotimo: the tip with .pairs is a good one, I'll try it out | |||
masak | JavaScript hashes^Wobjects also guarantee insertion order. and that's also basically because early implementations did, so they're forced to preserve that behavior. | ||
[ptc] | also, didn't the repl support readline up until recently, or am I just more crazy than usual? | 20:35 | |
e.g., I'm sure I used to be able to edit my input and go to previously executed lines | |||
jnthn | [ptc]: afaik it still *can* but that support is now implemented in a Perl 6 module | 20:36 | |
[ptc] | I updated my moarvm/nqp/rakudo stack today and am tripping over some stuff | ||
jnthn: do you mean in linenoise? | |||
jnthn | [ptc]: No, I mean the binding to linenoise (or maybe readline? dunno) that's now used by the REPL is a Perl 6 module using nativecall, rather than having to put that stuff down at the VM level. | 20:37 | |
[ptc] | m: my %blah = "a" => 1, "b" => 2, "c" => 3; for %blah.pairs.sort(*.key) -> $key, $value { say "$key: $value" } | 20:38 | |
camelia | rakudo-moar 8dcef4: OUTPUT«a 1: b 2Too few positionals passed; expected 2 arguments but got 1 in block <unit> at /tmp/dwYoj0rfs8:1» | ||
20:38
larion joined
|
|||
[ptc] | jnthn: ah, ok | 20:39 | |
I tried looking for a readline-like module on modules.p6.org, but nothing relevant (other than linenoise) showed up | |||
jnthn | Ah, maybe that's the one to use then | 20:40 | |
[ptc] | iirc hoelzro was working on that | ||
jnthn | m: my %blah = "a" => 1, "b" => 2, "c" => 3; for %blah.sort(*.key)>>.kv -> $key, $value { say "$key: $value" } | ||
camelia | rakudo-moar 8dcef4: OUTPUT«a 1: b 2Too few positionals passed; expected 2 arguments but got 1 in block <unit> at /tmp/zj5sQ7kFE5:1» | ||
timotimo | [ptc]: in that snippet you put a pair into $key and a pair into $value | ||
jnthn | ah, yeah | ||
m: my %blah = "a" => 1, "b" => 2, "c" => 3; for %blah.sort(*.key) -> (:$key, :$value) { say "$key: $value" } | |||
camelia | rakudo-moar 8dcef4: OUTPUT«a: 1b: 2c: 3» | ||
hoelzro | [ptc]: if you install Linenoise via panda, the old functionality (plus tab completion) will appear | 20:41 | |
however, due to CURLI problems (that may have been resolved? /me hasn't checked), you'll need to install liblinenoise.so by hand | |||
[ptc] | hoelzro: sweet! will try it out in a mo | ||
[ptc] wonders where to put the loop over a sorted hash stuff in the docs | 20:42 | ||
it'd be good to know | |||
b2gills | m: multi a( *% () ) { say 'no twiddles' }; multi a(*%twiddles) { say 'twiddles' }; a; a :b | ||
camelia | rakudo-moar 8dcef4: OUTPUT«no twiddlestwiddles» | ||
[ptc] | timotimo: thanks for the explanation :-) | 20:43 | |
20:43
Sqirrel joined
20:44
darutoko left
|
|||
dalek | kudo/nom: af823c9 | lizmat++ | docs/ChangeLog: Add some ChangeLog entries |
20:45 | |
skids | heheh. There's a normally-python-coding workstudy working on perl5 code right now because that's what I wrote the original in. Soon as a distro has a usable rakudo I'll have to sew some perl6 seeds. | 20:47 | |
[ptc] | hoelzro: is there anything else I need to install for linenoise to work? | 20:48 | |
hoelzro | [ptc]: nope, just the module | ||
[ptc] | hoelzro: I just installed Linenoise via panda, however it's complaining about not being able to find liblinenoise.so | ||
hoelzro | [ptc]: yes, there's an issue with CURLIs that makes liblinenoise.so unfindable | 20:49 | |
[ptc] | hoelzro: so I just update the LD_LIBRARY_PATH? | ||
hoelzro | you'll have to install it by hand | ||
[ptc] | ok, ta | ||
20:50
brrt joined
|
|||
b2gills | m: class A { multi method a( *% () ) { ... }; multi method a(*%twiddles) { ... } }; A.a | 20:51 | |
camelia | rakudo-moar 51ccca: OUTPUT«Unhandled exception: Stub code executed at src/gen/m-CORE.setting:14644 (/home/camelia/rakudo-inst-2/share/perl6/runtime/CORE.setting.moarvm:throw:121) from src/gen/m-CORE.setting:16525 (/home/camelia/rakudo-inst-2/share/perl6/runtime/CORE.settin…» | ||
masak | m: say "thanks".comb[0, 2].join | ||
camelia | rakudo-moar 51ccca: OUTPUT«ta» | ||
lizmat | b2gills: intriguing, I wonder why that works ? | 20:52 | |
jnthn | 'cus sub-signature forces a bind check | ||
lizmat | aha, so from a performance point of view, a bad idea... | ||
skids | sneaky b2gills++ | ||
jnthn | Yes, if your goal is optimizaiton it's not what you're looking for | 20:53 | |
lizmat | yeah... ok | ||
jnthn | Better leave it as it is and hope spesh is smart enough to do away wiht it | ||
It already does away with most *%_ related allocations if it finds them unused. | |||
20:54
muraiki left
20:56
Peter_R joined
20:57
hernan left
20:58
hernan joined
21:00
Vlavv left
21:01
chenryn joined,
espadrine_ left
21:02
xfix left
|
|||
Erendis42d | re | 21:05 | |
21:05
chenryn left,
lizmat_ joined
21:07
yqt left
21:09
lizmat__ joined,
lizmat left
|
|||
timotimo | [ptc]: welcome :) | 21:09 | |
21:11
skids left
|
|||
timotimo | m: class A { multi method a( *% () ) { say "twiddle-dee-doesn't" }; multi method a(*%twiddles) { say "twiddle-dee-do" } }; A.a | 21:11 | |
camelia | rakudo-moar 51ccca: OUTPUT«twiddle-dee-doesn't» | ||
timotimo | mhm, mhm | ||
possibly the ordering | |||
21:12
lizmat_ left
21:13
Vlavv joined
21:14
colomon left
|
|||
lizmat__ migrates to a horizontal position | 21:16 | ||
21:16
lizmat__ is now known as lizmat
|
|||
lizmat | good night, #perl6! | 21:16 | |
21:16
lizmat left,
coffee` left
21:19
yqt joined
21:21
brrt left
|
|||
masak | timotimo: no, it's the subsig. | 21:22 | |
TimToady | wow, rakudo actually builds now if I remove () semantics from Nil...doesn't pass all the tests, of course... | ||
masak | m: class A { multi method a( *% ) { say "twiddle-dee-doesn't" }; multi method a(*%twiddles) { say "twiddle-dee-do" } }; A.a | ||
camelia | rakudo-moar af823c: OUTPUT«Ambiguous call to 'a'; these signatures all match::(A $: *%):(A $: *%twiddles) in block <unit> at /tmp/4y6JrhltIa:1» | ||
masak | timotimo: see? :) | ||
jnthn | TimToady: ooh, yay :) | ||
Erendis42d | o/ o_ | 21:25 | |
21:25
coffee` joined
21:27
thou left
|
|||
TimToady | only fails 19 test files, which is better than I expected | 21:28 | |
oh wait, only 18, one was a TODO passed :) | 21:29 | ||
21:29
thou joined
|
|||
TimToady -> next talk & | 21:29 | ||
[Coke] | TimToady++ | 21:31 | |
timotimo | TimToady: good progress \o/ | 21:37 | |
if someone wants to have a look, it seems like DIVIDE_NUMBERS allocates 1991776 Scalars in raiph's recursive thingie | 21:39 | ||
going to figure out how often that's called right now | |||
21:39
Peter_R left,
colomon joined
|
|||
timotimo | 995888 times | 21:40 | |
m: say "that's {1991776/995888} scalars per call, on average" | |||
camelia | rakudo-moar af823c: OUTPUT«that's 2 scalars per call, on average» | ||
timotimo | hm, not terrible | ||
i meant rindolf, not raiph | 21:42 | ||
jercos | When no one was looking, Lex Luthor allocated 40 scalars. That's as many as four tens! | 21:43 | |
timotimo | what a jerc! | ||
jercos | xyl.be/cakes.jpg | 21:44 | |
timotimo: congratulations, you're "jerk" comparison user number 1827346. You can frame that for your kids to look at in awe once we're up into the billions. | 21:45 | ||
jnthn | 'night, #perl6 | ||
21:46
tinyblak joined
|
|||
masak | 'night, #perl6 | 21:46 | |
labster | Perl 6. It will be Christmas, and then there will be cake. | ||
timotimo | \o/ | 21:47 | |
thank you for the source on that meme | |||
i wasn't aware of it | 21:48 | ||
21:48
kurahaupo1 left
|
|||
timotimo | and i hope i didn't offend with the "jerc" thing :S | 21:48 | |
maybe we'll invent a trigonometric function "jer", so that you can be jer-cos? | |||
labster | .oO ( jer-arc-tan ) | 21:49 | |
21:49
grondilu joined
|
|||
timotimo | jer a cos, harry! | 21:49 | |
21:50
Peter_R joined
|
|||
jercos | no'mnot, I'm just 'arry! | 21:56 | |
I'm rather difficult to offend, but I find the whole "jerc" thing grates after a few million times :p | |||
more like... I'm disappointed in a lack of creativity in that area ;) | 21:57 | ||
timotimo | i think i understand | ||
21:59
andreoss joined,
Erendis42d left
22:02
grondilu left
22:07
spider-mario left,
Zoffix joined
22:08
Isp-sec left
22:09
spider-mario joined
22:12
Erendis42d joined,
virtualsue left
22:17
Vlavv left
22:20
raiph left
22:27
cognominal joined,
bjz left
22:28
diana_olhovik_ left
22:29
Vlavv joined,
mohij left
22:32
erdic left,
smash left,
smash joined,
diana_olhovik_ joined
22:33
erdic joined
|
|||
japhb | jercos: Perhaps they can just get a little more subtle, like referring to you as a minimal requirement for chaos ... | 22:37 | |
(But maybe that one has been tried a million times too ...) | |||
22:40
larion left
22:41
diana_olhovik_ left
22:43
larion joined
|
|||
jercos | japhb: actually that one's new. :3 | 22:45 | |
Erendis42d | XD | 22:48 | |
22:50
chenryn joined
22:54
chenryn left
22:58
kaare_ left
|
|||
andreoss | % time perl prob030.pl5 # 0m1.93s | 23:00 | |
% time perl6 prob030.pl # 15m52.79s | |||
m: say (15*60 + 79) / 1.93 | |||
23:00
vendethiel left
|
|||
camelia | rakudo-moar af823c: OUTPUT«507.253886» | 23:00 | |
Zoffix | :( | 23:01 | |
andreoss | m: say (15*60 + 52.79) / 1.93 | ||
camelia | rakudo-moar af823c: OUTPUT«493.673575» | ||
23:02
Zoffix left
23:05
telex left
23:06
telex joined
23:07
larion left
23:08
larion joined
23:11
vendethiel joined
23:12
spider-mario left
23:14
spider-mario joined
23:16
RabidGravy left
|
|||
timotimo | the student star craft ai tournament is running right now and over on hitbox.tv there's a stream that shows matches | 23:18 | |
23:21
Sqirrel left
|
|||
andreoss | sub xxx(*[$a, @a]) { $a.comb } ; say xxx(12,13,14) | 23:22 | |
m: sub xxx(*[$a, @a]) { $a.comb } ; say xxx(12,13,14) | |||
camelia | rakudo-moar af823c: OUTPUT«cannot stringify this in sub xxx at /tmp/nqZSe2yC3u:1 in block <unit> at /tmp/nqZSe2yC3u:1» | ||
andreoss | m: sub xxx(*[$a, @a]) { "Hay" } ; say xxx(12,13,14) | 23:23 | |
camelia | rakudo-moar af823c: OUTPUT«cannot stringify this in sub xxx at /tmp/shwqSW8sNI:1 in block <unit> at /tmp/shwqSW8sNI:1» | ||
andreoss | m: sub xxx([$a, @a]) { "Hay" } ; say xxx(12,13,14) | ||
camelia | rakudo-moar af823c: OUTPUT«5===SORRY!5=== Error while compiling /tmp/Haxsn_7Hj0Calling xxx(Int, Int, Int) will never work with declared signature (@ (Any $a, @a))at /tmp/Haxsn_7Hj0:1------> 3sub xxx([$a, @a]) { "Hay" } ; say 7⏏5xxx(12,13,14)» | ||
andreoss | m: sub xxx(*[$a, *@a]) { $a.comb } ; say xxx(12,13,14) | ||
camelia | rakudo-moar af823c: OUTPUT«1 2» | ||
andreoss | okay | ||
Erendis42d | i am actually playing sc right noe | 23:25 | |
*now | |||
offline, though | |||
almost at the end pf Protoss and proud of it ^v^ | 23:26 | ||
after that, i'll learn how to type properly | |||
_the_ rts | |||
23:28
yqt left,
thou left
23:29
Sqirrel joined
23:30
_dolmen_ left
|
|||
timotimo | i'm bad at starcraft; i'm also much more interested in zero-k nowadays, but i'm very bad at that as well :( | 23:33 | |
23:33
vendethiel left
|
|||
timotimo | i never really played SC1 ... that's also why i have a hard time following what buildings and units are being used | 23:33 | |
i played some sc2 2v2 on ladder with a friend | 23:35 | ||
23:37
spider-mario left
|
|||
dalek | ecs: 35bcd42 | (Stéphane Payrard)++ | S99-glossary.pod: TBD: Redundant material in grammar/parser/syntax analysis |
23:41 | |
Erendis42d | :) | 23:50 | |
23:50
chenryn joined
23:54
chenryn left
23:57
gfldex left
23:58
laouji joined
|