Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-07-01

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:25 japhb joined #perl6
00:54 cls_bsd joined #perl6
01:12 alester joined #perl6
01:22 bacek pugs: index("Hello World", "x")
01:22 p6eval pugs: RESULT[-1]
01:27 scrottie joined #perl6
01:28 scrottie grr.
01:58 justatheory joined #perl6
02:09 vixey joined #Perl6
02:19 kanru joined #perl6
02:25 a-jing joined #perl6
02:25 a-jing left #perl6
02:48 Auzon1 joined #perl6
02:59 Limbic_Region joined #perl6
03:03 xinming joined #perl6
03:11 xinming joined #perl6
03:27 stevan_ joined #perl6
03:29 stevan_ joined #perl6
03:38 pbuetow_ joined #perl6
03:38 apeiron_ joined #perl6
04:04 apeiron joined #perl6
04:21 xinming_ joined #perl6
04:34 bacek_ joined #perl6
04:37 Alias_ joined #perl6
05:14 bacek joined #perl6
05:15 xinming joined #perl6
05:39 xinming_ joined #perl6
05:50 xinming_ joined #perl6
05:50 xinming_ joined #perl6
06:01 Psyche^ joined #perl6
06:05 xinming joined #perl6
06:13 xinming_ joined #perl6
06:13 zostay joined #perl6
06:22 dduncan joined #perl6
06:23 xinming__ joined #perl6
06:24 dduncan question: what toolkit do you presenters recommend or are currently using: eg, Spork, or XUL, or something else?  I see talks in both formats in the Pugs repo.  I'm inclined to try Spork first, but I'm concerned about CPAN showing it has a lot of failing tests with recent Perls, though that may just be the tests ... is anyone using Spork right now?
06:25 bacek_ joined #perl6
06:59 elmex joined #perl6
07:04 xinming joined #perl6
07:14 masak joined #perl6
07:16 Jedai joined #perl6
07:18 dduncan left #perl6
07:33 xinming joined #perl6
07:39 ingy joined #perl6
07:39 xinming joined #perl6
07:39 Jedai joined #perl6
07:39 masak joined #perl6
07:39 elmex joined #perl6
07:39 bacek_ joined #perl6
07:39 zostay joined #perl6
07:39 Patterner joined #perl6
07:39 apeiron joined #perl6
07:39 pbuetow_ joined #perl6
07:39 stevan_ joined #perl6
07:39 Auzon joined #perl6
07:39 kanru joined #perl6
07:39 vixey joined #perl6
07:39 scrottie joined #perl6
07:39 cls_bsd joined #perl6
07:39 japhb joined #perl6
07:39 cathyal joined #perl6
07:39 eternaleye joined #perl6
07:39 ruoso joined #perl6
07:39 kane_ joined #perl6
07:39 hcchien joined #perl6
07:39 fridim joined #perl6
07:39 araujo joined #perl6
07:39 buu joined #perl6
07:39 jjore joined #perl6
07:39 broquaint joined #perl6
07:39 Lorn joined #perl6
07:39 thepler joined #perl6
07:39 renormalist joined #perl6
07:39 Helios joined #perl6
07:39 cosimo joined #perl6
07:39 drbean joined #perl6
07:39 Kattana joined #perl6
07:39 jfredett joined #perl6
07:39 awwaiid joined #perl6
07:39 nothingmuch joined #perl6
07:39 jan__ joined #perl6
07:39 SamB joined #perl6
07:39 aindilis joined #perl6
07:39 audreyt joined #perl6
07:39 gugod joined #perl6
07:39 Coleoid joined #perl6
07:39 [particle] joined #perl6
07:39 mtve joined #perl6
07:39 gbacon joined #perl6
07:39 moritz_ joined #perl6
07:39 agentzh joined #perl6
07:39 BinGOs joined #perl6
07:39 PerlJam joined #perl6
07:39 lisppaste3 joined #perl6
07:39 kolibrie joined #perl6
07:39 mj41 joined #perl6
07:39 felipe joined #perl6
07:39 speckbot joined #perl6
07:39 avar joined #perl6
07:39 charsbar joined #perl6
07:39 pmichaud joined #perl6
07:39 qmole_ joined #perl6
07:39 fullermd joined #perl6
07:39 cookys joined #perl6
07:39 GeJ joined #perl6
07:39 Khisanth joined #perl6
07:39 Juerd joined #perl6
07:39 nnunley joined #perl6
07:39 yath joined #perl6
07:39 jiing joined #perl6
07:39 Caelum joined #perl6
07:39 dalek joined #perl6
07:39 pugs_svnbot joined #perl6
07:39 Ara4n joined #perl6
07:39 funktio joined #perl6
07:39 Gothmog_ joined #perl6
07:39 obra joined #perl6
07:39 clkao joined #perl6
07:39 baest_ joined #perl6
07:39 rhr joined #perl6
07:39 jrockway joined #perl6
07:39 yahooooo2 joined #perl6
07:39 lumi joined #perl6
07:39 ilogger2 joined #perl6
07:39 orafu joined #perl6
07:39 integral joined #perl6
07:39 SubStack joined #perl6
07:39 pasteling joined #perl6
07:39 rakudo_svn joined #perl6
07:39 allbery_b joined #perl6
07:39 Maddingue joined #perl6
07:39 arguile joined #perl6
07:39 buubot joined #perl6
07:39 wolverian joined #perl6
07:39 diakopter joined #perl6
07:39 Southen_ joined #perl6
07:39 revdiablo joined #perl6
07:39 Lunchy joined #perl6
07:39 Grrrr joined #perl6
07:39 bsb joined #perl6
07:39 pjcj joined #perl6
07:39 spinclad joined #perl6
07:39 TreyHarris joined #perl6
07:39 nipotaway joined #perl6
07:39 IRSeekBot joined #perl6
07:39 TimToady joined #perl6
07:39 pengrate joined #perl6
07:39 Tene joined #perl6
07:53 penk joined #perl6
07:55 xinming joined #perl6
07:59 Eevee joined #perl6
08:08 xinming_ joined #perl6
08:18 meppl joined #perl6
08:25 xinming joined #perl6
08:56 xinming_ joined #perl6
09:03 cognominal_ joined #perl6
09:04 rindolf joined #perl6
09:04 rindolf Hi all.
09:06 rindolf clkao: here?
09:07 cognominal__ joined #perl6
09:10 pmurias joined #perl6
09:10 pmurias rindolf: hi
09:12 rindolf Hi pmurias
09:12 rindolf pmurias: what's up?
09:13 pmurias last minute registering for university ;)
09:16 pmurias i'll propably make pixie pass more tests ones i get that done
09:17 pmurias rindolf: and what's up for you?
09:18 rindolf pmurias: chatting.
09:18 rindolf pmurias: trying to be able to send email again to @perl.org
09:18 rindolf I can receive email.
09:19 pmurias rindolf: you're trying to get unbanned?
09:20 rindolf pmurias: yes. :-(
09:20 pmurias you can always get a new email adress :(
09:20 rindolf pmurias: I did.
09:20 rindolf SchordingerCat@jabber.org
09:20 rindolf But I like shlomif.
09:42 barney joined #perl6
10:00 agentzh joined #perl6
10:07 luqui joined #perl6
10:10 pmurias pixie: say 'hi'
10:10 p6eval pixie: No output (you need to produce output to STDOUT)
10:14 pmurias moritz_: what does the recompilation of implemenations in the evalbot?
10:16 moritz_ pmurias: cron
10:16 moritz_ pmurias: sudo chroot /new_chrrot; su - evalenv; crontab -e
10:17 moritz_ don't know if I've installed oone for pixie yet
10:18 pmurias pixie: say 'hi'
10:18 p6eval pixie: No output (you need to produce output to STDOUT)
10:25 icwiener joined #perl6
10:25 ludan joined #perl6
10:29 yahooooo joined #perl6
10:44 a-jing joined #perl6
10:44 a-jing left #perl6
11:08 jfredett joined #perl6
11:09 chris2 joined #perl6
11:15 moritz_ pugs: .print if $_ % 2 for ^11;
11:15 p6eval pugs: OUTPUT[*** ␤    Unexpected "for"␤    expecting operator␤    at /tmp/OhQtSW0ba7 line 1, column 18␤]
11:19 vixey` joined #Perl6
11:23 FadeAway7 joined #perl6
11:25 FadeAway7 hi, audreyt
11:32 a-jing joined #perl6
11:32 a-jing left #perl6
11:36 moritz_ rakudo: my $x = sub { 1; }; say $x.WHAT
11:36 p6eval rakudo 28889: OUTPUT[Sub␤]
11:36 moritz_ rakudo: my $x = { 1; }; say $x.WHAT
11:36 p6eval rakudo 28889: OUTPUT[Code␤]
12:05 barney joined #perl6
12:54 alester joined #perl6
12:56 redicaps joined #perl6
13:01 * ruoso starts today on the SMOP grant work ;)
13:04 kolibrie ruoso++
13:04 kanru joined #perl6
13:10 ludan joined #perl6
13:12 Psyche^ joined #perl6
13:15 cmarcelo joined #perl6
13:15 wknight8111 joined #perl6
13:19 moritz_ TimToady: maybe you could/should add a clause to statement_control:unless that warns nicely about 'else'
13:19 moritz_ s/warns/croaks/, more likely
13:24 rakudo_svn r28895 | pmichaud++ | [rakudo]:
13:24 rakudo_svn r28895 | pmichaud++ | * spectest-progress update:  75 files, 1172 passing tests
13:29 icwiener_ joined #perl6
13:38 Khisanth joined #perl6
14:08 jan__ joined #perl6
14:11 TJCRI joined #perl6
14:18 alester joined #perl6
14:25 hercynium joined #perl6
14:34 iblechbot joined #perl6
14:34 ruoso @tell pmurias how far have you gone with the alternative sm0p parser? is it producing code already?
14:34 ruoso ops... E_NO_BOT
14:40 DietCoke joined #perl6
14:42 pugs_svnbot r21129 | ruoso++ | [SMOP] Starting to write the test for p6opaque. Currently it is created and destroyed, but nothing is called
14:57 justatheory joined #perl6
15:07 Khisanth joined #perl6
15:08 pmichaud anyone know how many tests are in the pugs test suite (approximate number)?
15:09 [particle] 18k-20k
15:09 pmichaud okay, works for me.
15:10 [particle] so we're 5+% done :)
15:11 moritz_ I can confirm that
15:12 pmichaud thanks :-)
15:13 pmichaud I'll say 19k then.
15:14 pmichaud any estimates for how many have made it into t/spec ?
15:14 [particle] looking now...
15:15 moritz_ by sheer file size a quarter to third
15:15 pmichaud that's probably good enough
15:15 pmichaud since it's a rapidly moving target anyway
15:16 moritz_ not as rapidly as I'd hoped for
15:16 moritz_ but still not bad
15:17 [particle] ack plan t/spec -wh
15:17 [particle] should be a way to add those quickly enough
15:20 barney joined #perl6
15:22 icwiener joined #perl6
15:34 [particle] there are at least 4500 tests in t/spec atm
15:36 [particle] ack plan t/spec -wh | perl -nle"$_=~m/(\d+)/;$x+=$1;print$x"
15:36 [particle] ...
15:36 [particle] 4525
15:37 [particle] running that on t/ gives 19389
15:38 moritz_ ok, between 1/5 and 1/4
15:38 pmichaud perfect
15:38 [particle] some plan()s have expressions in them, so it's not exact
15:38 Auzon joined #perl6
15:38 moritz_ aye
15:38 pmichaud I'm saying ~19,000 in pugs and ~5,000 in t/spec
15:38 pmichaud we're within 10% :-)
15:39 pmichaud (er, those numbers are within 10% of the actual numbers)
15:39 [particle] yep
15:40 [particle] btw stevan says the t/oo/from_moose/ tests should be removed--they're way too out of date
15:40 pmichaud stevan++
15:41 pmichaud are all of the tests in t/   for Perl 6, or do some of them test other things (such as moose)?
15:41 moritz_ [particle]: will you rip them out? or should I?
15:41 stevan_ [particle]: soon we will have better tests for you guys
15:42 moritz_ stevan_: if you want to be the hero of the realm, formulate them language agnostic ;-)
15:43 [particle] ok, 18864 tests in pugs/t/ now
15:43 pugs_svnbot r21130 | particle++ | these are way out of date, and will be updated soon, so sayeth the Moooooooose
15:43 stevan_ moritz_: one second, let me clone myself first ...
15:44 moritz_ ;)
15:44 [particle] don't forget to clone your threads
15:44 [particle] we don't need another ingy around here
15:44 pugs_svnbot r21131 | moritz++ | [t] operators/inc.t: shanged tests from dies_ok to eval_dies_ok
15:44 stevan_ moritz_: the idea is that we will move the class defs into their own files, and associate them with some .pl files that run the actual tests
15:44 stevan_ they we have small test-runner that basically is the code for your .t file
15:45 moritz_ sounds sane
15:45 stevan_ so while they wont be language agnostic,.. they will be cleaned up such that mechanical translation should be easier
15:50 pugs_svnbot r21132 | moritz++ | [spec] moved operators/inc.t to spec/. rakudo says "Null PCM access in type()"
15:51 moritz_ t/operators/repeat.t sys that $str x -1 should be '', rakudo say "Cannot repeat with negative arg"
15:51 moritz_ the former seems to be more in line with perl 5
15:51 pmichaud is there a ticket for the Null PMC access in type() yet?
15:51 pmichaud okay, we can fix repeat.  Feel free to file a ticket for it -- it should be an easy fix.
15:52 pmichaud I need to refactor the Str class anyway.
15:52 moritz_ pmichaud: Ovid++ reported something with the same error message
15:52 pmichaud okay.  That probably needs to be passed over to jonathan++
15:52 pmichaud I'll see if I can find it and do that.
15:59 pugs_svnbot r21133 | moritz++ | [spec] moved operators/repeat.t to t/spec/, fixed POD
16:02 renormalist joined #perl6
16:03 moritz_ rakudo: say ( (1, 2) xx 2 ).perl
16:03 p6eval rakudo 28901: OUTPUT[[1, 2, [1, 2]]␤]
16:03 moritz_ that's so wrong ;)
16:03 pmichaud yes, lists of captures has an issue with it.  I have no idea what that problem is right now, but since I just updated Array handling it might be ripe for fixing now.
16:04 pmichaud pugs:  say ( (1,2) xx 2 ).perl
16:04 p6eval pugs: OUTPUT[(1, 2, 1, 2)␤]
16:04 pmichaud I might just get infix:<xx> to work in list context for now and worry about slicing context a bit later.
16:05 pugs_svnbot r21134 | moritz++ | [spec] fudged and corrected S03-operators/repeat.t
16:05 moritz_ funny, rakudo has infix:<x=>, but no infix:<xx=>
16:06 pmichaud STD.pm constructs the inplace assignment operators from the infixes automatically -- at present Rakudo has to identify them individually
16:06 pmichaud that will undoubtedly be fixed as part of the STD.pm convergence effort.
16:08 rakudo_svn r28902 | moritz++ | [rakudo] one more file for spectest_regression
16:12 vixey joined #Perl6
16:12 pugs_svnbot r21135 | moritz++ | [spec] moved ternary.t to spec/
16:13 Auzon joined #perl6
16:13 pugs_svnbot r21136 | moritz++ | [spec] fixed (aka removed) POD from ternary.t
16:13 kanru joined #perl6
16:16 pugs_svnbot r21137 | moritz++ | [spec] fudged ternary.t
16:19 pugs_svnbot r21138 | moritz++ | [spec] S29-list/grep.t fixed adverbial closure test
16:19 rakudo_svn r28903 | moritz++ | [rakudo] tests for ternary now in spectest_regression
16:23 moritz_ pmichaud: I see you added "### refactored to t/spec/S03-operators/equality.t" note to some tests - is there a good reason not to delete those?
16:24 pmichaud you can delete them now.  I was trying to keep people from saying "oh, we need equality tests here too" and duplicating the tests.
16:24 moritz_ ok
16:24 pmichaud might leave a note that "tests for equality are in S03-operators/equality.t" though.
16:24 moritz_ don't think it's worth, since the tests are moving away from plain t/ anyway
16:25 pmichaud that's fine.
16:28 pugs_svnbot r21139 | moritz++ | [t] removed redundant tests
16:31 pugs_svnbot r21140 | moritz++ | [spec] moved short_circuit.t to spec/, fixed POD, shortened test descriptions
16:34 pugs_svnbot r21141 | moritz++ | [spec] fudged short-circuit.t
16:34 moritz_ moving tests to spec/ and fudging is much more rewarding when it leads to inclusion into  spectest_regression
16:35 moritz_ I just see one problem as the test suite grows: speed
16:36 pmichaud we'll be fixing that soon, too.  I expect within the month.
16:37 pmichaud we can quickly shave about 60% on each test file by precompiling Test.pm
16:37 moritz_ YaY
16:37 [particle] what's the remaining hurdle for that?
16:37 pugs_svnbot r21142 | moritz++ | [spec] added ticket number to fudge message in repeat.t
16:37 pmichaud [particle]: hurdle*s*, plural
16:37 pmichaud at the moment the big hurdle is lexical handling
16:37 pmichaud after that it'll be :load :init handling
16:38 pmichaud but I can't fix :load :init until lexicals get resolved
16:38 pmichaud every time I try to do something with fixing Rakudo to handle precompiled modules better, it comes back to an issue with lexical bugs in parrot
16:39 moritz_ should +'Inf' return a numeric Inf?
16:39 [particle] obviously they're undertested
16:39 [particle] numeric Inf is 'Inf' no?
16:40 moritz_ it seems rakudo doesn't do Inf at all
16:40 moritz_ [particle]: think so
16:40 [particle] parrot doesn't handle Inf and NaN in a consistently yet
16:41 [particle] it relies on platform-dependent representation
16:41 [particle] s/representation/behavior/
16:41 pmichaud afk, errands
16:43 pugs_svnbot r21143 | moritz++ | [spec] moved numify.t to spec/, started fudging
17:00 * ruoso just realised that the default object dispatcher for Perl 6 in SMOP will also be written in Perl 6
17:00 ruoso method dispatch($meta: $object, $identifier, $capture --> Any)
17:00 ruoso in the metaclass
17:01 ruoso it would be nice if someone could write a dispatch implementation in smop/src-s1p/P6Meta.pm
17:01 moritz_ why --> Any and not --> Object?
17:01 ruoso moritz_, not sure... maybe it should be --> Object
17:03 rakudo_svn r28906 | moritz++ | [rakudo] two more files for spectest_regression
17:03 ruoso it's cool that as I make progress in the low-level of SMOP, more things are to be defined in a higher level...
17:04 ruoso it's also cool that as this high-level parts are written, I can have a more precise idea of exactly which minimum features the runtime needs
17:06 moritz_ ruoso: how on earth could dispatch() written in perl 6 work? Surely it has to call methods, and take care not loop
17:07 ruoso by using the REPR api
17:07 ruoso it has means of introspecting the actual object contents
17:07 ruoso and all that is available by method calls only...
17:08 ruoso since the same metaclass can be used by different representations...
17:08 moritz_ so the methods for introspection would be dispatched by a different dispatcher?
17:09 ruoso yes, because the dispatcher is always object-specific
17:09 ruoso then I can break the loop by having low-level objects behaving as high-level objects
17:09 ruoso the REPR API is usually implemented directly in C
17:10 ruoso actually.... in p6opaque, the REPR calls are intercepted by the C code, and only the other calls go to "dispatch"
17:10 ruoso but from the outside, they're all simply method calls
17:12 ruoso moritz_, want to write a dispatcher? ;) ;) ;) ;)
17:16 moritz_ ruoso: I considered it. But I think I understand too little of introspection and mmd
17:16 * ruoso understands less
17:16 ruoso ;)
17:17 ruoso maybe that's a task for TimToady ;)
17:17 moritz_ hey, you know of the REPR API, I don't ;)
17:17 * ruoso hides
17:22 barney joined #perl6
17:28 hercynium joined #perl6
17:44 hercynium joined #perl6
17:44 vixey joined #perl6
17:44 justatheory joined #perl6
17:44 japhb joined #perl6
17:44 buu joined #perl6
17:44 buu_ joined #perl6
17:56 rindolf joined #perl6
18:03 pmurias joined #perl6
18:06 pmurias ruoso: hi, it great that you started your grant ;)
18:12 pmurias joined #perl6
18:16 peepsalot joined #perl6
18:20 pmurias @tell ruoso the alternative sm0p parser produces code for the stuff that was in KP6Grammar
18:20 pmurias nfffn
18:20 pmurias sorry
18:27 wknight8111 joined #perl6
18:29 jhorwitz joined #perl6
18:34 perlbot joined #perl6
18:43 armagad joined #perl6
18:45 ingy hola
18:45 moritz_ an ingy!
18:45 moritz_ hi
18:45 ingy hi moritz_
18:46 ingy I R A P 6 PORGAMMR!
18:47 ingy anyone here use TimToady's new parser on a regular basis?
18:48 moritz_ ingy: pixie (a clone of "elf") does
18:48 ingy url?
18:48 ingy who hacks on pixie?
18:48 moritz_ ingy: pmurias does
18:49 ingy thanks
18:49 moritz_ ingy: url is misc/pixie in the pugs repo
18:49 moritz_ pixie: say "hi"
18:49 moritz_ .oO( hope it works )
18:49 p6eval pixie: No output (you need to produce output to STDOUT)
18:49 moritz_ seems to be b0rked atm, and pmurias is on vacation
18:50 ingy moritz_: what is pixie in a nutshell? just a bot?
18:50 moritz_ ingy: no, it's a mostly bootstrapped compiler
18:50 moritz_ ingy: p6eval is just a frontend, as it is to about every other implementation we have ;)
18:50 ingy perl 6 compiler?
18:50 * DietCoke hopes ingy has pants on.
18:51 ingy undies
18:51 * ingy works from home
18:51 moritz_ ingy: aye
18:51 DietCoke better'n'nothing.
18:51 ingy :)
18:52 meppl joined #perl6
18:52 * ingy is writing a new porgamming lang
18:53 ingy hoping to use p6 stuff for parser
18:53 moritz_ ingy: PGE is fairly stable. It's on parrot, but uses (mostly) Perl 6 rules
18:54 polettix joined #perl6
18:54 ingy well my backend code is already written
18:54 ingy a long long time ago :)
18:58 icwiener joined #perl6
19:11 Southen joined #perl6
19:54 wknight8111 joined #perl6
19:59 moritz_ rakudo: say Bool::True
19:59 p6eval rakudo 28911: OUTPUT[1␤]
20:01 moritz_ rakudo: say <1 4 5>
20:01 p6eval rakudo 28911: OUTPUT[./parrot: error while loading shared libraries: /home/evalenv/parrot/blib/lib/libparrot.so.0.6.3: invalid ELF header␤]
20:02 moritz_ rakudo: say <1 4 5>
20:02 p6eval rakudo 28911: OUTPUT[145␤]
20:02 moritz_ rakudo: say <<1 2 3>>
20:02 p6eval rakudo 28911: OUTPUT[Statement not terminated properly at line 1, near ">"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
20:05 moritz_ rakudo: my Int $x = 0; say $x.does(Int)
20:05 p6eval rakudo 28911: OUTPUT[Method 'does' not found for invocant of class 'Int'␤current instr.: '_block11' pc 118 (EVAL_13:51)␤]
20:05 moritz_ rakudo: my Int $x = 0; say $x.isa(Int)
20:05 p6eval rakudo 28911: OUTPUT[1␤]
20:08 pugs_svnbot r21144 | moritz++ | [spec] added simple tests for Enums, for jonathan's next rakudo day
20:10 hercynium joined #perl6
20:11 pugs_svnbot r21145 | moritz++ | [spec] moved S12-enums to spec/, mistakenly added it to t/ first. moritz--
20:12 Auzon moritz_: I think there are some enum tests already lurking about
20:14 moritz_ Auzon: yes, I let me inspire by them. But the test too much at once to be of any real use for jonathan, I think
20:14 moritz_ actually they are quite thoroughly tested, it seems
20:15 moritz_ the tests seem logically fine, but have a lot of cruft
20:15 hercynium joined #perl6
20:15 icwiener joined #perl6
20:15 perlbot joined #perl6
20:15 barney joined #perl6
20:15 elmex joined #perl6
20:15 apeiron joined #perl6
20:15 Coleoid joined #perl6
20:15 speckbot joined #perl6
20:15 avar joined #perl6
20:15 rhr joined #perl6
20:15 jrockway joined #perl6
20:15 lumi joined #perl6
20:15 moritz_ I'm going to remove a ton of evals ands :todo<feature>s
20:15 [particle]1 joined #perl6
20:17 Coleoid_ joined #perl6
20:17 moritz_ from S12:     $x does day;
20:17 Alias_ joined #perl6
20:17 moritz_ does that mean we have an inifx:<does>?
20:18 Auzon brb
20:18 Auzon and yes, there is a does somewhere
20:18 moritz_ scary ;)
20:19 moritz_ rakudo: say 1.2 !~~ Int
20:19 p6eval rakudo 28916: OUTPUT[1␤]
20:23 pugs_svnbot r21146 | moritz++ | [spec] moved oo/enum.t to spec/
20:29 pugs_svnbot r21147 | moritz++ | [spec] updated t/state.t - need more review before moving it to spec/
20:31 moritz_ rakudo: say  ('' eq ('' & ''))
20:31 p6eval rakudo 28917: OUTPUT[1␤]
20:31 moritz_ rakudo: say  ('' eq ('' & 'd'))
20:31 p6eval rakudo 28917: OUTPUT[0␤]
20:33 Exodist joined #perl6
20:36 rindolf joined #perl6
20:36 rindolf Hi all.
20:36 rindolf I'm so unbeliavably pissed off atm!
20:36 rindolf Somebody should calm me down.
20:36 moritz_ rindolf: I think that's easier for somebody in RL
20:37 rindolf moritz_: maybe.
20:37 rindolf moritz_: first KDE 3 got hanged up on Cooker. Twice!
20:38 rindolf moritz_: then I tried to talk about my @perl.org banning on irc.perl.org and Robrt-- was not there.
20:38 rindolf moritz_: and now he first banned and then K-lined me.
20:38 rindolf moritz_: so far he seems like he has a missing screw.
20:38 rindolf Well, maybe I'm more calm now.
20:38 rindolf I took a few deep breathes.
20:42 pugs_svnbot r21148 | moritz++ | [spec] started to move junction tests (and upate POD). Much more work need
20:51 ruoso joined #perl6
21:00 hercynium joined #perl6
21:06 pugs_svnbot r21149 | moritz++ | [spec] fudged S03-junctions/misc.t
21:12 * rindolf is doing CBT
21:13 vixey hey rindolf
21:13 pugs_svnbot r21150 | moritz++ | [spec] a bit more fudge fiddling
21:14 rakudo_svn r28921 | moritz++ | [rakudo] first junction tests in spectest_regression
21:15 rindolf Hi vixey
21:15 moritz_ d'oh, t/junction/associative.t seems totally borked to me
21:16 moritz_ it assumes that Junction.values returns the item in the order they were put it
21:18 rindolf TimToady: here?
21:18 moritz_ even more "d'oh', Junction.values is neither in in S03 not in S29
21:18 Auzon joined #perl6
21:21 pugs_svnbot r21151 | moritz++ | [t] junctions/associative.t is b0rked
21:21 moritz_ rakudo: +(1..2)
21:21 Auzon moritz_: Am I correct in assuming that p5=> doesn't quote the LHS like the Perl 5 version?
21:21 p6eval rakudo 28922: RESULT[2]
21:21 moritz_ Auzon: I think it does (otherwise it would just be a comma)
21:22 moritz_ on the other hand, infix:«p5=>» doesn't do any special handling in STD.pm
21:23 moritz_ so actually I dunno
21:23 Auzon S03:1465 says that it's the same as a comma
21:24 moritz_ "This operator, which behaves exactly like the Perl 5 fatarrow in being equivalent to a comma"
21:24 moritz_ I interpret that as "it constructs a list, not a pair"
21:24 moritz_ and the p5 fatarrow does quote its LHS
21:26 Auzon perl6: say (1,2) !~~ Pair
21:26 p6eval elf 21151: OUTPUT[No viable candidate for call to multimethod infix__33_126(#,#,$) at (eval 123) line 3␤ at ./elf_f line 3861␤]
21:26 p6eval ..kp6 21151: OUTPUT[syntax error at position 10, line 1 column 10:␤say (1,2) !~~ Pai␤          ^ HERE␤]
21:26 p6eval ..pugs: OUTPUT[1␤]
21:26 p6eval ..rakudo 28922: OUTPUT[1␤]
21:27 TimToady joined #perl6
21:27 ruoso joined #perl6
21:27 Southen joined #perl6
21:27 agentzh joined #perl6
21:27 broquaint joined #perl6
21:27 SamB joined #perl6
21:27 Lunchy joined #perl6
21:27 buubot joined #perl6
21:27 wolverian joined #perl6
21:27 diakopter joined #perl6
21:27 rindolf vixey: have you contributed stuff to Parrot lately?
21:28 moritz_ Auzon: I suppose you've seen http://rakudo.de/progress.png (or the similar graph rakudo.org)? part of it is your progress ;-)
21:29 Auzon Yep, I saw it on one (or more ;)) RSS feed
21:29 Auzon I'm simply amazed by everyone++'s progress
21:31 moritz_ .oO( t/junctions/chained_operators.t - what's the connection between file name and contents? )
21:32 * moritz_ decides that working on t/junction/* isn't very productive atm
21:32 moritz_ I'd actually have to *think* ;-)
21:33 Auzon moritz_: In your graph, the yellow is mostly fudge, correct?
21:34 moritz_ Auzon: I think *all* of it is fudge ;)
21:37 moritz_ I'm running tools/test_summary.pl now, and it seems that most fudges are spread out over various files
21:37 moritz_ which mean it's probably mostly done right
21:38 Auzon great :)
21:39 moritz_ well, exp.t passes 2 and skips 44
21:40 meppl joined #perl6
21:40 pmichaud Junction.values was discussed in p6l, I believe.
21:40 moritz_ but that should be fixed as soon as somebody applies bacek++'s patches for various Complex methods, including prefix:<->
21:40 moritz_ pmichaud: pretty much everything has been discussed on p6l ;-)
21:41 moritz_ pmichaud: what do we do with #56230 ?
21:41 moritz_ (bacek's patches for Complex stuff)
21:42 vixey rindolf, no never
21:42 pmichaud I was thinking that bacek was going to move some of the operators into src/classes/Complex.pir, but apparently he didn't do that yet.
21:43 pmichaud i.e., I think the complex stuff belongs in complex.pir, as opposed to the main operators file.
21:43 moritz_ I can do some of the moving, and apply it
21:44 cjfields joined #perl6
21:44 moritz_ the question is if we stick to multis (for example for exp), or use a :multi(_) with a pmc as the param
21:44 Auzon perl6: my @arr = 1 .. 4; my %hash = @arr; %hash.perl.say
21:44 pmichaud what do we do if we get a pmc type that doesn't understand the 'exp' opcode?
21:44 p6eval elf 21151: OUTPUT["1E0"␤]
21:44 p6eval ..kp6 21151: OUTPUT[syntax error at position 45, line 1 column 45:␤my @arr = 1 .. 4; my %hash = @arr; %hash.perl.sa␤                                             ^ HERE␤]
21:44 p6eval ..pugs: OUTPUT[\(\("1", 2), \("3", 4))␤]
21:44 p6eval ..rakudo 28922: OUTPUT[{"1" => 2, "3" => 4}␤]
21:45 moritz_ elf++ # most creative output ;)
21:45 cjfields perl6 : for [1..3, 4..6] { say $_.WHAT}
21:46 Auzon Yeah... I don't get it. Pugs's output is interesting as well
21:46 cjfields perl6: for [1..3, 4..6] { say $_.WHAT}
21:46 p6eval elf 21151: OUTPUT[Array␤]
21:46 p6eval ..kp6 21151: OUTPUT[syntax error at position 4, line 1 column 4:␤for [1..3, 4..6] { say $_.WHAT␤    ^ HERE␤]
21:46 p6eval ..pugs: OUTPUT[Array␤]
21:46 p6eval ..rakudo 28922: OUTPUT[Int␤Int␤Int␤Range␤]
21:46 cjfields Rakudo's wrong
21:46 moritz_ and very interesting ;-)
21:46 cjfields perl6: for [1..3, 4..6] { say $_}
21:46 p6eval elf 21151: OUTPUT[123456␤]
21:46 p6eval ..kp6 21151: OUTPUT[syntax error at position 4, line 1 column 4:␤for [1..3, 4..6] { say $_␤    ^ HERE␤]
21:46 p6eval ..pugs: OUTPUT[1 2 3 4 5 6␤]
21:46 p6eval ..rakudo 28922: OUTPUT[1␤2␤3␤456␤]
21:47 pmichaud I'm not sure that any of them are correct.  :-)
21:48 moritz_ I think that for [...] -> {...} should always do only one iteration
21:48 pmichaud seems to make sense
21:48 pmichaud I bet I can fix that one.
21:48 cjfields So what would be the expected answer
21:48 pmichaud if only one iteration, then pugs has it correct
21:49 pmichaud "1 2 3 4 5 6\n"
21:49 cjfields That's what I thought
21:49 moritz_ OTOH, how would one iterate over an array ref?
21:49 moritz_ for @$ref -> { stuff } ?
21:49 pmichaud perhaps   for =[...]   ?
21:49 Auzon for @ [...] ?
21:49 pmichaud prefix:<=> is the standard "iterator operator"
21:50 pmichaud rakudo:  for @ [1..3,4..6] { say $_; }
21:50 p6eval rakudo 28922: OUTPUT[1␤2␤3␤456␤]
21:50 pmichaud oh, that's weird.
21:50 cjfields rakudo: for [1..3, 4..6, 7..9] { say $_.WHAT}
21:50 p6eval rakudo 28922: OUTPUT[Int␤Int␤Int␤Range␤Range␤]
21:50 pmichaud rakudo:  say @ [1..3, 4..6]
21:50 p6eval rakudo 28922: OUTPUT[1 2 3 4 5 6␤]
21:51 pmichaud rakudo:  say (@ [1..3, 4..6]).WHAT
21:51 p6eval rakudo 28922: OUTPUT[Array␤]
21:51 pmichaud that looks a little funny to me.
21:52 pmichaud rakudo:  say (list [1..3, 4..6]).WHAT
21:52 p6eval rakudo 28922: OUTPUT[List␤]
21:52 pmichaud rakudo:  say [1..3,4..6].list.WHAT;
21:52 p6eval rakudo 28922: OUTPUT[Array␤]
21:52 pmichaud that's definitely not what I expect.
21:53 cjfields rakudo: say @ [1..3, 4..6].elems
21:53 p6eval rakudo 28922: OUTPUT[6␤]
21:54 pmichaud oh, hrm.
21:55 cjfields rakudo: for 1..3, 4..6 { say $_.WHAT}
21:55 p6eval rakudo 28923: OUTPUT[Int␤Int␤Int␤Range␤]
21:55 cjfields same thing
21:55 moritz_ cjfields: make it a test, if it's not there in the suite yet
21:55 pmichaud rakudo:  for (1..3, 4..6) { say $_.WHAT }
21:56 p6eval rakudo 28923: OUTPUT[Int␤Int␤Int␤Range␤]
21:56 pmichaud rakudo:  say 1..3, 4..6;
21:56 p6eval rakudo 28923: OUTPUT[1234 5 6␤]
21:56 cjfields it's only expanding the first Range; any after are not expanded
21:56 pmichaud obviously a problem with listcontext there.
21:56 cjfields yep
21:57 cjfields moritz_: where should the test go?
21:58 Auzon Does it only happen with 'for'? If so, probably t/statements/for.t
21:58 pmichaud there are two problems here
21:58 pmichaud one is what is happening with ranges inside of list contexts
21:58 pmichaud i.e.,  say 1..3, 4..6;   should result in 1\n2\n3\n4\n\5\n6\n
21:59 pmichaud the other problem is how 'for' is iterating over Array
21:59 pmichaud perl6:  for [1,2,3,4,5,6] { say $_; }
21:59 p6eval elf 21151: OUTPUT[123456␤]
21:59 p6eval ..kp6 21151: OUTPUT[no method 'APPLY' in Class 'Undef'␤ at compiled/perl5-kp6-mp6/lib/KindaPerl6/Runtime/Perl5/MOP.pm line 345␤     ]
21:59 p6eval ..pugs: OUTPUT[1 2 3 4 5 6␤]
21:59 p6eval ..rakudo 28923: OUTPUT[1␤2␤3␤4␤5␤6␤]
21:59 pmichaud pugs is correct.
21:59 pmichaud (assuming that we think of iterating over an Array as being a single element, which I think it should be.)
22:00 cjfields I agree
22:00 moritz_ t/statements/for.t for that one, as Auzon++ suggested
22:00 moritz_ the other one... do we have range tests?
22:00 pmichaud yes, in range.t, right?
22:00 Auzon /t/spec/S03-operators/range.t
22:00 Auzon or maybe t/spec/S02-builtin_data_types/range.t
22:01 * Auzon looks to see the difference
22:02 pmichaud I think it's a question of whether we're testing the operator or the type
22:02 cjfields So should 'for 1..3, 4..6 { say $_.WHAT}' give a single Array, or two Ranges?
22:02 pmichaud neither.  six Ints
22:03 cjfields So it should expand
22:03 pmichaud yes, because it's in list context.
22:03 moritz_ yes
22:03 cjfields the ranges
22:04 cjfields That's what I thought
22:04 BinGOs_ joined #perl6
22:06 cjfields perl6: for [1..3] { say $_.WHAT}
22:06 cjfields I think I killed it
22:06 p6eval elf 21151: OUTPUT[Array␤]
22:06 p6eval ..kp6 21151: OUTPUT[syntax error at position 4, line 1 column 4:␤for [1..3] { say $_.WHAT␤    ^ HERE␤]
22:06 p6eval ..pugs: OUTPUT[Array␤]
22:06 p6eval ..rakudo 28923: OUTPUT[Int␤Int␤Int␤]
22:06 Auzon No, p6eval seems slower recently
22:07 cjfields perl6: for [1..3], [4..6] { say $_.WHAT}
22:07 p6eval elf 21151: OUTPUT[Array␤Array␤]
22:07 p6eval ..kp6 21151: OUTPUT[syntax error at position 4, line 1 column 4:␤for [1..3], [4..6] { say $_.WHAT␤    ^ HERE␤]
22:07 p6eval ..pugs: OUTPUT[Array␤Array␤]
22:07 p6eval ..rakudo 28923: OUTPUT[sh: ./parrot: Permission denied␤]
22:07 Auzon rakudo: 1.say
22:07 p6eval rakudo 28923: OUTPUT[1␤]
22:07 cjfields rakudo: for [1..3], [4..6] { say $_.WHAT}
22:07 p6eval rakudo 28923: OUTPUT[Array␤Array␤]
22:08 cjfields ?!?
22:08 cjfields definitely a list context issue
22:08 moritz_ that last one is right
22:08 cjfields yes, but...
22:08 cjfields rakudo: for [1..3] { say $_.WHAT}
22:08 p6eval rakudo 28923: OUTPUT[Int␤Int␤Int␤]
22:08 pmichaud right
22:08 pmichaud the comma is imposing list context
22:09 pmichaud when the comma isn't there, the for statement is defaulting to item context, which is wrong.
22:09 Auzon rakudo: for ([1..3],) { say $_.WHAT}
22:09 p6eval rakudo 28923: OUTPUT[Array␤]
22:09 cjfields bingo
22:09 pmichaud yes.  sorry for not explaining it earlier.  I even know how to fix it, but I'm trying to figure out why 1..3,4..6 isn't working first.  :-)
22:10 BinGOs__ joined #perl6
22:10 cjfields sorry to unload that one on you.
22:12 pmichaud testing spectest_regression now with fix for 1..3,4..6
22:13 * moritz_ runs spectest_regression with the Complex patches applied
22:17 rakudo_svn r28924 | moritz++ | [rakudo] Implement prefix:+, prefix:-, sqrt() and exp() for Complex.
22:17 rakudo_svn r28924 | moritz++ | Patch curtesy of bacek++, Vasily Chekalkin <bacek@bacek.com>
22:18 pugs_svnbot r21152 | moritz++ | [spec] unfudge complex.t
22:18 rakudo_svn r28925 | moritz++ | [rakudo] S29-num/complex.t is now pure. bacek++
22:21 bacek joined #perl6
22:21 scrottie joined #perl6
22:22 scrottie dammit.  missed the reply to ingy's "anyone using TimToady's p6?".
22:23 moritz_ scrottie: that's what the good lord invent IRC logs for ;-)
22:23 moritz_ scrottie: last URL in /topic
22:28 Auzon moritz_++ # irclog
22:29 rakudo_svn r28926 | pmichaud++ | [rakudo]:
22:29 rakudo_svn r28926 | pmichaud++ | * Fix list context flattening when a lazy element (e.g., a Range)
22:29 rakudo_svn r28926 | pmichaud++ |   increases the number of items in the resulting list.
22:29 rakudo_svn r28926 | pmichaud++ | * cjfields++ for finding this and providing useful test examples.
22:36 pugs_svnbot r21153 | moritz++ | [spec] fixed tests for return of failed Str.index(). bacek++, pmichaud++
22:38 moritz_ actually all of these builtins need to be tested with named arguments
22:38 pugs_svnbot r21154 | moritz++ | [spec] tests for return type of index()
22:39 moritz_ so not only index($s1, $s2) but also index(string=>$s1, substring=>$s2)
22:42 Auzon Can I safely .pop an item off the end of an infinite array?
22:43 moritz_ no, don't think so
22:43 moritz_ perhaps my @x = *..1; pop @x; might work
22:44 FurnaceBoy joined #perl6
22:44 Auzon also, does reverse(1 .. *) go from Inf down to 1?
22:45 moritz_ no
22:45 moritz_ it'll loop, I fear
22:46 moritz_ unless you have a clever reverse(Range) multi
22:46 Auzon S03 says that reversed Ranges are still lazy
22:46 moritz_ maybe I should look into the specs before spilling bullshit ;)
22:48 Auzon S03:2650 is the section that I'm looking at
22:49 Auzon or it begins the section that is
22:50 pmichaud a reversed range is still lazy, yes.
22:50 c1sung joined #perl6
22:51 pmichaud I suspect that reverse() will be implemented such that it (lazily) reverses all of the elements of the list
22:52 Auzon S03 says that there is a .min, .max, .to, and .from, which would be enough to do that without iterating it.
22:52 pmichaud also need .by
22:53 Auzon yeah, forgot that one.
22:54 pmichaud but what would be interesting is whether    (1.1 .. 4.5).reverse    starts at 4.1
22:54 pmichaud (I'm assuming it will.)
22:55 Auzon I don't think so, since (1.1 .. 4.5).pop gives 4.5, and reversing a range only flips the to and from.
22:55 pmichaud actually,   1.1 .. 4.5   gives 4.1
22:55 Auzon oh, but there's .min and .max. Not sure :-/
23:08 Lunchy joined #perl6
23:08 wknight8111 joined #perl6
23:08 pugs_svnbot r21155 | moritz++ | [spec] unfudge passing tests
23:30 lumi joined #perl6
23:55 bacek_ joined #perl6

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

Perl 6 | Reference Documentation | Rakudo