Pugs t-shirts www.cafepress.com/pugscode | Pugs 6.2.9 released | pugscode.org | pugs.kwiki.org | paste: sial.org/pbot/perl6 | www.geeksunite.net
Set by stevan on 15 August 2005.
00:24 hcchien_ is now known as hcchien
jakx hello 01:10
rafl_ Hello.
jakx where can i get pxperl
nothingmuch suppsedly pixigreg.com/?pxperl 01:13
but I get a lookup error
maybe this can help: www.jwcs.net/~jonathan/perl6/
svnbot6 r6827 | Stevan++ | Perl6::MetaModel 2.0 - support for anon-classes 01:21
dudley ugh. Hard drives suck. 02:30
shit. I lost my Scala PIL2 stuff when my hard drive crashed yesterday. fuck. 02:52
putter Writing it the second time goes faster...? 03:51
mmm, Scala... could check it in under modules/... 03:52
nothingmuch: are you still interested in hacking PIL trees? either to compile to p5, or... hmm, a forth to pil compiler? having a second generator would help push pil clients to be language-neutral... pilrun is largely a shell to support fglock and stevan... someone needs to write a real compiler... 03:56
if not nothingmuch, anyone else? 03:57
Hey, an Intel Press optimization book is going to use a couple of one-liners from my Principles of Computer System MisDesign as chapter epigraph. :) :) Optimize blindly. Tune first, measure later. 04:09
"Words to lose by" :) 04:47
04:58 ChatUser is now known as archie, archie is now known as oaklandarchie
oaklandarchie hello world 04:59
putter good night & 05:00
svnbot6 r6828 | gaal++ | add recommended formatting settings to syntax. use "setlocal" and not "set" 05:10
r6828 | gaal++ | to minimize creep.
Supaplex a book not yet written, O'Reilly Practical Distaster Planning for Government Officials 05:47
QtPlatypus Supaplex: "Practical Distaster Planning and Recovery" would make a very good ORA book. 06:01
Supaplex yup 06:02
the origional title I made 20min ago was O'Reilly Practical Distaster Planning
QtPlatypus Not just Government Officials
Supaplex but I added the for Government Officials for a little more satire :)
QtPlatypus Arh. 06:03
Infact if I knew anything about the topic I would be pitching it to ORA this second :D 06:04
Supaplex you think they'd care for a suggested topic?
even if I don't write it, they can consider it for someone else who will :)
QtPlatypus Just check there policy on pitching ideas. I know some people avoid it for legal resons. 06:05
rindolf Hi all! 07:34
autrijus: here?
Bah! He's been idle for 7 hours. Maybe he's sleeping. 07:37
dduncan seen ingy 07:38
rindolf .seen ingy
dduncan that bot may simply be down 07:39
fyi, following more Best Practices with my own modules, I'm trying to use 'version' and 'only' modules from CPAN; but, only fails some of its own tests on my machine ... ingy made that module 07:40
that may not be of consequence for my usage, but anyway its late, so I'll look back into this tomorrow ... 07:41
fyi, I'll add 'Module::Build' support at the same time for my distros
good night
meppl guten morgen 08:12
sperminator whats the command in perl to send something into like /etc/passwd file ? 08:59
QtPlatypus sperminator: In Perl 6 or Perl 5? 09:01
sperminator im not sure what version i have
im using Suse linux 9.1 09:02
QtPlatypus That would be perl verson 5.something ask in #perl 09:03
sperminator for example like : print ("<account>") 'send it to' /etc/passwd
ok 09:04
QtPlatypus Could I ask you how you found this channel just out of curosity?"
sperminator irc channel search
on yahoo
there's a search engine i found
QtPlatypus ok thanks 09:05
09:06 sperminator is now known as niakia`
GeJ niakia`: it might be a bad idea to automatically write stuff to /etc/passwd for several reasons (the passwords not being stored in /etc/passwd comes to mind first). But anyway, this channel is focused on perl 6's development. You might have more chances to get an answer on the #perl channel. 09:11
hint: you might ask on how to define a file handler and how to write into it 09:12
svnbot6 r6829 | iblech++ | * Usual svn props. 12:49
r6829 | iblech++ | * pugs::hack: s/emacs/Emacs/ (consistency) and reformatted dduncan++'s section
r6829 | iblech++ | about space-loving settings for BBEdit to use POD's =over =item =back, so
r6829 | iblech++ | pugs::hack looks good on search.cpan.org.
gaal|work hey iblech, i was thinking of adding gzip to the pugs smoke server/client, since uploads can be slow and even time out. 13:02
you don't run it directly off an svn tree, do you? 13:03
rafl Why not bz2? 13:04
gaal|work bz2 also good :)
rafl It's better!
gaal|work anything that IO::via can do
sure
does it have autopop for the server side?
gaal|work checks 13:05
beh, no autopop. that's too bad.
so compression will have to be explicitly signalled in the protocol. 13:06
kgftr|konobi autrijus: ping
gaal|work (i like how with PerlIO::via::gzip you can open a stream with decompression and have it remove itself quietly if the stream doesn't look like it's compressed with gzip) 13:07
autrijus kgftr|konobi: pong 13:21
autrijus is still at $work
kgftr|konobi autrijus: quick question... any idea if anyone is currently working on VCP::Source::svk and VCP::Dest::CVS ? 13:23
autrijus no idea at all. barries resurfaced a while ago
but I don't have track anymore
kgftr|konobi #svk i suppose then? 13:24
castaway: moo
autrijus yeah
castaway woof! 13:28
vkon given that rules use Parrot's PGE, and it is currently limited (no ignorecase), how situation will improve? Wait for Parrot's PGE to improve, or there is another magical way? 13:51
PerlJam vkon: you could hack PGE yourself. 13:52
QtPlatypus Putter is working on something as well.
PerlJam vkon: or, in lieu of that, just send a friendly email to PGE's author/maintainer. 13:53
14:59 _meppl_ is now known as meppl
gaal|work lols at the latest larryism 15:55
"typeglobs are dead, dead, dead, dead, and dead, not necessariy in 15:56
that order."
rafl :-) 15:58
geoffb heh 16:07
castaway *g* 16:08
17:11 Aankh|Clone is now known as Aankhen``
PerlJam cognominal: indeed 17:24
rindolf Hi all! 17:25
autrijus: here?
Juerd My greatest fear is that there will be a CGI module with all kinds of non-CGI crap in it 17:26
In this I'm a little more strict than most others
non-CGI crap doesn't just include HTML generation, it also includes uri-decoding
And multipart/form-data decoding 17:27
It's nice to have modules bundled, but there shouldn't be a big one that does everything by itself
integral URI-decoding? It should basically just provide an accessor for %ENV<QUERY_STRING>, but not parse it iself?
Juerd It should use the uri decoding module. 17:28
PerlJam suddenly fears a CGI module that autoloads 50 other modules
integral hmm, so what's the difference between it depending on a module, and just having that code in it?
Juerd PerlJam: Do you dislike LWP::UserAgent for using HTTP::Headers, for example? 17:29
integral or, if that's the case, it shouldn't just be two modules (CGI env access, and uri decoding), but *three* modules (env access, decoding, and then a wrapper)
Juerd When written correctly and by the same team, lots of small modules WORK
And work very well.
There are very few things specific to CGI 17:30
That the string is in STDIN or %ENV<QUERY_STRING> is CGI
The string and the parsing of it, are not
integral Juerd: but if CGI just loads URI::Decode, how does the user change what module is used for parsing? Is there some parameterisation somewhere? 17:31
Juerd Thus the CGI module, regardless of what it name will be, should pass the string (which may be lazily tied to a filehandle) to the module that parses
The user doesn't have to change that module.
That's needless configurability, if you ask me.
It's not a database driver.
integral but then surely the format of the string *has* been specified by CGI, so it *is* responsible for the parsing? 17:32
Juerd The place of first specification is highly irrelevant
We don't put MIME parsing under any Email namespace, do we? 17:33
It's used in many places outside email nowadays
As are strings of the application/x-www-form-urlencoded type. 17:34
integral are we arguing the same thing? Is what you're talking about just that the "decode_uri" method should be on the interface of URI(or something) not CGI?
Juerd I think (hope) we agree that decode_uri or whatever the name will be, belongs in URI 17:35
It's the place where the &=; splitting is done that I'm discussing now
And the building of a hash or object from that
integral And that ultimately happens under the control of CGI 17:37
Juerd It shouldn't
integral you invoke a CGI method, and it invokes the machinery to do the splitting and then object building
Juerd Oh, right
Yes.
integral But it might as well call a "my sub uri_decode" were it not that should be factored out for the user to use elsewhere 17:38
Juerd role MIME::URL does Hash does Array does HTML::Form { ... }
$query.param('foo'), $query<foo>, $query[0] 17:39
s/does HTML::Form// # makes no sense
But $query.as(HTML::Form) might 17:40
integral that needs extra info like the URI though
Juerd Not really
It can assume urilessness
It's lossy, sure, but it can be very useful
my HTML::Form = $query; # assuming coercion. if not: $query.as(HTML::Form) 17:41
Aankhen`` Hi.
integral oh, ok, some kind of implicit Maybe in certain fields, like say this "undef" thing we've got... ;-)
Juerd $form.action = '/cgi-bin/bar.cgi';
$form.method = 'GET';
Aankhen`` Juerd: Have you seen HTTP::Request::CGI, by any chance?
Juerd print $form
integral: Forms do not need action, it defaults to the current URL. They do not need method, it defaults to GET
integral Juerd: oh, forgetting that 17:42
Juerd integral: This thing can assume every field is of type text.
integral Juerd: not type hidden?
Juerd Besides this, it's not the details I care about at this point
God damnit, windows sucks
I'LL RESTART LATER, WHEN THE IBM THINGY IS DONE BURNING THE 7 CD'S, { generate_profanity }, SO QUIT BUGGING ME 17:43
integral Haskell++ 17:44
Juerd I'm off to mcdonald's for some emergency food.
rafl Hm. What happended? Only a few commits today.. 17:46
18:43 typester is now known as typeout 19:09 typeout is now known as typester
Aankhen`` goes to sleep. 19:39
G'night.
masak question: what are good ways in p5 and p6 respectively, to reverse a string? 19:46
the easiest way i found in p5 was join '', reverse split // $string
doesn't look very nice, now does it? 19:47
integral *blink*
$string = reverse $string
masak nope 19:48
doesn't work :(
reverse only reverses lists... i think
PerlJam masak: clearly you are insane.
integral perl -le '$string = "abc"; $string = reverse $string; print $string'
masak: the manual *clearly* explains all the stuff about context
and the faq
PerlJam masak: in perl6 it would be $string.=reverse probably. 19:49
masak integral: your example worked, thx
but nothing worked for me
apparently i am insane :P
integral no, you don't understand scalar context. perl -le 'print scalar reverse shift' foobar
PerlJam masak: you were probably saying "print reverse $string"
masak no, but maybe something of the sort 19:50
and that doesn't work, because...?
integral masak: print's prototype is (@), ie list context. It's a rightwards named list operator
PerlJam masak: context.
masak thinks he sees it now 19:51
PerlJam masak: perldoc -f reverse
masak thx, integral and PerlJam
PerlJam: I read the perldoc entry but apparently not carefully enough
masak reads it again
ah
"In scalar context, concatenates the elements of LIST and returns a string value with all characters in the opposite order." 19:52
this somehow went past me as something i didn't want :/
rafl wants a new release.. 20:30
Supaplex doesn't everyone? 20:36
geoffb perlbot, seen nothingmuch 20:53
dang
masak perlbot, seen perlbot 20:56
:P
buu perlbot doesn't do seen 20:58
frogbot and seenserv do
geoffb yeah, I was just checking . . .
we used to have a couple bots that did seen in here, but I think none now after all of the freenode mucking about.
renormalist Hi! I'm trying to find out what "pick" does. I see it quite a lot in pugs/examples. Anyone with a hint? 22:50
luqui renormalist, picks a random number from a list/junction 22:54
?eval [1,2,3].pick
evalbot_6830 2
luqui ?eval [1,2,3].pick
evalbot_6830 2
luqui ?eval [1,2,3].pick
evalbot_6830 2
luqui uh
?eval [1,2,3].pick
evalbot_6830 1
luqui there we go
renormalist pick == "take any element of list" ? 22:55
Supaplex ?eval [1,2,3,4,5].pick 23:05
evalbot_6830 3
Supaplex ?eval [1,2,3,4,5].pick
evalbot_6830 2
Supaplex ?eval [1,2,3,4,5].pick
evalbot_6830 5
Supaplex knifty 23:06
rantanplan ?eval (1..10).pick
evalbot_6830 3
rantanplan Uh cool. :)
Supaplex ?eval l=(1..10);l.pick;print l 23:07
evalbot_6830 Error: unexpected "p" expecting block construct, ":", term, term postfix, operator, postfix conditional, postfix loop, postfix iteration, ";" or end of input
Supaplex meh :P
my guess is that it does not pop/shift it out. 23:08
?eval (1..10).grab
evalbot_6830 Error: No compatible subroutine found: "&grab"
Supaplex worth a guess hehe :)
luqui Supaplex, you needed a $ or an @ in your test eval 23:09
renormalist Where are such builtins documented/described? I couldn't find "pick" by myself.
luqui oh, yeah, it doesn't splice it out
renormalist, in the source :-/
specifically, all of them are in src/Pugs/Prim.hs
but their documentation is written in Haskell :-(
renormalist m'kay 23:10
Supaplex ?eval $l=(0..9);$l.pick;print $l
evalbot_6830 Error: Undeclared variable: "$l"
Supaplex ?eval my $l;$l=(0..9);$l.pick;print $l
evalbot_6830 0123456789bool::true
Supaplex ?eval my $l;$l=(0..9);$l.pick;print join(' ',$l); 23:11
evalbot_6830 0 1 2 3 4 5 6 7 8 9bool::true
_meppl_ gute nacht 23:31
rafl Bye. 23:37