Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2007-08-20

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:05 dduncan to follow up, it appears that what I missed was running this: sudo ranlib /usr/local/lib/ghc-6.6.1/*.a ... which got me past my stated problem
00:05 dduncan and the Pugs Makefile.PL now cmopleted
00:22 Schwern joined #perl6
00:24 jhorwitz_ joined #perl6
00:26 jhorwitz__ joined #perl6
00:30 diakopter moritz_: ping
00:32 gnuvince_ joined #perl6
00:38 jisom joined #perl6
00:47 DarkWolf84 joined #perl6
00:54 BinGOs_ joined #perl6
01:20 dduncan left #perl6
01:20 hakobe joined #perl6
01:24 asl joined #perl6
01:27 nipotaway changed the nick to nipotan
01:28 lyokato joined #perl6
01:33 buetow joined #perl6
02:11 clkao joined #perl6
02:14 torz joined #perl6
02:46 |Jedai| joined #perl6
03:17 weinig joined #perl6
03:18 sunnavy joined #perl6
03:18 BinGOs joined #perl6
03:19 dolmans joined #perl6
03:23 sunnavy_ joined #perl6
03:45 sunnavy_ joined #perl6
03:48 amnesiac joined #perl6
04:01 mj41__ joined #perl6
04:01 mj41__ changed the nick to mj41
04:02 dalek joined #perl6
04:04 Juerd joined #perl6
04:04 Psyche^ joined #perl6
04:16 pugs_svnbot r17316 | lwall++ | [STD] cheated/metholated version now 100% parsable by pugs
04:16 pugs_svnbot diff: http://dev.pugscode.org/changeset/17316
04:17 lambdabot Title: Changeset 17316 - Pugs - Trac
04:17 Psyche^ changed the nick to Patterner
04:43 gongyiliao joined #perl6
04:49 bsb 100% proof metholated
04:52 nipra joined #perl6
05:15 moritz_ diakopter: pong
05:16 moritz_ diakopter: I'm only here for a few minutes, then again in ~10h
05:25 weinig joined #perl6
05:26 moritz_ perhaps a mail might be more efficient... you find my address in commitbit
05:26 moritz_ $work &
05:30 jrockway joined #perl6
05:34 gongyiliao left #perl6
05:42 dduncan joined #perl6
06:24 weinig joined #perl6
06:25 JarJarBi1ks joined #perl6
06:46 dduncan left #perl6
06:59 drupek12 joined #perl6
07:08 sunnavy joined #perl6
07:12 kanru joined #perl6
07:14 elmex joined #perl6
07:23 Aankhen`` joined #perl6
07:33 zamolxes joined #perl6
07:48 iblechbot joined #perl6
08:02 thoughtp1lice joined #perl6
08:02 Aankhen`` joined #perl6
08:12 pugs_svnbot r17317 | lwall++ | [STD] can now parse terminators, ws, and (very nearly) prefix ops
08:12 pugs_svnbot r17317 | lwall++ | [Metholated] now knows ALNUM, VSPACE, HSPACE, after, and BOL
08:12 pugs_svnbot r17317 | lwall++ | [metholate] fixes context vars that pugs doesn't like in sigs
08:12 pugs_svnbot diff: http://dev.pugscode.org/changeset/17317
08:12 lambdabot Title: Changeset 17317 - Pugs - Trac
08:15 Aankhen`` joined #perl6
08:23 flokuehn joined #perl6
08:27 daxim joined #perl6
08:43 elmex_ joined #perl6
08:47 [particle] joined #perl6
08:48 thoughtpolice joined #perl6
08:56 elmex joined #perl6
09:10 polettix joined #perl6
09:49 kanru joined #perl6
09:57 andara joined #perl6
10:00 chris2 joined #perl6
10:05 sunnavy_ joined #perl6
10:19 Aankh|Clone joined #perl6
10:27 buetow joined #perl6
10:45 ruoso joined #perl6
10:51 chris2 joined #perl6
10:51 kanru joined #perl6
10:51 polettix joined #perl6
10:51 [particle] joined #perl6
10:51 jrockway joined #perl6
10:51 BinGOs joined #perl6
10:51 lisppaste3 joined #perl6
10:51 rhizo joined #perl6
10:51 cerridwen joined #perl6
10:51 Gothmog_ joined #perl6
10:51 rhr joined #perl6
10:51 cls_bsd joined #perl6
10:51 meppl joined #perl6
10:51 integral joined #perl6
10:51 Yappo joined #perl6
10:51 agentzh joined #perl6
10:51 Khisanth joined #perl6
10:51 lidden joined #perl6
10:51 f0rth joined #perl6
10:51 felipe joined #perl6
10:51 pugs_svnbot joined #perl6
10:51 takanori_ joined #perl6
10:51 sri_ joined #perl6
10:55 gongyiliao joined #perl6
10:55 gongyiliao left #perl6
11:09 xinming_ joined #perl6
11:29 nipotan changed the nick to nipotaway
11:34 nekokak joined #perl6
11:38 jiing_ joined #perl6
11:38 eXile7 joined #perl6
11:38 xinming joined #perl6
11:39 Aankh|Clone joined #perl6
11:39 JarJarBi1ks joined #perl6
11:39 Juerd joined #perl6
11:39 torz joined #perl6
11:39 hakobe joined #perl6
11:39 gnuvince_ joined #perl6
11:39 eggzeck joined #perl6
11:39 mr_ank joined #perl6
11:39 spinclad joined #perl6
11:39 TimToady joined #perl6
11:39 melissa joined #perl6
11:39 kane_ joined #perl6
11:39 Eidolos joined #perl6
11:39 cognominal joined #perl6
11:39 toly_ joined #perl6
11:39 lumi joined #perl6
11:41 efftee joined #perl6
11:42 cognominal__ joined #perl6
11:43 ask_ joined #perl6
11:46 knewt_ joined #perl6
11:52 mtve joined #perl6
11:52 obra joined #perl6
11:52 avar joined #perl6
11:52 Southen joined #perl6
11:52 buetow joined #perl6
11:52 elmex joined #perl6
11:52 Blwood joined #perl6
11:52 itz joined #perl6
11:52 exp_evalbot joined #perl6
11:52 ruz joined #perl6
11:52 wilx joined #perl6
11:52 rlb3_work joined #perl6
11:52 lambdabot joined #perl6
11:52 Yaakov joined #perl6
11:52 toshinori joined #perl6
11:52 edenc joined #perl6
11:52 qmole joined #perl6
11:52 Casan joined #perl6
11:52 yahooooo joined #perl6
11:52 silug joined #perl6
11:52 jql joined #perl6
11:52 thepler joined #perl6
11:52 moritz_ joined #perl6
11:52 buubot joined #perl6
11:52 nipotaway joined #perl6
11:52 allbery_b joined #perl6
11:53 chris2 joined #perl6
11:53 kanru joined #perl6
11:53 polettix joined #perl6
11:53 [particle] joined #perl6
11:53 jrockway joined #perl6
11:53 BinGOs joined #perl6
11:53 lisppaste3 joined #perl6
11:53 rhizo joined #perl6
11:53 cerridwen joined #perl6
11:53 Gothmog_ joined #perl6
11:53 rhr joined #perl6
11:53 cls_bsd joined #perl6
11:53 meppl joined #perl6
11:53 integral joined #perl6
11:53 Yappo joined #perl6
11:53 agentzh joined #perl6
11:53 Khisanth joined #perl6
11:53 lidden joined #perl6
11:53 f0rth joined #perl6
11:53 felipe joined #perl6
11:53 pugs_svnbot joined #perl6
11:53 takanori_ joined #perl6
11:53 sri_ joined #perl6
11:54 Tene joined #perl6
11:54 clkao joined #perl6
12:00 efftee changed the nick to ft
12:02 Grrrr joined #perl6
12:12 cmarcelo joined #perl6
12:12 iblechbot joined #perl6
12:17 eggzeck joined #perl6
12:19 pbuetow joined #perl6
12:21 eggzeck joined #perl6
12:26 fglock joined #perl6
12:43 fridim joined #perl6
12:53 pugs_svnbot r17318 | fglock++ | [kp6] added t/kp6/34-typed-container.t (fails)
12:53 pugs_svnbot diff: http://dev.pugscode.org/changeset/17318
12:53 lambdabot Title: Changeset 17318 - Pugs - Trac
12:56 pugs_svnbot r17319 | fglock++ | [kp6] typed containers are "not wrong"
12:56 pugs_svnbot diff: http://dev.pugscode.org/changeset/17319
12:56 lambdabot Title: Changeset 17319 - Pugs - Trac
13:00 |Jedai| changed the nick to jedai
13:15 pmurias joined #perl6
13:16 pmurias fglock: hi
13:16 fglock pmurias: hey
13:17 masak joined #perl6
13:27 pmurias fglock: is there anything in particular i could do?
13:28 fglock pmurias: I'm trying to follow the plan at http://moritz.faui2k3.org/pugs/v6/docs/kp6-roadmap.pod.html
13:28 lambdabot Title: kp6-roadmap
13:29 fglock the next step could be to fix the Array and Hash implementations
13:29 fglock in order to implement Signatures/Captures
13:30 fglock the plan also needs work - there is no Milestone 4.2
13:33 fglock 4.2 will depend on which extra functionality STD needs
13:35 pmurias i'll try to do the Hash then
13:38 fglock cool - there is some previous work from the pil-run implementation
13:38 masak reuse++
13:38 fglock but we don't need everything right now (slices, OO-keys)
13:40 masak fglock: what's the goal of kp6?
13:40 fglock masak: it's yet another Perl 6 compiler, but it is written in a subset of Perl 6
13:41 masak what's "kinda" about it?
13:41 fglock because the "real" Perl 6 compiler would be written in "full" Perl 6
13:41 masak ah, ok
13:42 fglock the "kinda" is about the source code
13:42 masak doesn't sound like a real disadvantage to me, that it's being written in a subset
13:42 masak that might be good for portability, for example
13:44 zamolxes joined #perl6
13:47 fglock yes, that's one advantage; the disadvantages are that we have to implement our own tools (Pugs reuses a lot from Haskell and Perl 5), and it's slow (the Parrot compiler should be much faster)
13:47 masak "nod"
13:47 masak *nod*, even
13:48 fglock but it's fun :)
13:48 jhorwitz joined #perl6
13:48 rindolf joined #perl6
13:49 pmurias using mp6 instead of full p6 hinders portability in a way
13:49 pmurias as writing a backend in mp6 is way more work then it would in full p6
13:50 masak pmurias: why?
13:51 masak or rather, does that not presuppose the existence of a full p6 compiler?
13:55 pmurias i mean that mp6 might be an advantage over for example pir, but when kp6 is ready enough i don't think one would gain much by not writing it in itself
13:56 awwaiid joined #perl6
13:56 pmurias it's not as if i had a finished p6 compiler hidden somewhere ;)
13:57 masak I hope not ;)
13:59 fglock pmurias: that's the idea; rewriting kp6 in itself == writing Perl 6 in Perl 6
13:59 masak fglock: so the goal of kp6 is to converge towards a full p6 compiler, written in itself?
14:00 pmurias fglock: i know
14:00 pmurias masak: yes
14:01 * masak ponders that
14:02 fglock hmm - I'd better remember the reason why we are not using pugs to write the compiler
14:04 amnesiac joined #perl6
14:04 DarkWolf84 joined #perl6
14:05 fglock I think it's because perl5 is just easier to hack with
14:07 pmurias i'm thinking of writing a helper function: class ClassName=>{method_name=>sub {...}}
14:10 pasteling "pmurias" at 81.168.228.98 pasted "how ugly things look right now" (13 lines, 329B) at http://sial.org/pbot/26953
14:13 pmurias anything wrong with the suggestion, DispatchSugar turned out to be toxic so not sure if i should go with it
14:13 pmurias s/,/?/
14:14 fglock pmurias: looking
14:14 zomgb00bie joined #perl6
14:15 fglock pmurias: toxic in what way?
14:18 fglock i'm not much into sugar functions
14:19 pmurias DispatchSugar requires sprinkling sugar calls all over the place, and makes the objects too magical internally
14:20 TJCRI joined #perl6
14:23 pasteling "pmurias" at 81.168.228.98 pasted "comparision of sugar versus no sugar" (23 lines, 504B) at http://sial.org/pbot/26954
14:26 fglock pmurias: it looks like Moose
14:29 fglock i think the most cryptic part is " sugar {  %{ $_[0] }, _value => {}, } ", and the sugar doesn't help there
14:31 nipra joined #perl6
14:36 pmurias &sugar is intended for deletion
14:38 fglock pmurias: i guess i'm ok with no-sugar; i think it ends up easier to debug
14:39 fglock we could use ::CALL instead of ::DISPATCH
14:40 fglock i guess i'm bikeshedding
14:42 eggzeck_ joined #perl6
14:49 pmurias fglock: ::DISPATCH works great withought &sugar why should we change it
14:49 pugs_svnbot r17320 | pmurias++ | kp6: a Hash stub implemented using a new helper function
14:49 pugs_svnbot diff: http://dev.pugscode.org/changeset/17320
14:49 lambdabot Title: Changeset 17320 - Pugs - Trac
14:51 pmurias the point of &sugar was to use -> instead of ->{_dispatch}, but ::DISPATCH does the same thing
14:52 pmurias cycling&
14:52 as joined #perl6
14:52 fglock pmurias: ah, ok
14:52 as changed the nick to gene9
14:54 eggzeck_ changed the nick to eggzeck
14:57 sunnavy joined #perl6
15:05 thoughtp1lice joined #perl6
15:11 fridim_ joined #perl6
15:35 masak what's the difference between v6/v6-KindaPerl6/lib and v6/v6-KindaPerl6/llib5?
15:35 masak s/llib5/lib5/
15:35 fridim_ b5?
15:35 fridim_ (sorry)
15:35 masak :)
15:36 masak but really
15:36 masak they seem to contain many of the same files
15:36 TimToady I would imagine blib5 is the p5 translation of the kp6 versions in lib
15:37 masak except it's not blib5, it's lib5
15:37 moritz_ TimToady: you imagine right ;-)
15:37 masak and some of the files are identical
15:37 moritz_ they are not "binary", after all
15:38 masak so if I'm curious, I should look at the originals in lib?
15:38 moritz_ right
15:45 fglock masak: the files in Runtime/Perl5/ are identical, because they are already Perl 5
15:45 masak ah
15:51 kane_ joined #perl6
15:55 Blwood joined #perl6
15:57 rindolf joined #perl6
16:15 justatheory joined #perl6
16:17 * moritz_ wonders if the supplemental services like evalbot, irc logging etc. should go into a separate svn repository
16:17 moritz_ to keep the pugs repo a bit cleaner
16:18 moritz_ on the other hand the overhead of maintaining to svn repos might be overkill
16:20 diakopter moritz_: while you're at it, I'd like to see separate trunk/branches(/tags?) for the various implementations - pugs, mp6/kp6, etc.  And even a separate one for the test suite (building pugs' CPAN distribution would either include it or refer to a separate distribution)...  but all of that can still be in the same repo - just in different dirs.  We can do /pugs/* -> /projects/trunk/pugs/* redirecting for the old links.... yes I know it's
16:20 diakopter ... suggestion. :(
16:21 diakopter oops, /projects/pugs/trunk/* I meant...
16:22 masak diakopter: that sounds like a really good idea
16:22 diakopter masak: there are detriments, though
16:22 moritz_ diakopter: you are thinking of a perl 6 repo, not a pugs one ;-)
16:22 diakopter moritz_: yeah :/
16:22 moritz_ I don't object, but you should consult audreyt and TimToady at least ;-)
16:22 masak pugs practically is a perl 6 repo...
16:23 masak s/pugs/the pugs repo/
16:23 diakopter I'm certainly not wholeheartedly recommending it, as I know it would cause grief
16:23 masak it would certainly cause disorientation at least
16:23 diakopter but I thought I'd bring it up since you mentioned splitting some out at all.
16:23 masak but it might be good long-term
16:25 diakopter honestly I'd kinda like to "start over" with all the non-haskell svn.pugscode.org/pugs/* stuff... in either one new repo or a bunch of new repos...
16:25 masak why?
16:25 diakopter masak: purely in case audreyt can't be reached for a decision on pugs proper
16:27 Blwood joined #perl6
16:27 masak hm
16:27 diakopter masak: I mean, the repo could be cloned to retain history.
16:27 masak that's what svn does, retain history
16:27 diakopter bbiab
16:27 diakopter er, yeah
16:30 masak did not mean to score a cheap rethoric point, I just don't really understand the exact purpose
16:31 weinig_ joined #perl6
16:31 masak (and I sincerely hope that audreyt can be reached for a decision on pugs proper for all foreseeable future)
16:34 barney joined #perl6
16:34 diakopter I meant that it could be forked, (tentatively/temporarily) to leave both options open for her.
16:35 masak which two options?
16:35 masak restructured repo vs old repo?
16:36 diakopter keeping pugs proper in the existing repo/url/structure or moving it to some new structure/url (whether in the same (actually "forked") or its own repo).
16:37 masak was audreyt almost coming back to pugs development for a while, and then disappeared again? I seem to recall her talking briefly about relenging, but haven't seen her since
16:38 diakopter I haven't heard much recently.  obra: ping?
16:38 masak there certainly are benefits to keeping all activity in one repo, as now
16:40 diakopter definitely
16:40 JarJarBi1ks changed the nick to JarJarBinks
16:41 masak this channel is one. would perl 6 activity split into many projects, channel activity might split, too
16:41 thoughtpolice joined #perl6
16:42 diakopter I'd hope not.  I'd think moritz_++ 's new AIO bot would keep it close :)
16:42 masak yes, most likely :)
16:42 masak depends how independant the other projects got, I guess
16:43 diakopter sharing a virtual bazaar is healthly for competitors and cooperators. :)
16:43 * masak is desperatly waiting for 6.28.0
16:43 diakopter the question is whether/when would parrot/nqp and parrot/perl6 discussion migrate over here.....
16:43 masak heh
16:44 moritz_ somehow I doubt that they will
16:44 moritz_ they have stricter coding styles, stricter access controll (less commiters)...
16:44 moritz_ somehow I think they feel safer in their own repository
16:44 diakopter I didn't mean repository
16:44 diakopter I meant the channel
16:44 moritz_ ah, ok
16:45 moritz_ @seen pmichaud
16:45 lambdabot I haven't seen pmichaud.
16:45 moritz_ seen pmichaud
16:45 buubot moritz_: Sorry, I haven't seen pmichaud
16:45 masak diakopter: it might be that, to the extent that they intersect, the discussions have already migrated
16:45 masak in which direction I'm not sure, probably both
16:46 diakopter TimToady and pmichaud routinely have syntax/grammar discussions on #parrot the past coupla months
16:46 andara left #perl6
17:05 jjore-w joined #perl6
17:15 justatheory joined #perl6
17:18 cerridwen joined #perl6
17:18 sri__ joined #perl6
17:26 eggzeck_ joined #perl6
17:27 Muixirt joined #perl6
17:27 Muixirt hi
17:27 Psyche^ joined #perl6
17:27 masak hello.
17:28 Muixirt in what charcter encoding is perl souce code written in?
17:28 moritz_ are you talking about perl6?
17:28 Muixirt yes
17:28 moritz_ that assumes utf8
17:29 Muixirt does the language itself use characters that arent ascii?
17:30 sri_ joined #perl6
17:31 moritz_ yes
17:31 justatheory_ joined #perl6
17:31 moritz_ for example «...» (that can be written as <<...>> as well)
17:31 wolverian though that is latin1
17:31 moritz_ ?eval «foo bar baz».perl
17:31 wolverian I think the core language still doesn't require any characters outside the latin1 set
17:32 moritz_ even latin1 is not ascii
17:32 wolverian sure
17:32 kjwcode joined #perl6
17:32 moritz_ and previously the Yen sign was a valid operator...
17:32 wolverian just saying that you don't need utf8 encoding if you're working in a legacy environment -- latin1 will do fine
17:32 moritz_ ENOEVALBOT
17:32 moritz_ #pugs say «foo bar».perl
17:32 exp_evalbot OUTPUT[decodeUTF8': bad data: '\171'␤decodeUTF8': bad data: '\187'␤("foo", "bar")␤]
17:33 moritz_ my "evalbot" thingy doesn't do non-ascii data yet
17:33 moritz_ where is the real one?
17:37 justatheory joined #perl6
17:38 sri_ joined #perl6
17:44 Psyche^ changed the nick to Patterner
17:45 sri_ joined #perl6
17:47 dvorak joined #perl6
17:52 eggzeck__ joined #perl6
17:59 pmurias #kp6 say "Hello"
17:59 exp_evalbot r17316: OUTPUT[Hello␤]
17:59 pmurias #kp6 my $a=1;say "Hello $a"
17:59 exp_evalbot r17316: OUTPUT[Undefined subroutine &main:: called at lib/KindaPerl6/Runtime/Perl5/MOP.pm line 35.␤]
17:59 pmurias #kp6 my $a="World";say "Hello $a"
17:59 exp_evalbot r17316: OUTPUT[Undefined subroutine &main:: called at lib/KindaPerl6/Runtime/Perl5/MOP.pm line 35.␤]
17:59 dvorak joined #perl6
18:03 fglock pmurias: no var interpolation yet
18:03 pugs_svnbot r17321 | fglock++ | [kp6] minimal implementation of Pair
18:03 pugs_svnbot diff: http://dev.pugscode.org/changeset/17321
18:10 Aankhen`` joined #perl6
18:12 pmurias dinner&
18:12 pugs_svnbot r17322 | fglock++ | [kp6] fixed Pair.str
18:12 pugs_svnbot diff: http://dev.pugscode.org/changeset/17322
18:12 lambdabot Title: Changeset 17322 - Pugs - Trac
18:18 pugs_svnbot r17323 | fglock++ | [kp6] Pair.str works
18:18 pugs_svnbot diff: http://dev.pugscode.org/changeset/17323
18:18 lambdabot Title: Changeset 17323 - Pugs - Trac
18:19 pasteling "pugsbot_r17185" at 193.200.132.135 pasted "Pugs build failure" (6 lines, 278B) at http://sial.org/pbot/26961
18:19 pugsbot_r17185 joined #perl6
18:19 diakopter ?eval "yo"
18:19 pugsbot_r17185 "yo"
18:19 thoughtpolice joined #perl6
18:20 Pat____ joined #perl6
18:21 Pat____ ?eval [~] <m oo se>
18:21 pugsbot_r17185 "moose"
18:21 Pat____ ?eval 1??2!!3
18:21 pugsbot_r17185 2
18:22 Pat____ ?eval 1??$a=2!!$a=3; $a;
18:22 pugsbot_r17185 Error: ␤Unexpected "="␤expecting "::"␤Variable "$a" requires predeclaration or explicit package name
18:22 Pat____ ?eval my $a; 1??$a=2!!$a=3; $a;
18:23 pugsbot_r17185 \3
18:23 wolverian ?eval my $a = 1 ?? 2 !! 3
18:23 pugsbot_r17185 \2
18:23 Pat____ cananyone explain the previous ?
18:23 Pat____ why is my result different than wolverian's ?
18:23 wolverian hm
18:24 Pat____ even though the precendence of the assignement should be lower ...
18:24 fglock left #perl6
18:25 Pat____ actually it is not a perl6 thingy ... it is a perl thingy that bit us at work .. i just wanted to make sure perl6 behaves the same way
18:29 Pat____ ?eval my $a; 1?? $a=2 !! ($a=3); $a;
18:29 pugsbot_r17185 \2
18:30 masak seems there is only one way to parse it, precedance-wise
18:30 masak s/da/de/
18:30 Pat____ I tried figuring out the precedence rule but could not ...
18:31 masak ?eval 2 !! 3
18:31 pugsbot_r17185 Error: ␤Unexpected "!!"␤expecting operator
18:31 masak exactly.
18:31 masak I don't understand how it goes wrong
18:33 wolverian it compiles to
18:33 wolverian (1 ?? $a=2 !! $a) = 3
18:33 masak aaah
18:33 wolverian i.e. $a = 2 = 3
18:33 wolverian same thing in perl5
18:33 masak lvalues!
18:34 masak ($a = 2) = 3
18:34 wolverian we have constant folding too, so it's actually directly compiled to $a=2=3
18:34 wolverian in perl5 anyway
18:34 wolverian yar, that.
18:34 dduncan joined #perl6
18:35 masak will we ever get constant folding that reomves the 2? :)
18:35 masak s/om/mo/
18:35 Pat____ :-)
18:35 Pat____ who thanks guys
18:35 Pat____ i mean whoa ...
18:35 Pat____ i could not have guessed on my own
18:36 masak trust the #perl6 team to solve all your perl 5 questions :)
18:36 wolverian Pat____, you can play with perl -MO=Deparse -e'....' , and with B::Deparse's various options to make the output make more sense
18:36 wolverian it wasn't particularly useful in this instance, until I replaced the 1 with a variable.
18:37 Pat____ masak heheheh I thought this would do the trick ...
18:37 Pat____ thanks wolverian I'll sure do that next time
18:38 DarkWolf84 joined #perl6
18:39 Pat____ the output is at least helpful enough to know where perl was putting the implicit parens ...
18:45 Pat____ ok so while I am here
18:45 Pat____ how is perl 6 coming along ?
18:45 masak :)
18:45 Pat____ slowly but steadily ?
18:45 wolverian it's converging
18:46 masak \lim t->\infty perl6 = christmas
18:46 Pat____ hehhehe
18:46 Pat____ then it'll be constant chrismas
18:48 wolverian I hope we don't need to wait infinitely...
18:49 [particle] don't worry, we'll let you unwrap some presents on christmas eve :)
18:49 masak pugs has at least brought christmas this side of infinity...
18:50 wolverian what's on the other side of infinity?
18:50 * pmurias dosn't think constant christmas would be a good thing
18:51 [particle] Pat____: the behavior is documented under Conditional Operator section of perlop
18:51 masak wolverian: new years eve
18:51 [particle] (thanks goes to pmichaud on #parrot for that reference)
18:51 iblechbot joined #perl6
18:52 Pat____ thanks [particle] hehhe and to think i could have gotten an rtfm as an answer :-)
18:52 [particle] seems you're not the first deranged programmer to try that :P
18:53 masak Pat____: RTFM is not as -O fun as finding the answer :)
18:53 PerlJam Pat____: btw, the general rule is "if you're using assignment in the branches of the ternary op, you're doing something wrong"
18:54 masak heh
18:54 wolverian true :)
18:54 Pat____ perlbot are there other reasons beside the behaviour that bit me in the butt ?
18:54 Pat____ oopps i meant PerlJam :-)
18:55 Pat____ not to imply that you are a perlbot ... or that being a perlbot is a pejorative term :-P
18:55 PerlJam Pat____: There's the aesthetics of it.  The abuse of the ternary op.  And, of course, precedence.
18:56 Pat____ OK lesson learned
19:00 Pat____ oops time's getting late
19:00 Pat____ gotta leave
19:00 [particle] joined #perl6
19:07 pmurias fglock: ping
19:13 SCalimlim joined #perl6
19:24 jisom joined #perl6
19:27 ceashure joined #perl6
19:28 moritz_ #kp6 Pair.new(2, 3).say
19:28 exp_evalbot r17323: OUTPUT[Syntax Error␤]
19:29 pmurias #kp6 $p=Pair.new(2,3);$p.say
19:29 exp_evalbot r17323: OUTPUT[Undefined subroutine &main:: called at lib/KindaPerl6/Runtime/Perl5/MOP.pm line 36.␤]
19:30 pmurias #kp6 my $p=Pair.new(2,3);$p.say
19:30 exp_evalbot r17323: OUTPUT[Undefined subroutine &main:: called at lib/KindaPerl6/Runtime/Perl5/MOP.pm line 36.␤]
19:30 pmurias #kp6 my $p=Pair.new(2,3);say $p
19:30 exp_evalbot r17323: OUTPUT[Undefined subroutine &main:: called at lib/KindaPerl6/Runtime/Perl5/MOP.pm line 36.␤]
19:30 moritz_ #kp6 class Main { has $p=Pair.new(2,3); say $p; }
19:30 exp_evalbot r17323: OUTPUT[syntax error at - line 3, near "( sub GLOBAL::p "␤Execution of - aborted due to compilation errors.␤]
19:35 ceashure left #perl6
19:46 pugs_svnbot r17324 | pmurias++ | kp6: basic Hash implementation (using the latest syntax sugar)
19:46 pugs_svnbot diff: http://dev.pugscode.org/changeset/17324
19:46 lambdabot Title: Changeset 17324 - Pugs - Trac
19:46 pmurias moritz_: the exp_evalbot is updated by hand?
19:47 pmurias i mean the kp6 in exp_evalbot
19:51 moritz_ pmurias: yes :(
19:51 moritz_ pmurias: I added a cronjob, but somehow it doesn't run
19:52 moritz_ .oO(maybe I should start cron in the chroot...)
19:52 polettix joined #perl6
19:52 moritz_ I never bootet the chroot, no wonder it didn't run
20:05 TJCRI joined #perl6
20:08 DarkWolf84 I made short program wich prints first 10 numbers in fibunacci sequence :)
20:09 masak ?eval (@fib := 0, 1, @fib >>+<< @@fib[1..*])[^10]
20:09 pugsbot_r17185 Error: ␤Unexpected " :="␤expecting "::"␤Variable "@fib" requires predeclaration or explicit package name
20:09 masak ?eval (my @fib := 0, 1, @fib >>+<< @@fib[1..*])[^10]
20:09 pugsbot_r17185 Error: ␤Unexpected "["␤expecting "::"␤Variable "@@fib" requires predeclaration or explicit package name
20:09 DarkWolf84 wow
20:09 masak ?eval (my @fib := 0, 1, @fib >>+<< @fib[1..*])[^10]
20:10 pugsbot_r17185 [0, 1, undef, undef, undef, undef, undef, undef, undef, undef]
20:10 masak :/
20:10 DarkWolf84 mine wasn't that shorter
20:10 DarkWolf84 but works
20:10 masak :)
20:10 DarkWolf84 :)
20:10 masak yeah
20:10 * masak goes to look in examples/
20:11 PerlJam masak: I think perhaps pugs isn't that lazy yet.
20:11 DarkWolf84 ?eval my ($last,$now)=(0,1); ($now=$last+$now,"\n",$last=$now+$last).say for 1..10;
20:11 pugsbot_r17185 OUTPUT[1␤1␤2␤3␤5␤8␤13␤21␤34␤55␤89␤144␤233␤377␤610␤987␤1597␤2584␤4181␤6765␤] undef
20:11 DarkWolf84 :)
20:11 masak PerlJam: it's been known to work
20:12 DarkWolf84 but with pugs really can make short programs
20:12 pugs_svnbot r17325 | moritz++ | added svn-search, an web based and (of course) experimental
20:12 pugs_svnbot r17325 | moritz++ | search in the pugs svn logs.
20:12 pugs_svnbot diff: http://dev.pugscode.org/changeset/17325
20:12 lambdabot Title: Changeset 17325 - Pugs - Trac
20:12 DarkWolf84 :)
20:12 masak yes
20:12 SamB joined #perl6
20:15 muixirt2 joined #perl6
20:17 TJCRI joined #perl6
20:25 Caelum joined #perl6
20:27 flokuehn joined #perl6
20:55 awwaiid joined #perl6
20:55 DarkWolf84 ?eval (1, 2, 3).HOW.methods
20:55 pugsbot_r17185 Error: No such method in class Class: "&methods"
20:55 DarkWolf84 ?eval 42.HOW.methods
20:55 pugsbot_r17185 ["LIST","ITEM","bless"]
20:55 DarkWolf84 maybe bug again
20:56 DarkWolf84 why there is no .methods method on list
20:57 wolverian ?eval [1..3].HOW.methods
20:57 pugsbot_r17185 Error: No such method in class Class: "&methods"
20:57 wolverian bug. :)
20:59 Blwood_ joined #perl6
21:03 masak ...which doesn't seem to have a test
21:04 masak I'll add one
21:04 fridim joined #perl6
21:04 masak but where? t/oo/meta_class.t?
21:05 masak hm, perhaps t/data_types/array.t
21:06 masak ?eval [1,2,3].HOW
21:06 pugsbot_r17185 \Class.new(("is" => ("Lazy",)), ("name" => "Array"))
21:06 masak ah-ha!
21:07 masak not exactly _wrong_, is it? just... kinda wrong
21:07 masak is it unreasonable to expect the above to be equal (in the is() sense of 'equal') to "Array"?
21:08 gnuvince_ left #perl6
21:09 masak ?eval [1,2,3].isa('Array')
21:09 pugsbot_r17185 Bool::True
21:09 masak hrm
21:10 DarkWolf84 mine says just {obj:Class}
21:10 DarkWolf84 :)
21:10 DarkWolf84 maybe I have to update my version
21:10 masak no, I don't think so
21:10 masak seems that isa() does the right thing
21:11 masak but .HOW does... something else
21:13 GeJ joined #perl6
21:18 masak so...
21:18 masak either .HOW reports things in the wrong format and is at fault
21:19 masak or one is not meant to ever do [1,2,3].HOW eq 'Array', and should always use isa()
21:19 masak question is, which one is it?
21:21 DarkWolf84 [1,2,3].HOW
21:21 DarkWolf84 oops
21:21 DarkWolf84 ?eval[1,2,3].HOW
21:21 lambdabot Unknown command, try @list
21:21 meppl joined #perl6
21:22 pugsbot_r17185 \Class.new(("is" => ("Lazy",)), ("name" => "Array"))
21:22 DarkWolf84 ?eval (1,2,3).HOW
21:22 pugsbot_r17185 \Class.new(("is" => ("Lazy",)), ("name" => "Array"))
21:22 DarkWolf84 the same
21:22 DarkWolf84 ?eval < 1 2 3 >.HOW
21:22 pugsbot_r17185 \Class.new(("is" => ("Lazy",)), ("name" => "Array"))
21:23 masak yes, those should all be the same
21:23 DarkWolf84 I know but I wanna test
21:23 DarkWolf84 :)
21:23 masak mm, good
21:26 Blwood joined #perl6
21:33 eggzeck__ changed the nick to eggzeck
21:33 flokuehn joined #perl6
21:47 PhileasFox joined #perl6
21:50 PhileasFox left #perl6
21:56 cognominal_ joined #perl6
22:03 justatheory joined #perl6
22:59 mr_ank joined #perl6
23:01 justatheory joined #perl6
23:08 Tanja joined #perl6
23:09 Tanja alooooooooooooooooooooo
23:09 Tanja alooooooooooooooo
23:09 Tanja alooooooooooo
23:09 daxim_ joined #perl6
23:09 Tanja left #perl6
23:23 ntgrl joined #perl6
23:27 BinGOs joined #perl6
23:33 justatheory joined #perl6
23:34 ask_ joined #perl6
23:53 DarkWolf84 O_O

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

Perl 6 | Reference Documentation | Rakudo