Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2006-04-02

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 weinig_ joined perl6
00:21 TimToady which one wasn't funny, the one with someone pretending to be me, or the one with me pretending to be somebody, or the one where I'm not sure what I'm pretending?
00:21 drbean joined perl6
00:23 Quell joined perl6
00:23 TimToady audreyt: earlier we specified that :arg<1> and :arg<2> should prefer the first to the second, on the theory that defaults always go later in the list (esp %args).  I still think we should maybe provide an ordered list of nameds so we can map unix command line.
00:25 TimToady So I think maybe nameds should come in as a list and merely be memoized as a hash, or something.
00:26 TimToady I'm also regretting making "multi" default to "multi method" inside classes.  I think we should be encouraging people to write multi subs most of the time, plus I think having to remember the context is a --.
00:26 drbean joined perl6
00:29 theorbtwo Blink.  I only caught two of those three.
00:30 theorbtwo (s/\$/€/, and Bugs.)
00:33 TimToady to2: you're missing 'without ASCII keyboards'
00:34 mako132_ joined perl6
00:38 theorbtwo Did you notice the PM one?
00:38 TimToady In other words, named args should do both list and hash roles, and compiler can optimize to real hash with list emul on no dups, otherwise list rep with hash emul, but the user doesn't care.
00:40 TimToady which PM one, the mutually assured destruction, or Weird Al playing Larry Wall?
00:41 theorbtwo I assume you caught the second one, since you star in it.  I don't know what you mean by the first one... is there one I missed?
00:41 theorbtwo I meant the gender-bending.
00:42 TimToady Yeah, I noticed it, but wrote it off a thinko.  April fools on me.
00:43 TimToady The catalyst vs jifty MAD.
00:45 theorbtwo Yeah, it's a bit on the subtle side.
00:45 nnunley joined perl6
00:45 TimToady audreyt: "see above" ~~ s/the user/the hash user/, since the list user cares.
00:46 theorbtwo Except in the CB, words would change gender.  Sadly, I forgot about the CB's caching.
00:47 TimToady Except I could have sworn it called Audrey a "her", which would be, er, correct, which is to say, incorrect.
00:47 TimToady Or was it doing it randomly?
00:51 drbean joined perl6
00:51 TimToady Ah, no, it was Sharon Hopkins.  I get the women in my life mixed up. :)
00:52 TimToady Except for Glo.  She never mixes up that way.
00:54 TimToady I think the MAD joke would have gone over better if people actually
00:54 TimToady followed links...
00:55 drbean joined perl6
01:05 lichtkind hello perl 6 people i started in our perl forum some perl 6 discussion and it turn out that some people are worried about the new assignment operator := can you still make references the old way?
01:05 TimToady audreyt: or maybe more like Match objects autogenerate arrays on multiplicity, multiple args of the same name could generate a list that we usually only take the first value off of.  That is, arrays whose scalar value is the first element.
01:06 TimToady lichtkind: it will still work very much like a Perl 5 programmer would expect.  It's just the internal representation of \$x that is unified with \($x, $y, $z) which is an argument list.
01:07 TimToady but you can still say $y = \$x to get a level of indirection that you undo with $$y.
01:08 lichtkind thanks but im not native speaker i dont understood last part of your first answer
01:08 lichtkind what means unified with \($x, $y, $z)
01:09 TimToady It means that \$x is really just an argument list with one argument, but it behaves like a reference.
01:10 theorbtwo lichtkind: To just answer your questions: yes, you can make a reference like in perl 5.
01:12 TimToady It's just that in Perl 6 it is a smarter mechanism underneath.
01:12 TimToady so you can make references of things you can't make references of in Perl 5.
01:12 lichtkind sounds cool
01:12 TimToady like a set of arguments to a function, without actually calling the function.
01:12 lichtkind but filehandles are now objects anyway
01:13 TimToady we hope so.
01:13 TimToady yes, filehandles are objects now.
01:15 lichtkind the second thing i long time ago wanted ask in an perl channel is: the wikipedia perl article is pretty a mess would some native speaker help me to trnslate the german into english, i spent several month to make this perl article real good and structured
01:15 TimToady audreyt: so if bound to a scalar, you get first :arg<1>, but if bound to a list, you get all *arg params.
01:16 TimToady Ich spreche kein Deutsch...er...
01:16 Juerd lichtkind: I'm neither native English nor native German, but I could help you if you want.
01:16 lichtkind ahhh juerd we know each other from bochum
01:16 * Juerd spricht auch kein Deutsch, aber kann es wohl lesen.
01:16 Juerd lichtkind: Wirklich?
01:16 Juerd lichtkind: Who are you then? :)
01:16 lichtkind yes darling we slept together :)
01:17 Juerd lichtkind: I'm quite sure that even in German that's dubious.
01:17 Juerd lichtkind: Who are you? :)
01:17 lichtkind the editor guy
01:17 Juerd Editor, as in pce?
01:17 lichtkind yes thats my pet
01:17 Juerd Ah, then I know who you are. Hi :)
01:18 lichtkind german is my native tongue but english is sometimes troublesome for me
01:18 Juerd So I've experienced
01:18 lichtkind pce its about to be renamed
01:18 TimToady English is my native tongue and I have trouble with it.
01:19 Juerd English isn't my native tongue, and I absolutely hate the languge
01:19 Juerd language
01:19 Juerd But alas, it's the current latin french language.
01:19 lichtkind its only that i can get help to be shure its a good english
01:20 Juerd I see
01:20 lichtkind but now i have other wiki tasks to solve in our board wiki
01:20 lichtkind im writing some perl 6 quick reference to get some of our people interested
01:20 lichtkind but after that ...
01:21 lichtkind Juerd we share pretty the same view on perl 6
01:22 Juerd lichtkind: Really, are you also confronted with a mixture of extreme fear and bizarre enthousiastic anticipation?
01:22 theorbtwo Wow, I like that term.
01:22 theorbtwo "enthousiastic anticipation", that is.
01:23 lichtkind im too religious to have much but fear but yes i see the possibility of gigantic failure
01:23 lichtkind that scares me too
01:24 lichtkind im positive because i believe that the design principles of perl come close to the fundamental rules of life
01:24 lichtkind and when that failes that is signal that people are in bad shape
01:25 lichtkind or bad people drive perl 6 :)
01:25 Juerd theorbtwo: % spelling
01:26 lichtkind juerd do you can understand me?
01:26 TimToady but my theology says everyone is born bad anyway, so we try to take that into account. :)
01:27 lichtkind but basicly i use perl because i feels good
01:27 lichtkind thatswhy i love it
01:27 lichtkind it simple dont have to fail
01:27 lichtkind :)
01:28 TimToady I think even if Perl 6 fails it will still feel good to use.
01:28 TimToady In that sense, Perl 5 is already an example of a good failure.
01:29 theorbtwo I wouldn't expect perl 5 and 6 to fail in the same ways.
01:29 TimToady Maybe it will feel better, and also fail better. :)
01:30 TimToady As in "Q: How's you're cold doing? A: It's doing fine."
01:31 Juerd lichtkind: Partly.
01:32 Juerd I should go to bed
01:32 lichtkind me too
01:32 * theorbtwo should as well, and it's an hour later were Juerd is.
01:32 Juerd (3:32 am)
01:32 Juerd Good night or localtime of your preference, everyone.
01:32 Juerd zzZ
01:32 lichtkind i liked the moment juerd said please believe in perl 6 tight with the right atitude
01:32 Juerd Perl 6 tight? :)
01:33 Juerd We still call it strict.
01:33 Juerd Anyway, afk
01:33 lichtkind i ment right
01:33 lichtkind ok good night
01:33 lichtkind here is 3:33 too
01:38 lichtkind but is it really the case that religious sounding program names scares people away?
02:10 rashakil joined perl6
03:34 mako132_ joined perl6
03:46 ayrnieu joined perl6
03:52 mako132_ joined perl6
03:57 miyagawa joined perl6
03:58 miyagawa joined perl6
04:10 coumbes joined perl6
04:33 audreyt TimToady: if we retain the coerce:<as> grammatical category, we can allow
04:33 audreyt sub ($x as Dog) { ... }
04:33 audreyt sub foo returns Dog ( $x_to_be_casted )
04:33 audreyt err
04:33 audreyt sub foo returns Dog { $x_to_be_casted }
04:33 audreyt or
04:33 audreyt sub foo as Dog { $x_to_be_casted }
04:33 audreyt as well as
04:33 audreyt ($x as Dog).bark
04:35 audreyt and move "but" and "does" into that category
04:43 audreyt (but for now I'm going with infix:<as>)
04:43 audreyt as previously discussed in Mt.Arbel
04:47 locksy joined perl6
05:18 audreyt gaal: you get what you want. :) see r8535 synopses
05:25 arcady any chance of getting Pugs.AST.Internals to compile faster? that one file is like half the total build time...
05:30 gaal audreyt: whee :)
05:31 gaal I gotta say it's still weird how Perl has sigils everywhere except arguments
05:31 gaal is this valid? sub foo ($bar, @bar)
05:31 svnbot6 r9815 | audreyt++ | * earendil_translations: mark the version numbers
05:31 svnbot6 r9816 | audreyt++ | * I've got a new email address, [email@hidden.address]
05:32 gaal you golfed your email address!
05:32 audreyt right!
05:32 audreyt arcady: yes :)
05:33 audreyt gaal: they are sugar for
05:33 * gaal remembers guiltily the CompUnit data type he'd added but not put to use
05:33 audreyt :bar($bar) :bar(@bar)
05:34 audreyt which ought to be an error, or just take the @bar side
05:34 audreyt I'm in favour of an error.
05:34 gaal audreyt: what does :bar<42> do then?
05:34 arcady audreyt: yes as in it takes forever to compile, or yes as in it will be fixed? : )
05:34 gaal ah
05:34 audreyt arcady: to both
05:35 gaal okay, worse: sub foo ($bar?, @bar?)
05:36 audreyt gaal: because all positionals are implicitly bindable with name
05:36 audreyt (if they have a name)
05:36 audreyt (otherwise it's gensym'ed or something)
05:36 audreyt I don't think it's possible to reuse names for them
05:37 audreyt getopt spec doesn't let you do that either, right?
05:37 gaal it doesn't
05:37 gaal but that isn't typed anyway.
05:38 gaal it's kind of a letdown to pretend sigils create totally different namespaces for variables everywhere in the language and then have a place where you can't have $bar and @bar.
05:40 audreyt sub foo ( @bar( [$bar, *@] ) ) { ... }
05:40 audreyt a_bar@(s_bar:_)
05:40 audreyt that is legal
05:40 audreyt because you can't touch s_bar by hand
05:40 audreyt s/hand/name/
05:41 gaal can't touch it?
05:41 audreyt foo(bar=>1)
05:41 audreyt always goes into @bar not $bar
05:41 audreyt because $bar is unside an unpacker
05:42 audreyt (then $bar gets bound to the first element of @bar)
05:42 gaal ah, from the caller side. I see
05:43 gaal [OT] when does summer time kick in in the states?
05:43 audreyt today?
05:44 Steve_p gaal, it depends.
05:44 gaal one of my clocks isn't adjusted and I realized I was getting late for work :/
05:44 gaal see you later I guess! &
05:45 Steve_p Oh...summer time...as in daylight savings...tonight :)
05:59 arcady it's actually daylight saving... and there will be no 2 am tonight
06:06 nothingmuch joined perl6
06:07 audreyt hi nothingmuch. like my apr1st batch of commits? :)
06:08 kisu joined perl6
06:08 nothingmuch i've seen them and gone over the diffs only slightly
06:08 nothingmuch is it just 'as'?
06:08 nothingmuch are they a joke?
06:09 audreyt no.
06:09 * nothingmuch reads more carefully
06:09 nothingmuch btw, did you ever have any feature requests for the smoke server?
06:10 audreyt if I had I don't remember at this moment
06:10 nothingmuch i feel like nobody cares enough to comment, and since I don't use it myself I have nothing to incorperate except the parrotfolk's suggestions
06:10 nothingmuch okies
06:10 audreyt deploy it to smoke.pugscode.org?
06:10 nothingmuch smoke.woobling.org for now
06:10 audreyt k
06:10 nothingmuch it's not 100% finished
06:10 nothingmuch i'm switching to dojo from mochikit
06:11 nothingmuch and going to enable tag editing
06:11 nothingmuch and finish the client a bit
06:11 nothingmuch and add notes
06:11 nothingmuch so people can tell why X is failing or whatever
06:11 nothingmuch and add a notion of "default" groupings
06:11 nothingmuch and add session support so that people can have their groupings stick
06:11 nothingmuch and add tag intersection
06:11 nothingmuch phew
06:14 audreyt I like the cloud :)
06:15 nothingmuch i think this view is the most useful: http://smoke.woobling.org/list?ta​g=&amp;group_tags=module+version
06:16 audreyt aye
06:20 nothingmuch i just nominated the Pugs team for the white camel
06:21 nothingmuch both on technical merit, and the community thing
06:21 nothingmuch audreyt++
06:21 nothingmuch pugs got me my job
06:21 nothingmuch it made me come to conferences
06:21 nothingmuch it made me learn haskell
06:21 nothingmuch this is a boring story since almost everyone here has it =)
06:23 audreyt heh :)
06:23 * audreyt naps a bit more... bbiab
06:23 avar nothingmuch: tell me more;)
06:24 audreyt nothingmuch++ # provided significant fun to -O
06:26 nothingmuch avar: well... my future employer knows me from pugs
06:26 nothingmuch he trusts my code and my brain due to my work on it
06:26 nothingmuch and because I met him at a conf and made a good impression
06:26 avar mm
06:26 nothingmuch my CV also looks impressive because of pugsx
06:26 avar I got a job basically from a free software project too;)
06:27 avar It's a great proving ground
06:27 nothingmuch aye
06:27 avar aye
06:27 nothingmuch which project was that?
06:27 avar MediaWiki
06:28 iblechbot joined perl6
06:28 nothingmuch avar: what kind of job?
06:29 nothingmuch progging for a company that is involved with wiki technology?
06:29 nothingmuch or php?
06:29 avar Neither, they just saw that I could do stuff and I could do it well enough that my code (not everything of course) manages to run on a top-20 website;)
06:29 nothingmuch =)
06:30 avar Perl programming mostly (this week)
06:30 avar It's a Perl / C division;)
06:30 nothingmuch i think "this week" should apply to my next job
06:30 nothingmuch it applies in a kinda cruddy way to my current job
06:30 avar I don't have a job title;)
06:30 nothingmuch in that people abuse me to do the weird stuff
06:30 nothingmuch (this week i'm reverse engineering Oracle SQLNet)
06:31 avar I do systems management and monitoring, hard user support questions (not questions whos answer is "turn on the computer"), programming, ....
06:31 nothingmuch (the few "this weeks" prior to that I did thread heavy C++, and learned C++)
06:31 nothingmuch sounds like fun, except the sysop part (/me doesn't get along with that ;-)
06:31 avar well that's kind of inevitable
06:32 avar my code has to run on systems, sometimes it goes wrong, sometimes I have to set up a test system etc.
06:32 avar I'm not the sysadmin;)
06:33 * nothingmuch thought this april fools was pretty good
06:33 nothingmuch catalyst/jifty
06:33 nothingmuch improveverywhere
06:33 nothingmuch i was going to tell my friend my NY gig was canceled
06:33 nothingmuch but then forgot
06:38 ayrnieu for April Fools, EFF put out in their newsletter that they had a new deal with the NSA, where when you sign up as an EFF member you can get NSA database information about up to ten friends.
06:39 avar nothingmuch: where are you going to be working?
06:40 gaal_ joined perl6
06:41 nothingmuch avar: for stevan
06:41 nothingmuch ayrnieu: heh =)
06:48 gaal_ is now known as gaal
07:05 tomyan joined perl6
07:16 ghenry joined perl6
07:38 Khisanth joined perl6
08:04 lumi joined perl6
08:05 nnunley joined perl6
08:14 azuroth joined perl6
09:00 chris2 joined perl6
09:09 tomyan left perl6
09:18 kisu joined perl6
09:26 elmex_ joined perl6
09:38 KingDiamond joined perl6
09:54 xinming joined perl6
10:06 iblechbot joined perl6
10:31 pmurias joined perl6
10:31 pmurias hi all
10:32 nothingmuch hi ho!
10:34 pmurias nothingmuch: are you familiar with pcr's internals?
10:35 nothingmuch no, not at all =(
10:35 nothingmuch ENOTUITS
10:42 pmurias what are tuits, wikipedia shows nothing on them
10:42 pmurias ?
10:42 nothingmuch err, sorry
10:42 nothingmuch when you get arount to it
10:42 nothingmuch when you get a round tuit
10:43 nothingmuch when you are going to do something
10:43 nothingmuch and someone really wants you to do it
10:43 nothingmuch then they can give you a round tuit
10:43 nothingmuch and then you have to do it because you promised
10:43 nothingmuch when you aren't getting enough tuits you say ENOTUITS
10:43 nothingmuch http://en.wikipedia.org/wiki/Round_tuit
10:44 TreyHarris http://en.wikipedia.org/wiki/Round_tuit
10:45 TreyHarris heh
10:45 TreyHarris you beat me
10:46 * nothingmuch boows
10:46 nothingmuch all ninja like
10:54 siosiosios joined perl6
10:56 nothingmuch will perl 6 have a web2.0 best of breed ponie?
10:56 nothingmuch http://files.turbogears.org/video/BestOfBreed.mov
10:57 pmurias nothingmuch: what keeps you from looking at pcr time or documentation constrains, i could try to fix the second ones
10:57 nothingmuch time
11:00 pmurias Cannot find codec for audio format 0x6134706D :(
11:01 nothingmuch err
11:01 nothingmuch ouch
11:16 GeJ joined perl6
11:33 pmurias why is svnbot down?
11:33 svnbot6 r9817 | pmurias++ | rule_wrapper(...) and other evil vodoo is not hardcoded anymore
11:33 svnbot6 r9817 | pmurias++ | a rule {...} function is generated instead
11:33 pmurias pmurias: sorry, it proved me wrong itself
11:34 autarch joined perl6
11:34 pmurias i talk to myself again :(
11:34 autarch audreyt: are you there?
11:41 ko1_away is now known as ko1_
11:47 oeon_ joined perl6
11:48 gantrixx joined perl6
11:49 gantrixx recently I saw an email from [email@hidden.address] stating that he wants to replace the $ sigil with the Euro sign in Perl6.  Is this a joke?  An email spoof?
11:52 Dazhbog the send date doesn't happen to be 1st of April .. no?
11:53 gantrixx ....yes, it does.....I'm retarded
11:53 gantrixx thank goodness
11:53 Dazhbog hehe
11:54 Dazhbog sometimes happens to everyone I guess
11:54 r0nny joined perl6
12:18 coumbes joined perl6
12:49 KingDiamond joined perl6
12:59 gantrixx could someone help me out and try to dcc chat with me?  I'm using the gnome-xchat client and I don't know how to accept a dcc chat
13:01 gantrixx anyone?
13:01 pmurias ?
13:01 pmurias gantirixx: i'll try
13:02 gantrixx thanks
13:02 pmurias gantrixx: i'm not sure if epic supports dcc
13:04 pmurias you'll have to wait while ircII compiles
13:07 pmdcc joined perl6
13:08 pmurias gantrixx: got ircii what should i do?
13:09 gantrixx pmurias: thanks, I'm debugging this with joyr
13:10 colares joined perl6
13:11 pmdcc gantrixx: so i can exit ircii then
13:11 pmdcc ?
13:11 gantrixx yes
13:11 iblechbot joined perl6
13:11 gantrixx thanks
13:33 xinming joined perl6
13:46 svnbot6 r9818 | pmurias++ | lrep: the first test for rule {...}
14:03 xinming joined perl6
14:40 xinming joined perl6
14:49 chris2 joined perl6
15:22 svnbot6 r9819 | pmurias++ | lrep:a couple more test,dumps match objects when $ENV{DEBUD_lrep} is true
15:41 vel joined perl6
15:55 justatheory joined perl6
15:57 nothingmuch joined perl6
16:32 ko1_ is now known as ko1_away
16:54 clkao joined perl6
16:56 sean joined perl6
17:20 gantrixx joined perl6
17:23 clkao_ joined perl6
18:19 ko1_away is now known as ko1_
18:29 ko1_ is now known as ko1_away
18:52 Limbic_Region joined perl6
19:06 clkao_ is now known as clkao
19:07 nothing_pasta joined perl6
19:08 nothing_pasta hi people
19:08 nothing_pasta FYI: my laptop died
19:09 nothing_pasta even fewer TUITs i guess
19:09 nothing_pasta hope it comes back, and see you till then
19:10 * Limbic_Region doesn't think he has ever prayed for an inanimate object before but will make this a first
19:12 nothing_pasta thanks =)
19:12 nothing_pasta it's surely inanimate right now ;-)
19:12 nothing_pasta i doubt it'll help though, i'm sure it's a curse
19:13 nothing_pasta the last time something happenned was when I was working on the Catalyst screen casts
19:13 nothing_pasta i stopped because i had to recover my disk
19:13 nothing_pasta today i started working on the script again
19:13 nothing_pasta and BLAM
19:13 nothing_pasta it died
19:13 Juerd nothing_pasta: What died?
19:13 Barry joined perl6
19:13 Juerd nothing_pasta: Just the disk, or more?
19:14 nothing_pasta Juerd: the logic board prolly
19:14 nothing_pasta it's not booting
19:14 nothing_pasta one sec
19:15 nothing_pasta http://discussions.apple.com​/thread.jspa?threadID=303235
19:15 nothing_pasta i posted to the bottom
19:15 nothing_pasta i hope they give me a shiny new one ;-)
19:15 Juerd Oh, hurray. Applebreakage
19:16 nothing_pasta aye =(
19:16 * Juerd reads way too much about [i|Power]Books breaking to even consider getting one.
19:16 Juerd They have the best sleep/resume functionality of all laptops, but there ends the fun
19:17 nothing_pasta i actually had very good experiences up till now
19:17 nothing_pasta the last time it was a software problem
19:17 nothing_pasta and that was resolved without icky reformats and what not
19:17 nothing_pasta and my previous laptop tokk on hell of a beating before dying
19:17 nothing_pasta and my mother's ibook is still alive
19:17 nothing_pasta despite the crashed disk
19:17 nothing_pasta back in the day she would use it for 6 hours
19:17 nothing_pasta then I would use it for 10
19:18 nothing_pasta now my aunt uses it
19:18 Juerd Sure, everyone's experience is different
19:18 Barry left perl6
19:18 Juerd But I do still believe thinkpads are the best.
19:18 Juerd I don't have *some* experience with them, but lots.
19:19 Juerd Lenovo is doing good things, that make me trust them as much as I trusted IBM with the series.
19:20 Juerd They changed a few things in the designs that I don't like, but can understand.
19:21 Juerd nothing_pasta: Did you make backups?
19:25 nothing_pasta Juerd: anything important is in revision control
19:25 nothing_pasta except one big bang thing that's in my working dir
19:26 nothing_pasta and that I should have made a branch for
19:26 nothing_pasta and would have made a branch for if i was using darcs =)
19:26 nothing_pasta all my music (very important) is burned to DVDs
19:26 nothing_pasta except some stuff from emusic
19:26 nothing_pasta that I can download again
19:26 nothing_pasta my prefs and stuff are all throwaway
19:26 nothing_pasta anything valuable is on pasta
19:27 tri joined perl6
19:27 nothing_pasta and I suspect that the disk is OK
19:29 ezraburgh joined perl6
19:30 nothing_pasta anyway, i'm off
19:30 nothing_pasta see you
19:30 nothing_pasta thanks for the support, Limbic_Region, Juerd
19:39 svnbot6 r9820 | fglock++ | PCR - added '$'; added 'grammar.pl' - an extensible p6 grammar
19:41 justatheory joined perl6
19:43 fglock joined perl6
19:55 fglock I'm confused with operators x methods - is there a single precedence table for all multimethods in all classes?
19:57 pmurias hi fglock
19:58 fglock pmurias: hi!
19:58 fglock pmurias: I'm starting to rewrite lrep...
19:59 pmurias the lrep-compiler or the legacy one?
19:59 fglock It will be Pugs::Compiler::Perl6 if it works
20:00 fglock the prototype if PCR/grammar.pl
20:00 pmurias seen the commit now
20:00 fglock s/if/is/
20:01 pmurias have you seen my commit, could you check if &rule is defined right
20:01 pmurias ?
20:01 fglock I need to find out about precedence of methods - like Int.infix:<+> and infix:<+> - are these the same?
20:02 fglock pmurias: which file?
20:04 pmurias lrep-compiler/Runtime/RuleCompiler.pm
20:06 larsen_ joined perl6
20:08 fglock pmurias: you are using some undocumented subs - it may break (or not) if PCR changes
20:11 pmurias fglock: it was broken from the start i mearly refactored it, basicly it only works for simple cases (see the test) and brakes for Grammar/Perl6.pm
20:11 pmurias i would be gratefull if you showed me what the proper(offical) way to do it is
20:13 fglock looking
20:16 ezraburgh joined perl6
20:17 fglock the basic API is: my $rule = Pugs::Compiler::Rule->compile( 'a' ); my $match = $rule->match( $str );
20:17 lisppaste3 joined perl6
20:17 ezraburgh left perl6
20:17 ezraburgh joined perl6
20:18 fglock or: *rule = Pugs::Compiler::Rule->compile( 'a' )->code; my $match = main->rule( $str );
20:18 lisppaste3 joined perl6
20:18 fglock $rule->perl5 returns the p5 source code for the object
20:20 fglock PCR t/04-rule.t covers the most common use cases
20:22 pmurias thanks, i'll abandon ruoso's precompiling scheme for now and see if it works using the official api
20:22 fglock you can precompile using the perl5 method
20:23 fglock my $src = Pugs::Compiler::Rule->compile( 'a' )->perl5; $rule = eval $src;
20:24 fglock *rule = ( eval $src )->code;  # untested
20:28 fglock *rule = $rule->code;
20:31 ghenry joined perl6
20:32 SamB joined perl6
20:32 svnbot6 r9821 | pmurias++ | the version without the precompile
20:32 pmurias fglock: if I use the offical api the same bug strikes again
20:33 fglock how can I test it?
20:34 Dazhbog left perl6
20:35 pmurias just run lrep -i test-file -o out
20:36 pmurias substitute test-file by any p6 from t/,the resault is the same error
20:38 fglock installing Perl6::Slurp ...
20:47 hlen joined perl6
20:49 justatheory joined perl6
20:52 fglock pmurias: I get "Can't use string ("0") as a HASH ref while "strict refs" in use at .../site/lib/Pugs/Compiler/Rule.pm line 56, <GEN0> line 1." - this means $rule->match is being called with extra parameters
20:56 ezraburgh joined perl6
20:57 justatheory joined perl6
20:58 pmurias figured it out during painfull debugging, 0's can't autovindicate, but where does the extra parameter come from?
21:05 pmurias fglock:after reading S1{2,3} i don't think Int.<+> is allowed, <+> is propably sub dispatched
21:10 fglock a caller() just before the error says: Grammar/Perl6.pm 2518
21:11 fglock I mean: 1+1 vs 1.0+1.0 - do they always have the same precedence?
21:13 pmurias it would be horribly inconsistent if they didn't
21:13 FurnaceBoy joined perl6
21:14 pmurias i need to go to sleep now, so i'll check the S** tommorow
21:15 * pmurias always backlogs by the way, so feel free to ask me while i'm sleeping
21:15 pmurias good night
21:18 weinig_ is now known as weinig
21:21 vel joined perl6
21:21 svnbot6 r9822 | fglock++ | PCR - added a category to grammar.pl
21:22 tri left perl6
21:27 amnesiac joined perl6
21:32 _bernhard joined perl6
21:39 coumbes joined perl6
21:43 ayrnieu joined perl6
22:03 premshree_ joined perl6
22:04 the_ez joined perl6
22:07 ruz joined perl6
22:18 clkao joined perl6
22:40 clkao joined perl6
22:52 mako132_ joined perl6
23:36 svnbot6 r9823 | fglock++ | PCR - grammar.pl generates AST; t/07-category tests temporarily disabled
23:37 premshree_ is now known as KingDiamond
23:43 pdcawley_ joined perl6

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

Perl 6 | Reference Documentation | Rakudo