←2007-02-26 2007-02-27 2007-02-28→ ↑2007 ↑all
00:11:16 <oklopol> meh
00:11:36 <oklopol> to sleep, 24 lines is the best i can do without remaking it --->
00:14:37 -!- nazgjunk has quit ("Leaving").
00:29:25 -!- nooga has quit (Read error: 110 (Connection timed out)).
00:36:56 -!- oerjan has quit ("Sleep!").
00:41:09 -!- cmeme has quit ("Client terminated by server").
00:41:36 -!- cmeme has joined.
00:41:37 -!- nooga has joined.
00:49:20 -!- Shaunaf has left (?).
01:34:25 -!- crathman has joined.
01:36:36 -!- ShadowHntr has joined.
01:54:18 -!- crathman_ has joined.
01:58:13 -!- crathman_ has quit (Client Quit).
02:11:42 -!- crathman has quit (Read error: 110 (Connection timed out)).
02:17:24 -!- bsmntbombdood has changed nick to dbsmntbombdoo.
02:17:47 -!- dbsmntbombdoo has changed nick to odbsmntbombdo.
02:18:15 -!- odbsmntbombdo has changed nick to oodbsmntbombd.
02:19:19 -!- oodbsmntbombd has changed nick to doodbsmntbomb.
02:19:40 -!- doodbsmntbomb has changed nick to bdoodbsmntbom.
02:48:24 -!- bdoodbsmntbom has changed nick to bsmntbombdood.
03:25:10 -!- tgwizard has quit (Remote closed the connection).
03:25:37 -!- Sukoshi has quit (Remote closed the connection).
03:50:15 -!- Sukoshi has joined.
03:56:34 -!- wooby has joined.
04:22:40 -!- ShadowHntr has quit (Client Quit).
04:39:54 -!- RodgerTheGreat has joined.
04:40:02 <RodgerTheGreat> what are the haps my friends?
04:40:18 <wooby> not a thing, how goes it RodgerTheGreat
04:40:24 <RodgerTheGreat> not bad
04:40:59 <RodgerTheGreat> I have a little backburner project for a boolean logic/ queue based language that's progressing pretty nicely
04:41:23 <RodgerTheGreat> I ought to have a finished interpreter in a week or two depending on how much free time I end up having.
04:55:48 -!- wooby has quit.
05:02:44 -!- wooby has joined.
05:14:01 -!- ShadowHntr has joined.
05:16:56 <Sukoshi> No.
05:17:35 <RodgerTheGreat> ?
05:17:46 <RodgerTheGreat> hi, Sukoshi- how's it going?
05:18:52 <Sukoshi> No.
05:18:59 <Sukoshi> :P
05:19:11 <Sukoshi> Taking a break after a hectic spring vacation of 70+ pages of homework.
05:19:43 <Sukoshi> And a Chip-8 emulator in a semi-finished state.
05:19:59 <RodgerTheGreat> ooh, cool! Chip-8 = fun!
05:20:08 <Sukoshi> Heh.
05:20:13 <Sukoshi> It's C though.
05:20:23 <Sukoshi> I'm too tired to bug hunt now.
05:20:24 -!- digital_me has quit ("Lost terminal").
05:21:08 <RodgerTheGreat> haha
05:22:28 <RodgerTheGreat> a friend of mine built a chip-8 emulator a while ago- his major stumbling block was how sprite collision worked. As soon as I explained the whole XOR register-flag-on-flip thing, he managed to get PONG pretty much working
05:27:42 <Sukoshi> Sprite collision?
05:28:23 <Sukoshi> You mean, if there's an already written-to portion of the screen?
05:28:47 <RodgerTheGreat> yeah
05:29:10 <Sukoshi> Well, the docs say ``if 1, then flip to 0, if 0, then flip to 1. Use XOR''
05:29:12 <RodgerTheGreat> it's actually a really clever way of allowing for "collision" with virtually no code
05:29:35 <Sukoshi> I know next-to-nothing about game programming.
05:29:39 <Sukoshi> But I know about processors :P
05:29:51 <RodgerTheGreat> yeah, and whenever you write a 1 to a pixel that's already 1, there's a register that's set to "flag" a collision
05:30:21 <RodgerTheGreat> I dabble a bit in game programming... <shameless plug>http://rodger.nonlogic.org/games/Neon2</shameless plug>
05:30:38 <Sukoshi> Yeah, VF.
05:30:59 <Sukoshi> I thought of a very nice approach to emulating the registers without making a huge case table to decide on the register based on the opcode.
05:31:59 <Sukoshi> I setup a u_int_8 v[0x10]; and then, say we have an opcode 8xnn called opc, v[(opc & 0x0F00) >> 8] = opc & 0x00FF;
05:33:23 <RodgerTheGreat> hunh
05:34:00 <Sukoshi> ?
05:35:53 <RodgerTheGreat> interesting
05:36:06 <Sukoshi> Aha.
05:36:14 <Sukoshi> Yeah, I was too lazy to create an opcode.
05:36:17 <Sukoshi> *opcode parser
05:36:24 <Sukoshi> **opcode parser proper
05:36:25 <Sukoshi> Gah.
05:36:35 <RodgerTheGreat> lol
05:36:45 <Sukoshi> Plus I wanted this to be as light as I could. Only two opcodes actually use arithmetic operations.
05:36:57 <Sukoshi> And no subtraction.
05:37:15 <Sukoshi> *as light as it could.
05:37:39 <RodgerTheGreat> I'll bet your compiler makes little purring sounds when you feed it your code
05:37:44 <Sukoshi> ;D
05:37:55 <Sukoshi> Bit-twiddling is my specialty. It always has.
05:38:04 <Sukoshi> Darn BCD code made me use arithmetic. Grr. I art angry.
05:38:27 <wooby> RodgerTheGreat: awesome
05:47:22 <SimonRC> zzzzzzz
05:47:44 <RodgerTheGreat> t?
06:01:46 <RodgerTheGreat> this is hilarious: http://static.flickr.com/107/291066616_75d02b4dba_o.jpg
06:04:20 <RodgerTheGreat> of course, this will always be a classic: http://b.armory.com/~relsqui/pictures/misc/stuff.gif
06:07:57 <RodgerTheGreat> well, good night, folks.
06:09:00 <Sukoshi> No.
06:09:04 <Sukoshi> Have a BAD night.
06:09:05 <Sukoshi> BAAAD.
06:09:58 <RodgerTheGreat> :'<
06:10:21 * RodgerTheGreat curls into the fetal position
06:15:00 -!- calamari has quit ("Leaving").
06:15:30 -!- wooby has quit.
06:15:46 <Sukoshi> Hahahahaha!
06:44:04 -!- ShadowHntr has quit ("End of line.").
07:28:39 -!- meatmanek has quit (Connection timed out).
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
08:39:13 -!- meatmanek has joined.
09:06:21 -!- goban has quit (Remote closed the connection).
09:06:54 -!- goban has joined.
09:11:32 -!- sebbu has joined.
09:13:27 -!- goban has quit (zelazny.freenode.net irc.freenode.net).
09:13:27 -!- Sukoshi has quit (zelazny.freenode.net irc.freenode.net).
09:13:27 -!- EgoBot has quit (zelazny.freenode.net irc.freenode.net).
09:13:27 -!- GregorR has quit (zelazny.freenode.net irc.freenode.net).
09:13:27 -!- tokigun has quit (zelazny.freenode.net irc.freenode.net).
09:20:27 -!- goban has joined.
09:23:51 -!- oerjan has joined.
09:30:43 -!- Sukoshi has joined.
09:35:04 -!- GregorR has joined.
09:35:04 -!- tokigun has joined.
09:35:04 -!- EgoBot has joined.
09:46:10 -!- sebbu2 has joined.
09:53:52 -!- sebbu has quit (Read error: 60 (Operation timed out)).
10:08:37 -!- kxspxr has joined.
10:38:12 -!- kxspxr has quit.
12:18:22 -!- oerjan has quit ("leaving").
12:56:29 -!- Ricky has joined.
12:58:20 -!- Ricky has left (?).
13:15:34 -!- Qaz has joined.
13:16:24 -!- Qaz has quit (Client Quit).
14:12:54 -!- nazgjunk has joined.
14:20:05 -!- sebbu2 has quit (Client Quit).
14:22:00 -!- Qaz has joined.
14:22:43 -!- Qaz has left (?).
14:34:34 -!- sebbu has joined.
14:54:38 -!- goban has quit (Remote closed the connection).
14:55:03 -!- goban has joined.
15:16:29 -!- nazgjunk has quit (Read error: 131 (Connection reset by peer)).
15:16:44 -!- nazgjunk has joined.
15:39:43 -!- goban has quit (Connection timed out).
16:40:32 -!- oerjan has joined.
16:54:16 -!- nazgjunk has quit (Read error: 104 (Connection reset by peer)).
16:54:49 -!- nazgjunk has joined.
16:58:49 <RodgerTheGreat> good morning, everyone
17:04:02 <nazgjunk> well hi RodgerTheGreat
17:04:24 <RodgerTheGreat> nice to meet you, nazgjunk
17:05:33 * nazgjunk looks up a polite reply in his dictionary of earth
17:30:33 -!- jix__ has joined.
17:49:26 -!- nazgjunk has quit (zelazny.freenode.net irc.freenode.net).
17:49:26 -!- SimonRC has quit (zelazny.freenode.net irc.freenode.net).
17:49:26 -!- sekhmet has quit (zelazny.freenode.net irc.freenode.net).
17:49:26 -!- NK`divx has quit (zelazny.freenode.net irc.freenode.net).
17:49:26 -!- pgimeno has quit (zelazny.freenode.net irc.freenode.net).
17:49:26 -!- oklopol has quit (zelazny.freenode.net irc.freenode.net).
17:49:46 -!- nazgjunk has joined.
17:49:46 -!- oklopol has joined.
17:49:46 -!- pgimeno has joined.
17:49:46 -!- sekhmet has joined.
17:49:46 -!- NK`divx has joined.
17:49:46 -!- SimonRC has joined.
17:57:04 -!- SimonRC has quit (zelazny.freenode.net irc.freenode.net).
17:57:04 -!- NK`divx has quit (zelazny.freenode.net irc.freenode.net).
17:57:04 -!- sekhmet has quit (zelazny.freenode.net irc.freenode.net).
17:57:04 -!- pgimeno has quit (zelazny.freenode.net irc.freenode.net).
17:57:04 -!- oklopol has quit (zelazny.freenode.net irc.freenode.net).
17:57:04 -!- nazgjunk has quit (zelazny.freenode.net irc.freenode.net).
17:58:12 -!- nazgjunk has joined.
17:58:12 -!- oklopol has joined.
17:58:12 -!- pgimeno has joined.
17:58:12 -!- sekhmet has joined.
17:58:12 -!- NK`divx has joined.
17:58:12 -!- SimonRC has joined.
18:41:30 -!- lament has quit (Read error: 110 (Connection timed out)).
19:17:51 -!- nazgjunk has quit (Read error: 104 (Connection reset by peer)).
19:18:08 -!- UpTheDownstair has joined.
19:18:26 -!- UpTheDownstair has changed nick to nazgjunk.
19:41:33 * SimonRC lols http://www.irregularwebcomic.net/comic.php?current=109
19:51:41 -!- EgoBot has quit (zelazny.freenode.net irc.freenode.net).
19:51:41 -!- GregorR has quit (zelazny.freenode.net irc.freenode.net).
19:51:41 -!- tokigun has quit (zelazny.freenode.net irc.freenode.net).
19:53:39 -!- GregorR has joined.
19:53:39 -!- tokigun has joined.
19:53:39 -!- EgoBot has joined.
21:21:33 -!- sebbu2 has joined.
21:40:33 -!- sebbu has quit (Connection timed out).
21:46:56 -!- nazgjunk has quit (Read error: 104 (Connection reset by peer)).
21:48:11 -!- nazgjunk has joined.
21:58:31 -!- jix__ has quit ("Bitte waehlen Sie eine Beerdigungnachricht").
22:20:21 <oklopol> python's inheritance... how do i access a parent? class b(a): ... self.a.? ... ?
22:20:35 <oerjan> super()
22:20:37 <oerjan> i think
22:21:16 -!- nazgjunk has quit (Read error: 104 (Connection reset by peer)).
22:21:34 <oerjan> or perhaps not, maybe you just use the name.
22:21:54 <oklopol> self is how you access the object itself
22:22:13 <oklopol> super seems to convert type -> parent of type
22:22:18 <oklopol> which doesn't help self
22:22:48 <oklopol> not that i necessarily need inheritance, i've never really liked it
22:22:57 <oklopol> just wondering, since it seems i'm using it :\
22:23:01 <oerjan> you can always look up things in a parent class if you know its name.
22:23:26 -!- nazgjunk has joined.
22:23:31 <oklopol> yeah, but i'd like to get the underlying parent object itself off the self
22:23:42 <oerjan> there is none i think
22:23:59 <oerjan> python is not prototype based.
22:24:26 <oerjan> the object contains a reference to the class, but there is no object corresponding to the super-class.
22:24:44 <oklopol> hmm... i'll go around that i guess then
22:24:45 <oerjan> just a reference from the class to its super-classes.
22:25:34 <oerjan> are you maybe asking how to call a constructor?
22:27:40 <oklopol> mm
22:27:52 <oklopol> i have copy() in my superclass
22:28:14 <oklopol> now my child class has copy too, i'd like to call the upper level copy there
22:28:37 <oerjan> right. do superclass(self,...)
22:29:14 <oerjan> any method call x.method(...) is equivalent to class.method(x,...)
22:29:50 <oerjan> *do superclass.copy(self,...)
22:30:14 <oklopol> global name superclass is not defined
22:30:48 <oerjan> by superclass i mean an expression giving you the superclass you want.
22:31:21 <oerjan> which might most simply be its name.
22:31:30 <oklopol> ah, yeah :P
22:31:32 <oklopol> indeed
22:34:03 <oklopol> can i promote a to easily it's child class b if b only adds functionality?
22:34:14 <oklopol> swap easily, to
22:34:33 <oerjan> what do you mean?
22:35:14 <oklopol> in the copy constructor i make the upper level copy... i need, however, return from copy() an instance of the child class
22:35:25 <oklopol> and the upper level copy() returns the parent
22:35:27 <oerjan> oh.
22:35:28 <oklopol> of course
22:36:13 <oerjan> right that is specific problem with copy.
22:36:40 <oklopol> mm maybe
22:37:15 <oerjan> the simplest might be to just change the class of the object, i think it is possible in python.
22:37:45 <oklopol> prolly, i'm just not familiar with that kind of twiddling
22:38:08 <oklopol> i'm not familiar with anything when it comes to python actually :P
22:38:45 <oklopol> i've learned the language by writing small functions for one-time use and read a quick tutorial
22:39:09 <oerjan> i think possibly the __class__ attribute can simply be set.
22:39:48 <oklopol> haha xD
22:39:51 <oklopol> it worked
22:39:52 <oklopol> :P
22:40:51 <oklopol> hmm... now the hard part
22:40:57 <oklopol> the part i have to do myself :\
22:49:06 <oerjan> argh! http://www.irregularwebcomic.net/118.html
22:52:06 -!- ShadowHntr has joined.
22:57:07 <oklopol> i constantly run out of windows...
22:58:07 <oerjan> doesn't that hurt?
22:58:13 <oklopol> :D
22:58:34 <oklopol> sounds like the right hobby for me
22:58:37 <oklopol> whiiiii... pof
22:58:40 <oklopol> whiiiiiiiiiii... pof
22:58:43 <oklopol> anyway
22:58:50 <oklopol> i have 70 windows open
22:58:56 <oklopol> and i can't open more -_______-
22:59:42 <oerjan> are all those different programs or maybe you should get something with tabs?
23:00:22 <oklopol> not all of them are different programs
23:00:58 <oklopol> i mean, 70 processes, i only have 25 windows open
23:01:09 <oerjan> oh
23:01:49 <oklopol> but maybe 40 channels in irc, 100 seems a weird limit since this machine, from what i've heard, is not that bad
23:02:26 <oklopol> hmm, i made no sence there
23:02:30 <oklopol> but doesn't matter
23:03:20 <oklopol> i don't like tabs
23:03:24 <oklopol> i can't find anything
23:10:27 -!- Qaz has joined.
23:11:11 -!- Qaz has left (?).
23:13:21 -!- UnrelatedToQaz has joined.
23:14:06 <UnrelatedToQaz> that's better
23:15:54 -!- UnrelatedToQaz has left (?).
23:39:08 -!- nazgjunk has quit (Read error: 104 (Connection reset by peer)).
23:46:52 -!- wooby has joined.
←2007-02-26 2007-02-27 2007-02-28→ ↑2007 ↑all