Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6, 2008-09-21

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:14 meppl joined #perl6
00:24 slavik is there a simpler way to read from stdin besides =$*IN?
00:31 alester joined #perl6
00:38 wknight8111 that isn't simple enough?
00:39 slavik I like the old <> :)
00:39 slavik also, is there a grammar usage example anywhere?
00:39 slavik as in, I have a grammar, how can I check if a string $string matches the grammar?
00:40 wknight8111 I'm pretty sure it's $string ~~ Grammar::Rule
00:40 wknight8111 or maybe Grammar::Rule.match($string)
00:40 slavik k
00:40 wknight8111 or maybe both. It's probably faster to just start trying things then to look up a resource on it
00:40 wknight8111 do you have the Pugs repo?
00:41 slavik yes, it's installed and everything, just wasn't sure of the syntax
00:41 slavik well, I defined my own grammar
00:42 wknight8111 $string ~~ /Grammar::Rule.TOP/
00:42 wknight8111 no, I think it's $string ~~/Grammar::Rule/, which implicitly calls the TOP rule
00:42 wknight8111 (this obviously isn't my area of expertise)
00:43 slavik hmm
00:43 slavik my $string = "http://google.com/";
00:43 slavik that seems to be a problem for pugs
00:44 wknight8111 hmm, weird
00:45 slavik pugs: Internal error:   Unknown pseudo-assignment form:Syn "=" [Var "$*_",Ann (Cxt (CxtItem (mkType "Str"))) (Val (VStr "http://google.com/"))] Please file a bug report.
00:45 p6eval pugs: OUTPUT[*** ␤    Unexpected "\"=\""␤    expecting ":", "(", operator or ","␤    at /tmp/CiWGr7LrHi line 1, column 54␤]
00:45 wknight8111 do you need to escape the forward slashes?
00:45 wknight8111 my $string = 'http://google.com' (with single quotes)
00:45 wknight8111 or my $string = "http:\/\/google.com\/"
00:46 slavik hmm, nope, nothing
00:47 slavik hmm
00:49 slavik http://perlgeek.de/blog-en​/perl-5-to-6/07-rules.html
00:49 lambdabot Title: blog | Perlgeek.de Blog :: Rules (formerly Regexes)
00:50 slavik I copied my grammar from there
00:50 slavik *** Cannot parse regex: Grammar::URL
00:50 slavik hmm
00:51 pasteling "slavik" at 67.100.227.140 pasted "grammar example" (17 lines, 399B) at http://sial.org/pbot/32231
00:51 slavik there
00:58 wknight8111 Does that example work?
00:59 slavik no, that's why I posted it
01:00 wknight8111 I would try switching the last line to say $str ~~ URL
01:00 wknight8111 instead of /Grammar::URL/
01:01 slavik ty
01:01 slavik hmm, doesn't match it :(
01:02 wknight8111 $str ~~ URL.TOP?
01:03 slavik no such method ...
01:03 wknight8111 oh wait, the trailing "/" doesnt match anything
01:03 wknight8111 $str = "http://google.com"
01:03 lambdabot Title: Google
01:03 wknight8111 that should match the regex, if you can find a way to call it
01:03 slavik hmm
01:05 wknight8111 or change token hostname { ([\w+][\.\w+]*) '/' }
01:05 slavik nope
01:06 wknight8111 what errors are you getting? is it saying your syntax is bad, or is it just not saying anything?
01:06 slavik nope, it just doesn't match
01:07 wknight8111 nopaste your current code?
01:08 pasteling "slavik" at 67.100.227.140 pasted "grammar example" (16 lines, 375B) at http://sial.org/pbot/32232
01:10 wknight8111 try changing TOP from a token to a rule?
01:10 wknight8111 I don't think tokens can contain references to other tokens
01:10 slavik nope
01:11 wknight8111 I don't have pugs on here now, so I can't really test any of this
01:11 wknight8111 and I dont want to take the effort to build it right now
01:11 slavik use cabal
01:14 wknight8111 okay, battery is dieing. Have to go. Good luck with your grammar
01:14 slavik bye
01:15 slavik ty for the help
01:45 s1n @seen pmichaud
01:45 lambdabot pmichaud is in #perl6. I last heard pmichaud speak 1d 8h 5m 27s ago.
02:36 meppuru joined #perl6
02:41 xinming_ joined #perl6
02:43 LCamel joined #perl6
02:50 s1n is anyone familiar with the rakudo parser? i'm looking to see where a certain symbol is being processed
03:02 elmex joined #perl6
03:26 ab5tract joined #perl6
04:04 justatheory joined #perl6
04:09 sail0r joined #perl6
04:13 sail0r joined #perl6
04:23 sail0r left #perl6
04:27 justatheory joined #perl6
04:27 meppl joined #perl6
04:27 slavik joined #perl6
04:27 meteorjay joined #perl6
04:27 mberends joined #perl6
04:27 tcliou joined #perl6
04:27 araujo joined #perl6
04:27 felipe joined #perl6
04:27 AzureStone joined #perl6
04:27 orafu joined #perl6
04:27 p6eval joined #perl6
04:27 StephenPollei joined #perl6
04:27 speckbot joined #perl6
04:27 audreyt joined #perl6
04:27 Gothmog_ joined #perl6
04:27 ingy joined #perl6
04:27 perlbot joined #perl6
04:27 krunen joined #perl6
04:27 funktio joined #perl6
04:28 aindilis joined #perl6
04:28 cognominal joined #perl6
04:28 simcop2387 joined #perl6
04:28 nothingmuch joined #perl6
04:28 cotto_home joined #perl6
04:28 s1n joined #perl6
04:54 alanhaggai_ joined #Perl6
04:57 Minthe joined #perl6
05:03 justatheory joined #perl6
05:08 obra a/win 50
05:08 slavik ?
05:09 obra typo. sorry
05:09 obra commands are what most irc clients use for 'do something'
05:09 obra er. "slash commands"
05:09 slavik I know what slash command are
05:27 charsbar_ joined #perl6
05:48 Psyche^ joined #perl6
06:10 sail0r_ joined #perl6
06:12 sail0r_ left #perl6
06:26 meppl good night
06:26 slavik night
06:26 meppl ;)
06:47 lambdabot joined #perl6
06:50 Bzek joined #perl6
06:52 slavik left #perl6
07:04 alanhaggai joined #Perl6
07:13 BinGOs joined #perl6
07:18 raiph joined #perl6
07:19 kanru joined #perl6
07:20 raiph rakudo: ::qux = Foo::Bar
07:20 p6eval rakudo 31292: OUTPUT[Scope not found for PAST::Var '::qux'␤current instr.: 'parrot;PCT::HLLCompiler;panic' pc 156 (src/PCT/HLLCompiler.pir:103)␤]
07:22 raiph rakudo: my ::qux = Foo::Bar
07:22 p6eval rakudo 31292: RESULT[undef]
07:25 raiph rakudo: Foo::Bar::Baz = "abc"; my ::qux = Foo::Bar; say "!" if "abc" ~~ ::qux::Baz
07:25 p6eval rakudo 31292: RESULT[0]
07:28 raiph rakudo: Foo::Bar::Baz = "abc"; my $qux = Foo::Bar; say "!" if "abc" ~~ ::($qux)::Baz
07:28 p6eval rakudo 31292: OUTPUT[Use of contextualizer :: not implemented. at line 1, near "::Baz"␤␤current instr.: 'parrot;Perl6;Grammar;Actions;circumfix' pc 128050 (src/gen_actions.pir:10599)␤]
07:29 zamolxes joined #perl6
07:29 raiph pugs: Foo::Bar::Baz = "abc"; my ::qux = Foo::Bar; say "!" if "abc" ~~ ::qux::Baz
07:29 p6eval pugs: OUTPUT[*** ␤    Unexpected "="␤    expecting ":" or "("␤    at /tmp/el6VVmTDSN line 1, column 33␤]
07:30 raiph pugs: Foo::Bar::Baz = "abc"; my ::qux := Foo::Bar; say "!" if "abc" ~~ ::qux::Baz
07:30 p6eval pugs: OUTPUT[*** ␤    Unexpected "="␤    expecting "("␤    at /tmp/IdU7MDijYl line 1, column 34␤]
07:31 raiph pugs: Foo::Bar::Baz = "abc"; my ::qux ::= Foo::Bar; say "!" if "abc" ~~ ::qux::Baz
07:31 p6eval pugs: OUTPUT[*** ␤    Unexpected ":="␤    expecting "("␤    at /tmp/9g7C933VdR line 1, column 34␤]
07:40 alanhaggai_ joined #Perl6
07:53 pmurias joined #perl6
07:57 Ontolog wrt MMD does Rakudo implement it's own type-matching algorithm or use Parrots?
07:58 abra joined #perl6
07:59 Fersure joined #perl6
07:59 Fersure left #perl6
08:05 pmurias Ontolog: from Jonathan's blog post i think it uses Rakudos blog, anyway what would be the point of a MMD in parrot *not* used by rakudo
08:06 charsbar joined #perl6
08:06 Ontolog hm?
08:07 Ontolog the Parrot docs say Parrot has its own method finding algorithm for MMD
08:07 Ontolog but that any language can plug in its own
08:07 Ontolog so I'm wondering if Rakudo plugs in its own or uses Parrots?
08:18 moritz_ I think it uses its own
08:21 Ontolog what does Test.pm suppose to do anyway?
08:21 Ontolog why would it be making a call to split and causing the no such method problem
08:21 Ontolog moritz_: did you see my last perl6-comp mail?
08:22 Ontolog i still don't feel like i got a satisfactory response from anyone so maybe you could take a look
08:22 Ontolog ?
08:23 Ontolog oh I see Test.pm is the test module all the tests in the pugs repo use
08:23 Ontolog but i don't understand how ../../parrot  perl6.pbc --target=pir --output=Test.pir Test.pm
08:23 Ontolog calls split
08:28 moritz_ Ontolog: which one? the :multi :method mail?
08:29 Ontolog yes
08:30 Ontolog "method signature issues"
08:32 moritz_ I think that much code in the builtins is a bit cargo-culted and not necessarily optimal
08:33 Ontolog cargo-culted?
08:34 moritz_ copied from other signatures without really understanding it
08:34 raiph joined #perl6
08:34 Ontolog ahh i see
08:34 Ontolog well that's what i want to do, is understand it
08:35 Ontolog i feel kind of stuck right now
08:40 Ontolog is there an area other than the builtins that needs some help?
08:44 moritz_ lots of things
08:44 moritz_ there are many bugs in the RT that could need some attention
08:44 moritz_ then there's the ROADMAP
08:47 rakudo_svn r31294 | tene++ | [parrot]
08:47 rakudo_svn r31294 | tene++ | Remove the second argument passed to exception handlers.
08:47 rakudo_svn r31294 | tene++ | You can get the message by stringifying the exception object.
08:47 rakudo_svn r31294 | tene++ | All parrot tests pass.  Looks like the languages are all okay too.
09:16 fridim_ joined #perl6
09:18 barney joined #perl6
11:14 Ontolog joined #perl6
11:35 pmurias Ontolog: you could try rewritting some of the pir stuff in Perl 6
11:46 Ontolog yes i would enjoy doing that actually, can builtins be written in Perl 6 now and used by Rakudo?
11:49 ruoso joined #perl6
11:58 pmurias ruoso: hi
11:58 ruoso hi pmurias
12:00 pmurias ruoso: what do you think of using GET and SET for locked access to objects?
12:01 ruoso what do you mean?
12:06 pmurias SET(foo,123) would smop_lowlevel_wrlock(invocant);((​appopriate_cast*)invocant))->foo = 123;smop_lowlevel_unlock(invocant);
12:07 pmurias and GET(int,foo) would smop_lowlevel_rwlock(invocant);int foo = ((appropriate_cast*)invocant)->fo​o;smop_lowlevel_unlock(invocant)
12:08 ruoso but how would it know which type to cast to?
12:08 ruoso ah..
12:08 ruoso you mean in the ri dsl
12:09 pmurias yes
12:11 pmurias the DSL would write the appropriate macro
12:11 ruoso right... just consider it would be interesting to consolidate serveral accesses into a same lock call...
12:11 ruoso since it's fairly common to access more than one value at a time
12:11 pmurias yes thought about it
12:24 Ontolog joined #perl6
12:28 pmurias ruoso: locks should propably be used to perform a set of operations as an atomic unit so making them too easy might not be a good thing
12:29 ruoso pmurias, and also, I think we should start think in s1p...
12:34 pmurias ruoso: things not supporting FETCH is the blocker on s1p
12:34 ruoso just that :)?
12:34 ruoso that's easy to solve :)
12:36 pmurias that's the blocker for having the easy things working ;)
12:36 araujo joined #perl6
12:41 ruoso pmurias, so let's fix it :P
12:43 pmurias ruoso: with copy and paste? ;)
12:44 ruoso pmurias, well... maybe it's not a bad idea
12:45 ruoso I mean... if that takes us to s1p sooner...
12:48 pmurias it would only be } else (SMOP__ID__FETCH == identifier) { ___VALUE_FETCH___; } else if (SMOP__ID_STORE == identifier) { ___VALUE_STORE__; }
12:50 ruoso where ___VALUE_FETCH___ is the placeholder for the "modifying read-only value" thing...
12:51 pmurias ___VALUE__STORE___
12:54 meppl joined #perl6
12:55 ruoso yeah... that...
12:58 pmurias it should be possible to add it with a script which would look for ___UNKNOW_METHOD___
13:00 ruoso indeed...
13:15 masak joined #perl6
13:24 wknight8111 joined #perl6
13:39 abra left #perl6
13:46 reedhe joined #perl6
13:48 pmurias_ joined #perl6
13:49 reedhe left #perl6
14:09 pugs_svn r22303 | pmurias++ | [smop/pugs]
14:09 pugs_svn r22303 | pmurias++ | added .FETCH and .STORE to Code and constant identifiers
14:09 pugs_svn r22303 | pmurias++ | m0ld emitted by pugs uses FETCH
14:15 pmurias_ Ontolog: you are Chris Davaz?
14:28 Ontolog pmurias_: yes
14:29 Ontolog perlbot: who is Ontolog?
14:29 perlbot I already have an entry for who
14:29 Ontolog perlbot: Ontolog?
14:29 perlbot cdavaz
14:30 pmurias joined #perl6
14:32 pmurias Ontolog: Pugs isn't dead
14:32 masak perlbot: masak?
14:32 perlbot masak
14:32 masak right.
14:32 pmurias /whois nickname is the right command in irssi?
14:33 Ontolog /whois works with every irc client i've ever used
14:33 masak aye.
14:35 Ontolog pmurias: i didn't say it's ... dead... i say its not being actively developed
14:37 pmurias you'll get away with it this time ;)
14:38 * Ontolog just did an svn update on pugs
14:38 Ontolog I see the tests are indeed being developed and smop!
14:38 Ontolog i still don't really understand this smop stuff
14:39 Ontolog why is it all separated into its own space?
14:39 Ontolog i thought it's just a feature of perl 6
14:41 pmurias smop is a different runtime from parrot
14:41 Ontolog smop is a perl 6 interpreter?
14:42 pmurias yes
14:43 pmurias and i'm using pugs as the compiler for smop
14:43 Ontolog huh? i'm so confused
14:44 Ontolog pugs and smop are both perl 6 interpreters yes?
14:44 Ontolog how does pugs compile c code?
14:44 pmurias pugs compiles perl6 into m0ld (the smop eqivalent of pir)
14:45 pmurias pugs can also just run the AST
14:46 masak that's what it "normally" does
14:46 Ontolog ahh i see, ... i think...
14:46 Ontolog pugs *is* perl6 (or a subset thereof) yes?
14:47 masak Ontolog: Pugs implements (a subset of) Perl 6
14:47 Ontolog so perl6 compiles perl6 into m0ld then runs it?
14:47 Ontolog masak: yes, that's what i'm saying
14:47 Ontolog sounds all kind of circular to me
14:47 masak Ontolog: Pugs can compile Perl 6 into m0ld, and then smop can run it
14:48 Ontolog i see, so the part where pugs compiles perl6 into m0ld, is that written in haskell?
14:48 masak Ontolog: alternatively (and "normally"), Pugs just parses the Perl 6 into an AST and runs that
14:48 masak Ontolog: I guess, yes. Pugs is written in Haskell.
14:48 masak pmurias would know :)
14:49 pmurias it is
14:50 pmurias it compiles only very little atm, but this will change this week
14:52 * masak likes the promising near future of smop, elf, Rakudo...
14:52 masak exciting times indeed!
14:53 Ontolog i think it's so messy!
14:53 Ontolog so many redundant efforts going on
14:54 Ontolog if we were all just focused on one of them i think it would be much better for perl6
14:54 Ontolog sorry to be such a party pooper :p
14:56 masak Ontolog: you're not, you're just not used to -Ofun :)
14:56 masak this is how Things Are Done in Perl 6 land
14:56 masak and no, it wouldn't go faster if everyone crowded around one single project
14:57 Ontolog well, not by itself no
14:57 masak I've seen all the large projects contribute in some way to the furthering of Perl 6
14:57 Ontolog but with proper management
14:57 Ontolog of course it would
14:57 Limbic_Region joined #perl6
14:57 masak Ontolog: well, Parrot is definitely managed
14:57 Ontolog what about rakudo?
14:58 masak the more I find out about the structures in place around Parrot, the more I'm in awe
14:58 Ontolog i haven't been here long but i get the feeling that the left hand doesn't know what the right is doing
14:58 avar Ontolog: Presuming a world where those resources are managable, which they aren't. Some people have no interest working on one of these implementations and want to do their own
14:58 masak Ontolog: I think that's an exaggeration
14:59 masak Ontolog: but I'd be interested to know what makes you think that
14:59 Ontolog masak: maybe is, just a feeling... people tend to have conflicting views of how things should be done
14:59 masak Ontolog: ah, you're referring to the recent discussion about :multi and :method?
14:59 Ontolog masak: as one example yes
14:59 masak that's just healthy in-project discussion, according to me
15:00 Ontolog my point is, it's not clear in everyone's mind how we should be going about development
15:00 masak people are not robots, and sometimes you need to communicate common practices and patterns
15:00 Ontolog it's just sort of trial-and-error and if 'it works', it goes in
15:00 masak Ontolog: decidedly not.
15:00 masak Ontolog: apparently you haven't been submitting many bugs yet to Rakudo :)
15:00 Ontolog masak: yeah not so many
15:00 Ontolog just starting out
15:01 Ontolog just giving me first impressions is all
15:01 masak yes, that's important, of course
15:01 Ontolog i know there is a lot for me to learn really before i am in a place to criticize
15:01 masak for me too
15:02 masak Ontolog: you're right in the sense that Rakudo could need more hands
15:02 masak you can never assume that things will be done for you
15:02 Ontolog well it would be nice if we made it easy to get people 'onboard' with developing rakudo
15:02 Ontolog like some kind of docs on how to develop rakudo
15:02 Ontolog but so many things are in flux too i know
15:02 Ontolog like, are we doing the builtins in pir or perl6?
15:02 Ontolog we still don't know
15:03 masak Ontolog: PIR, mostly
15:03 Ontolog but when some problems come up about pir / parrot then the response it 'well we're going to be doing things in perl6 later on so it won't matter'
15:03 Ontolog it would be nice if we just settled on one and ironed out all the problems in that one area
15:06 masak Ontolog: I hear you. not saying you're right or wrong, just that every change from current affairs will need manpower, and exercise of will
15:06 Ontolog indeed... i'm focusing right now on learning parrot a bit more before i continue with the perl6 builtins
15:06 pmurias Ontolog: the problem with PIR is one should be emitting it not writting it
15:06 Ontolog so many problems pop up that i don't know how to handle
15:07 Ontolog pmurias: what's the problem with hand-written pir?
15:08 Ontolog pmurias: and isn't it kind of chicken-and-egg? i mean we need perl6 features to be written (in pir) before we can use perl6 to generate pir, no?
15:10 pmurias you propably need a tiny bit of pir, but having stuff such as the PCT in pir is not a good thing
15:10 masak Ontolog: nqp can generate PIR
15:10 Ontolog is nqp complete? and can it generate any pir needed by perl 6?
15:11 Ontolog so this is what i'm saying... i don't know what i should be doing, what language to be developing in, and where to put it
15:11 Ontolog some kind of ground-rules would be nice
15:11 masak Ontolog: npq is "complete enough". it does things. it's not "complete" complete
15:12 masak Ontolog: who would you like ground rules from?
15:13 masak Ontolog: re nqp completeness, see compilers/nqp/README.pod in the Parrot tree
15:13 Ontolog masak: i don't know.. who's like the 'team lead' for rakudo?
15:14 masak Ontolog: pmichaud
15:14 Ontolog ok
15:14 masak it's definitely ok to ask him stuff
15:14 Ontolog he's so busy developing though, hard to get access all the time
15:14 masak Ontolog: still, specific questions are always welcome
15:15 Ontolog hmm yeah maybe i'll hit perl6-compiler with some more
15:15 masak and if you volunteer to put together a document with tips for newcomers, that would definitely be appreciated by people
15:15 Ontolog yeah i wouldn't mind doing that, as soon as i find out myself ;-)
15:16 masak Ontolog: I choose mail when my questions exceed a certain complexity threshold, or when I don't know who knows the answer. otherwise, I stick with IRC. YMMV.
15:16 masak :)
15:16 iblechbot joined #perl6
15:16 Ontolog good idea hehe
15:17 Ontolog anywho time for me to go to bed
15:17 nothingmuch_ joined #perl6
15:17 * Ontolog &
15:35 jhorwitz joined #perl6
15:42 nothingm1ch_ joined #perl6
15:46 apeiron joined #perl6
15:56 araujo joined #perl6
16:00 pmurias pugs: my $var;(do {say 1;$var}) = (do {say 2;7});say $var
16:00 p6eval pugs: OUTPUT[1␤2␤7␤]
16:06 wknight8111_ joined #perl6
16:15 pugs_svn r22304 | Whiteknight++ | [Book] A few small updates to chapters 6 and 7
16:20 zamolxes joined #perl6
16:26 justatheory joined #perl6
16:33 jferrero joined #perl6
16:56 alanhaggai joined #Perl6
17:00 ruoso joined #perl6
17:00 pmurias audreyt: my declarations are not marked in PIL1 in any way, but variables are initialised at first use?
17:01 pmurias ruoso: do you think adding lookup_or_new to LexicalPad is ok?
17:05 ruoso pmurias, that's what autovivification is, isn't it?
17:05 ruoso I mean.. at this moment, hash already autovivifies...
17:05 ruoso not as specced for p6, but it does
17:07 pmurias so lookup should do autovivification instead of printing an error for an unknown var?
17:08 ruoso ops.. sorry...  you said lexicalpad and I read root namespace
17:08 ruoso pmurias, well, we need to support "no strict" at some time...
17:09 ruoso but do you have any immediate use for "no strict"?
17:10 pmurias "no strict" is a bit useless
17:10 pmurias anyway it falls back to globals instead of creating a lexical
17:12 ruoso pmurias, but "lookup_or_new" is "no strict", isn't it?
17:13 pmurias ruoso: the problem i have is that pugs doesn't mark lexicals
17:13 ruoso it doesn't need to
17:13 ruoso every time you use a variable you lookup for it
17:14 * ruoso senses that pmurias is talking about "our $foo"
17:14 pmurias meant it doesn't mark lexical declarations
17:14 ruoso it doesn't have the "my $foo" in the AST?
17:14 pmurias yes
17:14 ruoso it probably stores in the block then...
17:15 ruoso it needs to store somewhere...
17:17 pmurias stupid me, it does
17:20 ruoso :P
17:27 ruoso pmurias++ # pugs -Cm0ld is pretty impressive
17:28 ruoso pmurias, but $*OUT shouldn't be looking in the lexical scope
17:29 ruoso it looks directly in the global namespace
17:29 pmurias yes
17:29 pmurias ;)
17:30 ruoso as well as ::Code
17:30 pmurias Code doesn't
17:30 pmurias you can have "my class Code {...}"
17:31 ruoso oh... ok...
17:31 pmurias but i forgot about the * twigil in $*OUT
17:32 ruoso does that mean that "use Foo" is required not only for making sure the file is load, but also to declare locally the name?
17:33 ruoso or does that mean that the lexical scope only goes lookup global names for class names?
17:33 pmurias i think class names are lexical
17:34 pmurias which propably means packages are lexical too
17:35 ruoso hmm
17:35 * ruoso re-re-re-re-reading specs
17:36 pmurias &
17:49 ruoso indeed... an explicit "use" is required to have some package visible... S11:130
18:03 sri_work joined #perl6
18:14 ruoso hmm... actually that was about exported variables, not the package name itself...
18:26 ruoso TimToady, considering class, module and package names are lexical, does it mean that "use" will bind the global package name to the local lexical scope? the other alternative is the lexical scope going to find globals when it is not found, but the boring part is that it should only do it for package names, not for other types of variables...
18:29 ruoso and more importantly, does that mean that every time a topmost scope is initialized, all the built-in types need to be declared in that scope?
18:30 ruoso which could actually mean that there's a Prelude scope... which is probably a sane idea
18:30 ruoso and every "root" scope has the prelude scope as the "outer"
18:30 ruoso that is actually a very good idea :)
18:30 * ruoso . o O ( nothing like finding the solution just by asking for it )
18:33 jovs joined #perl6
19:02 rindolf joined #perl6
19:06 scrottie joined #perl6
19:10 sri_work_ joined #perl6
19:24 Auzon joined #perl6
19:24 wknight8111_ joined #perl6
19:26 wknight8111_ moritz, do you have that link again?
19:26 wknight8111_ my computer crashed :(
19:27 moritz_ wknight8111_: http://irclog.perlgeek.de/​parrot/2008-05-31#i_322490
19:27 lambdabot Title: IRC log for #parrot, 2008-05-31
19:28 wknight8111_ I just got the message that linux thinks my laptop battery may be "old or broken"
19:28 wknight8111_ so that's disheartening
19:29 moritz_ :(
19:30 scrottie_ joined #perl6
19:31 wknight8111_ so $string ~~ MyGrammar.new is the syntax that we should be using?
19:31 wknight8111_ as opposed to "MyGrammar" or "MyGrammar.TOP"?
19:32 moritz_ it is, but not yet in S05
19:32 scrottie2 joined #perl6
19:32 wknight8111_ okay, so this whole area is still under design/review? I won't work on that chapter of the book then till I get some confirmation about it
19:34 moritz_ I proposed a patch,but the thread was warnocked
19:34 moritz_ http://www.nntp.perl.org/group/perl.​perl6.language/2008/09/msg29636.html
19:34 lambdabot Title: [PATCH] How to match against a grammar - nntp.perl.org, http://tinyurl.com/4rcksm
19:35 moritz_ wknight8111_: also the section that calls methods on $_ is misleading - $_ isn't `self' by default
19:36 wknight8111_ This is exactly the reason why I like writing my books in a wiki: When things change in the world, it's fast and easy for the book to change
19:37 moritz_ but it's hard to make money out of it ;-)
19:38 * wknight8111_ isn't always in it for the money
19:38 * wknight8111_ is in it for the good of all mankind
19:38 raiph joined #perl6
19:39 masak moritz_++ # Impatience workaround
19:40 moritz_ wknight8111: as long as they don't contradict as goals I'm in for both ;)
19:41 wknight8111 I'm young though, I have plenty of time to make money
19:41 wknight8111 I've got an entire $day_job for that purpose
19:42 moritz_ I don't ;)
19:42 wknight8111 I come home at night and I'm tired of making money, I want to relax by writing code and writing books :)
19:43 moritz_ but that reminds me... I could dump the PODs from my perl-5-to-6 blog into the pugs repo
19:48 wknight8111 that would be nice!
19:50 moritz_ done
19:50 pugs_svn r22305 | moritz++ | [docs] added POD files for the "perl-5-to-6" blog
19:51 wknight8111 moritz++
19:51 pmurias joined #perl6
19:51 sri_work joined #perl6
19:52 pmurias ruoso: the problem with a Prelude scope is that you can't unimport stuff
20:04 scrottie joined #perl6
20:04 scrottie grr.
20:07 pmurias is any one here familiar with pugs internals?
20:07 sri_work joined #perl6
20:08 sebastian_ joined #perl6
20:09 sebastianr joined #perl6
20:10 sri_work joined #perl6
20:11 pmurias ruoso: i think we will have to work around Pugs not putting 'my $foo' in the AST (as sadly is the case)
20:14 ruoso pmurias, is it even possible to unimport things from the prelude?
20:14 ruoso pmurias, but it doesn't even define in the block the local variable declarations?
20:14 * ruoso eat something &
20:32 justatheory joined #perl6
20:42 alester joined #perl6
20:45 meppl joined #perl6
21:09 ruoso joined #perl6
21:33 pmurias pugs dosn't use PIL1 when executing programs?
21:40 pmurias is my package GLOBAL {...} legal?
21:41 ruoso pmurias, I don't think so
21:52 baest joined #perl6
21:55 simcop2387 joined #perl6
21:57 baest joined #perl6
22:10 apeiron_ joined #perl6
22:39 pugs_svn r22306 | pmurias++ | [pugs/mold] pugs -Cm0ld handles multiple arguments to a method/function calls
22:43 apeiron joined #perl6
22:56 raiph diakopter: ping
22:57 raiph @seen diakopter
22:57 lambdabot diakopter is in #perl6. I don't know when diakopter last spoke.
23:03 ruoso @tell pmurias, how hard do you think it would be to have pugs running the mold instead of just emitting it?
23:03 lambdabot Consider it noted.
23:11 yahooooo joined #perl6
23:16 wknight8111 joined #perl6
23:41 pugs_svn r22307 | putter++ | [elf] Minor tweaks.
23:50 pugs_svn r22308 | putter++ | [elfish/on_sbcl] Added basic OO.  Fleshing out language features.
23:50 pugs_svn r22308 | putter++ | PrimitivesSBCL.pm has grown to include the elf_g Prelude.
23:50 pugs_svn r22308 | putter++ | Progress on download and compilation of as yet unused CL libraries.
23:50 pugs_svn r22308 | putter++ | README updated.

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

Perl 6 | Reference Documentation | Rakudo