Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2013-05-25

Perl 6 | Reference Documentation | Rakudo

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:00 masak hm.
00:35 kurahaupo joined #perl6
00:36 massimino left #perl6
00:36 itz__ will video be available of any of the Polish talks?
00:37 timotimo i hope (also hope there will be english audio or subtitles)
00:42 * sorear wonders idly if there will be polish subtitles for the english talks
00:47 raiph joined #perl6
00:48 japhb_ joined #perl6
00:49 berekuk joined #perl6
00:53 itz__ what has %*VM been changed to?
00:54 colomon rn: say %*VN.perl
00:54 camelia niecza v24-51-g009f999: OUTPUT«Any␤»
00:54 camelia ..rakudo 45ae2d: OUTPUT«Failure.new(exception => X::AdHoc.new(payload => "Dynamic variable \%*VN not found"))␤»
00:54 colomon rn: say %*VM.perl
00:54 camelia niecza v24-51-g009f999: OUTPUT«Any␤»
00:54 camelia ..rakudo 45ae2d: OUTPUT«Failure.new(exception => X::AdHoc.new(payload => "Dynamic variable \%*VM not found"))␤»
00:54 colomon rn: say $*VM.perl
00:54 camelia niecza v24-51-g009f999: OUTPUT«Any␤»
00:54 camelia ..rakudo 45ae2d: OUTPUT«{"name" => "parrot", "config" => {"git_describe" => "RELEASE_5_2_0", "sha1" => "dfc3d7c34f5707b617e41d0befab4de66be68112", "a" => ".a", "ar" => "ar", "ar_extra" => "", "ar_out" => "", "archname" => "i486-linux-gnu-thread-multi-64int", "arflags" => "cr", "as" => "as…
00:55 colomon third times the charm?
00:55 itz__ ah
00:55 itz__ ty
01:40 stevan_ joined #perl6
01:44 FROGGS_ joined #perl6
01:45 Chillance_ joined #perl6
02:01 ggoebel joined #perl6
02:07 prevost_ joined #perl6
02:13 colomon Trying to use panda as a library, with no success.  :\
02:36 lue .oO($*VM looks awfully hashy to me)
02:37 colomon nothing wrong with storing a hash in a scalar.  :)
02:38 lue of course, but perhaps standard Perl 6 features can be a bit more clear? :)
02:50 stevan_ joined #perl6
02:51 itz__ whats "ref"?
02:52 sorear std: ref
02:52 prevost joined #perl6
02:52 camelia std 0336087: OUTPUT«[31m===[0mSORRY![31m===[0m�Undeclared routine:� 'ref' used at line 1�Check failed�FAILED 00:00 41m�»
02:52 sorear itz__: No such thing
02:52 sorear itz__: contexgt?
02:53 itz__ ok how do I tell $*VM is a hash
02:53 colomon r: say $*VM.WHAT
02:53 camelia rakudo 45ae2d: OUTPUT«(Hash)␤»
02:53 sorear r: say $*VM ~~ Hash
02:53 camelia rakudo 45ae2d: OUTPUT«True␤»
02:54 japhb_ .ask tadzik As seen in panda commit 9f6e8242687fe7f9408959c80984da7ef9fa9776 for example, why do you convert from method arguments with defaults to 'is copy' args that you then check and default manually at the top of the function?
02:54 yoleaux japhb_: I'll pass your message to tadzik.
02:56 colomon .ask tadzik Any notion why calling $panda = Panda.new from a script of my own (after use Panda) wouldn't initialize $panda.ecosystem?
02:56 yoleaux colomon: I'll pass your message to tadzik.
03:13 xyf joined #perl6
03:15 xyf quit
03:35 fildon_ joined #perl6
03:43 saxx11 joined #perl6
03:46 cognominal__ joined #perl6
03:54 preflex_ joined #perl6
03:59 IKARi__ joined #perl6
04:10 saxx11 joined #perl6
04:11 dalek perl6-bench: 21bd960 | (Geoffrey Broadwell)++ | bench:
04:11 dalek perl6-bench: bench: Allow for-components() and for-checkouts() to be quiet
04:11 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/21bd96040d
04:11 dalek perl6-bench: fa817c3 | (Geoffrey Broadwell)++ | bench:
04:11 dalek perl6-bench: Add list-checkouts command to bench
04:11 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/fa817c332d
04:11 dalek perl6-bench: 12391e4 | (Geoffrey Broadwell)++ | bench:
04:11 dalek perl6-bench: Refactor list-checkouts to something a bit more 6ish
04:11 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/12391e47a3
04:11 dalek perl6-bench: bbcaccb | (Geoffrey Broadwell)++ | README:
04:11 dalek perl6-bench: Update README example to show current (2013.05) releases of NQP and Rakudo
04:11 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/bbcaccb668
04:15 saxx11 joined #perl6
04:25 Psyche^ joined #perl6
04:32 zby_home joined #perl6
05:22 * [Coke] yawns.
05:26 dalek v5: be9deef | (Tobias Leich)++ | / (2 files):
05:26 dalek v5: let dottyop not explode
05:26 dalek v5: review: https://github.com/rakudo-p5/v5/commit/be9deef61a
05:27 dalek v5: 82583f4 | (Tobias Leich)++ | rakudo.patch:
05:27 dalek v5: update rakudo-patch
05:27 dalek v5: review: https://github.com/rakudo-p5/v5/commit/82583f4895
05:32 zby_home_ joined #perl6
05:39 dalek perl6-bench: cb45086 | (Geoffrey Broadwell)++ | bench:
05:39 dalek perl6-bench: Improve correctness of max-length calculation in list-checkouts bench command
05:39 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/cb45086c27
05:39 dalek perl6-bench: a20cbb6 | (Geoffrey Broadwell)++ | bench:
05:39 dalek perl6-bench: Add list-components command to bench
05:39 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/a20cbb6bc2
05:39 dalek perl6-bench: c091a05 | (Geoffrey Broadwell)++ | TODO:
05:39 dalek perl6-bench: Remove some completed TODO items
05:39 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/c091a0582e
05:39 dalek perl6-bench: 3f3c69a | (Geoffrey Broadwell)++ | / (3 files):
05:39 dalek perl6-bench: Add support for building and timing perl5 from component checkouts
05:39 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/3f3c69a2ea
05:43 tadzik colomon: because dependency injection :)
05:43 yoleaux 02:54Z <japhb_> tadzik: As seen in panda commit 9f6e8242687fe7f9408959c80984da7ef9fa9776 for example, why do you convert from method arguments with defaults to 'is copy' args that you then check and default manually at the top of the function?
05:43 yoleaux 02:56Z <colomon> tadzik: Any notion why calling $panda = Panda.new from a script of my own (after use Panda) wouldn't initialize $panda.ecosystem?
05:43 tadzik japhb_: because defaults don't kick in if the value is 'Any'
05:45 kaare_ joined #perl6
05:52 japhb_ tadzik, Hmmm, I see.  Well, at least you could use //= instead of the unless {} construction.
06:04 dalek perl6-bench: cd8d322 | (Geoffrey Broadwell)++ | components.json:
06:04 dalek perl6-bench: Remove trailing comma in components.json
06:04 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/cd8d322878
06:04 dalek perl6-bench: 43dc132 | (Geoffrey Broadwell)++ | analyze:
06:04 dalek perl6-bench: Improve highlight style in analyze plots
06:04 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/43dc132b33
06:04 kaare_ joined #perl6
06:12 dalek perl6-bench: e755a4b | (Geoffrey Broadwell)++ | README:
06:12 dalek perl6-bench: Add nqp-jvm to README example, and improve readability and DRY compliance of example commands
06:12 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/e755a4bb47
06:17 SamuraiJack joined #perl6
06:46 woolfy left #perl6
06:58 FROGGS[mobile] joined #perl6
07:26 FROGGS[mobile] joined #perl6
07:28 AndChat|356841 joined #perl6
07:31 SamuraiJack joined #perl6
07:37 lizmat joined #perl6
07:38 lizmat morning #perl6!
07:45 sorear o/
07:46 moritz \o
07:50 * lizmat is overlooking a grey and wet Warsaw from the 8th floor
07:51 nwc10 everyone made it?
07:51 sorear I didn't
07:52 lizmat not everybody's here yet…  jnthn made it to the social last night
07:52 nwc10 but I didn't think that you were planning to make it.
07:52 lizmat masak was supposed to arrive later… haven't seen him yet, then again, we don't actually start until 10am
07:53 * sorear is not quite as big a fan of travel as jnthn++
07:53 sorear or all the other people who are planning to be on the other side of the world a week from now
07:55 nwc10 for "not a fan of travel" you're pretty damn impressive at it when you do it. 6kg rucksac
07:58 FROGGS[mobile] joined #perl6
07:59 sorear is that high or low
08:00 lizmat jnthn and masak have entered the building
08:01 sorear perhaps I shall yet warm to it, who knows
08:01 labster sounds like you all are having fun without me
08:02 tadzik they're having fun, I have to run all this :D
08:02 tadzik which is fun too, I admit
08:04 lizmat sorear: the most fun of travelling, is getting home again, in your own bed
08:04 sorear NO FUN ALLOWED
08:08 jnthn morning o/
08:11 jnthn r: Any.new
08:11 camelia rakudo 45ae2d:  ( no output )
08:11 moritz Q: what does that return? A: Anyhting
08:12 jnthn Cool.new(what => 'shoeshine')
08:26 AndChat|356841 joined #perl6
08:29 woolfy joined #perl6
09:02 * tadzik is amazed that the whole thing (Perl Workshop) seems to be working somehow
09:04 dmol joined #perl6
09:04 jnthn :)
09:05 imIKARi joined #perl6
09:10 nwc10 sorear: good. low is good in that context
09:15 IKARi__ joined #perl6
09:34 imIKARi joined #perl6
09:34 AMENDEES_ joined #perl6
09:43 denisboyun_ joined #perl6
09:44 FROGGS[mobile] joined #perl6
10:09 bbkr_ joined #perl6
10:10 bbkr_ rn: my @l := gather { die; };
10:10 camelia rakudo 45ae2d: OUTPUT«No exception handler and no message␤␤current instr.: 'throw' pc 343296 (src/gen/CORE.setting.pir:150044) (src/gen/CORE.setting:8791)␤called from Sub 'die' pc 36620 (src/gen/CORE.setting.pir:14333) (src/gen/CORE.setting:581)␤called from Sub '' pc 135 ((file unknown)…
10:10 camelia ..niecza v24-51-g009f999: OUTPUT«Potential difficulties:â�¤  @l is declared but not used at /tmp/0LeEQ51a6X line 1:â�¤------> [32mmy [33mâ��[31m@l := gather { die; };[0mâ�¤â�¤Â»
10:14 denisboyun_ joined #perl6
10:19 domidumont joined #perl6
10:20 GlitchMr I fail
10:20 GlitchMr I accidentally typed invalid exec command into ~/.profile, and now I cannot login to perlcabal.org
10:22 GlitchMr oh, good, I can recover myself in non interactive mode
10:23 imIKARi joined #perl6
10:29 GlitchMr By the way, how can I make uc("i") eq "İ"?
10:30 GlitchMr .u İ
10:30 yoleaux U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE [Lu] (İ)
10:32 berekuk joined #perl6
10:33 arnsholt GlitchMr: First, you'll probably have to set your locale to Turkish (if you haven't already). And then you may have to implement the locale-sensitive behaviour in Rakudo
10:35 spider-mario joined #perl6
10:36 berekuk joined #perl6
10:41 domidumont joined #perl6
10:44 denisboyun joined #perl6
10:48 daxim joined #perl6
10:54 lustlife joined #perl6
11:21 rindolf joined #perl6
11:45 renormalist joined #perl6
11:51 kivutar joined #perl6
11:54 dalek v5: e132cd9 | (Tobias Leich)++ | / (2 files):
11:54 dalek v5: added sub exists
11:54 dalek v5: review: https://github.com/rakudo-p5/v5/commit/e132cd909a
11:54 berekuk joined #perl6
12:04 PacoAir joined #perl6
12:06 FROGGS std: use v5; sub a ($;$) { }
12:06 camelia std 0336087: OUTPUT«[31m===[0mSORRY![31m===[0m�Unable to parse signature at /tmp/S3sILtWve6 line 1:�------> [32muse v5; sub a [33m�[31m($;$) { }[0m�Couldn't find final ')'; gave up at /tmp/S3sILtWve6 line 1:�------> [32muse v5; sub a ($;[33m�[31m$) { }[0m�Parse failed�FAILED…
12:06 FROGGS std: use v5; sub a ($@) { }
12:06 camelia std 0336087: OUTPUT«ok 00:01 52m␤»
12:06 FROGGS std: use v5; sub a ($@$) { }
12:06 camelia std 0336087: OUTPUT«[31m===[0mSORRY![31m===[0m�Unable to parse signature at /tmp/BytZTSAlBx line 1:�------> [32muse v5; sub a [33m�[31m($@$) { }[0m�Couldn't find final ')'; gave up at /tmp/BytZTSAlBx line 1:�------> [32muse v5; sub a ($@[33m�[31m$) { }[0m�Parse failed�FAILED…
12:06 FROGGS std: use v5; sub a ($foo) { }
12:06 camelia std 0336087: OUTPUT«Potential difficulties:â�¤  $foo is declared but not used at /tmp/CpcU9QnjKc line 1:â�¤------> [32muse v5; sub a ($foo[33mâ��[31m) { }[0mâ�¤ok 00:01 52mâ�¤Â»
12:15 SamuraiJack joined #perl6
12:33 FROGGS joined #perl6
12:35 tadzik daxim: pizza
12:44 snearch joined #perl6
12:54 tgt joined #perl6
13:06 woolfy joined #perl6
13:07 lizmat joined #perl6
13:17 lizmat FROGGS: re https://github.com/rakudo-p5/v5/commit/e132cd909a , wouldn't it make more sense to create a Perl 5 Bool::True { 1 } and Bool::False { "" }
13:18 lizmat and then simply map to a:exists ?
13:20 FROGGS lizmat: in the end I want to have A Bool::True that stringifies and numifies to 1 or ''
13:20 lizmat ok, we agree then  :-)
13:20 FROGGS ya :o)
13:21 FROGGS I need to fiddle with the operators to support that though, like I did for concatenation...
13:21 FROGGS that's why I made that quick patch atm
13:25 dalek nqp/rak-jvm-support: fb1a50d | jonathan++ | src/vm/jvm/QAST/Compiler.nqp:
13:25 dalek nqp/rak-jvm-support: Fix REPL regression.
13:25 dalek nqp/rak-jvm-support: review: https://github.com/perl6/nqp/commit/fb1a50d7b3
13:33 lizmat joined #perl6
13:33 woolfy joined #perl6
13:36 lizmat FROGGS: also, are you sure a:exist does what you think it does?
13:36 lizmat r: sub a (\a) { a:exists }; my %a=a=>3; say a(%a<a>)
13:36 camelia rakudo 45ae2d: OUTPUT«3␤»
13:39 FROGGS hmmmm
13:40 massimino joined #perl6
13:43 massimino Good afternoon. Can I use guis created by glade or stetic with niecza perl6?
13:47 SamuraiJack_ joined #perl6
13:51 FROGGS massimino: sorry, I dont knows these toolkits
13:53 massimino Ok. Thank you! Don't worry
13:55 masak could someone help me look for jnthn's bf interpreter in the backlog?
13:56 masak I know it's somewhere around http://irclog.perlgeek.de/​perl6/2012-07-25#i_5845013
13:56 FROGGS a boyfriend interpreter?
13:56 FROGGS what is 'bf' for?
13:56 masak oh nvm, jnthn found it.
13:56 FROGGS k
13:56 masak FROGGS: https://en.wikipedia.org/wiki/Brainfuck
13:56 FROGGS ahh
13:58 FROGGS hmmm, it doesnt make much sense to have a brainfuck slang, does it?
13:59 colomon .ask tadzik "because dependency injection" -- any hints on how to make it work?
13:59 yoleaux colomon: I'll pass your message to tadzik.
14:08 tadzik colomon: is it broken? :)
14:08 yoleaux 13:59Z <colomon> tadzik: "because dependency injection" -- any hints on how to make it work?
14:09 tadzik colomon: the idea is that you supply all the objects to Panda explicitely
14:09 tadzik colomon: so you need to bring your own Ecosystem
14:10 colomon tadzik: for what it's worth, my script is a copy of bin/Panda with stuff (as far as I know not on the main execution path) deleted.
14:11 colomon Panda.new calls Panda::Ecosystem.new, no?
14:11 tadzik yeah, it does, but Ecosystem needs some configuration to be useful for anything
14:11 tadzik like, the path to projects.json or whatnot
14:12 colomon which I am passing to Panda.new, just like you did
14:12 tadzik can you show me/
14:13 colomon https://gist.github.com/colomon/5649194 # should look very familiar, you wrote most of it...
14:13 colomon errr... and now it works?
14:13 colomon WTF?
14:14 tadzik panda changed the api a bit recently
14:14 tadzik if you look at fresh bin/panda it's tad smaller
14:14 colomon hmmm, so maybe I have a mismatch?  but as I say, it's suddenly working.  :\
14:14 tadzik most of the UI logic is in Panda::App now
14:14 tadzik so it gets precompiled (and fast)
14:16 colomon tadzik: are you sure that's in the main branch of panda?
14:17 colomon I tried to install a new panda yesterday, and I don't see any sign of a Panda::App.
14:18 * masak is amused at jnthn making a lightning talk next to him, trying to decode his own interpreter code :P
14:20 * diakopter waves at the self-interpreter interpreter
14:20 * colomon sees Panda::App on github, sigh
14:21 tadzik colomon: yep
14:21 colomon so how do I update a pandabrew installed panda?
14:24 colomon did bin/pandabrew panda install panda yesterday, and still don't have an up-to-date panda as far as I can tell
14:26 woolfy left #perl6
14:26 Chillance joined #perl6
14:34 SmokeMachine joined #perl6
14:41 jokar joined #perl6
14:50 jokar left #perl6
14:56 lizmat tension is building
14:56 dmol joined #perl6
14:57 diakopter o_O
14:58 jnthn omg the tension!
14:58 lizmat rrr rr r r r  rrrr r r r rrrr r r r  r  r  rrrr r r  r  r r r r r rrrr
14:59 FROGGS the sound of your hdd?
14:59 lizmat not sure
15:00 lizmat it's a new language, inspired by Warsaw's weather of the past days, called rain fuck
15:01 moritz :-)
15:01 FROGGS *g*
15:02 daxim ++++++--->><<><<<+++--+><<<<
15:02 diakopter looks like binary to me..
15:05 Ulti so how many of you are from Lebanon?
15:06 * colomon assumes Ulti means the country and not the city in Ohio.
15:06 Ulti heh yeah
15:06 Ulti https://www.youtube.com/watch?v=7fq7jHg9zXo I have an obsession for checking YouTube for new Perl6 videos
15:07 Ulti I read LebGeeks as LabGeeks and got excited
15:07 moritz Ulti: iirc patrickas (who contributed most of the inital code for MAIN) is from Lebanon
15:08 Ulti aha
15:09 ajr joined #perl6
15:09 moritz it's nice to see he hasn't forgotten about us :-)
15:10 Ulti I didnt know you could do my $answer = 42 but 'Meaning of Life';
15:10 colomon errr... how do you do a regex without using / delimiters in p6?
15:10 Ulti p. neat
15:10 moritz colomon: rx{...}
15:10 * colomon 's brain seems to have shifted back to p5 after all the Dancer hacking the last two days.
15:10 moritz colomon: regex { ... }
15:11 colomon rn: "git://github.com/rakudo-p5/v5.git" ~~ rx{/github.com/(.*?)/}; say $0
15:11 camelia niecza v24-51-g009f999: OUTPUT«[31m===[0mSORRY![3​1m===[0mâ�¤â�¤Unrecognized regex metacharacter / (must be quoted to match literally) at /tmp/IoozL2oKNu line 1:â�¤------> [32mt://github.com/rakudo-p5/v5.git" ~~ rx{/[33mâ��[31mgithub.com/(.*?)/}; say $0[0mâ�¤â�¤Unhandled exception: Unable to…
15:11 camelia ..rakudo 45ae2d: OUTPUT«[31m===[0mSORRY![31m===[0m�Unrecognized regex metacharacter / (must be quoted to match literally)�at /tmp/jj1OR4384r:1�------> [32mit://github.com/rakudo-p5/v5.git" ~~ rx{[33m�[31m/github.com/(.*?)/}; say $0[0m�Regex not terminated�at /tmp/jj1OR4384r:1�----…
15:11 moritz don't forget your quotes
15:11 colomon ah, this approach simply doesn't work in p6
15:12 moritz rn: "git://github.com/rakudo-p5/v5.git" ~~ rx{ '/github.com/' (.*?) \/ } and say $0
15:12 camelia rakudo 45ae2d, niecza v24-51-g009f999: OUTPUT«「rakudo-p5」␤␤»
15:13 colomon moritz++
15:16 clkao joined #perl6
15:24 bruges joined #perl6
15:31 * colomon 's brain starts smoking when he switches back and forth between p5 and p6 too much
15:33 FROGGS hmmm, I'm used to it :o)
15:33 moritz .oO( brain already molten )
15:34 colomon BTW, http://71.10.146.50:3001/report/colomon
15:34 colomon ;)
15:35 moritz \o/
15:35 colomon BTW, we're down to only two fresh failing projects this week: http://71.10.146.50:3001/report
15:36 moritz today is the right column?
15:36 colomon moritz: yes
15:36 colomon your code is still in there, but I ended up using an HTML table instead of graphics
15:37 moritz which is probably a saner choice :-)
15:37 colomon obviously still still needs beautification.
15:37 moritz and a legend
15:37 colomon but the basic functionality is up and running.
15:38 moritz colomon++
15:38 FROGGS colomon: there is a bug, I the link to the TAP isnt working :P  http://71.10.146.50:3001/project/String::CRC32
15:38 FROGGS colomon++ # \o/
15:38 colomon and adding /user-id will give you all the modules for that  module-creator
15:39 timotimo i liked that talk about gradual typing
15:39 colomon also, it's just a debug instance of Dancer on my home linux box, so service will be intermittent for the time being.
15:39 moritz mine looks pretty clean :-)
15:39 timotimo a good decision to quickly show how subs and even operators are limited to inside lexical scopes
15:39 colomon FROGGS: link to TAP?  http://71.10.146.50:3001/project/String::CRC32 works for me...
15:39 moritz colomon: if you want, we can host that service on feather2 (same machine as perl6.org), we just can't do the smoking there :-)
15:40 FROGGS colomon: where do I see what tests failed?
15:40 colomon moritz: we can probably figure out a way to shoot the smoke results from my machine to feather2.  rsync?
15:41 FROGGS scp?
15:41 colomon FROGGS: oh, I don't think that functionality is in there.
15:41 moritz colomon: rsync, scp
15:41 FROGGS colomon: that's why I used " :P "
15:41 FROGGS :o)
15:41 colomon FROGGS: I need to get back to paying $work! ;)
15:41 FROGGS ó.ò, yeah
15:42 moritz I guess the problem a problem with freelancing is that "it's weekend" isn't an excuse for not getting $work done
15:42 moritz s/the problem/
15:44 colomon moritz: especially when most of my programming efforts for the last two days went to this.  ;)
15:44 colomon But then, I really need to figure out how to use Dancer to get nice web reports of my $work tests, so this was educational for me.
15:45 lizmat joined #perl6
15:48 colomon oh, bug
15:50 colomon Hmmm... is there a way to specify going back to the top level of a web site without specifying the full URL for the site?
15:50 FROGGS <a href="/">linky</a>
15:50 FROGGS relative paths
15:50 prevost joined #perl6
15:51 FROGGS or absolute? well, it works :o)
15:51 FROGGS href="/report" might be the thing you want
15:52 colomon trying it now
15:52 colomon FROGGS++ # simple but works
15:52 colomon absolute, but relative.
15:53 woolfy joined #perl6
15:55 colomon this way */report and */report/colomon can both include the same links and they work
16:01 raiph joined #perl6
16:07 mrlo joined #perl6
16:16 tgt joined #perl6
16:21 japhb jnthn, now that I have nqp-jvm working in perl6-bench, there is one obvious exception to the general "starts slower than nqp-parrot, but scales better and ends up way faster" trend: repeated concatenation (adding one character per loop iteration to a string).  nqp-jvm is VERY slow at this.  Is that fixable without too much trouble?
16:26 dalek v5: 420d419 | (Tobias Leich)++ | t/test.pl:
16:26 dalek v5: done_testing() calls Test::done()
16:26 dalek v5: review: https://github.com/rakudo-p5/v5/commit/420d419094
16:26 dalek v5: 939e859 | (Tobias Leich)++ | lib/Perl5/Terms.pm:
16:26 dalek v5: added -= and /=
16:26 dalek v5: review: https://github.com/rakudo-p5/v5/commit/939e859064
16:26 dalek v5: 63e2e39 | (Tobias Leich)++ | lib/Perl5/ (2 files):
16:26 dalek v5: prepare support of subroutine prototypes
16:26 dalek v5: review: https://github.com/rakudo-p5/v5/commit/63e2e39203
16:26 dalek v5: 317487a | (Tobias Leich)++ | STATUS.md:
16:26 dalek v5: status update
16:26 dalek v5: review: https://github.com/rakudo-p5/v5/commit/317487a1fb
16:27 FROGGS lizmat: I'm not sure how to make a proper exists()-sub
16:33 arnsholt japhb: One possible explanation for that could be not using StringBuilder and creating new String objects all the time
16:34 japhb arnsholt, ah, so creating massive GC pressure.
16:35 aghbas joined #perl6
16:36 sqirrel joined #perl6
16:36 arnsholt japhb: Yeah, IIRC that's a fairly well-known JVM optimisation
16:37 arnsholt I think the Java compiler does it automatically as an optimisation, but don't know if the JIT knows about it
16:45 rindolf joined #perl6
16:48 japhb Did anyone answer my question from a couple days ago about doing eval-string in nqp, so that I can hide pir:: ops from nqp-jvm?
16:48 japhb (I didn't see it while I was around, but I haven't been backlogging this month.)
16:52 FROGGS japhb: HLL::Compiler has a method eval
16:54 japhb FROGGS, class method or do I need to get the active instance somehow?
16:54 moritz nqp: say(nqp::compreg('nqp'))
16:54 camelia nqp: OUTPUT«Error while compiling block : Error while compiling op call (source text: "nqp::compreg('nqp')"): Error while compiling op compreg (source text: "nqp::compreg('nqp')"): No registered operation handler for 'compreg'␤current instr.: '' pc 48612 (src/stage2/QAST.pir:17766) (src…
16:54 FROGGS maybe have a look at rakudo/src/core/control.pm line 148
16:55 japhb FROGGS, will do, thank you.
16:55 arnsholt japhb: What kind of code is it you need pir::ops in?
16:57 japhb arnsholt, heavily recursive benchmarks like rc-man-or-boy-test need to increase the recursion limit in nqp-parrot (it seems already high enough in rakudo-parrot and in perl5), and as far as I knew when I wrote it, that requires pir:: ops.  Perhaps that is no longer true?
16:58 arnsholt Oh, I see
16:59 arnsholt In that case I'm not sure. Maybe jnthn knows
17:08 * FROGGS .oO( scratch that "maybe" )
17:08 japhb On another note -- in the interest of showing compiler in its best light, anything special I need to do to get nqp-jvm running with maximum optimization?  It looks like the configuration for nqp-parrot and rakudo-parrot passes --optimize to the parrot build by default, but I don't see anything equivalent for the nqp-jvm build.
17:13 timotimo if you don't pass --optimize to rakudo, it will assume the default of 3, which is the maximum i think
17:16 japhb OK, good
17:17 japhb Anyone here know about setting optimization when compiling perl5?
17:18 japhb (I hesitate to ask that question in the lion's den lest the rending begin.)
17:19 tgt joined #perl6
17:21 japhb nqp: nqp::getcomp('nqp').eval('say("hello")')
17:21 camelia nqp: OUTPUT«hello␤»
17:22 japhb (sane interfaces)++
17:22 FROGGS cool
17:29 lucas___ joined #perl6
17:36 saxx11 joined #perl6
17:38 japhb_ joined #perl6
17:39 dalek v5: db7efb0 | (Tobias Leich)++ | lib/Perl5/Grammar.nqp:
17:39 dalek v5: better sigil change detection
17:39 dalek v5: review: https://github.com/rakudo-p5/v5/commit/db7efb096a
17:39 dalek v5: 7673bed | (Tobias Leich)++ | / (2 files):
17:39 dalek v5: added sub scalar()
17:39 dalek v5: review: https://github.com/rakudo-p5/v5/commit/7673bed2d3
17:42 kaare__ joined #perl6
17:54 denisboyun joined #perl6
17:55 census joined #perl6
18:08 autumn joined #perl6
18:19 japhb Well on the plus side I've now managed to hide the pir:: to increase the recursion limit on nqp-parrot so that it doesn't blow up nqp-jvm ... but now it looks like I need to increase the recursion limit on nqp-jvm.  :-/
18:20 dalek perl6-bench: efb3b9f | (Geoffrey Broadwell)++ | nqp/rc-man-or-boy-test:
18:20 dalek perl6-bench: Prevent the parrot-specific recursion limit code in rc-man-or-boy-test from blowing up nqp-jvm; now to figure out how to increase the recursion limit in nqp-jvm
18:20 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/efb3b9ffe1
18:23 moritz japhb: so write an nqp op that increases the recursion limit :-)
18:45 jlaire joined #perl6
18:47 dalek perl6-bench: 180818d | (Geoffrey Broadwell)++ | nqp/rc-forest-fire:
18:47 dalek perl6-bench: Modify nqp/rc-forest-fire to work on all nqp backends
18:47 dalek perl6-bench: review: https://github.com/japhb/pe​rl6-bench/commit/180818dbfb
18:48 japhb_ moritz, I've shaved so many yaks the last couple weeks I could provide wool for most of northern Europe.  :-/
18:59 tadzik colomon: OH YES
18:59 tadzik colomon: this is awesomE!
18:59 SamuraiJack_ joined #perl6
19:00 timotimo what is awesome?
19:00 tadzik the reports!
19:00 tadzik http://71.10.146.50:3001/report/tadzik
19:03 colomon tadzik: still needs lots of beautification, but it's pretty handy already, I think.  :)
19:04 tadzik it is!
19:04 tadzik awesome
19:06 xilo joined #perl6
19:10 adu joined #perl6
19:15 colomon tadzik: that's why I was messing with panda.  I wrote a little script to go through the ecosystem and dump the module names matched up to their authors, so that the Dancer script wouldn't have to do the heavy lifting there.
19:15 tadzik a-ha
19:15 colomon Panda as a lib rather than Panda as a program.
19:15 tadzik yeah
19:15 tadzik like smoker does
19:16 tadzik it uses panda-as-a-lib too
19:16 tadzik . o O ( Panda as a service )
19:16 colomon my first attempt to do the report by author called panda info for each module, and just crushed the server.  ;)
19:17 tadzik :)
19:17 tadzik I'm not surprised, panda is a big beast
19:19 snearch joined #perl6
19:25 timotimo tadzik: i added tests for the suggestions bit, feel like merging the pull request?
19:26 tadzik timotimo: oh, yes
19:26 tadzik I'll look at that now
19:26 tadzik 'tis one busy weekend
19:27 japhb_ Comments requested on the benchmark plots so far: http://www.broadwell.org/t/test-plots.html
19:27 timotimo yays :)
19:28 timotimo this is actual data?
19:28 japhb timotimo, yes
19:29 japhb data points have rollover info
19:29 timotimo "8 per second"? how come niecza is ridiculously slow in the first "benchmark"?
19:30 japhb niecza seems to take a LOT longer to load a "script" containing only '0' than a completely empty script.
19:30 japhb That first "benchmark" simply tests if there is any difference between starting up and doing the most trivial possible parse.
19:31 japhb hello goes slightly farther and actually does a hello world.
19:31 japhb The more interesting stuff is below the bar charts, in all the scaling plots
19:31 timotimo oh, this is without startup time?
19:31 japhb yes
19:32 timotimo how do you measure that? do you run the same benchmark a hundred times in the same process or something?
19:32 japhb (See header line -- the analyzer script can do it with or without)
19:33 japhb Measuring startup time?  I spawn the compiler doing nothing at all (-e '' or the equivalent) a bunch of times (10 by default) and take the shortest time seen as the startup time.
19:33 timotimo ah, ok
19:34 timotimo that's surprising
19:34 timotimo good thing we have those benchmarks :)
19:34 japhb :-D
19:35 timotimo it would be great to have a direct link to the benchmark code from that page
19:35 timotimo while_bind has no perl5 because it doesn't have that feature or something?
19:35 japhb Yeah.
19:35 japhb And for a while I was emulating that with Data::Alias,
19:36 japhb but it doesn't seem to want to pass its tests in the 5.18.0 I'm building now
19:36 japhb (I was using the system 5.14 before)
19:37 japhb and the benchmark code link sounds useful, I just have to figure out how I want to handle that.
19:39 japhb Anyone else have any comments?  :-)
19:41 timotimo huh, strange
19:41 timotimo while_hash_set has the blue perl5 line and for some of the later data points it says "2x slower than the fastest"
19:41 timotimo it would seem that it shouldn't compare to earlier data points?
19:43 denisboyun_ joined #perl6
19:44 colomon japhb: if you can add the system name to the roll-over links, that would be cool.  (so it would be "NQP / 32141 per second / 9x slower than fastest")
19:45 timotimo i'd like that, too. the colors are kind of close for rakudo and nqpjvm and niecza
19:45 japhb colomon, yeah, I agree.  I haven't figured out how to do that yet with jqPlot, but I'd really like to find a way.
19:46 colomon what are the different axes?  I'm assuming y-axis is count per second, but I'm not clear on what the x-axis is?
19:46 japhb timotimo, agreed.  They're autogenerated, though I can override.  However, I'm partially colorblind, so I figured it was just me -- plus, my choices would probably be garish to you.  :-)
19:46 japhb x axis is "scale" -- loop count, key scaling parameter, what have you.
19:47 japhb As you scale up, you'd like to see the rate plot reach a horizontal asymptote
19:47 japhb (except for rc-man-or-boy-test, which will have a diagonal line down to the right)
19:48 djanatyn joined #perl6
19:49 timotimo ah, ok
19:49 colomon japhb: right now it's sort of blue, orange, three shades of brown/green.
19:49 colomon but even if the colors were distinct, it would be nice to have the names right there so you're not looking back at the key.
19:49 GlitchMr std: $blah[2].kv
19:50 camelia std 0336087: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Variable $blah is not predeclared at /tmp/u5tRMImiSv line 1:â�¤------> [32m<BOL>[33mâ��[31m$blah[2].kv[0mâ�¤Potential difficulties:â�¤  Suspicious .kv after subscript; to suppress this warning, use :kv or \.kv instead at /tmp/u5tRMImiSv lin…
19:50 GlitchMr std: my $blah; $blah[2].'kv'
19:50 camelia std 0336087: OUTPUT«[31m===[0mSORRY![31m===[0m�Unsupported use of . to concatenate strings or to call a quoted method; in Perl 6 please use ~ to concatenate, or if you meant to call a quoted method, please supply the required parentheses at /tmp/9fzzGyuJzk line 1:�------> [32mmy $b…
19:50 GlitchMr std: my $blah; $blah[2].'kv'()
19:50 camelia std 0336087: OUTPUT«Potential difficulties:â�¤  Useless use of quotes at /tmp/XAQ_9nBmPq line 1:â�¤------> [32mmy $blah; $blah[2].'kv'[33mâ��[31m()[0mâ�¤ok 00:00 44mâ�¤Â»
19:50 GlitchMr I'm not sure if I like it. What's wrong with .kv after subscript.
19:50 GlitchMr Besides, it doesn't have to mean THAT .kv.
19:51 colomon japhb: interesting how it seems like both niecza and nqp-jvm frequently do worse than Parrot platforms for small values, but better for large values.
19:51 GlitchMr Why parser would care about method names?
19:53 colomon GlitchMr: that was added specially, to avoid confusion with the :kv adverb (which does something completely different)
19:54 GlitchMr Feels rather hacky, but whatever.
19:54 GlitchMr Not sure if I like adverbs and methods being different, if this is to avoid confusion.
19:54 revdiablo joined #perl6
19:55 GlitchMr But not really sure about alternatives.
19:55 colomon GlitchMr: if you say $blah[2]:kv, you get 2 and $blah[2]
19:55 GlitchMr I know
19:55 GlitchMr (2, $blah[2])
19:55 colomon if you say $blah[2].kv, you get 0 and $blah[2]
19:56 colomon not really clear why you'd ever want to do the latter.
19:56 GlitchMr Because I have hash in array?
19:57 colomon .kv is just calling kv on whatever $blah[2] returns.  It has no idea what (if any) key was used to created $blah[2]
19:57 GlitchMr > (@array[0].kv).perl
19:57 GlitchMr (("a", "b"), ("b", "c")).list
19:57 GlitchMr > (@array[0]:kv).perl
19:57 GlitchMr (0, {"a" => "b", "b" => "c"})
19:57 GlitchMr When I have single value, it's unlikely that `:kv` is what I wanted.
19:57 GlitchMr But `.kv` makes sense.
19:58 colomon GlitchMr: why would you want .kv there?
19:59 GlitchMr For example, to iterate
19:59 GlitchMr for @array[0].kv -> $k, $v {}
19:59 GlitchMr Granted, it's rather contrived example, but still.
20:01 colomon but that's completely contrived.
20:02 colomon ... either that or I'm confused here.
20:02 colomon rn: my @a = [1, 2, 3]; say @a[0];
20:02 camelia rakudo 45ae2d, niecza v24-51-g009f999: OUTPUT«1 2 3␤»
20:03 colomon rn: my @a = [1, 2, 3]; for @a[0].kv -> $k, $v { say :$k.perl, :$v.perl; }
20:03 camelia rakudo 45ae2d, niecza v24-51-g009f999: OUTPUT«"k" => 0"v" => 1␤"k" => 1"v" => 2␤"k" => 2"v" => 3␤»
20:03 colomon yeah, okay, that's clearly useful.  if weird
20:04 japhb colomon, timotimo, thanks for the input
20:04 japhb colomon, I'm thinking that may actually be the respective JITs needing to warm up.
20:05 timotimo huh, what will $blah[2]\.kv be?
20:06 timotimo oh, i was scrolle dup
20:10 GlitchMr \. is .
20:10 GlitchMr \ is despace operator IIRC
20:11 moritz unspace
20:12 fhelmberger joined #perl6
20:14 timotimo ah
20:15 timotimo i thought \ only unspaces if there are actual spaces
20:19 japhb timotimo, \. is unspaced . so that there is not a gap in the available widths (. is 1, \. is 2, \ . is 3, etc.)
20:21 fhelmberger joined #perl6
20:21 timotimo ah, cool
20:42 fhelmberger joined #perl6
20:46 a232346 joined #perl6
20:50 a232346 quit
20:51 tadzik timotimo: I get test failures on your branch :(
20:51 tadzik https://gist.github.com/tadzik/5650729
20:54 timotimo oh, whoops? hold on.
20:54 masak oh hai, #perl6
20:56 colomon o/
20:56 tadzik hai masak!
20:56 colomon masak: http://71.10.146.50:3001/report/masak
20:56 timotimo ah, my lc fails
20:57 timotimo because i don't do it, that would explain.
20:58 timotimo tadzik: they pass for me, now
20:59 masak colomon: ooh, nice.
21:00 masak yeah, some of those repos should simply be removed, I think.
21:00 masak others can probably be fixed to pass their tests.
21:00 tadzik timotimo: yep, seems to work great now :)
21:01 tadzik Project Term::AnsiColor not found in the ecosystem. Maybe you meant Term::ANSIColor?
21:01 tadzik aww yiss
21:02 sorear nice
21:02 sorear (o/)
21:02 colomon \o
21:02 dalek panda: 87bceda | (Timo Paulssen)++ | lib/Panda (2 files):
21:02 dalek panda: the ecosystem may now suggest projects based on name similarity
21:02 dalek panda:
21:02 dalek panda: currently only compares the names case-insensitively and removes
21:02 dalek panda: all -, _ and : before comparing.
21:02 dalek panda: review: https://github.com/tadzik/panda/commit/87bceda999
21:02 dalek panda: 7ab8dae | (Timo Paulssen)++ | t/ (2 files):
21:02 dalek panda: a few tests for Ecosystem::suggest_project.
21:02 dalek panda: review: https://github.com/tadzik/panda/commit/7ab8dae68f
21:02 tadzik I think I broke git history somehow
21:02 dalek panda: d315631 | (Timo Paulssen)++ | lib/Panda/Ecosystem.pm:
21:02 dalek panda: forgot to casefold in suggestions.
21:02 dalek panda: review: https://github.com/tadzik/panda/commit/d31563111e
21:02 tadzik or maybe not :)
21:03 tadzik timotimo++
21:03 tadzik I was missing that feature
21:03 timotimo i need suggestions on how to make it work with Text::Levenshtein, but not require it to be installed at compile time
21:03 sorear do we have (damerau-)levenschtein in the ecosystem yet?
21:03 timotimo "require" should be the way to go, but it doesn't work the way i thought
21:03 timotimo we have Text::Levenshtein, yes
21:04 sorear eval { require } ?
21:05 timotimo r: require Text::Levenshtein <distance>; say &distance;
21:05 camelia rakudo 45ae2d: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Undeclared name:â�¤    &distance used at line 1. Did you mean 'distance'?â�¤â�¤Â»
21:05 timotimo er, yeah?
21:05 sorear r: require Text::Levenshtein <&distance>; say &distance;
21:05 camelia rakudo 45ae2d: OUTPUT«Could not find Text::Levenshtein in any of: /home/p6eval/nom-inst/lib/parrot/5.​2.0-devel/languages/perl6/site/lib, /home/p6eval/nom-inst/lib/parrot/5.2​.0-devel/languages/perl6/vendor/lib, /home/p6eval/nom-inst/lib/parrot/​5.2.0-devel/languages/perl6/lib, /home/p6eva…
21:06 timotimo oh, the & makes the difference!
21:06 timotimo thanks, that'll do it.
21:07 colomon masak: in html-template, Template.pm, I think link 124 should be                 my $et = ~$i<attributes><escape>;
21:09 tadzik panda has a total of 16 contributors. If that's not awesome, I don't know what is
21:09 tadzik I love you people. This makes life so fun.
21:09 timotimo the key to getting many contributors is 1) clean code, 2) lots of easy tasks just lying around :P
21:10 * tadzik blushes
21:10 colomon 3) issues that annoy people in something they want to use.  ;)
21:10 colomon tadzik++
21:10 timotimo :D
21:10 timotimo i'm the levenshtein-suggestion-bloke anyway ...
21:11 tadzik :)
21:11 tadzik I don't hate this code anymore, that's good
21:11 tadzik I can now push stuff forward whenever I want :)
21:11 timotimo that's pretty excellent, yeah
21:12 colomon moritz: in general, I think it's the changes in how the ? quantifier shows up in Matches that is causing you trouble.
21:12 colomon errr, masak
21:12 colomon sorry, moritz.  :)
21:12 masak colomon: thanks, I'll submit that as an issue to Template.pm
21:14 woolfy Today was an excellent day for Perl 6!  Tadzik co-organiser for Polish Perl Workshop,  Masak & Jonathan giving red-glowing presentations about Perl 6 where everybody listened and gave big well-deserved applauses.
21:15 japhb masak, jnthn: slides online yet?  ;-)
21:16 sorear awesome
21:20 masak japhb: not in PDF form, no.
21:21 masak japhb: I might have time to upload them as PDFs in the next few days.
21:21 timotimo r: try { require Text::Levenshtein <&distance> }; say &distance;
21:21 camelia rakudo 45ae2d: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Undeclared name:â�¤    &distance used at line 1â�¤â�¤Â»
21:21 timotimo oh, it would only be available inside the try, right?
21:22 timotimo i can pipe it out, though
21:22 sorear try not using braces
21:22 sorear braces create a scope
21:22 timotimo oh, i could write this without braces the same way, no?
21:22 sorear tes
21:23 timotimo r: try require Text::Levenshtein <&distance>; say &distance;
21:23 camelia rakudo 45ae2d: OUTPUT«(Any)␤»
21:23 timotimo great.
21:25 timotimo hm. now again with the "what's a sane distance to accept a different module at?" part
22:02 splitcells joined #perl6
22:03 splitcells are all sized low-level types in Perl 6 supported on all machines
22:03 japhb_ timotimo, perhaps start by finding the minimum distance between existing modules?
22:03 splitcells for example int128 on 32 bit machine?
22:04 japhb_ splitcells, I believe the intent is that they *will* be, but aren't necessarily supported now.
22:05 japhb_ r: my int $a; my int32 $b; my int64 $c; my int128 $d;
22:05 camelia rakudo 45ae2d: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤Type 'int128' is not declared. Did you mean any of these?â�¤    int16â�¤    int32â�¤â�¤at /tmp/gL1KqMKwOq:1â�¤------> [32m $a; my int32 $b; my int64 $c; my int128[33mâ��[31m $d;[0mâ�¤Malformed myâ�¤at /tmp/gL1KqMKwOq:1â�¤------> [32mmy int $a; my …
22:05 japhb_ Yup, no int128 in rakudo yet.
22:08 splitcells is it part of the perl6 spec that it have to support all sizes?
22:09 splitcells ah I found it: "An implementation of Perl is not required to support 64-bit integer types or 128-bit floating-point types unless the underlying architecture supports them. "
22:32 preflex joined #perl6
22:47 yakshavr joined #perl6
22:49 dalek rakudo-star-daily: b1d475c | coke++ | log/ (5 files):
22:49 dalek rakudo-star-daily: today (automated commit)
22:49 dalek rakudo-star-daily: review: https://github.com/coke/rakudo​-star-daily/commit/b1d475c402
22:50 * [Coke] wonders if someone killed any of my processes on feather today.
22:50 [Coke] Juerd: have you enabled qmail sending yet?
22:55 dalek perl6-roast-data: 19a1279 | coke++ | / (4 files):
22:55 dalek perl6-roast-data: today (automated commit)
22:55 dalek perl6-roast-data: review: https://github.com/coke/perl6​-roast-data/commit/19a1279aee
22:55 [Coke] colomon: niecza has 2 more failures today.
22:56 mtk joined #perl6
22:59 berekuk joined #perl6
23:55 [Coke] gather question: https://gist.github.com/coke/4d33cb3fa0d3ddbb8604 - trying to get a lazy array of lines. the gather is only pulling the first line here (because there's no loop on the gather) - but what do I loop over? ... also, is there a better way to get a lazy list of lines?
23:58 [Coke] ... oh, by .lines, you say? ;)

| Channels | #perl6 index | Today | | Search | Google Search | Plain-Text | summary

Perl 6 | Reference Documentation | Rakudo