code logs -> 2007 -> Fri, 23 Mar 2007< code.20070322.log - code.20070324.log >
--- Log opened Fri Mar 23 00:00:52 2007
00:06
<@Vornicus>
I haven't played Uplink in a week and I'm still thinking about a gui remake for it. ;_;
00:07
<@Vornicus>
CTCPREPLY is a notice with ^A around it.
00:07
< MyCatVerbs>
ToxicFrog: jah, that's what bit me. I'd typo ATCION or something and get kicked. ^^
00:17 Derakon [~Derakon@Nightstar-12737.sea2.cablespeed.com] has joined #code
00:17 mode/#code [+o Derakon] by ChanServ
00:34 Derakon is now known as Derakon[AFK]
00:41
<@Vornicus>
Arg. Why have I not been able to do any work on Catan art lately?
00:45 * McMartin packages up an old program he wrote so that it might be independently distributable.
00:49 * Vornicus gnaws on PostScript.
00:49
< Doctor_Nick>
Vornicus: ill make some
00:50
< Doctor_Nick>
here is the robber: .
00:50
<@Vornicus>
I have the robber already.
00:53 ReivZzz is now known as ReivClass
01:04 gnolam|Party is now known as gnolam
01:05
<@McMartin>
http://www.stanford.edu/~mcmartin/keyjam/keyjam.zip uploaded.
01:35 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: String theory? More like... noodle theory. *bubum-bum, tsh*]
01:36 Serah [~Z@87.72.36.ns-26407] has quit [Connection reset by peer]
01:37 Serah [~Z@87.72.36.ns-26407] has joined #Code
01:37 mode/#code [+o Serah] by ChanServ
01:38 gnolam [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
02:27 * Vornicus completes Chapel, Market, and Governor's House.
02:31 Derakon[AFK] is now known as Derakon
02:51 * Vornicus completes the victory point cards. 83 down, 7 to go.
02:51
<@McMartin>
Heh
02:52
<@Vornicus>
Well, okay, to be perfectly fair, I should be counting input files. 35 down, 7 to go.
02:57 ReivClass is now known as Reiver
03:13
<@Derakon>
I seek suggestions for outfits.
03:13
<@Derakon>
For the game, that is.
03:13
<@Derakon>
Also, if TF were around, that would be great.
03:20 Reiver is now known as ReivOut
03:26 * Derakon glowers at an infinite recursion in his update function, which doesn't seem to be self-evident.
03:32 Derakon is now known as Derakon[Blended]
03:44 * Vornicus fiddles, trying to figure out art.
04:08 Pi [~sysop@Nightstar-23945.hsd1.wa.comcast.net] has quit [Quit: There is no justice. There is only me.]
04:30 Pi [~sysop@Nightstar-23945.hsd1.wa.comcast.net] has joined #code
04:30 mode/#code [+o Pi] by ChanServ
04:39 Derakon[Blended] is now known as Derakon
04:49 Derakon is now known as Derakon[AFK]
04:56 * Vornicus completes Road Building.
04:57
<@Vornicus>
36/42; 84/90
05:01 * McMartin prods VControl, trying to break it into convenient layers.
05:33 Derakon[AFK] is now known as Derakon
05:35 Serah [~Z@87.72.36.ns-26407] has quit [Ping Timeout]
05:48 * Derakon pokes TF.
05:49
<@Derakon>
I have an infinite loop in my update cycle, apparently because I did Shooter:New(self). Any ideas? http://pastie.caboo.se/48971
05:50 Serah [~Z@87.72.36.ns-26407] has joined #Code
05:51 mode/#code [+o Serah] by ChanServ
05:52
< Doctor_Nick>
derakon: thats easy
05:52
< Doctor_Nick>
just solve the halting problem
05:52
<@Derakon>
Your advice, Nick, is, as always, utterly invaluable. To someone else.
05:53
< Doctor_Nick>
i know
05:53
< Doctor_Nick>
im like linus fucking torvalds here
05:55
<@ToxicFrog>
...that is weirdness.
05:55
<@ToxicFrog>
Your code looks fine to me.
05:55
<@Derakon>
That's what I thought.
05:55
<@Derakon>
If I nix the Shooter constructor, though, then it works fine...up until it tries to index the "owner" field in Shooter.
05:56
<@ToxicFrog>
o.O
05:58
<@ToxicFrog>
...hmm.
05:58
<@ToxicFrog>
Sudden thought.
05:59 * Derakon finds a few stupid mistakes in Shooter and fixes them...
05:59
<@ToxicFrog>
Try nixing the Shooter constructor, and creating it using:
05:59
<@ToxicFrog>
self.outfits["gun"] = Shooter:New { owner = self }
05:59
<@ToxicFrog>
And declaring shooter.owner as false in the shooter definition.
06:00
<@ToxicFrog>
Still, though, this shouldn't be happening.
06:00
<@ToxicFrog>
The only thing I can think of is that the code in Object:New() which is meant to implement table-copy constructors is going insane and copying the :update method from Player.
06:00
<@Derakon>
Okay, I think the constructor is actually fine...?
06:00 Netsplit DeepThought.NY.US.Nightstar.Net <-> Troika.TX.US.Nightstar.Net quits: @Pi, @Raif, @MahalBEDD, @AnnoDomini, @jerith, @Chalain
06:00
<@Derakon>
I've fixed some boneheadedness in Shooter and now have a new failure mode.
06:01
<@Derakon>
But frankly I need to get to bed.
06:01
<@Derakon>
I'll give the named arguments thing a shot tomorrow; thanks.
06:01
<@ToxicFrog>
I'm not entirely sure, but I think the version of Object I gave you supports those.
06:01
<@ToxicFrog>
If there's a bug in the code that implements that support, calling Shooter:New(self) might cause it to copy all methods and fields from self.
06:01
<@ToxicFrog>
Including :update().
06:01
<@Derakon>
for k,v in pairs(init) do
06:01
<@Derakon>
self[k] = v
06:01
<@Derakon>
end
06:02
<@Derakon>
That's Object:__new.
06:02
<@ToxicFrog>
....yeah, that's the problem.
06:02
<@ToxicFrog>
Easy fix:
06:02
<@ToxicFrog>
if self[k] == false then self[k] = v end
06:02
<@ToxicFrog>
This way, only fields declared as false in the class definition will be overwritten.
06:03
<@Derakon>
Hot. It works now.
06:03
<@ToxicFrog>
The issue here is that you're passing in self, and it's taking that as an initializer table and copying its contents into the new object.
06:03 * Derakon nods.
06:03
<@Derakon>
And that includes the update function.
06:03
<@ToxicFrog>
Yep.
06:03
<@Derakon>
Which means that Shooter's update function is now Player's update function.
06:03
<@Derakon>
So it's recursive.
06:04
<@ToxicFrog>
And it's not tail-recursive, thus, stack overflow.
06:04
<@Derakon>
Makes sense.
06:04
<@Derakon>
At some point I'm gonna have to write documentation for all this stuff...I should probably wait until it's stable, though.
06:05 mode/#code [+o Chalain] by ChanServ
06:05 Netsplit over, joins: Chalain
06:06 Derakon is now known as Derakon[AFK]
06:06 Netsplit over, joins: jerith
06:06 mode/#code [+o jerith] by ChanServ
06:07
<@ToxicFrog>
I need to actually write and release a documented, feature-frozen version of this OO framework.
06:07 MahalBEDD [~Mahal@Nightstar-4998.worldnet.co.nz] has joined #Code
06:08 AnnoDomini [~farkoff@Nightstar-29728.neoplus.adsl.tpnet.pl] has joined #Code
06:08 mode/#code [+o AnnoDomini] by ChanServ
06:55 Doctor_Nick [~fdsaf@Nightstar-27777.rag-a.fsu.edu] has quit [Ping Timeout]
06:55 Thaqui [~Thaqui@Nightstar-12370.jetstream.xtra.co.nz] has joined #code
06:55 mode/#code [+o Thaqui] by ChanServ
07:02 Raif [~corvusign@Nightstar-24484.hsd1.wa.comcast.net] has joined #Code
07:02 mode/#code [+o Raif] by ChanServ
07:09 MahalBEDD is now known as Mahal
07:33 Thaqui [~Thaqui@Nightstar-12370.jetstream.xtra.co.nz] has quit [Quit: This computer has gone to sleep]
07:35 ReivOut is now known as Reiver
07:36 Thaqui [~Thaqui@Nightstar-12370.jetstream.xtra.co.nz] has joined #code
07:36 mode/#code [+o Thaqui] by ChanServ
07:59 Pi [~sysop@Nightstar-23945.hsd1.wa.comcast.net] has joined #code
07:59 mode/#code [+o Pi] by ChanServ
09:29 gnolam [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
09:29 mode/#code [+o gnolam] by ChanServ
09:45 * Vornicus completes Year Of Plenty.
09:45
<@Vornicus>
3 left.
09:46
<@Serah>
Whoo.
09:46 * Serah roots for Vorn.
09:47
<@Vornicus>
http://vorn.dyndns.org/~vorn/catan/postscript-art/devcard/yearofplenty.png
09:48
<@Serah>
^_^
09:52 Mahal is now known as MahalBedd
09:57 * Vornicus completes unknown development card.
09:57
<@Vornicus>
2 left.
09:58
<@Serah>
Does that mean it's almost playable?
09:58
<@Serah>
Or does it mean you're done drawing?
09:58
<@Vornicus>
It means only that I am very nearly done drawing.
09:59 * Serah prances silently around Vornicus.
10:15
<@Vornicus>
Ding90.
10:16 * MyCatVerbs attaches a bell to a length of cord and hangs it around Serah's neck, so that prancing need never be endured in silence again.
10:16 * Serah puts MyCatVerbs into a rusty box
10:16 * Serah writes on the box "MyCatVerbs"
10:16 * Serah mails the box to Abu Dhabi.
10:42
< Reiver>
Ooooh!
10:43 * Reiver just dug out the old Heavy Gear movies from their CD. They're like, 15 MB each.
11:12
<@Vornicus>
http://unspeakablevorn.livejournal.com/30173.html
12:01 Derakon[AFK] [~Derakon@Nightstar-12737.sea2.cablespeed.com] has quit [Connection reset by peer]
12:08 GeekSoldier [~Rob@Nightstar-5233.pools.arcor-ip.net] has joined #code
12:30 Thaqui [~Thaqui@Nightstar-12370.jetstream.xtra.co.nz] has left #code [Leaving]
12:41 GeekSoldier [~Rob@Nightstar-5233.pools.arcor-ip.net] has quit [Quit: A day without sunshine is like .... night]
13:50 Reiver is now known as ReivZzz
14:21 AnnoDomini [~farkoff@Nightstar-29728.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
14:22 KBot [~karma.bot@Nightstar-29266.neoplus.adsl.tpnet.pl] has joined #Code
14:22
< KBot>
KarmaBot v1.19. online and ready. Type "!help commands" for command list.
14:22 KarmaBot [~karma.bot@Nightstar-29728.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
14:23 KBot is now known as KarmaBot
14:27 AnnoDomini [~farkoff@Nightstar-29266.neoplus.adsl.tpnet.pl] has joined #Code
14:27 mode/#code [+o AnnoDomini] by ChanServ
15:55 MyCatVerbs is now known as MyCatIsGone
16:20 GeekSoldier [~Rob@Nightstar-3645.pools.arcor-ip.net] has joined #code
16:32 Doctor_Nick [~fdsaf@Nightstar-27777.rag-a.fsu.edu] has joined #code
17:28
<@Vornicus>
By the way, TF, if you want to see what charpath/stroke does, it does this: http://vorn.dyndns.org/~vorn/catan/postscript-art/devcard/unknown.png
17:30 * jerith ponders how best to do this.
17:30
<@Vornicus>
?
17:30
<@jerith>
Do I want to tokenise everything and then turn the tokens into the output or just translate directly to the output?
17:31
<@jerith>
I'm writing a vim->python regex translator.
17:31
<@Vornicus>
Oh.
17:31
<@Vornicus>
I... hm
17:32
<@jerith>
The former is more flexible, but also more work.
17:32
<@jerith>
I think.
17:32
<@Vornicus>
I'd tokenize it; explicit helps when you're doing crazy shit like that, and you get flexibility from it.
17:32
<@Vornicus>
Also it's harder to fool something that knows how to tokenize.
17:32
<@jerith>
Next question is what I use to represent tokens in Python.
17:32 * Vornicus shrugs
17:33
<@Vornicus>
Schlockian's token representation is strings.
17:33
< Doctor_Nick>
UNKNOWN?!
17:33
< Doctor_Nick>
myserious!
17:33
< Doctor_Nick>
who the hell is using my vaccum cleaner
17:33
<@jerith>
Also, I can't find a decent vim regex grammar.
17:33
<@ToxicFrog>
Sure it doesn't just use standard POSIX EREs?
17:33
<@jerith>
No.
17:34
<@jerith>
At least, I don't think so.
17:34
<@jerith>
It also has a bunch of different "magicness" modes.
17:34
<@jerith>
I suppose I could just RTFS, but it's fairly obscure.
17:35 * ToxicFrog implements Lisp lists in Lua
17:40 * jerith ponders.
17:41
<@jerith>
Should I represent literals as themselves?
17:42
<@ToxicFrog>
Generally I make each token a class.
17:42
<@ToxicFrog>
Err, each token type a class, each token an object.
17:42
<@ToxicFrog>
Because then tokens which vary in actual representation contain both the token type (Number) and the value (1.6)
17:43
<@jerith>
Hmm...
18:18 MahalBedd is now known as Mahal
18:59 GeekSoldier [~Rob@Nightstar-3645.pools.arcor-ip.net] has quit [Quit: Beware of programmers who carry screwdrivers.]
19:10
<@jerith>
Yay! This thing seems to be sort of working.
19:10
<@jerith>
Now I just need to implement the rest of the grammar.
19:15 Mahal is now known as MahalWork
21:09 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code
21:11 * Janus takes his first crack at comic... things.
21:12
< Janus>
http://www.deviantart.com/deviation/51524454/
21:12 * ToxicFrog determines that he cannot parse these argument lists using regular expressions alone
21:24 Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: Jouets de Dieu, jouets de jouets, les jouets de me, na?tre Clair enfant voire.]
22:09 Thaqui [~Thaqui@Nightstar-18229.jetstream.xtra.co.nz] has joined #code
22:09 mode/#code [+o Thaqui] by ChanServ
23:02
< ReivZzz>
Hey, Vorn
23:02
< ReivZzz>
I had an idea.
23:02
< ReivZzz>
You know your trophies?
23:02
< ReivZzz>
They are nice, but a bit... plain... for a trophy.
23:02
< ReivZzz>
Suggestion: Give them a little drop-shadow.
23:04 ReivZzz is now known as ReivOut
23:43 Pi [~sysop@Nightstar-23945.hsd1.wa.comcast.net] has quit [Ping Timeout]
--- Log closed Sat Mar 24 00:00:52 2007
code logs -> 2007 -> Fri, 23 Mar 2007< code.20070322.log - code.20070324.log >