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.
00:17 Eidolos left, Eidolos joined 00:27 yewenbin joined 00:30 luqui left 01:03 Schwern joined 01:11 mww113 joined, eternaleye left
mww113 please join #leifswolfbot, we need more players 01:11
01:11 mww113 left
xerohg lol 01:14
so cute
01:23 syle left 01:24 [particle]ventus joined 01:25 justatheory joined
CMA ha regresado. 01:33
01:33 Ched- left 01:34 Ched- joined 01:46 alanhaggai joined 02:03 alanhaggai_ joined, kanru left 02:15 justatheory left 02:17 alanhaggai left 02:21 eternaleye joined, alanhaggai_ left 02:39 penk joined 02:44 luqui joined 02:53 CMA left, alanhaggai joined 03:04 pravus left 03:07 elmex_ joined, pravus joined 03:20 elmex left, elmex_ is now known as elmex 03:27 japhb left 03:28 japhb joined 03:55 pbuetow left 03:58 alanhaggai left 04:00 Schwern left 04:10 mncharity left 04:12 alanhaggai joined 04:14 wknight8111 left 04:16 alanhaggai_ joined 04:18 eternaleye left 04:28 justatheory joined, nipotan is now known as nipotaway, luqui left 04:30 Psyche^ joined 04:32 alanhaggai left 04:36 Brony joined
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
04:47 Patterner left, Psyche^ is now known as Patterner 04:48 lisppaste3 left, justatheory left
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
04:58 syle joined, lisppaste3 joined
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
05:09 alanhaggai_ left
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.
05:39 eternaleye joined
Brony When a gentleman amasses enough wealth, he can own an entire shopping centre, a hugely lucrative venture in most instances. 05:49
05:49 azure1st left
Tene I'm really curious about why you're discussing this here. 05:51
05:53 Lorn_ joined, Lorn left
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.
06:12 Lorn joined 06:20 [particle]ventus left 06:25 Lorn_ left, Lorn_ joined
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.
06:31 Lunchy joined
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.
06:33 Lorn_ left 06:34 Lunchy_ left 06:38 Lorn left 06:53 Lorn joined
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
07:04 Lorn_ joined, meppl joined 07:05 iblechbot joined
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.
07:13 ChanServ sets mode: +o Tene, Brony left, Tene sets mode: -o Tene
Tene Interesting. 07:13
Auzon Very.
Actually, only interesting in that he had no clear motive. 07:14
07:20 Lorn left 07:27 syle left 07:56 rindolf joined 07:57 xerohg left, bsb left 08:04 meppl left 08:05 masak joined
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
08:45 jan_ left
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
09:02 syle joined
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
09:10 muixirt joined 09:12 meteorjay joined 09:20 iblechbot left 09:34 mj41 left 10:09 wknight8111 joined 10:28 chris2 joined 10:35 SysPete joined 10:45 iblechbot joined 10:46 SysPete left 10:52 muixirt_ joined 10:59 bbkr_ joined, bbkr__ left 11:00 alanhaggai joined 11:01 pbuetow joined 11:09 muixirt left 11:10 riffraff left, zakame_ joined 11:11 zakame_ left
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
11:32 cosimo left 11:33 wknight8111 left 11:35 pbuetow left 11:38 cosimo joined 11:54 chris2 left 11:56 syle left 12:03 muixirt_ is now known as muixirt 12:05 wknight8111 joined 12:08 muixirt_ joined 12:25 muixirt left, muixirt_ is now known as muixirt 12:32 rindolf left 12:34 muixirt left 12:46 ofer left
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
12:55 jan joined
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? ;)
13:12 cmarcelo joined 13:20 Psyche^ joined 13:26 alanhaggai_ joined 13:28 wknight8111 left 13:31 TJCRI joined, Patterner left, Psyche^ is now known as Patterner 13:37 eternaleye left 13:41 alanhaggai left 13:50 ispy_ joined 13:51 pmurias joined
pmurias masak: you could use (the object oriented interface) of CGI in elf if you were willing to use a (slight) hack 13:56
13:58 peepsalot joined
masak pmurias: elf? 14:01
14:01 alanhaggai_ left
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
14:14 TJCRI left
[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 :-|
14:16 pmichaud_ is now known as pmichaud
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
14:17 ting___ left, ting joined
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
14:19 rdice joined
masak \o/ 14:19
moritz_ I somewho suspect that most regexe translations in CGI.pm will be fairly mechanical 14:20
14:20 Lorn_ is now known as Lorn
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
14:23 rawb joined, rawb left 14:24 smtms left
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
14:31 smtms joined, IllvilJa left
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
14:43 meteorjay left
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
14:47 sscaffidi joined
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
14:55 penk left
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
15:04 iblechbot left
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
15:33 Eevee left 15:55 IllvilJa joined 15:59 yewenbin left 16:09 TJCRI joined 16:17 pbuetow joined 16:19 rdice_ joined 16:22 iblechbot joined, meppl joined 16:27 justatheory joined 16:36 pravus left, rdice left
pmichaud TimToady++ # S05 updates 16:40
16:40 meppl left 16:42 alanhaggai joined 16:44 eternaleye joined 16:45 rindolf joined
[particle] who's in charge of the svn bot here? diakopter? it'd be nice to see the synopsis changesets here too. 16:45
16:47 nipotaway is now known as nipotan, pravus joined 16:58 pravus_ joined 16:59 justatheory left
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
17:05 pbuetow_ joined 17:06 pugs_svn joined 17:07 pugs_svn left, pugs_svn joined
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?
17:07 pugs_svn left
moritz_ ah, my fault (of course ;) 17:08
17:08 speckbot joined
moritz_ now it's called "specbot" 17:08
17:08 pravus left
[particle] speckbot :) 17:10
moritz_++
17:10 snooper joined 17:15 pbuetow left 17:17 pravus_ is now known as pravus 17:21 alester joined 17:23 justatheory joined, pbuetow joined, pbuetow_ left, ispy_ left 17:34 snooper left 18:01 japhb left 18:22 rindolf left, Ched- left 18:25 ReiniUrban joined 18:28 ReiniUrban is now known as rurban 18:32 japhb joined 18:33 rindolf joined 18:40 Ched- joined 18:47 elmex left 18:55 rurban left 18:58 elmex joined 19:15 Eevee joined 19:25 PerlPilot is now known as PerlJam 19:26 eternaleye left 19:32 rdice_ left 19:35 eternaleye joined 19:54 rdice joined
pmurias moritz_: only elf's parser is in ruby 19:56
19:57 pbuetow_ joined
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 ;)
20:03 rdice left, syle joined
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
20:03 [particle]ventus joined, rindolf left
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
20:10 chris2 joined, pbuetow left 20:11 rdice joined 20:19 wknight8111 joined 20:35 eternaleye left 20:36 eternaleye joined
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 :)
20:42 Juerd joined
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 :)
20:45 [particle]ventus left 21:03 barney joined
ruoso wuold rephrase that as "it takes *a* Perl 6 to parse Perl 6" 21:10
moritz_ ;) 21:14
21:14 pmurias left 21:17 barney left 21:29 rdice left 21:32 justatheory left 21:48 BinGOs_ joined 21:54 BinGOs left 21:58 BinGOs joined 21:59 pbuetow_ left 22:03 TJCRI left 22:06 BinGOs_ left 22:07 peepsalot left 22:09 eternaleye left 22:10 eternaleye joined, justatheory joined 22:12 eternaleye left 22:13 eternaleye joined 22:17 iblechbot left 22:27 [particle] left 22:28 [particle] joined
Auzon home & 22:30
22:30 Auzon left 22:43 chris2 left 22:45 SamB left 22:46 elmex left, eternaleye left, SamB joined 22:49 lisppaste3 left 22:55 SamB left, r0bby left, SamB joined 22:56 masak left 23:00 lisppaste3 joined 23:36 felipe left 23:45 eternaleye joined 23:58 Patterner left