-Ofun: xrl.us/hxhk | pugscode.org | pugs.kwiki.org | paste: paste.lisp.org/new/perl6 or sial.org/pbot/perl6 Set by apple-gunkies on 11 November 2005. |
|||
autrijus | I'm in debby's talk about how much perl5 sucks from a teaching-it-to-undergrads point of view | 01:57 | |
many many excellent points | |||
Khisanth | teaching it sucks but grading it sucks even more! | ||
autrijus | Khisanth++ | 01:58 | |
Khisanth | imagine a young tybalt89 in your class ... | ||
which conference are you at ? | 01:59 | ||
autrijus | osdc.com.au | ||
jdv79 | is it really that bad? | 02:03 | |
i'd like to see the slides on that one | |||
autrijus | nod, will ask for it | 02:04 | |
almost all of it it's addressed by p6 | |||
wolverian | what isn't? that's the interesting part.. | 02:05 | |
autrijus | multiparadigm in particular | ||
completely different things look similar | 02:07 | ||
eg {...(hash)} vs {...(closure)} | |||
Khisanth | oO | 02:08 | |
wolverian | make hash { } enforced? :) | ||
Khisanth | the freepan wiki is a bit messed up ... | ||
autrijus | debby said she'll make the slides available online and ping me about it | 02:12 | |
apparently a lot of people want task and tag based navigation for cpan. | |||
(heck, I want it too :)) | |||
Khisanth | like the openjsan tag cloud? | 02:13 | |
autrijus | yup | 02:14 | |
Khisanth | nice, if the tags are accurate :) | ||
autrijus | the author gets to decide and the tasklist people get to approve | 02:24 | |
so probably going to be accurate to some degree | |||
oh wow. loveperl.com/ | 02:49 | ||
maybe _that_ is the solution for cpan navigation | 02:50 | ||
dduncan | that is funny | 02:51 | |
obra | autrijus: heh | 03:15 | |
what3 | this doesn't seem to work: my $userinput = $*IN; | 05:55 | |
is this supported? | |||
has anyone else tried it? | |||
Khisanth | what3: my $userinput = =$*IN; | 05:58 | |
what3 | thx that worked | 05:59 | |
i don't understand the extra "=" though | |||
Khisanth | the first is the assignment operator the second is the erm I forgot the name | ||
I think the perl6 version of <> | |||
what3 | oh ok | ||
Khisanth | unless there is a =<> | ||
what3 | yeah i was reading the equivalents of the reserved variables in the pugs docs but i didn't see that extra "=" in there | 06:00 | |
maybe i missed it | |||
gaal | unary = is "next", which is like readline on filehandles but more generally an iterator's next "thing". | ||
what3 | ah ok | 06:01 | |
thx for the info guys | |||
gaal | Khisanth: there's not a =<> directly; but it turns out eg. say =<somefile> acts like cat because <> is a quote operator, and = will open a file if it isn't opened yet. | 06:02 | |
Khisanth | like cat? but isn't = lazy? | 06:03 | |
gaal | but say isn't... | 06:04 | |
anyway it's a golf thing; <> quotes words so you can't say =<a filename with spaces> | 06:05 | ||
or therefore generally =<<$filename>> | |||
= is context dependent. fire up an interactive pugs and enter | 06:06 | ||
=<AUTHORS> | |||
you'll only get the first line, since pugs' interactive valuation imposes scalar context | 06:07 | ||
no wait, that's not true. | |||
you do get only one line, but I can't explain why :) | 06:08 | ||
e.g. when you say | 06:09 | ||
my @arr = <a b c> | |||
you get the complete array, obviously not in forced scalar context. | |||
perhaps there's DWIM code there. | |||
$work & | 06:10 | ||
nothingmuch | what does it mean for a method to be declared as 'type myName() const { }' ? | 08:21 | |
wolverian | in what language? | 08:22 | |
nothingmuch | shit | 08:26 | |
err, i thought i was posting in #c++ | |||
wolverian | :) | ||
nothingmuch | dum dee dum la la al aaaaaaa | 08:30 | |
meppl | guten morgen | 09:08 | |
rafl | Good morning | 09:09 | |
kane_: I've got the repository layout into a good shape yesterday. | |||
kane_ | cool | 09:10 | |
did you commit that to S22? | |||
rafl | Only some more explanations are missing. Then I'll push it. | ||
should be done until 3pm. | 09:11 | ||
Maybe you can hold yourself back from commiting to S22? Merging ascii art is pain.. :-) | |||
kane_ | neat, i'm looking forward to reading it | ||
heh.. shouldn't it Just Work? as you're merely adding a section? | 09:12 | ||
rafl | Yes. But I had that problem once with another project. I don't want to experience it again ;-) | 09:13 | |
Maybe I get it done a bit earlier. I'll have a practical course at 11.30 which mainly consists of waiting.. | 09:17 | ||
kane_ | i'll hold off with commits then :) | 09:18 | |
rafl | Thank you. | 09:19 | |
rafl runs to university | |||
11:39
nnunley_ is now known as nnunley
|
|||
xinming | since PIL stands for Pugs Intermediate Language, How about PIR? | 14:58 | |
14:58
stevan__ is now known as stevan
|
|||
GeJ | Parrot Intermediate Representation | 15:03 | |
according to : www.parrotcode.org/docs/intro.html | 15:04 | ||
xinming | hm, by the way, will perl 6 use kwid format by default instead of pod? | 15:32 | |
masak | xinming: as for pod being default, I haven't heard anything suggesting that. my guess is that they well be about equally default :) | 16:31 | |
rafl | Doesn't say the perldoc synopsis draft something about that? | 16:36 | |
xinming | masak: I've read the S26, It's said that both pod and kwid will be supported by default. :-/ | 16:38 | |
rafl | Why should we have a default at all? | 16:39 | |
It we recognize kwid syntax it's kwid, when we see some pod, it's pod. | 16:40 | ||
xinming | rafl: hmm, default will make people switch, hmm, Maybe I think I should say suggest. :-P | ||
rafl | What's the benefit of switching from A to B? | 16:41 | |
Both do the same thing. | |||
pd wanders off to look up WTF a 'kwid' is | |||
rafl | pd: Wee docs/AES/S26draft.pod | 16:42 | |
pd | aha, "KWiki Inline Documentation" | ||
xinming | rafl: How about kernel 2.4 or 2.6 series of Linux? :-) they both do the same thing. making a system run. | ||
rafl | Err, s/W/S/ | ||
xinming | well, In fact, I prefer the newer thing. As why It comes out is because of the lack of the old ones. though not to replace the old ones. | 16:43 | |
pd | hrm. Yep, I guess in theory I'd prefer pod, just because I like multi-line comment blocks better for such things. | 16:44 | |
rafl | xinming: The benefit of 2.6 about 2.4 is much clearer. What features does kwid have that pod doesn't have? | ||
xinming | rafl: S26 give an example of nested list. | 16:46 | |
and said that in pod, it will be much longer | |||
though we don't need nested list for every document. :-) | 16:47 | ||
rafl | xinming: pod can do the same. | ||
xinming: But linux 2.6 can do things that 2.4 can't do, so I think it's not a good comparison. | |||
pd | rafl, how so, really... | 16:48 | |
rafl | pd: Err? | ||
pd | rafl, linux 2.6 vs. 2.4 | ||
it seems to me that they're broadly comparable | |||
rafl | preemtive stuff for example. | 16:49 | |
pd | so they changed some locks around; userspace only notices that it's slightly more responsive when it works | ||
that'd be like saying that you can't compare any two flavors of Unix because one invariably has a different implementation | 16:50 | ||
rafl | That's one of the features that 2.4 doesn't have. There are some more, of course. | ||
pd | however, since flavors of Unix generally share the same functionally equivalent syscalls, you can in fact compare them | 16:51 | |
fglock | how do I 'push' a pair into a hash? | 17:22 | |
$h{$p.key}=$p.value looks too verbose | 17:23 | ||
the pair comes from a function, so I would need a temporary variable to do this way | 17:24 | ||
another question: how to slurp() from stdin? | 17:38 | ||
cognominal | "42" ~~ rx| qw( 42 ) | crashes pugs :( | 17:43 | |
fglock | cognominal: you may have to use a newer pugs (it works here) | 17:45 | |
but you want "42" ~~ rx| 42 | | |||
cognominal | now, I want to test a match on list or an array | 17:50 | |
that should work according to my underrstanding of the spec about the ~~ operator | 17:51 | ||
fglock | do you mean: 42 ~~ any( @a ) | 17:56 | |
I don't know if this helps - it returns a Junction (bool::false | bool::true) instead of bool::true | 17:58 | ||
but this works: ?( 42 ~~ any(1,2,3,6,42) ) | 17:59 | ||
xinming | fglock: my $x = ~list(=$*IN); | 18:02 | |
fglock: for slurpy the stdin | |||
xinming isn't so sure about this. | 18:03 | ||
it seems that pugs have a bug with get value from stdin, | |||
fglock | xinming: it works - thanks! | 18:04 | |
xinming | ?eval my $x = ~("haha\n","test\n"); $x.perl | 18:05 | |
18:05
evalbot_8085 is now known as evalbot_8098
|
|||
evalbot_8098 | "\\\"haha\\n test\\n\"" | 18:05 | |
xinming | hmm, I think I found another bug. :-P | ||
?eval my $x = ~("haha","test"); $x.perl | 18:14 | ||
evalbot_8098 | "\\\"haha test\"" | ||
xinming | fglock: my $x = ~list(=$*IN).as("%s",''); | 18:17 | |
fglock: this is the correct version, otherwise, pugs will add a space before each line except the first line. | |||
xinming wonders if add line precedure should be disabled if the previous line ends with "\n" | 18:19 | ||
s/add line/add space before line/ | |||
cognominal | fglock: S05 says # An interpolated array: | 18:48 | |
/ @cmds / | |||
is matched as if it were an alternation of its elements: | |||
I agree that using any is somewhat equivalent | 18:49 | ||
rafl | kane_: Sorry. No time for S22 during the day. Writing the explanation now. | 19:39 | |
19:54
_SamB_ is now known as SamB
|
|||
particle_ | any feather users know if & where bison/yacc is installed? | 20:33 | |
...where are my manners... hello all! | |||
Limbic_Region | salutations particle_ | ||
if which yacc doesn't turn up anything and neither does man yacc I would say it is in a very non-standard directory if it is installed at all | 20:34 | ||
Limbic_Region has a feather acct (and is using it to chat at this very moment) but doesn't have shell access from work | |||
particle_ | agreed. | ||
should i install it locally, or request it for everyone? i have a feeling more than one parrot developer will be needing it | 20:35 | ||
Limbic_Region | *shrug* I don't use feather for anything other than IRC access | 20:53 | |
particle_ emailed juerd | 20:54 | ||
fglock | cognominal: re '/ @cmds /': this depends on PGE, which is still under implementation | 20:57 | |
(Parrot Grammar Engine) | 20:58 | ||
particle_ | interpolation of perl vars is not yet implemented in PGE's P6Rules compiler | 20:59 | |
kane_ | rafl: no worries | 21:09 | |
fglock | what does 'Invert' means (in a PIL App node) | ||
particle_ | juerd++ | 21:11 | |
fglock | ok, found it - it doesn't mean Invert, but Invocant :) | 21:13 | |
rafl | kane_: pushing. | 21:19 | |
kane_: I guess my phrases aren't very clear. Maybe you can improve it a bit. | |||
(If you get my idea :-) | 21:20 | ||
kane_ | i'll take a peek tomorrow morning ;) | 21:29 | |
rafl | kane_: It's not that much? Maybe you can take a quick look now? If you're fine with it I'd do some more implementation work this night. | 21:33 | |
kane_: I like the JIB::Inst and JIB::Package::* stuff, btw. | 21:37 | ||
kane_: That does almost everything that I wanted WRT different installation types. | 21:39 | ||
kane_ | rafl: i'll pull it now then | 21:49 | |
rafl: thanks, it took some working out, but i think it DTRT now | |||
rafl | kane_: Don't spend to much time with looking at my ascii art. The principle is explained below it. | 21:53 | |
kane_ | rafl: the design makes sense -- we'll have to pick a few configurations we think are useful.. if we did all of them, they're near infinite :) | 21:59 | |
rafl | kane_: Yes. Therefor I choose author, module name and language. | 22:16 | |
kane_: Do you have a better default? | |||
kane_ | rafl: nope, sounds good | ||
it's author & module now for cpan, and that works pretty well | 22:17 | ||
rafl | OK. | ||
rafl starts JIB::Repository hacking again |