pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, smop: etc.) || We do Haskell, too | > reverse . show $ foldl1 (*) [1..4] | irclog: irc.pugscode.org/
Set by TimToady on 25 January 2008.
mww113 please join #leifswolfbot, we need more players 01:11
xerohg lol 01:14
so cute
CMA ha regresado. 01:33
Brony Hi folks. 04:36
Intelligent financiers here?
Today I noticed a fairly ugly chump with the most perfectly maintained, expensively dressed trophy you could imagine. 04:40
I was on here just last week with another "top pick" for the financially troubled. 04:44
Those who splurged then are up already a beautiful 10%.
Auzon What are you going on about?
Brony Auzon, Where? 04:45
Auzon I just didn't realize that this was #finance-after-dark :P 04:46
Brony I tried to join all the most intelligent channels but is this as good as it gets? 04:49
Auzon Depends on what type of intelligence you want us to have. 04:50
Brony I cashed out some of my investments so that I might enjoy spending my money as much as I do investing it. 04:51
But I can't help but feel the itch, still, to redeploy it.
I have noticed that most people seem to save and save and never really enjoy their fruit. More, rather, the thought(s) of it. 04:52
Buffett is said to be the wealthiest man in the world. But that is a technicality. 04:57
Brony In our world, 5% of the people own 90% of the wealth. 04:59
Which means that 95% of the people are livong off 10% of the worldwide wealth.
I guess it is more satisfying to own stake in exciting businesses than it is to actually consume money. 05:01
One cannot help but think of all the opportunity costs.
When I was younger I lived lavishly at times and now as an investor I consider all the precious money I flushed away. 05:02
Brony Do you folks enjoy expensive women? 05:33
I can still smell the perfume of the first stripper I had when I was 19.
Brony When a gentleman amasses enough wealth, he can own an entire shopping centre, a hugely lucrative venture in most instances. 05:49
Tene I'm really curious about why you're discussing this here. 05:51
Brony 201cThe results reinforce the grade and tonnage estimates of this growing asset and the very significant potential of Jacques Lake, the results are similar to those for the Michelin Deposit in its initial exploration stages,201d 05:55
Also worthy of note is that there is no groundwater, metallurgical or rock mechanic issues identified to date at the Jacques Lake Deposit, which is good to know.
Brony Truly, if you look through a cemetery or on plaques commemorating lives well lived, 06:30
you will notice that it is common for wives to live a good 20 years longer than husbands.
Going by date of birth versus date of death.
Brony Women have much less to concern themselves with because they have learned that men are all too eager to take care of it for them. 06:32
But I suggest certain men take after women in many respects. 06:33
Truly, it seems they know how to live this life.
Brony In my experiences, black women more than any others have the greatest tendency to flat-out seek "sugar daddies." 07:02
It is amusing to me.
So this *very* well-kept black woman with this awkward, ugly, nerdish white man... 07:03
Brony I was wondering how a chump like that, stepping out of his Lexus, managed to get such a HOT, perfectly maintained wife by his side. 07:10
But then I realized she was black and that she was not his wife at all. But rather, using him for his means and his dinners. 07:11
I just love the black woman's love of material and luxury. 07:12
There is nothing they love more than a wealthy whitey.
Tene Interesting. 07:13
Auzon Very.
Actually, only interesting in that he had no clear motive. 07:14
Tene The pugscode main page has a 'Download' link to rakudo.org/perl6/index.cgi?download_perl_6 which is broken 08:17
pugs_svnbot r20378 | moritz++ | [t/spec] added simple test for positional placeholders 08:45
diff: dev.pugscode.org/changeset/20378
lambdabot Title: Changeset 20378 - Pugs - Trac
pugs_svnbot r20379 | moritz++ | [t/spec] added smartlink to positional-placeholders.t 08:54
diff: dev.pugscode.org/changeset/20379
lambdabot Title: Changeset 20379 - Pugs - Trac
pugs_svnbot r20380 | tene++ | added simple test for named placeholders 09:00
diff: dev.pugscode.org/changeset/20380
lambdabot Title: Changeset 20380 - Pugs - Trac
moritz_ Tene: your test is borked 09:02
Tene moritz_: hm? 09:03
moritz_ one_placeholder(2); doesn't set a named arg
:bla(2)
or bla => 2
Tene Wow. That's awesome how I completely failed there.
moritz++
moritz_ I fixed it 09:04
pugs_svnbot r20381 | moritz++ | [t/spec] named placeholders should be tested with a name ;-)
diff: dev.pugscode.org/changeset/20381
lambdabot Title: Changeset 20381 - Pugs - Trac
Tene Although, somehow it was still passing anyway on rakudo? 09:05
What happens when you call foo(1) on sub foo (:$a) { ... }
moritz_ does :$a force named arguments? 09:06
Tene Yes.
I'll add another test.
moritz_ if so, I guess that's an error
Tene rakudo does the same thing with normal named arguments.
What does the spec say?
moritz_ Arguments that correspond to named parameters are evaluated in item 09:08
context. They can only be passed by name, so it doesn't matter what
order you pass them in:
the "They can only be passed by name" is the crucial point
S06:748
Tene Huh. Interesting. 09:09
pugs_svnbot r20382 | tene++ | Add another named placeholder test.
diff: dev.pugscode.org/changeset/20382
lambdabot Title: Changeset 20382 - Pugs - Trac
masak I like how things are moving forward with Perl 6 right now 11:20
it makes me excited!
moritz_ aye, rakudo is moving ;) 11:30
masak ok, so what can I do with rakudo today? 12:46
is there a summary somewhere? not just small blog posts about new functionality 12:47
could I write something semi-large, like a wiki or a chat forum? 12:48
moritz_ not really 12:49
there's no CGI module for rakudo atm
masak guessed so
but there is one for pugs?
moritz_ aye
masak what prevents one from porting it?
moritz_ dunno
masak why would it need porting at all? both are p6
moritz_ just run rakudo over ext/CGI/lib/CGI.pm and see what fails 12:50
I see it uses s:P5:g:i/foo/bar/ a lot 12:51
I don't think rakudo supports that
Tene first thing it dies on is default values for subs 12:59
I could work on that today/tonight.
moritz_ I think it's not yet worth the trouble
Tene Eh, should be pretty simple.
moritz_ I thought you meant working around in CGI.pm code
masak moritz_: why would being able to use CGI in rakudo not be worth the trouble? 13:03
Tene masak: He meant that trying to modify CGI.pm to run on rakudo wouldn't be worth it, that it would be better to try to modify rakudo to run the current CGI.pm 13:04
I think
moritz_ yes
Tene bbl, class.
masak ah, ok
yes, sure
that's what I'd like, too
masak just found languages/perl6/docs/STATUS in the parrot repo 13:07
good summary
moritz_ is that up-to-date?
masak dunno 13:08
last updated April 17 13:09
wolverian where's the summary of the STATUS status? ;)
pmurias masak: you could use (the object oriented interface) of CGI in elf if you were willing to use a (slight) hack 13:56
masak pmurias: elf? 14:01
moritz_ elf is mncharity (former putter)'s attempt to bootstrapt STD.pm in ruby 14:06
masak ooh
Tene Or I could pick up Juerd++'s "good web framework" proposal like I've been meaning to do since I read it.
moritz_ that would be great 14:07
Tene I certainly think it would be.
[particle] it shouldn't be hard to get rakudo to support rx:P5//, but seems better to update those regexes to perl 6 14:10
masak good exercise in perl 6 regexes, too 14:11
[particle] ja 14:12
moritz_ problem was that pugs didn't support s/// very well with P6 regex
[particle] yes, right. it's historical. 14:14
btw we have mod_perl6 now working with rakudo 14:15
pmichaud_ well, rakudo doesn't support s/// yet either :-|
masak would anyone mind if I translated the 22 s:P5 regexps in CGI.pm to Perl 6 regexps? 14:16
should I copy the file and do it somewhere else? 14:17
moritz_ no, that's what revision control is for ;) 14:17
masak true.
moritz_ just do it in place, and whoever doesn't like it can revert it
masak so, main question again: are people likely to revert it? is it a step backward?
moritz_ no, it's a step forward 14:18
masak does it, then
moritz_ as long as pugs isn't maintained, I wouldn't worry about tests that fail with pugs
masak mm
moritz_ it's not a very nice attitude, but it's not nice to be blocked on a possibly dead project either
masak can I run my translation proposals by you guys when I'm unsure? my p6regexpese is a bit rusty 14:19
moritz_ sure
masak \o/ 14:19
moritz_ I somewho suspect that most regexe translations in CGI.pm will be fairly mechanical 14:20
masak moritz_: yes, they look easy 14:20
but I don't want to accidentally introduce errors because of insufficient understanding
moritz_ don't worry, as soon as the code runs you can test it 14:22
and before it doesn't matter if it's errornous or not
masak does to me :) 14:23
masak I write s:P5:g/[-_](\w)/-$0.uc()/ as s:g/<[-_]>(\w)/{ -$0.uc() }/ 14:26
comments? are the {} necessary? 14:27
[particle] i'd change (\w) to <alnum>
moritz_ the { } are necessary
masak [particle]: oki 14:28
moritz_: thx
[particle]: do I change \d similarly to something?
[particle] <digit>
masak ok. why? 14:29
longer, means the same thing
[particle] it's a full word rather than a funny code
masak point
moritz_ you can use $<alnum> rather than $0
masak I'll change
moritz_: huh?
in what way?
moritz_ named captures
masak so <alnum> makes named capture? 14:30
moritz_ yes
[particle] s:g/<[-_]><alnum>/{ -$<alnum>.uc() }/
masak neat
masak is <[- ... ]> the new [^ ... ] ? 14:36
moritz_ <-[...]> I think 14:37
masak ah
moritz_ one more step towards out-of-band signalling ;) 14:38
masak it's rx:i//, not rx//i, wight? 14:39
TimToady yes
masak TimToady: whoa! don't sneak up on me like that... 14:40
moritz_ lol
masak is & magical in the replacement part of a s///? 14:41
TimToady I'd write that other one as s:g[ <-[ _ ]> <alnum> ] = -$<alnum>.uc
pmichaud also, \d is faster than <digit>
masak TimToady: oki, will do 14:42
TimToady & is magical only insofar as you can call a function with it in double quotes
if you want a representation of the entire match use $/ or $()
masak ok
pmichaud (at least in PGE, \d is faster than <digit>) 14:43
masak $temp_key ~~ s:g[ <-[ _ ]> <alnum> ] = -$<alnum>.uc 14:43
correct?
moritz_ TimToady: the question nobody could answer so far: does '$object.method: $argument' need a space after the colon?
TimToady I'd use \d when constructing tokens and <digit> when I want the digit to *be* the token, usually :)
yes 14:44
moritz_ then the test suite is wrong in several places
masak \012 is illegal nowadays, yes? 14:45
pmichaud S02 also has for @x.grep:{ 0 <= $_ < all(@y) } {...}
masak what about \x8b?
TimToady yes, \o12 instead
\x8b is fine, but it now eats as many hex digits as it can
\xbeef
masak ah
pmichaud (hex digits are yummy)
TimToady and if you need to distinguish, use [] insteaqd of {}, as in \x[dead]beef 14:46
masak hm, did ^^ and $$ mean start- and end-of-string nowatimes? 14:47
pmichaud ^^ start of line $$ end of line 14:47
masak right
TimToady ^ and $ are stringy
masak so, keep the olf ^ and $ in this case 14:48
TimToady grep:{...} is parsed as grep :{...}
pugs_svnbot r20383 | moritz++ | [spec] S29-hash/: insert space after obj.meth:
diff: dev.pugscode.org/changeset/20383
lambdabot Title: Changeset 20383 - Pugs - Trac
pmichaud aha
so there is a special :{...} form still 14:49
I couldn't find it.
TimToady it's just a strange adverb
we have :() for sigs too
and infix:<+> is kinda the same
pmichaud is :{...} in the synopses anywhere ? 14:50
moritz_ t/spec/S17-coro/* seems to be all wrong
yield() is gone, right?
TimToady sure, right there is S02 :P
moritz_ and replaced by gather/take
TimToady yield was never in officially
neither was coro
moritz_ ok, then I'll delete the tests 14:51
pugs_svnbot r20384 | masak++ | [CGI.pm] converted P5 regexps to Perl 6 ones
diff: dev.pugscode.org/changeset/20384
lambdabot Title: Changeset 20384 - Pugs - Trac
pmichaud ah, okay
found :{...} (adverbial block)
I wonder why my 'ack' line didn't find it.
masak is there a way to build coro/yield in p6?
moritz_ masak: with gather { ... take }
masak ah, nice
gather/take is powerful
TimToady the nice thing about gather is that you get to specify the scope separately from the function interface 14:52
masak what does that mean?
pugs_svnbot r20385 | moritz++ | [spec] there's no coro { ... yield; } (superseeded by gather/take)
diff: dev.pugscode.org/changeset/20385
TimToady since take is dynamically scoped
lambdabot Title: Changeset 20385 - Pugs - Trac
TimToady the take doesn't have to be inside the gather lexically
moritz_ so is it an error to call take() without a gather? 14:53
masak no, I know that part. but the part about 'scope separate from function interface'
TimToady it's an error if there's no gather in your outer dynamic scope
moritz_ TimToady: ok
TimToady you can do nested gather/takes inside a single function, for instance 14:54
or you can do a gather which calls out to service functions to calculate what to take next
TimToady it's also explicit documentation that a lazy list is expected at the point of the gather 14:55
rather than having to guess whether foo() is going to return a complete value or a partial value
and it's powerful enough you can write an entire regex engine using gather/take for backtracking 14:56
moritz_ you can use Coro to implement lazy gather/take in p5 ;-) 14:57
TimToady (metholate did just that, trying to run STD on pugs, but I ran into other issues...)
pugs_svnbot r20386 | moritz++ | [t/spec] more whitespaces for disambiguation
diff: dev.pugscode.org/changeset/20386
lambdabot Title: Changeset 20386 - Pugs - Trac
TimToady but can you scope it dynamically?
moritz_ yes
because the "current Coro" is dynamically scoped 14:58
you can use it's refaddr to key a global hash, which it turn holds a reference to the lazy list that is being returned
TimToady but coro can't establish a dynamic scope in its caller, can it?
or does it take a closure? 14:59
if so, nevermind
moritz_ Not quite sure
Perl6::GatherTake does (at least basic) dynamic scoping 15:01
perlpunks.de/paste/show/4821c307.2b2a.bc
pugs_svnbot r20387 | moritz++ | [t/spec] more disambiguation whitespaces for S29-list/ 15:05
diff: dev.pugscode.org/changeset/20387
lambdabot Title: Changeset 20387 - Pugs - Trac
pugs_svnbot r20388 | moritz++ | [t/spec] one more disambiguation whitespace 15:08
diff: dev.pugscode.org/changeset/20388
lambdabot Title: Changeset 20388 - Pugs - Trac
pugs_svnbot r20389 | moritz++ | [t] coro is gone. Really. 15:11
diff: dev.pugscode.org/changeset/20389
lambdabot Title: Changeset 20389 - Pugs - Trac
pmichaud TimToady++ # S05 updates 16:40
[particle] who's in charge of the svn bot here? diakopter? it'd be nice to see the synopsis changesets here too. 16:45
moritz_ I think I have a generic svnbot hanging around somewhere - maybe I can throw that in 17:03
[particle] it's gotta be pretty plain where svnbot is on feather 17:04
pugs_svn r14540 | larry++ | clarifications to previous change 17:07
r14541 | larry++ | [S05] better characterize Match and Cursor methods
moritz_ why the fuck is it called pugs_svn?
moritz_ ah, my fault (of course ;) 17:08
moritz_ now it's called "specbot" 17:08
[particle] speckbot :) 17:10
moritz_++
pmurias moritz_: only elf's parser is in ruby 19:56
moritz_ pmurias: and the runtime is p5? 19:57
pmurias moritz_: for know p5 is the only backend
the rest of the compiler is in p6 19:58
s/know/now
moritz_ and what do you run it with? rakudo? pugs?
pmurias itself 19:59
moritz_ ok
pmurias it's partly bootstraped (the parser isn't)
moritz_ can you already use it as a syntax checker?
pmurias it dosn't parse everything 20:00
moritz_ how much does it parse?
pmurias hard question
moritz_ I'm updating one of my machines to Debian Lenny in the hope that it has sufficiently new ruby packages ;) 20:01
pmurias you could always compiler ruby from source ;) 20:02
moritz_ it's not the only thing that I want upgraded ;)
pmurias i don't think elf is suitable as a general purpose perl6 syntax checker as it's missing a few crucial small things 20:03
pmurias but the ruby parser is modeled on STD.pm so once TimToady++ gets it to work is should be possible to plug it in 20:04
pmurias moritz_: what do you intend to use a syntax checker for? 20:36
moritz_ pmurias: sanity check of the test suite
pmurias i see 20:37
dosn't pugs work?
moritz_ partially 20:38
and two partial sanity checks are better than just one ;) 20:39
pmurias parsing is hard, so it's the area incomplete implementations lack most 20:40
* parsing perl6 20:41
TimToady (un)fortunately, it takes Perl 6 to parse Perl 6 correctly :)
moritz_ nothing but Perl 6 can parse Perl 6 20:42
Juerd That's a problem there. 20:43
Perl 6 is not an implementation :)
ruoso wuold rephrase that as "it takes *a* Perl 6 to parse Perl 6" 21:10
moritz_ ;) 21:14
Auzon home & 22:30