Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2014-01-28

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 jercos raydiak: the difference is that it's explicit? :p
00:01 raydiak jercos: according to the discussion earlier today in the backlog, the difference is massive, performance-wise
00:02 jercos Ah, I did scroll up for context, but not all the way to 12 hours ago.
00:04 raydiak I'm a little behind :)
00:04 geekosaur joined #perl6
00:09 treehug88 joined #perl6
00:17 moritz raydiak: a return basically throws a control exception that a routine catches
00:18 moritz raydiak: so you can do fun stuff like catching that control exception
00:18 moritz raydiak: the compiler should really optimize that away if it can proof that there's no catcher, but it's not yet smart enough
00:20 raydiak thanks moritz++, that's extremely useful for me to know
00:35 mavcunha joined #perl6
00:40 btyler_ joined #perl6
00:42 treehug88 joined #perl6
00:49 dayangkun_ joined #perl6
00:49 skids joined #perl6
00:57 rylinaux joined #perl6
01:31 kst joined #perl6
01:40 varna joined #perl6
02:00 kbaker joined #perl6
02:06 thou joined #perl6
02:10 treehug88 joined #perl6
02:16 colomon joined #perl6
02:27 thou joined #perl6
02:34 rurban1 joined #perl6
02:44 rurban1 joined #perl6
02:50 dalek specs: 33f0256 | larry++ | S05-regex.pod:
02:50 dalek specs: clarification from TheDamian++
02:50 dalek specs: review: https://github.com/perl6/specs/commit/33f0256cf6
03:02 raydiak japhb: I decided to leave the organization alone for now, and added a couple operations instead, incl cross product...are right-handed coordinates okay? or did you want to provide some facility for choosing handedness?
03:02 raydiak japhb: also, column-major or row-major matrices?
03:20 treehug88 joined #perl6
03:29 skids joined #perl6
03:44 cognominal joined #perl6
03:44 treehug88 joined #perl6
03:53 aindilis joined #perl6
03:58 kaleem joined #perl6
04:12 araujo joined #perl6
04:12 diakopter usage of the world perl through the years: http://goo.gl/rrwyv4
04:18 diakopter usage of other programming language names through the years: http://goo.gl/cbnPKM
04:21 BenGoldberg Set smoothing to zero to see a graph using the real data
04:22 diakopter law of small numbers... :)
04:25 BenGoldberg Also, since that data is how many times those words occur in all books in the corpus, not *just* programming books, I'm sure many occasions of the word 'java' refer to the island (or the coffee), and many occasions of the word 'ruby' refer to the gemstone.
04:26 diakopter well maybe. but the general hype/noise hump there I think is pretty representative of the programming self-help segment
04:26 xenoterracide joined #perl6
04:27 perigrin BenGoldberg: you'd expect Python to see a bump for the snake though
04:28 BenGoldberg That too :)
04:28 perigrin (and Haskell to get a bump for the obnoxious neighbor kid?)
04:28 diakopter perigrin: you're a snake bump
04:28 perigrin I haven't been a snake bump for 36 years!
04:29 kaare__ joined #perl6
04:32 jnap joined #perl6
04:43 krunen joined #perl6
04:49 kurahaupo_mobile joined #perl6
04:50 skids Similar google trends data (second group is scaled from much smaller values) http://goo.gl/vRq7fB http://goo.gl/Cf9gYG
04:58 diakopter skids: yeah, I think those curves can be normalized to all programming languages interest
04:59 diakopter (as chromatic has said repeatedly)
05:00 diakopter [I think]
05:01 skids Yes it seems that there is less interest in programming due probably to recession and/or dotcom afterglow fading.
05:03 lue If that thing just searches books, it's possible that books aren't the place to write about programming languages anymore :)
05:04 skids Maybe google isn't the place to search anymore either and people are just turning to social media forums.
05:05 skids (perfectly horrible way to find information, but that doesn't stop behavioral trends.)
05:07 perigrin might be people aren't the right things to search for programming languages
05:07 perigrin and applications are all generated by other AI
05:09 skids And Professional Services Organizations are just a AI population growth mechanism?
05:10 perigrin YAPC is going to be renamed YABC - Yet Another Bot Conference
05:13 japhb raydiak: I'd say "like OpenGL does it".  That means a right handed coordinate system, and transformation matrices specified and multiplied as they are in the OpenGL docs.
05:31 SamuraiJack joined #perl6
05:44 btyler joined #perl6
05:46 treehug88 joined #perl6
05:54 rurban1 joined #perl6
06:28 kaleem joined #perl6
06:45 raydiak ls
06:50 dmol joined #perl6
06:51 TimToady . .. .bashrc
06:52 raydiak *heart stops*
06:53 raydiak that's what it looked like last time my vps provider got hacked :P
06:57 raydiak japhb: do you suppose we ought to come up with a more consistent and obvious routine naming scheme? eg div and div-i (for In-place), instead of div and divide?
07:01 moritz \o #perl6
07:01 arnsholt G'day!
07:02 raydiak \o moritz
07:03 TimToady o/
07:11 FROGGS joined #perl6
07:15 darutoko joined #perl6
07:26 berekuk joined #perl6
07:29 brrt joined #perl6
07:34 virtualsue joined #perl6
07:42 jnthn o
07:42 jnthn uh, o/
07:47 jnthn teaching &
07:54 raydiak japhb: I just added rotations; things which may need changing: you mentioned not wanting to use specific names for the axii, but they are named rot-x, rot-y, etc for now...instead of degrees like opengl, they take radians; I'll let you decide if/how to convert optimally...and I didn't verify that rotation directions are the same as opengl
08:08 brrt left #perl6
08:08 brrt joined #perl6
08:12 zakharyas joined #perl6
08:17 sivoais joined #perl6
08:18 brrt joined #perl6
08:20 itz joined #perl6
08:20 sorear joined #perl6
08:21 woolfy joined #perl6
08:22 markov joined #perl6
08:25 timotimo o/ from a desk
08:30 Rix joined #perl6
08:39 FROGGS o/
08:39 brrt hi #perl6
08:39 brrt i haven't been here for a loooong time
08:39 brrt a): anyone going to FOSDEM this weekend?
08:39 brrt b): hows perl6 doing these days
08:39 pdcawley joined #perl6
08:40 tadzik damn, it's this weekend already? :/
08:40 brrt yes
08:40 brrt 1 and 2 februari
08:40 tadzik well, next year then :/
08:40 brrt … shame
08:40 brrt i'm superexcited to go
08:40 tadzik anyway, I think it's doing better than ever
08:40 tadzik MoarVM is better and better
08:40 brrt oooh
08:41 * brrt is still feeling bad about not having found the time to contribute to MoarVM
08:43 denis_boyun joined #perl6
08:44 timotimo brrt: just a few tiny data points: moarvm starts up a rakudo faster than parrot and uses less than half its memory already
08:44 timotimo it performs better than parrot in almost all microbenchmarks as well as the minibenchmarks we ran
08:45 brrt benefit of hindsight :-)
08:45 brrt but, great
08:45 zakharyas joined #perl6
08:45 zakalwe joined #perl6
08:45 zakalwe joined #perl6
08:47 tadzik hehe, /r/perl6 has its own troll :)
08:47 timotimo yup :)
08:51 Alula joined #perl6
09:05 rindolf joined #perl6
09:08 Pleiades` joined #perl6
09:15 sqirrel joined #perl6
09:24 Ulti tadzik it's me getting baited too :S I guess Perl 6 is an easy target for the decline in hipsterness of Perl
09:25 hoelzro brrt: I'll be there
09:25 tadzik first they ignore you, then they laugh at you...
09:25 hoelzro timotimo: not only that, but I managed to build the docs *without* the OOM killer knocking on my door!
09:27 brrt tadzik: then they continue ignoring you
09:27 Ulti someone in my lab who mainly uses Python is going to learn Perl just to completely replace his use of BASH, which is both a good idea and a new person to Perl, but he's never going to blog about his hacked up research shell like scripts :/
09:27 timotimo hoelzro: \o/ \o/ \o/
09:27 timotimo hoelzro: what timing, ooc?
09:28 hoelzro timotimo: 7m
09:28 timotimo that's not even bad
09:28 hoelzro nope
09:28 timotimo but still not very good :P
09:28 hoelzro and I got it to run using 600MB RAM
09:29 timotimo we should be able to do better, but it's a good start.
09:29 hoelzro it's a *great* start
09:29 hoelzro I'm thinking of porting my JVM instrumentation thing to Maro
09:29 hoelzro *Moar
09:47 dakkar joined #perl6
10:01 FROGGS joined #perl6
10:03 pecastro joined #perl6
10:18 * timotimo dives into some data munging
10:19 timotimo it's a PDF that's apparently been exported from excel and i'd like to have it in some excel-readable format again ... >_>
10:25 arnsholt Have fun =)
10:26 arnsholt PDF is more of an image format than a text format, so there's lots of weird stuff that can happen
10:26 timotimo yes.
10:26 arnsholt Some of my colleagues have been doing PDF extraction. IIRC they used a toolkit called pdfbox
10:30 timotimo i have the content as txt now
10:30 timotimo and the format is susceptible to regex :)
10:40 moritz "everybody stand back, I know regular expresions!"
10:43 Ulti timotimo: try `pdftotext` and see if it outputs as something nice like | or \t delimited text
10:44 Ulti erk too late
10:49 dakkar joined #perl6
10:49 timotimo time for a nice walk in the park
10:49 timotimo but Ulti that does sound helpful
10:49 timotimo i'll look at it in an hour
10:51 darutoko joined #perl6
11:07 masak oh hai #perl6
11:08 nwc10 good UGT, masak
11:10 rindolf n: my %h; %h{'foo'} //= do { 5+6;}; %h
11:10 camelia niecza v24-109-g48a8de3: ( no output )
11:10 rindolf What?
11:10 rindolf n: my %h; %h{'foo'} //= do { 5+6;}; %h{'foo'}
11:11 camelia niecza v24-109-g48a8de3: ( no output )
11:11 rindolf :-(
11:11 rindolf Can anyone help?
11:12 darutoko- joined #perl6
11:12 telex joined #perl6
11:12 rindolf n: my %h; %h{'foo'} //= do { 5+6;}; %h{'bar'} = "Bazooka"; %h
11:12 camelia niecza v24-109-g48a8de3: ( no output )
11:12 rindolf :-(
11:13 tadzik ENOSAY
11:13 rindolf n: my %h; %h{'foo'} //= do { 5+6;}; %h{'bar'} = "Bazooka"; say %h
11:13 camelia niecza v24-109-g48a8de3: OUTPUT«{"bar" => "Bazooka", "foo" => 11}␤»
11:15 [Sno] joined #perl6
11:18 sqirrel joined #perl6
11:21 rindolf tadzik: thanks.
11:25 djanatyn joined #perl6
11:50 dalek perl6-examples: ea0588e | (Shlomi Fish)++ | euler/prob031-shlomif.pl:
11:50 dalek perl6-examples: [Euler] Add solution for #31.
11:50 dalek perl6-examples: review: https://github.com/perl6/perl6-examples/commit/ea0588e309
11:58 krunen joined #perl6
11:58 atroxaper joined #perl6
12:00 FROGGS joined #perl6
12:09 pecastro joined #perl6
12:19 djanatyn joined #perl6
12:21 mavcunha joined #perl6
12:23 timotimo aaw, vim can't do J on visual block selection
12:24 colomon tadzik:
12:24 colomon bin/rakudobrew switch moar
12:24 colomon Switching to moar-HEAD
12:24 colomon Updating shims
12:24 colomon say() on closed filehandle $fh at bin/rakudobrew line 149.
12:24 tadzik :o'
12:24 tadzik that's a bug :)
12:25 tadzik colomon: I'll take a look at home, could you open a bug on github?
12:25 colomon sure
12:27 tadzik thanks
12:28 SamuraiJack joined #perl6
12:31 colomon done
12:31 djanatyn joined #perl6
12:34 djanatyn joined #perl6
12:34 sqirrel joined #perl6
12:35 ribasushi joined #perl6
12:42 djanatyn joined #perl6
12:51 treehug88 joined #perl6
12:59 sqirrel joined #perl6
12:59 sqirrel joined #perl6
13:00 sqirrel joined #perl6
13:06 djanatyn joined #perl6
13:07 rindolf joined #perl6
13:17 denis_boyun joined #perl6
13:18 djanatyn joined #perl6
13:22 djanatyn joined #perl6
13:26 djanatyn joined #perl6
13:29 djanatyn joined #perl6
13:39 djanatyn joined #perl6
13:43 djanatyn joined #perl6
13:48 Tene joined #perl6
13:49 djanatyn joined #perl6
13:54 djanatyn joined #perl6
13:57 denis_boyun__ joined #perl6
13:57 djanatyn joined #perl6
14:02 FROGGS nqp: use Perl6::Pod # :o(
14:02 camelia nqp-jvm: OUTPUT«java.nio.file.NoSuchFileException: Perl6/Pod␤  in  (src/vm/jvm/ModuleLoader.nqp:62)␤  in load_module (src/vm/jvm/ModuleLoader.nqp:52)␤  in load_module (gen/jvm/stage2/NQP.nqp:284)␤  in statement_control:sym<use> (gen/jvm/stage2/NQP.nqp:2087)␤  in !reduce (g…»
14:02 camelia ..nqp-moarvm, nqp-parrot: ( no output )
14:05 moritz missing build or install step in nqp-j?
14:06 FROGGS moritz: no, Perl6::Pod (from rakudo) is just installed elsewhere, even when it is an nqp module
14:07 araujo joined #perl6
14:07 FROGGS right, it is installed to nqp/install/languages/perl6/lib/Perl6 but should be in nqp/install/languages/nqp/lib/Perl6
14:08 kaleem joined #perl6
14:08 FROGGS question is: should I fix that or should we do this when cleaning up that languages/ mess?
14:10 FROGGS well, I just copied it over locally
14:10 djanatyn joined #perl6
14:11 Tene joined #perl6
14:11 Tene joined #perl6
14:26 jnap joined #perl6
14:36 bluescreen10 joined #perl6
14:44 mavcunha joined #perl6
14:44 Tene joined #perl6
14:44 Tene joined #perl6
14:46 btyler joined #perl6
14:48 kbaker joined #perl6
14:49 treehug88 joined #perl6
14:51 [Coke] is dalek asleep?
14:52 ajr joined #perl6
15:04 djanatyn joined #perl6
15:05 * [Coke] yawns.
15:05 djanatyn joined #perl6
15:06 FROGGS jnthn: don't nip at tea while looking at that: https://gist.github.com/FROGGS/33710fad7bd09cd2d7b4
15:07 treehug88 joined #perl6
15:07 djanatyn joined #perl6
15:08 moritz FROGGS: submit a bug report to icedtea/openjdk
15:08 * moritz has had similar bugs in the past
15:09 thou joined #perl6
15:12 Alina-malina joined #perl6
15:12 djanatyn joined #perl6
15:14 FROGGS jnthn: that is the same code that gives us the STable conflict on moar
15:15 colomon :\
15:19 FROGGS daxim: ping
15:21 diakopter FROGGS: heh http://jdk-source-code.googlecode.com/svn/trunk/jdk6u21_src/hotspot/src/share/vm/oops/generateOopMap.cpp
15:22 diakopter programmer ascii art is ascii
15:22 FROGGS heeh
15:22 FROGGS hehe*
15:30 jnthn FROGGS: ouch
15:30 jnthn .oO( Is Oop short for "Oops"? :) )
15:30 FROGGS yeah, was not what I had expected
15:30 tadzik ...yyyeeeah, that looks like a dependency graph alright
15:31 tadzik or whatever that was meant to be
15:31 diakopter onion
15:31 tadzik Right. Onion.
15:32 timotimo :)
15:32 timotimo silly hackers
15:33 FROGGS *g*
15:34 FROGGS I'd guess that this kind of silly hackers even wear conference shirts on hackathons^^
15:34 FROGGS at*
15:34 tadzik hahaha
15:34 FROGGS :P
15:34 tadzik I should've taken a screenshot of that page
15:34 FROGGS yeah
15:34 timotimo that was the fashion blog thing?
15:34 tadzik my 5 minutes as an internet celebrity
15:34 tadzik yep
15:35 timotimo oh man.
15:35 diakopter to be fair, you guys did look pretty ridiculous
15:35 tadzik your face looks ridiculous
15:35 diakopter i know
15:35 moritz diakopter: heresy
15:36 diakopter oh, I meant pretty
15:36 tadzik hehe
15:36 timotimo common mistake
15:36 timotimo the keys are right next to each other
15:36 diakopter my fingers grew
15:38 tadzik ah, the post is there on the wayback machine, but without the images :|
15:41 djanatyn joined #perl6
15:43 djanatyn joined #perl6
15:45 timotimo .u checkmark
15:45 timotimo nothing?
15:45 yoleaux No characters found
15:45 timotimo ah, yes
15:45 timotimo 2713
15:45 djanatyn joined #perl6
15:46 diakopter .u 999999999999999999999999999999999999999999999999999999999999999999999999999999
15:46 yoleaux No characters found
15:47 timotimo :)
15:48 FROGGS .u diakopter
15:48 yoleaux No characters found
15:49 [Coke] .u rmom
15:49 yoleaux No characters found
15:49 moritz .u dad
15:50 diakopter .u .u
15:50 FROGGS .u beef
15:50 yoleaux U+002E FULL STOP [Po] (.)
15:50 yoleaux U+0075 LATIN SMALL LETTER U [Ll] (u)
15:50 yoleaux U+0636 ARABIC LETTER DAD [Lo] (ض)
15:50 yoleaux U+06FB ARABIC LETTER DAD WITH DOT BELOW [Lo] (ۻ)
15:50 yoleaux U+FC22 ARABIC LIGATURE DAD WITH JEEM ISOLATED FORM [Lo] (ﰢ)
15:50 yoleaux No characters found
15:51 [Coke] yoleaux: slow, yo?
15:51 djanatyn joined #perl6
15:51 krunen joined #perl6
15:53 tadzik .u boot
15:53 yoleaux U+1F3BF SKI AND SKI BOOT [So] (????)
15:53 yoleaux U+1F462 WOMANS BOOTS [So] (????)
15:53 tadzik wow, SKI AND SKI BOOT might be my favourite one, next to FRONT-FACING BABY CHICK
15:54 Alina-malina joined #perl6
15:55 tadzik I wonder if I could name a Perl 6 module with U+1F43C
15:55 rindolf Hi all, using niecza - how do I do/require/use a filename so I have access to all its subroutines?
15:57 djanatyn joined #perl6
15:58 Ulti tadzik: those render as emoji graphics in OSX :S wat
16:00 diakopter r: module � {}
16:01 rindolf Is there any way I can run code interactively using niecza?
16:01 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/tmpfileâ�¤Unable to parse module definitionâ�¤at /tmp/tmpfile:1â�¤------> [32mmodule [33mâ��[31m� {}[0mâ�¤    expecting any of:â�¤        statement lis…»
16:01 rindolf Well, I tried copy+pasting the code, but it wanted to eval every line separately.
16:01 diakopter .u upside
16:01 yoleaux No characters found
16:01 diakopter o_O
16:02 colomon rindolf: interactively, like a REPL?
16:02 timotimo rindolf: yeah, that's a problem with rakudo as well
16:02 rindolf colomon: I mean I have some source code in a file I want to load it and execute some commands.
16:02 timotimo maybe we should introduce an explicit "line continuation character"
16:03 jnthn eval slurp 'file'
16:03 rindolf colomon: in order to test it.
16:03 jnthn Or if it's implemented, evalfile 'file'
16:03 colomon use filename doesn't work from the REPL?
16:03 timotimo as in "if this line ends in that character and without it, it'd not parse on its own, then strip the character, assk for another line and concatenate. then repeat"
16:03 timotimo actually, \ at the end of a line followed by a literal newline may even work without having to strip it
16:03 jnthn Oh, I misread
16:04 jnthn Yeah, use works in repl too :)
16:04 jnthn But not with filename.
16:04 jnthn And yeah, it won't import the subs.
16:04 rindolf Undeclared routine:
16:04 rindolf 'eval' used at line 1
16:04 timotimo EVAL? :)
16:05 rindolf timotimo: thanks now I get a line of sub gen_perms(@set) { ... }
16:05 btyler_ joined #perl6
16:05 timotimo ah, yeah
16:06 timotimo on some of our backends, the repl of rakudo is very ... weird
16:06 colomon use module name works fine in Niecza.
16:06 colomon in the REPL, I mean.
16:06 rindolf colomon: what's the exact incantation?
16:06 colomon niecza> use ABC::Utils
16:06 colomon Nil
16:06 colomon niecza> is-a-power-of-two(1/4)
16:06 colomon True
16:07 colomon the module has to be in the library search path, I actually ran Niecza from ABC's lib directory so I could import ABC modules.
16:07 rindolf colomon: OK.
16:07 rindolf colomon: how does the module look like?
16:07 PerlJam rindolf: are you perhaps having problems with the "have access to all of its subroutines" portion of your request?
16:08 rindolf Does it end in .p6?
16:08 rindolf PerlJam: yes, I do.
16:08 rindolf Or .p6m?
16:08 colomon .pm6, no?
16:08 * colomon always just uses .pl and .pm
16:08 * PerlJam just uses .pm
16:08 hoelzro I think .pm is the winner these days
16:10 colomon hoelzro: but wouldn't your github tools prefer .p6 / .pm6?   I've been pondering changing back....
16:10 hoelzro colomon: they do, but I improved the detection over the weekend
16:11 hoelzro everything roast, rakudo and rakudo-star/modules is successfully detected as Perl 6 (with two exceptions)
16:11 colomon rindolf: anyway, if you're going to use your code as a module, you probably need "is export" on the subs.
16:11 hoelzro it's sitting in a PR
16:11 rindolf OK, how do I put packages in the .pm file?
16:11 rindolf colomon: ah.
16:11 colomon hoelzro++
16:11 colomon afk
16:12 djanatyn joined #perl6
16:13 rindolf niecza> use Euler
16:13 rindolf GLOBAL::Euler does not name any package
16:13 Tene joined #perl6
16:13 Tene joined #perl6
16:13 rindolf And I have Euler.pm in the same directory.
16:14 colomon it's possible you need to declare "module Euler" in Euler.pm for it to work?
16:14 jnthn Shouldn't be needed.
16:14 * colomon typed afk and then forgot to actually leave the keyboard.
16:15 jnthn colomon: happens to the best of us :)
16:19 rindolf http://pastie.org/8675705 - what is wrong with this?
16:20 sivoais joined #perl6
16:22 jnthn rindolf: Not sure, don't have a Niecza here, but just tried with perl6-m... https://gist.github.com/jnthn/907707cbb2e2768f1dc7
16:23 jnthn emergency social &
16:23 FROGGS rindolf: you can `require "foo.p6"` and then call sub indirectly by: `::("bar")(1, 2)`
16:24 FROGGS since require does not import
16:25 FROGGS rindolf: maybe you need to put a `module Euler;` in taht file?
16:25 rindolf FROGGS: no idea.
16:25 daniel-s_ joined #perl6
16:26 FROGGS froggs@TL02L-R8RXTCW-linux:~/dev/niecza$ echo '42' > Foo.pm
16:26 FROGGS froggs@TL02L-R8RXTCW-linux:~/dev/niecza$ run/Niecza.exe -e 'use Foo'
16:26 FROGGS Unhandled exception: GLOBAL::Foo does not name any package
16:27 FROGGS but:
16:27 FROGGS froggs@TL02L-R8RXTCW-linux:~/dev/niecza$ echo 'module Foo;' > Foo.pm
16:27 FROGGS froggs@TL02L-R8RXTCW-linux:~/dev/niecza$ run/Niecza.exe -e 'use Foo'
16:27 FROGGS froggs@TL02L-R8RXTCW-linux:~/dev/niecza$
16:27 FROGGS rindolf: so, put a `module Euler;` right after the `use v6;`
16:27 rindolf FROGGS: OK, I did it - not it's working.
16:28 FROGGS not?
16:31 rurban1 joined #perl6
16:31 FROGGS bbiab
16:36 sivoais joined #perl6
16:38 smls joined #perl6
16:40 smls http://rosettacode.org/wiki/Constrained_genericity#Perl_6
16:40 smls ^^ This Rosetta Code solution does not work for me on R* 2013.12, although the description says "Works with: Rakudo version 2010.09.17"...
16:40 smls has the syntax changed?
16:41 rindolf n: 100800.split('').elems
16:41 camelia niecza v24-109-g48a8de3: ( no output )
16:41 rindolf n: say 100800.split('').elems
16:41 camelia niecza v24-109-g48a8de3: OUTPUT«8␤»
16:42 rindolf 8 is a strange result.
16:42 rindolf r: say 100800.split('').elems
16:42 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«6␤»
16:43 diakopter n: say 100800.split('').perl
16:43 camelia niecza v24-109-g48a8de3: OUTPUT«["", "1", "0", "0", "8", "0", "0", ""].list␤»
16:43 smls n: 100800.comb.perl
16:43 camelia niecza v24-109-g48a8de3: ( no output )
16:43 jercos n: say 100800.Str.split('').perl
16:43 camelia niecza v24-109-g48a8de3: OUTPUT«["", "1", "0", "0", "8", "0", "0", ""].list␤»
16:43 jercos n: say 100800.Str.comb.perl
16:43 camelia niecza v24-109-g48a8de3: OUTPUT«["1", "0", "0", "8", "0", "0"].list␤»
16:45 TimToady smls: works if you change .perl to .Str, so looks like the .perl/.gist are not getting autogenerated
16:47 TimToady well, .Str tells you it has a yummy, but doesn't show the insides
16:48 rindolf TimToady: hi.
16:48 TimToady howdy
16:49 btyler joined #perl6
16:50 * TimToady will not be too coherent today, due to something fluish (despite a flu shot)
16:50 FROGGS joined #perl6
16:50 PerlJam Despite or because of?  :)
16:51 PerlJam TimToady: In any case ... may your fluishness be short and your health return quickly.  :-)
16:54 jeffreykegler joined #perl6
16:59 smls perl6: role A[::T] { has T $.x };  class B does A[Int] { };  say B.new.x.WHAT.Str;
16:59 camelia rakudo-moar c884dc: OUTPUT«Cannot invoke null object␤  in block  at /tmp/tmpfile:1␤␤»
16:59 camelia ..niecza v24-109-g48a8de3: OUTPUT«[31m===[0mSORRY![31m===[0mâ�¤â�¤GLOBAL::T does not name any package at /tmp/tmpfile line 1:â�¤------> [32mrole A[::T[33mâ��[31m] { has T $.x };  class B does A[Int] { [0mâ�¤â�¤A type must be provided at /tmp/tmpfile line 1:â�¤------> [32mrole…»
16:59 camelia ..rakudo-parrot c884dc, rakudo-jvm c884dc: OUTPUT«No such method 'Str' for invocant of type 'T'␤  in block  at /tmp/tmpfile:1␤␤»
17:00 FROGGS >.<
17:21 sivoais joined #perl6
17:24 FROGGS joined #perl6
17:24 fhelmberger joined #perl6
17:33 dalek Perlito/gh-pages: 983e411 | (Flavio S. Glock)++ | / (9 files):
17:33 dalek Perlito/gh-pages: Create gh-pages branch via GitHub
17:33 dalek Perlito/gh-pages: review: https://github.com/fglock/Perlito/commit/983e41143d
17:40 jnap left #perl6
17:41 silug joined #perl6
17:43 dalek Perlito/gh-pages: 9e959c1 | (Flavio S. Glock)++ | CNAME:
17:43 dalek Perlito/gh-pages: Perlito - page - add CNAME file
17:43 dalek Perlito/gh-pages: review: https://github.com/fglock/Perlito/commit/9e959c1e87
17:46 dalek Perlito/gh-pages: 904110a | (Flavio S. Glock)++ | CNAME:
17:46 dalek Perlito/gh-pages: Perlito - page - add CNAME file
17:46 dalek Perlito/gh-pages: review: https://github.com/fglock/Perlito/commit/904110a282
17:47 treehug88 joined #perl6
17:59 sivoais joined #perl6
18:00 sivoais joined #perl6
18:05 timotimo ooh perlito!
18:06 skids joined #perl6
18:13 tgt joined #perl6
18:13 rindolf joined #perl6
18:16 benabik joined #perl6
18:20 Sqirrel joined #perl6
18:22 spider-mario joined #perl6
18:23 ajr joined #perl6
18:25 * skids realizes how hard it is to find that specced hard-quote square corner char in the docs when he doesn't have a sample to cut from.
18:39 [Coke] r: say "hi" ~~ "hi"
18:39 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«True␤»
18:39 [Coke] r: say ("hi" ~~ "hi").perl
18:39 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«Bool::True␤»
18:39 [Coke] bah.
18:40 moritz need a regex
18:40 moritz r: say 'hi' ~~ /h/
18:40 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«「h」␤␤»
18:40 zby_home joined #perl6
18:40 moritz r: say 'hi' ~~ /(h)/
18:40 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«「h」␤ 0 => 「h」␤␤»
18:40 moritz ... with a capture :-)
18:40 timotimo r: say 'hi' ~~ /<alpha>/
18:40 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«「h」␤ alpha => 「h」␤␤»
18:40 timotimo (implicit capture)
18:41 * moritz used fewer chars :-)
18:41 jnap joined #perl6
18:42 * timotimo did it more general
18:47 FROGGS p: sub a(\a) { if a == 1 { 1 } else { if a == 2 { 2 } elsif a == 3 { 3 } else { 4 } } }; say a($_) for ^5
18:47 camelia rakudo-parrot c884dc: OUTPUT«4␤1␤2␤3␤4␤»
18:47 FROGGS k
18:53 berekuk joined #perl6
18:55 sivoais joined #perl6
18:57 airdisa joined #perl6
19:01 pecastro joined #perl6
19:04 FROGGS nqp: sub a() { sub b() { 42 }; b() }
19:04 camelia nqp-moarvm, nqp-jvm, nqp-parrot: ( no output )
19:04 FROGGS nqp: sub a($a, $b, $c) { sub b() { 42 }; b(1, 2, 3) } # that fails to parse here
19:04 camelia nqp-moarvm, nqp-jvm, nqp-parrot: ( no output )
19:05 ajr joined #perl6
19:05 FROGGS weird
19:14 Alina-malina joined #perl6
19:17 * [Coke] hurls the quest: http://questhub.io/realm/perl/quest/52e802c019eee0996000001b
19:18 [Coke] (crap, hoelzro has outpaced me)
19:23 bjz_ joined #perl6
19:27 Util #ps in 3m
19:29 colomon Util!  o/
19:30 Util colomon: \o
19:31 [Coke] colomon: 49 niecza failures in roast.
19:37 colomon [Coke]: running make spectest now
19:37 jeffreykegler left #perl6
19:55 tgt joined #perl6
19:58 rurban2 joined #perl6
20:12 psch joined #perl6
20:12 psch hi #perl6
20:13 [Coke] hio.
20:14 timotimo hello mister ə :)
20:14 psch .u throws_like 'class A { method b { Q<b> } }; my $a = A.new; my $b = &A::b.assuming($a); $b();', X::Method::NotFound, method => { m/'assuming'/ }, private => { $_ === False };
20:14 psch whoops
20:14 psch my bad
20:15 rindolf Hi all. With http://www.shlomifish.org/Files/files/code/Euler.pm if I do "use Euler" in ./perl6-j in Rakudo c884dc10f273b9e201dbf90ea6c5bd739a7ff3a7 I get many «Method 'count' not found for invocant of class 'Parcel'» one after the other.
20:15 psch .u ə
20:15 psch because maybe the name helps me understand the reference... :)
20:16 timotimo the bot doesn't seem to be answering?
20:16 psch no, apparently not
20:17 psch you'll have to explain it yourself timotimo
20:17 geekosaur yoleaux went missing again
20:17 psch also, am i using rt badly or are there no unresolved [LHF] anymore?
20:17 timotimo ə is the ipa symbol for a schwa
20:17 timotimo i think we're short on LHF :(
20:18 psch oh, right
20:18 psch i used to know a bit IPA
20:18 psch well, still 35 testneeded! :)
20:19 psch right, RT #76400 was quite high up on my list
20:19 synopsebot Link: https://rt.perl.org/rt3//Public/Bug/Display.html?id=76400
20:19 psch r: $foo:: = 42; say $foo::;
20:19 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/tmpfileâ�¤Variable '$foo' is not declaredâ�¤at /tmp/tmpfile:1â�¤------> [32m$foo::[33mâ��[31m = 42; say $foo::;[0mâ�¤    expecting any of:â�¤        post…»
20:19 psch std: $foo:: = 42; say $foo::
20:19 camelia std 09dda5b: OUTPUT«ok 00:01 124m␤»
20:20 psch the behavior as in the last but one comment is desired i assume, although i don't quite understand the semantics
20:20 psch it's an assignment directly into the namespace?
20:25 timotimo where are jnthn's garbage collector talk slides again? o_O
20:27 psch http://jnthn.net/papers/2013-bs-secret-life-of-gc.pdf # this was the first hit on google for 'jnthn garbage collectors perl6'
20:28 psch it does look like it deals with garbage collectors!
20:30 timotimo thank you!
20:30 timotimo damn it :)
20:30 timotimo i looked at both 6guts and jnthn.net and didn't find it on either m)
20:30 timotimo now i feel stupid for not looking into the "papers" section (or google it)
20:31 psch i do that too, quite often, especially here
20:31 psch feeling stupid that it :P
20:32 timotimo :3
20:32 timotimo we get promoted into different environments until we no longer never feel stupid
20:32 timotimo (or promote ourselves)
20:35 [Coke] other low hanging fruit: turn rakudo todos/skips with no RT into real tickets.
20:35 [Coke] (just give a shout on channel if you're going through a section so we don't duplicate effort)
20:35 [Coke] e.g. anything marked "nom regression" or "nigh" needs a ticket by this point.
20:41 FROGGS joined #perl6
20:42 psch [Coke]: any hints/tips/tricks on how to find out if there's a ticket? or should i just rely on "there's no ticket number near the skip/todo" as a heuristic?
20:42 kbaker joined #perl6
20:44 raydiak :q
20:44 * hugme hugs raydiak, good vi(m) user!
20:44 raydiak ugh
20:44 raydiak I have a really hard time keeping my windows straight lately
20:45 PerlJam that's okay, curved windows are the future!
20:46 raydiak that's it, I'm just ahead of the curve :)
20:46 psch ahead of the pack, out of the straight into the curve
20:47 * raydiak imagines a perl6 window manager with no straight lines and race cars running around the resize border...
20:51 virtualsue joined #perl6
20:51 sqirrel joined #perl6
20:51 psch U+26D0, right
20:52 [Coke] psch: you got it. "no rt near this comment means no rt". you can do a search to see if it's covered by a ticket, of course.
20:52 psch [Coke]: right, thanks. i'm in S03-operators/precedence.t right now, for RT #116100
20:52 synopsebot Link: https://rt.perl.org/rt3//Public/Bug/Display.html?id=116100
20:52 [Coke] doesn't have to be mentioned IN the todo/skip message, but if there is one, it's usually right before it.
20:53 YannosB joined #perl6
21:02 * timotimo is back to hacking smallbigint for a bit
21:05 FROGGS C:\v5>perl6-m -e "use v5; use Config"
21:05 FROGGS ===SORRY!===
21:05 FROGGS STable conflict detected during deserialization.
21:05 Entonian joined #perl6
21:05 FROGGS (at least it is consistent)
21:10 smls joined #perl6
21:11 timotimo aaw :(
21:16 dayangkun_ joined #perl6
21:17 FROGGS timotimo: my hope was that it does only break on my linux
21:18 [Coke] largetinystring
21:18 dalek perl6-roast-data: da335a0 | coke++ | / (2 files):
21:18 dalek perl6-roast-data: today (automated commit)
21:18 dalek perl6-roast-data: review: https://github.com/coke/perl6-roast-data/commit/da335a0fb9
21:19 kaare__ joined #perl6
21:19 [Coke] ^^ first day we've had no moar progress in a while
21:20 hoelzro to whom do I send my signed CLA?
21:21 timotimo karen@   ... perlfoundation.org i believe
21:22 hoelzro alrighty
21:23 timotimo cool :)
21:25 psch create-moar-runner.pl fails for me
21:25 psch https://gist.github.com/peschwa/8676843
21:26 psch did i forget to update something?
21:26 timotimo in those cases, running Configure.pl again oftentimes helps
21:26 timotimo you have to manually re-do it every time it changes
21:26 timotimo and i think it recently did
21:26 yoleaux joined #perl6
21:27 psch Configure.pl just says "using [...]bin/nqp-{j,m}"
21:28 psch i'll just rerun make clean && make && make install anyway
21:32 xenoterracide joined #perl6
21:38 FROGGS psch: yeah, you have to reconfigure after jnthn++'s patch
21:38 FROGGS otherwise the script that creates the runner gets two args less
21:38 timotimo psch: Configure.pl implicitly forces the next make run to start from zero, i believe
21:39 FROGGS true
21:39 [particle] joined #perl6
21:39 timotimo ooh, that reminds me
21:39 timotimo was it [Coke] who started working on that tcl compiler atop nqp after the RaNIW?
21:39 timotimo "partcl"?
21:45 smls joined #perl6
21:48 dalek roast: db7936e | (Pepe Schwarz)++ | S03-operators/precedence.t:
21:48 dalek roast: Added test for RT #116100.
21:48 dalek roast: review: https://github.com/perl6/roast/commit/db7936e8ca
21:48 synopsebot Link: https://rt.perl.org/rt3//Public/Bug/Display.html?id=116100
21:48 [Coke] timotimo: ayup
21:48 [Coke] it was before then, IIRC.
21:49 timotimo [Coke]: any news?
21:49 timotimo (not that i have any interest in tcl itself, as i've never written a single line of code in it)
21:52 [Coke] "i really hope I can find tuits to work on it again"
21:52 timotimo fair enough :)
21:52 [Coke] I had started moving it over to default to the jvm. Perhaps I will re-switch it to moar.
21:53 [Coke] it's hard to stay motivated, I've had to rewrite that damn thing from scratch several times.
21:53 [Coke] with much help from pmichaud++ the time before last!
21:53 [Coke] "why, I remember when it was a p5 script that acted like a parrot assembler!"
21:54 [Coke] timotimo: what made you think of it?
21:54 nwc10 um, isn't the point of NQP that you write it once and it runs on Parrot, JVM and Moar (and maybe JS at some point)? Or did you need custom ops?
21:55 timotimo colomon: a person named "particle" joined this channel :)
21:56 [Coke] nwc10: there have been MANY nqps. :P
21:57 [Coke] it was written for the original one bundled with parrot first.
21:57 nwc10 OK, that's at least 2 back
21:57 nwc10 but maybe I lost count
21:57 [Coke] that was not a trivial upgrade. I never got a fully working version running on nqp-current.
21:57 nwc10 the *current* NQP which appears to be the final one
21:57 nwc10 aha.
21:57 timotimo :D
21:57 [Coke] nwc10: yes, I've been hacking on this since just after parrot started.
21:57 [Coke] the pure-PIR version is the most complete.
21:57 timotimo that sounds scary
21:58 PerlJam [Coke]: does it still run on modern parrot?
21:58 [Coke] I was running a substantial version of the tcl test suite with it.
21:59 [Coke] PerlJam: it was difficult to keep running against the moving target of parrot. Some stuff broke years ago and I couldn't get them fixed.
21:59 [Coke] I don't know how much of it still works against parrot 5.
21:59 [Coke] ... if I get it working against nqp-latest, then i won't care.
21:59 timotimo isn't there parrot 6 now? :)
22:00 hoelzro yes
22:00 hoelzro just came out!
22:00 tadzik PERL 6.0.0 RELEASED
22:01 treehug88 joined #perl6
22:01 hoelzro is there a Perl 6 builtin to get the current time? (preferably in millis/micros)
22:02 PerlJam r: now
22:02 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: ( no output )
22:02 PerlJam r: say now
22:02 tadzik r: say nqp::time_n
22:02 camelia rakudo-moar c884dc: OUTPUT«Instant:1390946576.829475␤»
22:02 camelia ..rakudo-jvm c884dc: OUTPUT«Instant:1390946576.416␤»
22:02 camelia ..rakudo-parrot c884dc: OUTPUT«Instant:1390946575.591308␤»
22:02 camelia rakudo-jvm c884dc: OUTPUT«1.390946543434E9␤»
22:02 camelia ..rakudo-moar c884dc: OUTPUT«1390946543.8345␤»
22:02 camelia ..rakudo-parrot c884dc: OUTPUT«1390946542.78067␤»
22:02 tadzik jvm, seriously?
22:02 PerlJam (the mismatch between calemia and the repl is always annoying)
22:02 PerlJam er, camelia
22:03 PerlJam .oO( what a calemity! )
22:03 timotimo m)
22:03 geekosaur calemny!
22:03 hoelzro thanks PerlJam
22:06 [Coke] oh. I have 3 hours to kill tonight. partcl's as good as anything. :)
22:08 * PerlJam looks at partcl's commit log
22:09 * psch forgot the [BUG] in his first RT ticket
22:09 psch ...can i still put it there?
22:09 PerlJam oh, you were working on it as recently as September.  [Coke]++ keeping the fire burning
22:10 psch i don't see any "edit" button-or-similar, and seeing as RT can be used via mail i guess i'm out of luck on this one...
22:12 psch RT #121107, for reference
22:12 synopsebot Link: https://rt.perl.org/rt3//Public/Bug/Display.html?id=121107
22:13 timotimo gnite
22:13 diakopter o/
22:13 timotimo psch: you have to click the links at the top right
22:13 timotimo like "basic" i think
22:13 timotimo it's not very intuitive
22:13 timotimo o/
22:14 FROGGS psch: https://rt.perl.org/Ticket/Modify.html?id=121107 # does that link work for you?
22:14 diakopter it's the best at being unintuitive
22:16 psch FROGGS: yes, modify works, thanks
22:17 mbcd joined #perl6
22:17 * psch needs to get copy&paste between host and guest working
22:17 psch gists aren't a great way to transfer camelia output :P
22:18 smls How can I get at members of an enum?
22:19 smls i.e. given Bool, return the parcel (Bool::False, Bool::True)
22:19 FROGGS p: say Bool::
22:19 camelia rakudo-parrot c884dc: OUTPUT«("False" => Bool::False, "True" => Bool::True).hash␤»
22:20 smls p: say Bool::.values.perl
22:20 camelia rakudo-parrot c884dc: OUTPUT«(Bool::False, Bool::True).list␤»
22:20 smls ok, thanks
22:23 psch r: say 1, 2 Z 3, 4 X 5, 6 # is this related to the bug i just created? STD gives the same error it gives for RT #121107
22:23 synopsebot Link: https://rt.perl.org/rt3//Public/Bug/Display.html?id=121107
22:23 camelia rakudo-parrot c884dc, rakudo-jvm c884dc, rakudo-moar c884dc: OUTPUT«1 3 2 5␤»
22:23 hoelzro wow, Sets are almost 5x slower than Arrays for iteration...
22:23 psch std: 1, 2 Z 3, 4 X 5, 6 # for reference
22:23 camelia std 09dda5b: OUTPUT«[31m===[0mSORRY![31m===[0m�"Z" and "X" are non-associative and require parens at /tmp/BAVftp1BAm line 1:�------> [32m1, 2 Z 3, 4 X [33m�[31m5, 6 # for reference[0m�Check failed�FAILED 00:01 124m�»
22:25 psch i'll just stuff it in there and correct to title to refer to list associativity in general
22:26 psch unless someone has an argument why that's wrong... :)
22:29 mbcd joined #perl6
22:34 mbcd joined #perl6
22:37 [particle]1 joined #perl6
22:47 * psch is off to bed o/
22:48 BenGoldberg joined #perl6
23:09 mavcunha joined #perl6
23:13 treehug88 joined #perl6
23:17 rurban1 joined #perl6
23:20 airdisa joined #perl6
23:20 denis_boyun joined #perl6
23:23 tgt joined #perl6
23:23 jeffreykegler joined #perl6
23:23 Alula joined #perl6
23:40 lizmat joined #perl6
23:40 xinming joined #perl6
23:52 benabik joined #perl6

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

Perl 6 | Reference Documentation | Rakudo