»ö« Welcome to Perl 6! | perl6.org/ | evalbot usage: 'perl6: say 3;' or rakudo:, niecza:, std:, or /msg p6eval perl6: ... | irclog: irc.perl6.org/ | UTF-8 is our friend!
Set by sorear on 4 February 2011.
00:00 imarcusthis joined 00:05 Chillance left 00:19 imarcusthis left 00:21 imarcusthis joined 00:23 gfldex left 00:24 MikeFair_ left 00:25 gfldex joined 00:29 MikeFair_ joined 00:30 tokuhiro_ joined 00:33 wamba left 00:54 anuby joined 01:14 dayangkun joined, hypolin joined 01:26 tokuhiro_ left 01:27 sftp left 01:35 sevvie left 01:44 MikeFair_ left 01:45 MikeFair_ joined 01:48 woosley joined 01:50 hypolin left, hypolin joined
dalek rl6-bench: 5f70232 | (Geoffrey Broadwell)++ | bench:
Factor out parsing of components.json from multiple places into single action at startup
02:10
rl6-bench: c37d0fd | (Geoffrey Broadwell)++ | bench:
Add missing #= comment for needs-setup()
rl6-bench: 8c1853c | (Geoffrey Broadwell)++ | bench:
Add explode-components() to expand a partially-specified list of components and checkouts
rl6-bench: 0600709 | (Geoffrey Broadwell)++ | bench:
Refactor build command in terms of explode-components; various additional tweaks and cleanups within
02:11 thou left 02:12 japhb left 02:25 orafu left, orafu joined 02:35 benabik joined 02:51 telex left 02:52 telex joined 02:57 thou joined 04:01 japhb joined
dalek rl6-bench: 49d7be1 | (Geoffrey Broadwell)++ | bench:
Simplify a loop block, hopefully also avoiding a nasty buggenz
04:08
04:10 hugme left 04:11 hugme joined, ChanServ sets mode: +v hugme, p6eval left 04:12 telex left 04:13 pmichaud left, pmichaud joined 04:14 p6eval joined, ChanServ sets mode: +v p6eval, sergot left 04:15 sergot joined, [Coke] left, [Coke] joined 04:19 telex joined 04:23 CharellKing joined
CharellKing Hi everyone 04:23
sorear Hi 04:26
04:28 telex left 04:36 Entonian joined 04:37 telex joined 04:39 Entonian left 04:45 CharellKing left 04:58 kaleem joined 05:00 sftp joined 05:34 hash_table left, birdwindupbird joined
dalek nda/custom-lib: 6dfed95 | moritz++ | b (2 files):
update bin/panda and bootstrap.pl to use %*CUSTOM_LIB

TODO: rebootstrap
05:45
05:58 birdwindupbird left 06:06 wtw_ joined 06:08 wtw left 06:28 grondilu joined
grondilu rn: .say for "foo x bar y bar".match: / foo .* bar /, :overlap 06:29
p6eval rakudo 978492: OUTPUT«「foo x bar y bar」␤␤»
..niecza v22-14-g136ddcf: OUTPUT«Unhandled exception: Excess arguments to Cool.match, unused named overlap␤ at /home/p6eval/niecza/lib/CORE.setting line 0 (Cool.match @ 1) ␤ at /tmp/o4dkHKaD5Y line 1 (mainline @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4215 (ANON @ 3) ␤ at /h…
grondilu r: .say for "axbyb".match: / a .* b /, :overlap 06:30
p6eval rakudo 978492: OUTPUT«「axbyb」␤␤»
grondilu was expecting axbyb but also axb
06:36 cognominal joined
grondilu r: .say for "axbyb".match: / a .*? b /, :overlap 06:38
p6eval rakudo 978492: OUTPUT«「axb」␤␤»
06:39 fhelmberger joined
grondilu r: .say for "axbaybzb".match: / a .*? b /, :overlap 06:39
p6eval rakudo 978492: OUTPUT«「axb」␤␤「ayb」␤␤»
grondilu r: .say for "axbaybzb".match: / a .* b /, :overlap
p6eval rakudo 978492: OUTPUT«「axbaybzb」␤␤「aybzb」␤␤»
06:41 wamba joined 06:44 Su-Shee left, Su-Shee joined
arnsholt o/ 06:44
Waiting for my plane in Oslo
06:44 arlinius left 06:45 araujo left 06:46 azawawi joined, flightrecorder joined 06:51 FROGGS joined 06:52 am0c joined 06:57 araujo joined, wtw joined 07:00 wtw_ left 07:09 kaleem left
azawawi hi 07:19
i just found out a bad rosetta code perl 6 entry 07:20
rosettacode.org/wiki/URL_decoding#Perl_6
basically it is not 100% right since it does not handle (+ for space). 07:21
07:21 brrt joined
azawawi maybe it is better to use the built-in URI::Escape 07:21
jnthn morning, #perl6
tadzik seems to be written by TimToady himself :) rosettacode.org/mw/index.php?title=...did=135012
moritz \o
tadzik hello jnthn, moritz
brrt \o p6 07:22
azawawi "...HTML 5, section 4.10.22.5 URL-encoded form data, says to preserve "-._*", and to encode space " " to "+"..." 07:23
see rosettacode.org/wiki/URL_encoding
07:25 thou left 07:29 cosimo joined
azawawi star: use Pod::To::HTML; 07:30
p6eval star 2012.07: ( no output )
azawawi star: use Pod::To::HTML; Pod::To::HTML.render('=begin pod\nSome POD\n=end pod'); 07:31
p6eval star 2012.07: ( no output )
azawawi star: use Pod::To::HTML; say Pod::To::HTML.render('=begin pod\nSome POD\n=end pod');
p6eval star 2012.07: OUTPUT«<!doctype html>␤<html>␤<head>␤ <title>Pod document</title>␤ <meta charset="UTF-8" />␤ <style>␤ kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }␤ samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }␤ u { te…
moritz azawawi: that's not how you use it
instead you pass in the $=pod variable 07:32
azawawi example please :)
moritz star: =begin pod␤=head1 OH HAI␤␤some text␤=end pod␤ use Pod::To::HTML; say Pod::To::HTML.render($=pod); 07:33
p6eval star 2012.07: OUTPUT«<!doctype html>␤<html>␤<head>␤ <title>Pod document</title>␤ <meta charset="UTF-8" />␤ <style>␤ kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }␤ samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }␤ u { te…
07:34 domidumont joined
moritz star: =begin pod␤=TITLE custom title␤use Pod::To::HTML; say Pod::To::HTML.render($=pod); 07:34
p6eval star 2012.07: OUTPUT«===SORRY!===␤=begin without matching =end␤at /tmp/8uflOzusSy:1␤»
moritz star: =begin pod␤=TITLE custom title␤=end pod␤use Pod::To::HTML; say Pod::To::HTML.render($=pod);
p6eval star 2012.07: OUTPUT«<!doctype html>␤<html>␤<head>␤ <title>custom title</title>␤ <meta charset="UTF-8" />␤ <style>␤ kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace }␤ samp { font-family: "Terminus", "Courier", "Lucida Console", monospace }␤ u { te… 07:35
azawawi yeah but in my case 07:37
i need to render what the user is typing in the editor to HTML-POD
moritz then it's best to invoke perl6 --doc=html $filename on it 07:38
or --doc=HTML, I think
FROGGS morning
moritz \o FROGGS
azawawi yeah i noticed it does not handle inline code 07:39
moritz inline code? 07:40
azawawi sorry inline pod
moritz you mean #= ? 07:41
07:41 am0c left
azawawi im not 100% up2date with POD6 07:42
moritz then what do you mean by "inline pod"?
azawawi i was thinking of basically generating a POD view for what the user types
07:42 sqirrel joined
azawawi i.e. POD within code 07:43
07:43 hoelzro|away is now known as hoelzro
moritz that's exactly what perl6 --doc=HTML extracts 07:43
unless I completely misunderstood you
azawawi let me check it
FROGGS azawawi: like I get a hint about the function/class/object I am typing?
moritz then I did misunderstand, yes 07:44
bbkr__ hello happy p6 people :) who can bump Star modules before release?
FROGGS or do you mean you wanna display the htmlified section of the pod stuff I am currently writing?
azawawi FROGGS: yeah the final objective is autocompletion
FROGGS ahh
azawawi FROGGS: but right now it is a POD view...
moritz azawawi: maybe take a look at S26-documentation/why.t in roast 07:46
FROGGS bbkr__: the guy who makes the next release, see github.com/rakudo/rakudo/blob/nom/..._guide.pod 07:47
I want to do the november one btw
moritz FROGGS: I think you're talking about the compiler release, and bbkr__ about the star release 07:48
bbkr__: the default is to ship the newest version of each module, so there's no need for bumping
bbkr__ yes, I was asking about Star. thanks for answer.
07:49 domidumont left 07:50 domidumont joined 08:02 SamuraiJack joined 08:07 snearch joined 08:29 dakkar joined
masak morning, #perl6 08:47
jnthn masak! \o/
FROGGS hi masak, hi jnthn 08:48
08:52 shachaf is now known as SHACHAF, dayangkun left
cognominal moritz++, I just happended to search the perl 6 incantation to generate the html from the pod 09:00
09:10 SHACHAF is now known as shachaf 09:14 cognominal_ joined 09:16 cognominal left 09:18 wamba left 09:22 jp11 joined 09:24 jp11 left 09:36 daxim joined 09:39 wamba joined 09:49 kaleem joined 09:52 cognominal joined 09:53 cognominal_ left 10:05 hypolin left 10:11 birdwindupbird joined
azawawi is there any File::Temp module or something similar in Perl 6? 10:12
tadzik I think there is, yes
somebody wrote one, odd that it's not on modules.perl6.org 10:13
it's here though: feather.perl6.nl/~sergot/modules/mo...:Temp.html :)
sergot++
jnthn The Perl 6 darkpan strikes again :P 10:14
10:14 anuby left
azawawi star: my $result = qx/ls/; 10:15
p6eval star 2012.07: OUTPUT«qx, qqx is disallowed in safe mode␤ in sub restricted at src/SAFE.setting:4␤ in sub QX at src/SAFE.setting:11␤ in block <anon> at /tmp/LZATyMGdzp:1␤␤»
FROGGS tadzik: good to know, I already wanted to start hacking on file::temp 10:22
brrt are p6's HOW and WHAT supposed to be independent? 10:25
10:25 cognominal left 10:27 cognominal joined 10:28 fgomez left
jnthn .HOW means meta-object, .WHAT means type object 10:28
brrt rn: my $foo = 3; say $foo.WHAT; say $foo.HOW;
p6eval rakudo 978492: OUTPUT«Int()␤Perl6::Metamodel::ClassHOW.new()␤»
..niecza v22-14-g136ddcf: OUTPUT«Int()␤ClassHOW.new(...)␤»
brrt … right, ok
jnthn They work at different levels. 10:29
The type object is just an empty instance. It has exactly the same type as any instance.
The meta-object defines how the object works.
brrt so, in a sense 10:30
jnthn And thus knows how to answer questions like "what methods does it have" etc.
brrt the type object is the 'structure', and the meta object is 'the interface'?
jnthn Not really
brrt :-( too bad
10:31 erkan left
jnthn At lesat, that way of thinking about it doesn't make sense to me 10:31
brrt i can't recall where in the synopses it was stated
jnthn The meta-object is all about things like "what does it mean to have methods", "what order to we visit inherited classes in multiple inheritance when calling a method", "what types am I a subtype of" and so on. 10:32
brrt right
(i'm off to lunch, thanks :-)) 10:33
jnthn thinks lunch seems like a good idea too :)
10:33 xinming left, brrt left, xinming joined
azawawi star: my $content = "<body class=\"pod\" id=\"___top\">\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n</body>"; if ($content ~~ /\<body.+?\>(.+?)\<\/body\>/) { $content = $0; }; say $content; 10:38
p6eval star 2012.07: OUTPUT«(timeout)»
FROGGS uhh
azawawi r: my $content = "<body class=\"pod\" id=\"___top\">\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n</body>"; if ($content ~~ /\<body.+?\>(.+?)\<\/body\>/) { $content = $0; }; say $content;
p6eval rakudo 978492: OUTPUT«maximum recursion depth exceeded␤current instr.: 'print_exception' pc 86654 (src/gen/CORE.setting.pir:41740) (src/gen/CORE.setting:9055)␤called from Sub 'substr' pc 153459 (src/gen/CORE.setting.pir:71513) (src/gen/CORE.setting:2000)␤called from Sub 'Str' pc 303488 … 10:39
10:39 erkan joined, erkan left, erkan joined
azawawi r: my $content = "<body class=\"pod\" id=\"___top\">\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n</body>"; if ($content ~~ /\<body.+?\>(.+?)\<\/body\>/) { $content = $0; }; say $content.perl; 10:39
p6eval rakudo 978492: OUTPUT«(timeout)»
FROGGS what is ".+?" ?
azawawi r: my $content = "<body class=\"pod\" id=\"___top\">\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n</body>"; if ($content ~~ /\<body.+?\>(.+?)\<\/body\>/) { $content = '' ~ $0; }; say $content.perl;
p6eval rakudo 978492: OUTPUT«"\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n"␤»
azawawi r: my $content = "<body class=\"pod\" id=\"___top\">\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n</body>"; if ($content ~~ /\<body.+\>(.+?)\<\/body\>/) { $content = '$0; }; say $content.perl; 10:40
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Unable to parse expression in block; couldn't find final '}' at line 2, near "$content ="␤»
azawawi sorry for the noise
FROGGS you should be able to do: ~$0
to stringify
10:41 GlitchMr joined
azawawi so basically it has to do with $0 not being Str, right? 10:41
10:42 cognominal_ joined, cognominal left
azawawi FROGGS: the problem started when i was trying to do a normal s/<body>.+</body>/$0/ 10:43
FROGGS: escaped ofcourse but that kept segfaulting...
FROGGS I cant tell why you get "maximum recursion depth exceeded" but since '' ~ $0 works, ~$0 should work too 10:44
you wanna get everything from within the body tag, right? 10:46
azawawi yup 10:47
basically cleaning up output from q{ perl6 -output=HTML test.p6 } 10:48
FROGGS r: my $content = "<body class=\"pod\" id=\"___top\">\n\n<nav class=\"indexgroup\">\n</nav>\n\n\n\n</body>"; if ($content ~~ /\<body<-[>]>*\>(.*)\<\/body\>/) { $content = ~$0; }; say $content; 10:49
p6eval rakudo 978492: OUTPUT«␤␤<nav class="indexgroup">␤</nav>␤␤␤␤␤»
FROGGS or maybe use an XML module 10:50
azawawi fixed... finally :) 10:52
now the File::Temp... :)
github.com/azawawi/farabi6
so do we need to add github.com/perlpilot/p6-File-Temp to the ecosystem or ask the author permission first? 10:53
moritz I'm sure PerlJam won't object 10:54
10:55 dayangkun joined
azawawi it is still *nix specific though github.com/perlpilot/p6-File-Temp/...le/Temp.pm 10:56
tadzik wasn't there File::Spec which could create temporary files? 10:57
FROGGS?
FROGGS well, it could use my File::Spec to get the tempdir and the pathsep...
tadzik?
no, it doesnt create tempfiles
tadzik ah, ok 10:58
FROGGS I made File::Spec to create tempfiles on my own
10:58 rindolf joined 11:00 brrt joined 11:06 dayangkun left 11:07 Su-Shee left 11:09 cognominal_ left 11:10 UncleFester6 joined, Su-Shee joined, UncleFester6 left 11:11 cognominal_ joined
grondilu Do you guys know the Project Euler website? projecteuler.net/problems 11:14
tadzik yeah
grondilu this thing must provide some neat examples of perl6 programming. 11:15
daxim more math/pure algorithms wankery 11:16
grondilu like the first one: "Find the sum of all the multiples of 3 or 5 below 1000." 11:17
r: say [+] grep * %% 3|5, ^1000 11:18
p6eval rakudo 978492: OUTPUT«166838␤»
FROGGS is there a way to see the answers?
11:19 cognominal_ left
grondilu If it's like with rosalind.info, you have to solve a problem to see other people's solutions. 11:19
FROGGS or at least a stat so you know it was solved using Perl 6?
ah, k
11:20 PZt left, cognominal_ joined
grondilu I'm amazed how great is this line: say [+] grep * %% 3|5, ^1000 11:20
I mean, I dare anyone to solve this task with less characters.
tadzik you can remove some whitespace, but that's probably minimal, yes 11:23
GlitchMr Less characters, you say...
say [+] grep *%%3|5,^1000
Now I did it with less characters.
grondilu I also meant that I don't think any other language than Perl6 could make such a solution so short. 11:24
GlitchMr ... I hope that some APL or J programmer won't appear ;-)
moritz well, more importantly it's hard to beat and stay readable 11:25
GlitchMr Or GolfScript
Or even 11:28
say [+] grep *%%3|5,^1e3
Shorter!
FROGGS r: say [+] grep *%%3|5,^1e 11:30
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Confused␤at /tmp/ZZIugo19mZ:1␤»
FROGGS meh
grondilu lol
FROGGS r: say [+] grep *%%3|5,^1e3
p6eval rakudo 978492: OUTPUT«166838␤»
FROGGS cp&paste error -.-
grondilu I'm amazed how great is this line: say[+]grep*%%3|5,^1000
oops
r: say[+]grep*%%3|5,^1000 11:31
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Preceding context expects a term, but found infix + instead␤at /tmp/nA3uYHqNBP:1␤»
grondilu r: say[+]grep * %%3|5,^1000
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Preceding context expects a term, but found infix + instead␤at /tmp/4Rgt5LOB31:1␤»
grondilu r: say[+] grep * %%3|5,^1000
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Preceding context expects a term, but found infix + instead␤at /tmp/GGxoHAIWFS:1␤»
grondilu r: say [+] grep * %%3|5,^1000
p6eval rakudo 978492: OUTPUT«166838␤»
11:32 imarcusthis- joined 11:33 imarcusthis left 11:35 cognominal__ joined
GlitchMr q: 123456789 11:35
3 3 3607 3803
:-)
11:36 cognominal_ left
grondilu damn it it's actually not the good answer :( 11:37
flussence you can golf any arbitrarily large program down to "eval get open '/dev/urandom'"... with about 1/(1+0x100 ** .chars) probability of working
11:40 domidumont left
GlitchMr flussence: codegolf.stackexchange.com/a/6142/3103 11:40
11:42 pmurias joined
grondilu rn: say [+] grep * %% 3|5, ^1000 # the correct answer is actually 233168 11:42
p6eval rakudo 978492: OUTPUT«166838␤»
..niecza v22-14-g136ddcf: OUTPUT«499500␤»
brrt waitaminute 11:43
r: say 3 %% 5
p6eval rakudo 978492: OUTPUT«False␤»
brrt r: say 3 %% #|5
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Confused␤at /tmp/3QsAK2mE2b:1␤»
brrt r: say 3 %% 3|5
p6eval rakudo 978492: OUTPUT«any(True, 5)␤»
moritz nr: say $_ %% 3|5 for ^10
p6eval niecza v22-14-g136ddcf: OUTPUT«any(Bool::True, 5)␤any(Bool::False, 5)␤any(Bool::False, 5)␤any(Bool::True, 5)␤any(Bool::False, 5)␤any(Bool::False, 5)␤any(Bool::True, 5)␤any(Bool::False, 5)␤any(Bool::False, 5)␤any(Bool::True, 5)␤»
..rakudo 978492: OUTPUT«any(True, 5)␤any(False, 5)␤any(False, 5)␤any(True, 5)␤any(False, 5)␤any(False, 5)␤any(True, 5)␤any(False, 5)␤any(False, 5)␤any(True, 5)␤»
moritz precedence 11:44
nr: say [+] grep * %% (3|5), ^1000
p6eval rakudo 978492, niecza v22-14-g136ddcf: OUTPUT«233168␤»
brrt r: say (grep * %% 3|5, ^10).perl
p6eval rakudo 978492: OUTPUT«(0, 3, 5, 6, 9).list␤»
grondilu just looked at S03 11:45
normally junctions precedes multiplicative
11:46 colomon joined
grondilu oh no they don't. Sorry. 11:47
cognominal__ rn: my Junction $a = 0 11:53
p6eval rakudo 978492: OUTPUT«Cannot look up attributes in a type object␤ in sub AUTOTHREAD at src/gen/CORE.setting:1890␤ in block at /tmp/_VTuNfSZzw:1␤␤»
..niecza v22-14-g136ddcf: OUTPUT«Potential difficulties:␤ $a is declared but not used at /tmp/k9n72Y25_q line 1:␤------> my Junction ⏏$a = 0␤␤Unhandled exception: Nominal type check failed for scalar store; got Int, needed Junction or subtype␤ at /tmp/k9n72Y25_q line …
cognominal__ unhelpful message for rakudo
jnthn can't help but wonder if the error occurs when trying to report the real error... 11:54
cognominal__ jnthn, I did not thought of that :) 11:56
GlitchMr rn: my \x = 2|0; print x == x + 2
p6eval niecza v22-14-g136ddcf: OUTPUT«any(any(Bool::False, Bool::True), any(Bool::False, Bool::False))»
..rakudo 978492: OUTPUT«This type cannot unbox to a native string␤ in method print at src/gen/CORE.setting:7450␤ in sub print at src/gen/CORE.setting:7260␤ in block at /tmp/LgjxiDWqYY:1␤␤»
GlitchMr What's wrong with Rakudo?
And why it SIGSEGV it REPL?
jnthn rn: my \x = 2|0; say x == x + 2
p6eval niecza v22-14-g136ddcf: OUTPUT«any(any(Bool::False, Bool::True), any(Bool::False, Bool::False))␤»
..rakudo 978492: OUTPUT«any(any(False, True), any(False, False))␤»
cognominal__ GlitchMr: lack of core developpers? 11:57
GlitchMr what
jnthn Apparently, print is implemented wrongly.
Yes, Rakudo needs more developers.
Especially ones interested in fixing LTA errors, given our ticket queue is now full of 'em... :) 11:58
rindolf jnthn: what is LTA? 12:00
jnthn rindolf: Less Than Awesome
rindolf Ah.
jnthn rindolf: Cases where Rakudo rightly errors out, but where the message it gives could be improved.
GlitchMr codegolf.stackexchange.com/a/8776/3103 12:01
:-)
rindolf jnthn: OK.
pmurias jnthn: simple wrapper for nqp: pastie.org/5097767 12:02
grondilu r: my @a := 1 .. *; say grep * < 4, @a; 12:03
p6eval rakudo 978492: OUTPUT«(timeout)»
grondilu n: my @a := 1 .. *; say grep * < 4, @a;
p6eval niecza v22-14-g136ddcf: OUTPUT«(timeout)» 12:04
12:04 cosimo left
grondilu n: my @a := 1 .. *; say grep * < 4 <== @a; 12:05
p6eval niecza v22-14-g136ddcf: OUTPUT«␤Unhandled exception: Feed ops NYI␤ at /home/p6eval/niecza/lib/CORE.setting line 1443 (die @ 5) ␤ at /home/p6eval/niecza/lib/CORE.setting line 3362 (infix:<<==> @ 4) ␤ at /tmp/95gyTlPCo0 line 1 (mainline @ 7) ␤ at /home/p6eval/niecza/lib/CORE.setting l…
jnthn grondilu: How does grep know when to stop?
grondilu indeed. 12:06
jnthn :)
grondilu Silly of me.
jnthn Try ... with some closure on the RHS, maybe.
depending what problem you're actually aiming at :)
azawawi alright POD view is now working in Farabi6 :) 12:07
12:09 domidumont joined
azawawi prepares Farabi6 to be run over feather.perl6.nl 12:09
tadzik cool :) 12:11
grondilu nr: my @f = 1, 2, *+* ...^ * > 100; 12:12
p6eval rakudo 978492: ( no output )
..niecza v22-14-g136ddcf: OUTPUT«Potential difficulties:␤ @f is declared but not used at /tmp/Sn2j0jUU_R line 1:␤------> my ⏏@f = 1, 2, *+* ...^ * > 100;␤␤»
grondilu nr: say my @f = 1, 2, *+* ...^ * > 100;
p6eval niecza v22-14-g136ddcf: OUTPUT«Potential difficulties:␤ @f is declared but not used at /tmp/5FTC_0Bgl0 line 1:␤------> say my ⏏@f = 1, 2, *+* ...^ * > 100;␤␤1 2 3 5 8 13 21 34 55 89␤»
..rakudo 978492: OUTPUT«1 2 3 5 8 13 21 34 55 89␤»
brrt rn: say (0.3 - 0.2) == (0.2 − 0.1) 12:13
p6eval niecza v22-14-g136ddcf: OUTPUT«===SORRY!===␤␤Confused at /tmp/izzMbQtEzW line 1:␤------> say (0.3 - 0.2) == (0.2 ⏏− 0.1)␤␤Parse failed␤␤»
..rakudo 978492: OUTPUT«===SORRY!===␤Unable to parse expression in parenthesized expression; couldn't find final ')' at line 2, near "0.2 \u2212 0.1)"␤»
azawawi what do we use for prove in Perl 6? 12:14
brrt rn: say 0.1 == 0.1
p6eval rakudo 978492, niecza v22-14-g136ddcf: OUTPUT«True␤»
brrt rn say 0.3 − 0.2 == 0.2 − 0.1
masak azawawi: I usually use prove.
bbkr__ azawawi: prove :)
tadzik azawawi: I also use prove
bbkr__ "prove -e perl6"
brrt rn: say 0.3 − 0.2 == 0.2 − 0.1
p6eval niecza v22-14-g136ddcf: OUTPUT«===SORRY!===␤␤Confused at /tmp/VPCLC9uQRs line 1:␤------> say 0.3 ⏏− 0.2 == 0.2 − 0.1␤␤Parse failed␤␤»
..rakudo 978492: OUTPUT«===SORRY!===␤Confused␤at /tmp/1ufhJeej94:1␤»
tadzik did I mention that it'd be lovely to have a TAP harness in Perl 6?
it'd be lovely to have a TAP harness in Perl 6 :) 12:15
brrt rn: my $x = 0.3 − 0.2; my $y = 0.2 − 0.1; say $x == $y;
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Confused␤at /tmp/uKuLQLkGiJ:1␤»
..niecza v22-14-g136ddcf: OUTPUT«===SORRY!===␤␤Confused at /tmp/BO0DRt3BfU line 1:␤------> my $x = 0.3 ⏏− 0.2; my $y = 0.2 − 0.1; say $x == $y;␤␤Parse failed␤␤»
brrt whats so confusing abou tit
flussence use ASCII symbols for subtraction
brrt darn macintosh
azawawi masak, bbkr__, tadzik: thx 12:16
jnthn tadzik: Do that, then make a Dancer app to show the output, and call it TAP Dancer :D
brrt (its true, by the way, yay)
tadzik jnthn: oh you :D
brrt rn: say 0.2 - 0.1 == 0.3 - 0.2;
p6eval rakudo 978492, niecza v22-14-g136ddcf: OUTPUT«True␤»
bbkr__ do we have any p6 version of Devel::Cover in progress? 12:19
12:19 orafu left
tadzik none that I know o 12:19
f
masak given how much jnthn++ succeeded in hooking a debugger to the Rakudo runtime, I wouldn't be surprised if a Devel::Cover is eminently doable with what Rakudo has already. 12:22
pmurias jnthn: what do you think would be a sane way to handle Q:PIR in nqp-js? 12:26
tadzik outlaw it ;) 12:27
12:28 tokuhiro_ joined
pmurias having a mapping from known pir fragments to js seems one solution 12:28
or turn it in a form which takes both a PIR and JS variation
brrt what tadzik says 12:29
pir is ehm, > 1000 ops large? polymorphic, to boot 12:30
pir is mostly regarded as an Evil Monster 12:31
azawawi do we have a firewall on feather.perl6.nl? 12:32
pmurias brrt: pir fragments are used by rakudo
tadzik azawawi: no port blocking, I think 12:33
brrt pmurias: i know
pir fragments are also used by winxed and nqp
12:33 atrodo joined
brrt the existence of pir in nqp / rakudo is probably one of that hold it down the most 12:34
azawawi tadzik: try feather.perl6.nl:3030/
tadzik azawawi: doesn't seem to work 12:35
feather.perl6.nl:3000/ is up though :) 12:36
azawawi im using github.com/supernovus/perl6-http-e...P/Easy.pm6
12:36 atrodo left
pmurias brrt: there is a lot left so I doubt it harms nqp/rakudo a lot 12:36
* isn't
brrt not directly, but all rakudo is eventually compiled down to pir 12:37
pmurias is trying to change that with (rakudo,nqp)-js 12:38
12:39 fhelmberger left
jnthn pmurias: The goal is to mostly kill Q:PIR 12:43
pmurias: I'd not worry about trying to implement it. I know we have tests for it. 12:44
GlitchMr azawawi: have you bound the website to 127.0.0.1 instead of 0 12:45
jnthn But those in the longer run probably want to be marked as NQP-on-Parrot specific or so
pmurias ok
GlitchMr I can access it directly from feather, but I cannot access outside
So, I've feeling you bound it to 0 (IP), not 127.0.0.1
azawawi GlitchMr: im looking at it 12:46
12:49 PacoAir joined 12:53 colomon left
masak people in here, being Perl people, tend towards a liberal view on language design, and TIMTOWTDI rather than B&D, and "don't do that, then" rather than "users need to be protected from themselves". 12:56
given that, does anyone have an example of when it's actually a good idea to restrict the option space, the way languages like Python and Java tend to? 12:57
moritz well, pointers, segfault and GC come to mind 12:58
brrt gc is basically the only good example i can think of 12:59
masak GC seems like a really good idea for most kinds of HLL programming, yes.
pmurias masak: use strict?
13:00 testing123 joined
masak pmurias: hm, I've always seen 'use strict' as "should have been in Perl 1..5 from the start". though I'm sure some would disagree. 13:00
actually, I can hear the disagreeing arguments forming right now.
daxim gives masak an earful
masak ;)
13:01 testing123 left, hash_table joined
masak but the fact that there wasn't even any discussion whether to have 'use strict' in Perl 6... is saying something. 13:01
brrt masak: i mean 'messing with GC' should probably not be a timtoady option
masak right.
daxim early perl as shell replacement mimicks some of its features - barewords as strings, shifting off argument lists 13:02
brrt and yeah, strict
although i could argue about that
pmurias masak: python isn't that much more restrictive
brrt not restrictive per se
but it has a style of doing it
that is ehm
'enforcing'
KeyError comes to mind 13:03
[Coke] is reminded to force all his JS at work to be strict.
brrt if js had a strict mode it would be awesome
pmurias it has
just put a 'use strict'; on top of your script 13:04
brrt i'm falling through the basket here
really?
13:04 Psyche^ joined
masak brrt: it's new in ES5. 13:05
brrt: the quotes are part of the syntax.
brrt well…. 13:06
thats nice then
but with quotes?
masak backwards-compatible, I guess.
pmurias masak: re restricting the option space, there is Perl::Critic
13:06 sizz left 13:07 immortal joined, immortal left, immortal joined
masak pmurias: oh, but with Perl::Critic, we're already talking community-enforced option narrowing. I meant specifically by the language itself. 13:07
13:07 Patterner left
masak s/enforced/guided/ 13:07
13:08 erkan left
daxim es6 finally gets heredocs 13:10
pmurias masak: type saftey is statically typed languages 13:11
masak: the difference between community-enforced and language itself will be blurry in a mutable language like Perl 6 13:12
13:12 sizz joined, pmurias left 13:14 cognominal__ left
bbkr__ r: use MONKEY_TYPING; augment class Int { multi method Str { } }; say 3 # dispatcher hangs forever. but I'm not sure if MONKEY_TYPING issues should be reported as bugs. 13:15
p6eval rakudo 978492: OUTPUT«(timeout)» 13:16
moritz bbkr__: if you don't return a Str from a method named Str, well, you fault :-)
*your
masak oh dear, ES6 has destructuring assignment.
bbkr__ moritz: it doesn't reach method body 13:17
r: use MONKEY_TYPING; augment class Int { multi method Str returns Str { return "42" } }; say 3 13:18
p6eval rakudo 978492: OUTPUT«(timeout)»
13:18 cognominal__ joined 13:19 colomon joined 13:21 immortal left 13:22 imarcusthis- left, birdwindupbird left 13:23 SamuraiJack left, imarcusthis joined
azawawi now this is interesting 13:25
IO::Socket::INET does not seem to work properly
13:25 SamuraiJack joined
azawawi only local addresses work... 13:25
azawawi walk & 13:29
13:31 cosimo joined 13:32 cosimo left 13:34 azawawi left, cognominal__ left 13:35 birdwindupbird joined
moritz bbkr__: it might create an ambiguous dispatch, and loop during error reporting, because again it tries to do an Int -> Str conversion 13:40
13:40 tokuhiro_ left
moritz r: use MONKEY_TYPING; augment class Int { method Str { '42' } }; say 3 13:40
p6eval rakudo 978492: OUTPUT«===SORRY!===␤Package 'Int' already has a method 'Str' (did you mean to declare a multi-method?)␤at /tmp/f0vh6rDi1I:1␤»
13:41 tokuhiro_ joined, am0c joined
bbkr__ phenny: tell azawawi that to use non-local addresses in IO::Socket::INET listener empty host can be given, my $listener = IO::Socket::INET.new( localhost => '', localport => 8080, :listen ); 13:42
phenny bbkr__: I'll pass that on when azawawi is around.
13:42 FROGGS left 13:43 erkan joined, erkan left, erkan joined 13:45 tokuhiro_ left, am0c left, cognominal joined, benabik left, flightrecorder left 13:49 am0c joined 13:51 hash_table left 13:52 wamba left 13:54 wamba joined
dalek pan style="color: #395be5">perl6-examples: 8c1c641 | (Gerhard R)++ | euler/prob003-gerdr.pl:
[euler/prob003] add more 6ish version that works with current Rakudo
13:57
13:57 SamuraiJack_ joined 14:01 SamuraiJack left, kaare_ joined 14:04 stopbit joined 14:11 sqirrel left 14:16 flightrecorder joined
dalek pan style="color: #395be5">perl6-examples: 9bfc150 | (Gerhard R)++ | euler/prob002-gerdr.pl:
[euler/prob002] add version using sequence operator
14:16
14:19 PacoAir left, FROGGS joined, cosimo joined
GlitchMr :-) 14:21
14:22 PacoAir joined 14:23 havenn joined 14:26 arlinius joined 14:28 FROGGS left 14:29 flightrecorder left 14:31 PacoAir left 14:34 cognominal left
masak haha, there's a Polish village called Dąg. :D 14:34
now I don't know whether to make a joke about acyclic graphs, or just say "yo Dąg"...
sjn wonders how Dąg would be pronounced 14:36
masak sjn: quite close to "dong", I think.
with a French-nasal thing going on with the 'on' sound. 14:37
maybe "dawng" is a better rendering of it.
sjn first assumed that the a had a cedilla
but I see it goes the opposite way 14:38
masak yeah. it's an ogonek.
a "little tail".
daxim wait until you find out about the difference between acute and kreska. typographic mind == blown 14:39
also, fuck the unicode consortium, never something good came out of glyph unification 14:40
huf kreska?
masak en.wikipedia.org/wiki/Kreska#Palatalization 14:41
"In traditional Polish typography, the kreska is more nearly vertical than the acute accent, and placed slightly right of center."
I've seen this, when looking at old writing on statues and stuff with tadzik. 14:42
14:42 hash_table joined
huf /o\ 14:42
sjn shudders in horror 14:43
huf this seems worse than our mess
14:44 cosimo left
daxim h̋u􏿽xCC􏿽x8Bf̋ 14:45
14:45 am0c_ joined, brrt left 14:46 xinming_ joined
huf yeah, double-acute at least doesnt look like anything else... of course, in fast cursive writing, both the double-dot and the double-acute become a single vertical line placed above the letter, so at least it's finally ambiguous :) 14:46
14:46 am0c left 14:49 xinming left, skids joined
masak nrp: unless 2 { say "not two" } else { say "two!" } 14:50
p6eval rakudo 978492: OUTPUT«===SORRY!===␤"unless" does not take "else", please rewrite using "if"␤at /tmp/VMjpRqUhCS:1␤»
..pugs: OUTPUT«*** ␤ Unexpected end of input␤ no else after unless␤ at /tmp/afzzS_uCxI line 2, column 1␤»
..niecza v22-14-g136ddcf: OUTPUT«===SORRY!===␤␤"unless" does not take "else" in Perl 6; please rewrite using "if" at /tmp/ZqNAKbDsBD line 1:␤------> unless 2 { say "not two" } ⏏else { say "two!" }␤␤Parse failed␤␤»
masak :)
14:52 am0c_ left
masak nr: my %l = <a b b c c d b e e f f d>; say (push (my %), %l.invert).per 14:55
p6eval niecza v22-14-g136ddcf: OUTPUT«Unhandled exception: Unable to resolve method per in type Hash␤ at /tmp/WaO6gX9fac line 1 (mainline @ 5) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4215 (ANON @ 3) ␤ at /home/p6eval/niecza/lib/CORE.setting line 4216 (module-CORE @ 579) ␤ at /home/p…
masak nr: my %l = <a b b c c d b e e f f d>; say (push (my %), %l.invert).perl
p6eval ..rakudo 978492: OUTPUT«No such method 'per' for invocant of type 'Hash'␤ in block at /tmp/AVvCY6UxjI:1␤␤»
rakudo 978492: OUTPUT«("b" => "a", "e" => "b", "d" => ["c", "f"], "f" => "e").hash␤»
..niecza v22-14-g136ddcf: OUTPUT«{"b" => "a", "d" => ["c", "f"], "e" => "b", "f" => "e"}␤»
14:55 MikeFair_ left 14:57 brrt joined 15:01 jimmy1980 joined, Su-Shee left, benabik joined 15:04 am0c_ joined, benabik left, benabik joined 15:06 Psyche^ is now known as Patterner 15:08 cosimo joined 15:10 wamba left 15:11 jimmy1980 left 15:12 MikeFair_ joined 15:13 jimmy1980 joined 15:14 Su-Shee joined 15:23 domidumont left 15:31 brrt left 15:36 benabik_ joined 15:37 benabik left, benabik_ left 15:38 benabik joined 15:39 birdwindupbird left 15:45 thou joined 15:47 cognominal joined 15:49 hoelzro is now known as hoelzro|away, birdwindupbird joined 15:58 flightrecorder joined 16:00 pmurias joined 16:02 awwaiid_ left 16:04 simcop2387 left 16:05 simcop2387 joined 16:06 hoelzro|away is now known as hoelzro, bluescreen10 joined 16:07 huf left, huf joined 16:09 cosimo left 16:11 hoelzro is now known as hoelzro|away 16:12 awwaiid joined 16:17 pmurias left 16:18 MayDaniel joined 16:19 fgomez joined 16:22 FROGGS joined 16:34 kaleem left 16:36 aindilis joined 16:39 wamba joined 16:43 fgomez left 16:48 cognominal left 16:50 fgomez joined 16:55 cognominal joined 16:56 dakkar left 16:58 birdwindupbird left 17:01 preflex left, preflex_ joined 17:02 preflex_ is now known as preflex 17:03 circlepuller left 17:05 circlepuller joined 17:08 PacoAir joined 17:13 spider-mario joined
sorear good * #perl6 17:16
FROGGS hi sorear
diakopter o/
grondilu rn: say map *, ^3 X* ^3 17:18
p6eval rakudo 978492: OUTPUT«Cannot call 'map'; none of these signatures match:␤:(&code, *@values)␤␤ in block at /tmp/eEM1KrITqJ:1␤␤»
..niecza v22-14-g136ddcf: OUTPUT«␤»
grondilu rn: say map *, (^3 X* ^3) 17:19
p6eval niecza v22-14-g136ddcf: OUTPUT«Unhandled exception: Unable to resolve method postcircumfix:<( )> in type Whatever␤ at <unknown> line 0 (KERNEL map @ 2) ␤ at /home/p6eval/niecza/lib/CORE.setting line 2443 (GatherIterator.reify @ 6) ␤ at <unknown> line 0 (ExitRunloop @ 0) ␤ at <unknow…
..rakudo 978492: OUTPUT«Cannot call 'map'; none of these signatures match:␤:(&code, *@values)␤␤ in block at /tmp/PnhvH38_A0:1␤␤»
grondilu I don't get it
TimToady * is not code
phenny TimToady: 21 Oct 01:13Z <[Coke]> ask TimToady to comment on rt.perl.org/rt3/Ticket/Display.html?id=63778 (marked as a spec ticket)
masak grondilu: you write '*' but you probably mean '{ $_ }'
17:20 Targen left
masak grondilu: consider it a corner case; lots of expressions involving '*' turn into lambdas, but '*' itself is not a lambda. 17:20
TimToady nor is 0..*
grondilu ok 17:21
17:22 SmokeMachine joined
diakopter rn: say map * * *, ^3 X* ^3 17:23
p6eval rakudo 978492: OUTPUT«Cannot call 'map'; none of these signatures match:␤:(&code, *@values)␤␤ in block at /tmp/lgZ04XpmTy:1␤␤»
..niecza v22-14-g136ddcf: OUTPUT«␤»
17:24 am0c_ left
TimToady precedence 17:24
the X eats the * * *
17:24 hoelzro|away is now known as hoelzro
TimToady rn: say map * * * <== ^3 X* ^3 17:25
p6eval rakudo 978492: OUTPUT«0 0 0 0 1 2 0 2 4␤»
..niecza v22-14-g136ddcf: OUTPUT«␤Unhandled exception: Feed ops NYI␤ at /home/p6eval/niecza/lib/CORE.setting line 1443 (die @ 5) ␤ at /home/p6eval/niecza/lib/CORE.setting line 3362 (infix:<<==> @ 4) ␤ at /tmp/_Kf8cgsFNB line 1 (mainline @ 5) ␤ at /home/p6eval/niecza/lib/CORE.setting l…
17:49 Chillance joined 18:15 wamba left, wamba joined 18:16 SamuraiJack_ left 18:17 SamuraiJack joined 18:18 SamuraiJack left 18:19 xinming_ left, SamuraiJack joined 18:21 havenn left 18:22 havenn joined, sivoais left, xinming joined 18:23 daxim left 18:24 cosimo joined 18:26 havenn left
rindolf Hi all. 18:27
18:30 Targen joined 18:33 havenn joined 18:34 domidumont joined 18:38 sivoais joined 18:40 havenn left, havenn joined 18:42 hoelzro is now known as hoelzro|away
masak rindolf! \o/ 18:43
18:44 havenn left, havenn joined
rindolf masak: what's up? 18:44
masak roof, atmosphere, outer space. 18:50
18:50 SamuraiJack left
jnthn Atmosphere and outer space is down as well if you go far enough. :P 18:50
masak well, I wasn't asked about that. 18:51
PerlJam when faced with the query "What's up?" it's prudent to first ask "Relative to what?" before offering an answer :) 18:52
18:55 hoelzro|away is now known as hoelzro, havenn left 18:57 havenn joined, nyuszika7h left 18:59 nyuszika7h joined
[Coke] used to participate in a group whose rallying cry was "WHICH WAY IS UP!?" at which point every able bodied person would point straight up, jump into the air, and yell "UP!" 18:59
18:59 snearch left 19:00 havenn left
grondilu is looking at projecteuler.net/problem=7: "What is the 10 001st prime number?" 19:03
GlitchMr is-prime grep?
grondilu I wonder how hard it would be to create a lazy list of prime numbers. 19:04
moritz nr: say (2..*).grep(*.is-prime)[10_000]
GlitchMr Perhaps it could be memoized for .grepping like that? 19:05
p6eval rakudo 978492, niecza v22-14-g136ddcf: OUTPUT«(timeout)»
jnthn r: say (grep *.is-prime, 1..*)[100]
p6eval rakudo 978492: OUTPUT«547␤»
jnthn I guess 10000 takes longer :)
moritz 9 seconds on rakudo for 1k
jnthn grondilu: grep *.is-prime, 1..* # is a lazy list of the primes :) 19:06
grondilu yeah but it's kind of cheating 19:07
moritz cheating is technique
grondilu also, I doubt it is an efficient way to do it. 19:08
moritz $ time ./perl6 -e 'say (2..*).grep(*.is-prime)[10_000]'
104743
real 2m17.111s
PerlJam I have some wood, nails, a rock and a hammer. Is it cheating to use the hammer rather than the rock to drive the nails into the wood? ;)
grondilu some time ago I tried to implement a lazy version of Eratosthene siever. I failed.
moritz that's not well suitable for laziness 19:09
sorear
.oO( what's up? I dunno, I live on a space station )
masak sorear! \o/ 19:13
skids en.wikipedia.org/wiki/Prime_number_...ime_number 19:14
moritz sorear: how big is the lag on your space station?
sorear :p 19:16
masak! 19:17
19:17 domidumont left
masak .oO( on my space station, I once caught a lag this big ) 19:20
dalek kudo/categorically-better: 503d19c | jnthn++ | src/core/traits.pm:
Sketch precedence trait implementations.

Adds equiv, looser, tighter, assoc.
19:22
kudo/categorically-better: 54ce622 | jnthn++ | src/Perl6/ (2 files):
Have parser pay attention to precedence traits.
kudo/categorically-better: 0faf6fa | jnthn++ | src/core/operators.pm:
Attach precedence info to a bunch of operators.

Not beautiful, but doing it this way due to some circularity sawing issues.
masak is intrigued by what this branch can give us 19:26
jnthn masak: So far, proper mix-in based hanlding of user defined operators, precedence traits, and a slight slowdown to CORE.setting build and the spectest... 19:27
sorear rn: { sub infix:<@>($,$) {} }; 2 @ 3 19:28
p6eval rakudo 978492: OUTPUT«===SORRY!===␤CHECK FAILED:␤Undefined routine '&infix:<@>' called (line 1)␤»
..niecza v22-14-g136ddcf: OUTPUT«===SORRY!===␤␤Confused at /tmp/4iYGlkuVU4 line 1:␤------> { sub infix:<@>($,$) {} }; 2 ⏏@ 3␤Other potential difficulties:␤ &infix:<@> is declared but not used at /tmp/4iYGlkuVU4 line 1:␤------> { sub infix:<@>[33…
sorear masak ^^^
jnthn In my branch
> { sub infix:<@>($,$) {} }; 2 @ 3
Confused
\o/
r: { sub infix:<++>($,$) { 99 }; say 1 ++ 2 }; say 1 ++ 2 19:29
p6eval rakudo 978492: OUTPUT«===SORRY!===␤CHECK FAILED:␤Undefined routine '&infix:<++>' called (line 1)␤»
jnthn > { sub infix:<++>($,$) { 99 }; say 1 ++ 2 }; say 1 ++ 2
99
3
diakopter _._.
sjn what syntax does one use to create new metaoperators? 19:30
jnthn Also 19:31
> sub infix:<bar>($a, $b) is equiv(&infix:<**>) { 100 }; say 2 bar 3 * 4;
400
sjn: Um...can you do that? :)
sjn jnthn: I'm asking :)
sjn would almost assume it :)
sorear sjn: sub infix_prefix_meta_operator:sym<Q>(...) {...}
jnthn sjn: I ain't seen it done. I'm not sure if they're "just a declaration"
Can probably be made to work I guess. 19:32
sorear sjn: The syntax is specced, the semantics aren't. 19:33
we're going to have to decide someday what the signatures for metaops should be
probably things will be clearer after masak++ finishes the parsed macro subsystem 19:34
19:37 havenn joined 19:38 havenn left 19:39 azawawi joined
azawawi hi 19:39
phenny azawawi: 13:42Z <bbkr__> tell azawawi that to use non-local addresses in IO::Socket::INET listener empty host can be given, my $listener = IO::Socket::INET.new( localhost => '', localport => 8080, :listen );
azawawi bbkr__: thx 19:40
bbkr__: it works
bbkr__++
19:40 sivoais left 19:41 larks joined, sivoais joined 19:43 havenn joined
dalek nda/custom-lib: 109e54c | moritz++ | rebootstrap.pl:
switch rebootstrap to %*CUSTOM_LIB
19:43
moritz tadzik: IMHO, custom-lib is ready for merging; testing/feedback welcome 19:44
tadzik moritz: I'll take a look, thanks
azawawi tadzik: hi 19:45
tadzik: any update on the installation of non-perl shared files by panda?
tadzik azawawi: no updates, sorry :( 19:46
19:47 havenn left 19:53 hoelzro is now known as hoelzro|away 19:56 havenn joined 20:04 simcop2387 is now known as SIMCOP2387, timbunce_ left
azawawi feather.perl6.nl:3030/ # Feedback welcome :) 20:06
tadzik niice
how much of that is Perl 6?
jnthn Pro tip: before investigating why your changes inexplicably slowed stuff down a lot, first make sure it's not a case of Flash Plug-in Gone Wild. :/
azawawi tadzik: basically js editor library + perl 6 backend 20:07
rindolf Is feather active again? 20:08
20:08 timbunce joined
rindolf azawawi: it seems pretty slow. 20:08
azawawi tadzik: i still have to write a perl 6 mode client-side mode and show inline std/viv errors
rindolf: yeah... perl6 :)
rindolf azawawi: well, I cannot seem to load it.
Oh.
20:08 GlitchMr left
masak azawawi: mine timed out. :/ 20:09
20:09 FROGGS left, flightrecorder left
azawawi normal.. it is using http::easy 20:10
rindolf azawawi: it's down now.
azawawi still needs tuning
20:11 kaare_ left
azawawi and pod2html uses a single temp file. so multi-user can screw results a bit 20:12
dalek kudo/categorically-better: 1cb742a | jnthn++ | src/Perl6/Grammar.pm:
Scope changes to actions also.

Custom circumfixes generate action methods. Refactor this to also be handled by mixins, so the changes are properly scoped.
20:17
20:25 havenn left
rindolf azawawi: where is the source for Farabi? 20:25
20:26 bruges_ left
azawawi rindolf: github.com/azawawi/farabi6 20:26
feather.perl6.nl:3030/ # disabled auto update pod2html 20:27
20:28 bruges joined
PerlJam What's this "categorically-better" branch all about? 20:30
20:30 stopbit left
rindolf How do I install the "perl6" executable into the path properly? 20:31
masak PerlJam: improvements in the parsing of grammatical categories a la S02.
jnthn PerlJam: Making categoricals better.
PerlJam: Part STD/spec convergence, part cleanup of mess, part new features. 20:32
And it also made me shave the nqpattr yak
azawawi masak: it is working again... I hope it stays up this time :) 20:33
PerlJam jnthn++ nice.
20:34 average_drifter joined
average_drifter hey #perl6 20:34
diakopter hi average_drifter
PerlJam average_drifter: greetings! 20:35
average_drifter wassup ?
concurrency implemented ?
PerlJam average_drifter: apparently jnthn is continuing to improve rakudo at a steady pace.
average_drifter I like jnthn because he has that awesome beard :) 20:36
20:36 havenn joined
average_drifter I wonder if he's working on the concurrency part of rakudo 20:36
masak azawawi: yes, I just noticed. nice!
azawawi++ 20:37
sorear rakudo does not have a concurrency part
average_drifter Parrot then
jnthn Rakudo won't have a concurrency part until it runs on something other than Parrot. Which I'm working towards making happen, 'cus I'd very much like it to have a concurrency part. :)
Unless Parrot magically gets working threading stuff... 20:38
sorear "Didn't you see that rurban merged threads last month?"
average_drifter ok so you guys are moving away from Parrot. do you target LLVM by any chance ?
jnthn sorear: I...thought that the branch got unmerged?
diakopter LLVM's not a VM
sorear jnthn: I did. ""
average_drifter diakopter: whatever it is
jnthn average_drifter: Not so much "moving away" as "adding backends" 20:39
azawawi masak: next stop is going to be std/viv Farabi integration (better inline error messages) and then ability to run rakudo perl6 scripts
average_drifter it a compiler backend or something like that. not sure if it has anything to do with interpretors
jnthn average_drifter: Rakudo these days is mostly written in Perl 6 and NQP.
diakopter average_drifter: no, :) no one's written a GC, object system, or compiler for LLVM
PerlJam average_drifter: Perl is all about adding options, not taking them away (at least not without a *real* *good* reason)
tadzik jnthn: parrot has working threading stuff 20:40
it's perl6/nqp that's failing
jnthn tadzik: That wasn't my recollection from trying to use it.
sorear average_drifter: we don't use LLVM directly
tadzik parrot-nqp works
20:40 kurahaupo joined
masak azawawi: cool. 20:40
20:40 havenn left
sorear average_drifter: if you really care about using LLVM (why?), Niecza can use it indirectly 20:40
average_drifter sorear: good question. "Why use LLVM ?" 20:41
masak kurahaupo: I read the nick "kurahaupo" and thought "hm, that sounds like a Maori name", and then I saw the .co.nz server, and was happy about the guess :)
PerlJam LLVM has good buzz-word appeal
sorear average_drifter: um, it's YOUR fault llvm was brought up
kurahaupo masak: :-)
average_drifter sorear: I don't know.. uhm... because it's fairly mainstream compared to Parrot, and there's a lot of big names involved in funding it 20:42
rindolf tadzik: github.com/tadzik/panda/pull/22
average_drifter sorear: and that means stable development for a lot of time to go
PerlJam average_drifter: like I said ... buzz-word appeal
average_drifter so piggybacking on LLVM would be no mistake
sorear average_drifter: llvm and parrot are incomparable
tadzik rindolf: cool, thanks
dalek nda: 4100e44 | (Shlomi Fish)++ | README.md:
Remove trailing space and fix a typo.
nda: e850e42 | tadzik++ | README.md:
Merge pull request #22 from shlomif/master

Remove trailing space and fix a typo.
diakopter average_drifter: but there's really nothing in parrot that has anything to do with LLVM, and vice versa
rindolf tadzik++
average_drifter tadzik: you said you are using LLVM but indirectly
sorear average_drifter: there's lots of big names funding CDMA, let's piggyback on that! 20:43
average_drifter tadzik: what layer is in between LLVM and Rakudo ?
tadzik average_drifter: I am? No, I'm not :)
average_drifter tadzik: or uhm Niecza ?
23:40 < sorear> average_drifter: we don't use LLVM directly
oh sorear wrote that
tadzik I'm not sorear :)
sorear average_drifter: I have met tadzik, I can assure you he is not me
diakopter neither
average_drifter sorear: is there a layer in between ?
sorear average_drifter: yes, Mono
tadzik yeah, the atlantic ocean
(ha ha)
average_drifter Mono ?
diakopter a VM
Tene I have not met tadzik; I can not assure you that he is not me. 20:44
sorear mono-project.com/Main_Page
Tene I've been confused with tadzik several times.
average_drifter yeah I know what Mono is.. I was just..
anyway
so concurrency is working in Mono I guess
sorear yes
average_drifter that's cool 20:45
diakopter average_drifter: note, niecza is not rakudo, in case you thought so
rindolf tadzik: ==> Succesfully installed panda ==> to where? I cannot find it in my path.
Tene: hi.
tadzik rindolf: ~/.perl6
rindolf tadzik: oh.
Tene rindolf: hello 20:46
masak I have met sorear and tadzik, so I can assure you that I am neither of them. I'm not as certain about Tene. maybe I'm him, maybe not. :P
though experience tells me that I'm more likely to be one of my six clones.
rindolf tadzik: can I set it to a different path?
average_drifter symbolic links of other people...
rindolf Tene: what's new? Long time.
masak sorry, seven clones.
tadzik rindolf: I think DESTDIR works
rindolf tadzik: ah, OK.
20:47 fgomez left
sorear I have met masak and tadzik at the same time. I can confirm they are distinct. 20:47
masak though confusing the limits between me and tadzik would be quite awesome. just sayin'. 20:48
uh. that could be read as innuendo. it wasn't meant that way. :) just being silly.
PerlJam sure. sure. 20:49
Tene flattered to be potentially masak.
masak Tene: right back at you.
rindolf azawawi: Could not find URI::Escape in any of: /home/shlomif/.panda/src/Farabi6/blib/lib, /home/shlomif/.panda/src/Farabi6/lib, , /home/shlomif/.perl6/lib, /home/shlomif/Download/unpack/perl/Perl6/rakudo/install/lib/parrot/4.8.0-devel/languages/perl6/lib - when doing panda install Farabi6
PerlJam Tene: If we had a potentiometer, we could tell how much masakness you might have.
20:50 japhb_ joined
Tene variably resists the electronics puns. 20:50
japhb_ Seek not merely to *act* like the masak, seek to *be* the masak.
sorear blinks
PerlJam waits for the "I am masak!" proclamations 20:51
masak !
20:52 havenn joined
masak matters of identity are always interesting. 20:52
PerlJam (or perhaps at some point we'll get "I am the masak" with music by the Beatles)
sorear I'm not. I'm much louder.
masak hey, I'm Swedish. we're built with the volume turned down to 2. 20:53
japhb_ Also, I rarely wear a towel on my head.
rindolf Heh.
azawawi rindolf: Strange. What rakudo version are you using?
rindolf Will the real masak please stand up?
azawawi: a bit oldish. 20:54
azawawi: I can try upgrading.
TimToady which way is "up? this time?
*"up"
azawawi rindolf: rakudo 2012.09 already includes URI
rindolf azawawi: OK.
diakopter average_drifter: have you considered contributing to the p6 efforts? 20:55
rindolf azawawi: shouldn't you spell all the dependencies explicitly?
azawawi rindolf: but i added it now to META.info. thx
japhb_ In an absolute frame of reference, I think masak's "up" is my "sideways"
rindolf azawawi: you're welcome.
20:56 bapa left
azawawi rindolf: panda installation is still not 100% correct since it doesnt copy no-perl stuff in lib/XYZ/ 20:56
rindolf azawawi: OK.
20:58 bapa joined
rindolf azawawi: I am now given « ===SORRY!=== Missing or wrong version of dependency 'src/gen/BOOTSTRAP.p' » 20:58
21:00 MayDaniel left
azawawi rindolf: perl6 --version ? 21:01
rindolf This is perl6 version 2010.08-4941-ge883e01 built on parrot 4.8.0 revision RELEASE_4_8_0
Hmmm... I didn't git pull
sorear japhb_: can't get too absolute, or Lense and Thirring will come a-knockin... 21:04
21:04 skids left
rindolf Hmmm... I did a git pull on nom and I'm still getting This is perl6 version 2010.08-4941-ge883e01 built on parrot 4.8.0 revision RELEASE_4_8_0 21:08
21:09 spider-mario left 21:10 hash_table left
rindolf OK, apparently I have a commit from 2010 at the top of git log and it messes things up. 21:10
I think.
TimToady reorients to Moscow "up" for an hour or so... 21:14
japhb_ rindolf, yeah, ~5K commits from 2010 seems a very odd place for 'git describe' to decide is nearest. 21:15
rindolf japhb_: it's my commit.
japhb_: which wasn't merged yet.
japhb_: and was rebased or something like that. 21:16
japhb_ Ah
flussence the "4941" indicates 2 years of missing tags
japhb_ flussence, as I understand it, just 2 years of tags not in the current branch. 21:17
average_drifter diakopter: I have considered a lot
diakopter: the truth is that it's not easy
flussence sounds like a rebase is slightly overdue...
average_drifter diakopter: documentation is key, and I'm not saying that it's lacking, it's just not the easy kind of documentation that gets you right into it 21:19
jnthn 'night
average_drifter I'm also a bit concerned about the huge quantity of operators to remember
rindolf jnthn: night night.
average_drifter and I'm writing Perl5 on a regular basis..
not sure if that is relevant.. but uhm.. yeah 21:20
21:20 fgomez joined
masak '♞, #perl6. 21:20
diakopter average_drifter: I think it's very relevant; thanks for the info 21:21
rindolf azawawi: I'm still getting Missing or wrong version of dependency 'src/gen/BOOTSTRAP.pm' 21:22
git pulled now.
average_drifter diakopter: are you concerned with documentation too ?
diakopter: or are you the one writing some of it ? 21:23
21:23 PacoAir left
average_drifter ok let me show you what I mean 21:24
diakopter average_drifter: I would love to see more guides, tutorials, cookbooks, and blogs about real world uses
average_drifter ever seen codecademy.com ?
21:24 benabik left
diakopter no 21:24
average_drifter well check it out
diakopter there are a bunch of sites like that 21:25
average_drifter yes there are
diakopter *is
average_drifter but are there any for p6 ?
:)
it's really a good way to attract people
diakopter there was try.rakudo.org, but no more
wait
try.pugscode.org ?
I don't remember
average_drifter yes but you see.. try.rakudo.org or the other one 21:26
they both were just in-browser interpreters
diakopter no
average_drifter were they like codecademy ?
diakopter they posted code to the server
average_drifter yeah, that matters less, bottom line was you could run code you wrote in the browser and get the output back
diakopter right, they didn't have interactive tutorials/guids 21:27
guides
average_drifter except codecademy is about lessons also, and learning is split up in bite-size little chunks which you absorb progressively
yeah
that's what I mean
21:28 cognominal left
dalek pan style="color: #395be5">perl6-examples: 0403454 | (Gerhard R)++ | euler/prob003-gerdr (2 files):
[euler/prob003] add version using .is-prime

align code of existing one to new version
21:32
21:35 cognominal joined
rindolf Any idea about my problem? 21:36
azawawi: I'm still getting Missing or wrong version of dependency 'src/gen/BOOTSTRAP.pm'
Maybe azawawi went to sleep.
azawawi rindolf: when doing panda install Farabi6?
rindolf azawawi: well, bin/farabi6
azawawi: also with the panda install command. 21:37
azawawi rindolf: git pull # ?
rindolf: and { panda install URI }
rindolf azawawi: I've done that.
azawawi: hmmm... panda gives me the same thing. 21:38
With no args.
azawawi rindolf: if you see missing or wrong version while panda is installing stuff... most probably you have a stale ~/.perl6 ...
rindolf: remove ~/.perl6
rindolf: remove ~/.panda
rindolf azawawi: OK. 21:39
azawawi rindolf: and install deps again
rindolf: pir and pm6 mismatch most probably
rindolf azawawi: OK, I was able to install Farabi6. 21:44
But now it crashes.
azawawi cool
rindolf azawawi: paste.debian.net/202820/
azawawi: thanks for your help. 21:46
azawawi rindolf: np, bin/farabi6 --host=localhost ? 21:47
rindolf azawawi: paste.debian.net/202822/ 21:48
azawawi: still crashes.
azawawi github.com/supernovus/perl6-http-e...sy.pm6#L86 21:49
you brought a great idea... analyze stack through projects.json and META.info 21:50
s/brought/inspired/
21:50 thou left
azawawi s/stack/stack trace/ # sleepy :) 21:51
rindolf: upgrade Rakudo star? 21:56
rindolf azawawi: it's the latest.
azawawi: Rakudo nom.
azawawi rindolf: im working on 2012.09 21:57
rindolf azawawi: OK.
21:58 thou joined, cognominal left
rindolf azawawi: I'm on commit 16f22b86b12710a05168b8608f77a37e18effa9f 21:58
azawawi rindolf: github.com/rakudo/rakudo/commit/16...7e18effa9f # old? 22:02
rindolf: i simply get rakudo star distribtuon... :)
azawawi sleepy... 22:03
rindolf OK, now I'm on commit 978492eb1d2c8df42e4e8e33bd1a026df35ddcd3 22:04
azawawi: good night.
azawawi my objective is to get rosettacode.org/wiki/Category:Perl_6 examples to be opened in farabi6
rindolf azawawi: sorry for the noise. 22:05
I did git pull --ff-only instead of git pull --rebase
azawawi so you browse by language {Perl6 | Perl} and then task and then open the example in farabi
rindolf And ignored the warning.
22:05 PZt joined
azawawi np 22:05
that's why i use star distro :) 22:06
in the end my target audience are rakudo star users
22:08 cognominal joined 22:09 havenn left 22:11 havenn joined 22:12 havenn left 22:14 bluescreen10 left 22:17 jimmy1980 left 22:18 benabik joined 22:21 azawawi left 22:23 cibs joined 22:24 pjcj left
rindolf TimToady: here? 22:25
OK, Farabi6 still crashes. 22:29
22:30 wamba left 22:34 grondilu_ joined 22:35 pjcj joined 22:37 grondilu left 22:47 cognominal left 22:48 cognominal joined 22:49 grondilu_ left 22:58 Chillance left 23:10 timbunce left 23:11 krunen left 23:13 krunen joined, pochi left 23:18 rindolf left 23:23 benabik left 23:24 rindolf joined
larks where would I look to see the status of implementation of rakudo, like a list of what's working and what's not? 23:28
japhb_ larks, perl6.org/compilers/features 23:30
larks thanks japhb_, just what I was looking for 23:32
23:36 skids joined 23:40 cognominal left 23:42 pjcj left 23:46 cognominal joined
[Coke] rindolf: do a git fetch if you don't have all the tags? 23:48
23:51 hash_table joined 23:52 fgomez left
rindolf [Coke]: let me see. 23:52
[Coke]: OK, now I have them all. 23:53