Upgrade to YAML::Syck 0.85 before smoking | pugscode.org | sial.org/pbot/perl6 | ?eval [~] <m oo se> | We do Haskell, too | > reverse (show (scanl (*) 1 [1..] !! 4))
Set by agentzh on 22 April 2007.
specbot6 r14379 | larry++ | Clarification suggested by TheDamian++ 00:06
diakopter I accidentally committed something to my svk local mirror; how do I commit the previous revision of that file so when I push, the file doesn't get committed upstream at all? 00:10
diakopter downstream, I mean, I guess. 00:16
jrockway diakopter: delete the branch and start over 00:25
or you can svk cp from an older revision
and push with --lump
there's no good "forget this commit" comman though 00:26
both will mess up merge tracking, i think
*think*
(not 100% sure)
diakopter jrockway: thanks 00:30
specbot6 r14380 | larry++ | Clarifications to CANDO suggested by TheDamian++ 01:08
r14381 | larry++ | Clarifications to module naming suggested by TheDamian++. 01:29
veritos hey guys 02:23
ingy! how ya doing?
and everyone else too i guess... 02:27
pasteling "evalbot_r16119" at 194.145.200.126 pasted "Pugs build failure" (379 lines, 21K) at sial.org/pbot/24479 04:20
veritos was _ the old concat operator and they just changed it to ~ in order to appeace C++ progs? 04:22
dduncan no 04:44
veritos, . was the old concat, and ~ is the new
specbot6 r14382 | larry++ | Clarifications suggested by TheDamian++ 05:12
r14382 | larry++ | Killed "next METHOD", now just use nextsame etc.
r14382 | larry++ | Defined "lastcall" to allow return from final candidate.
r14382 | larry++ | Set up WHENCE mechanism for undefined prototype objects to autovivify lazily.
r14383 | larry++ | typos 05:21
rhr re: spec r14382, should Collar.new(Tag.new) be something like Collar.new(:tag(Tag.new)) ? 09:51
dduncan it would be if the default new() were used 10:14
of Collar
but an explicitly declared new() in Collar could do something else
personally, I prefer to stick with the default named args for most constructors 10:15
that is, I always declare explicit BUILD, which have named args, and the new() implicitly matches them, which I leave 10:16
pmurias hi 13:32
rindolf: why did you choose Henry Ford as an example of a supreme value producer? 13:33
rindolf pmurias: because he was. 13:35
pmurias: and he was also known to be very unfriendly.
pmurias rindolf: what valueble thing did he produce? 13:36
rindolf pmurias: cars.
pmurias cars--
rindolf pmurias: and buses and stuff.
nothingmuch and rubber
rindolf pmurias: you need to look at inventions at their context.
pmurias: some car companies also make buses and trucks. 13:37
pmurias: I don't have a driver's licence.
But I still appreciate Henry Ford.
rindolf pmurias: Henry Ford also pioneered the 40 hours work week. 13:38
pmurias i personaly belive cars are the worst invetion on earh
rindolf pmurias: no, they're not.
pmurias: and let's s/cars/automobiles/
pmurias they are the only real threat to my life 13:39
rindolf pmurias: we may transcend cars someday.
Just like we transcended horses or fax machines.
pmurias Eistain rindolf: what is a worse invention (not counting weapons)? 13:40
s/Eintain//
rindolf Einstein.
pmurias: I don't think inventions can be bad. 13:41
pmurias: if something can be invented then by inventing it (and developing it, etc.) it may prove useful to someone.
"A worse invention"?
Do you mean "The worst invention"?
pmurias yes 13:42
rindolf pmurias: OK.
pmurias: so I think the worst invention is meaningless. 13:43
You can talk about the greatest inventions:
Writing, the Alphabet, electricity, etc.
the Internet, computers.
ayrnieu I liked Chivalry: you could then build knights. 13:44
rindolf ayrnieu: heh.
ayrnieu: Civilisation?
ayrnieu rindolf - yes. Sim City also has powerful metaphores. 13:45
rindolf - e.g., did you know that the way to make money is to build public services and then underfund them? 13:46
pmurias can you have negative public service spending? 13:47
ayrnieu no, you have a dial between 0% and 100% of funding for each Police and Fire station. Every % below 100 goes into your own coffers, which you can use to build more interesting facilities -- air ports! 13:48
pmurias i thought you got many from the taxpayers and they just demand so much stuff that you can't get a substancial income 13:50
ayrnieu Yes, you can beat that by underfunding public services. 13:51
ayrnieu &
pmurias thanks
ayrnieu well, I'll stay long enough to say: governments -really do- make money this way, by raising taxes 'to fix the roads', pilfering the income from that tax, and then coming back five years later to raise taxes again over how bad the roads are. Also, governments -really do- use their police as a form of taxation, by e.g. installing red-light cameras, raising red-light fines, and then shortening yellow-light duration. 13:53
ayrnieu &
pmurias hi fglock 13:56
fglock pmurias: hi 14:02
TimToady But..but...but... If cars hadn't been invented, we couldn't have car chase scenes in movies... 14:49
moritz TimToady: then we had to do all these scenes with helicopters ;-) 14:50
lumi How many horses would have suffered making _The Blues Brothers_ :( 14:58
pasteling "evalbot_r16124" at 194.145.200.126 pasted "Pugs build failure" (7 lines, 316B) at sial.org/pbot/24495 17:23
wolverian blogs.zdnet.com/microsoft/?p=404 "Microsoft to roll out dynamic-language layer for .Net" 17:25
lambdabot Title: 􏿽xBB Microsoft to roll out dynamic-language layer for .Net | All about Microsoft | ...
rindolf Hi wolverian 17:26
wolverian heo 17:27
er, hello
keyboard isn't quite working properly
rindolf wolverian: OK. 17:28
wolverian: what's up?
wolverian jsp coding, unfortuately
argh! unfortunately.
rindolf wolverian: OK. 17:29
BTW, I went to Office Depot the other day and they had a rather poor selection of keyboards.
I recall being in a shop with much more.
And they moved the "\" and "|" key. 17:30
fglock how would you call an operation that, given a Regex and a Match, returns a Str? 17:55
moritz fglock: reverse matching? 17:56
fglock moritz: in a single word (subroutine name) 18:01
moritz fglock: so what should it do? 18:02
[particle] my question precisely
does it generate strings that match a regex?
or, generate the smallest possible string from the passed Match, created from the passed Regex 18:04
fglock it should generate a string that uses all the data in the Match, and all the Regex (it's a template function) 18:06
moritz "unroll"? 18:07
fglock template( /nums:\d+/, Match.new( positionals => [1..3] ) ) # nums:123
oops 18:08
template( /nums:(\d)+/, Match.new( positionals => [1..3] ) ) # nums:123
rindolf fglock: isn't it Ruby?
fglock rindolf: dunno 18:09
rindolf fglock: where do you see this code? 18:10
fglock hmm - in my head?
just an idea
wolverian did you search CPAN? :)
fglock wolverian: it could be a module under Pugs::Compiler::Rule 18:11
avar fglock: does anything you've written implement :rw on p5? 18:20
veritos hey...i realised that i had a problem with miniperl6-on-python. 18:21
you can't write a function called print.
def print is a syntax error, since print is a keyword.
it's apparently just like writing one called def if.
fglock avar: rw parameters? v6.pm uses Data::Bind 18:22
[particle] veritos: time for name mangling
veritos [particle]: def perlfn_print(params)?
[particle] that'll work 18:23
fglock veritos: I've been renaming functions to 'Code_'~$name
veritos k...
[particle] def Code... fglock beat me to it
veritos brb, i need to log in in screen.
fglock I'm making a wishlist for next kp6 version 18:28
I'm trying to list features that may be delaying 6-on-6 18:29
avar ?eval 1 18:31
evalbot_r16126 1
avar ?eval my Str $str = "y hlo"; $str ~~ /^^(y) hlo/; $0 = "o"; $str 18:32
evalbot_r16126 Error: Can't modify constant item: VUndef
avar ?eval my Str $str = "y hlo"; $str ~~ /$<x> := [(y)] hlo/; $0 = "o"; $str
evalbot_r16126 *** Cannot parse regex: $<x> := [(y)] hlo␤*** Error: ␤Error: Can't modify constant item: VUndef
avar hrmp
fglock ?eval my Str $str = "y hlo"; $str ~~ /$<x> := [y] \s hlo/; $/<x> 18:35
evalbot_r16126 *** Cannot parse regex: $<x> := [y] \s hlo␤*** Error: ␤\undef
fglock it works here 18:37
fglock I need help with a shell command; I'm trying to replace MiniPerl6 "::Obj(...)" with "Obj.new(...)" 19:46
find lib -name '*.pm' | xargs perl -pe 's/::(\w+)\(/$1.new(/g'
moritz fglock: I think you need a -i.orig 19:47
[particle] \.new\(
moritz fglock: the way you do it the files don't change
[particle] oops
moritz [particle]: not in the replace part
[particle] right
fglock moritz: thanks! 19:48
moritz did it work?
fglock yes 19:49