--- Log opened Sun May 23 00:00:09 2010 |
00:11 | | You're now known as TheWatcher[T-2] |
00:14 | | You're now known as TheWatcher[zZzZ] |
00:16 | | Alek [omegaboot@Nightstar-c5f3565b.il.comcast.net] has quit [Ping timeout: 121 seconds] |
00:18 | | AbuDhabi [annodomini@Nightstar-f4b2aeea.adsl.tpnet.pl] has quit [[NS] Quit: I go to troll the land of dreams.] |
00:22 | | Alek [omegaboot@Nightstar-c5f3565b.il.comcast.net] has joined #code |
01:13 | < Tarinaky> | I'm finding a lot of conflicting information on C++'s 'auto_ptr'. |
01:13 | < Tarinaky> | Does anyone have a good, solid, reliable definition of what it's meant to be? |
01:16 | < Tarinaky> | Is it, in fact, a pointer that automatically gets deleted? Does it include sane copy constructors and assignment operators? |
01:16 | < Tarinaky> | ie: A template suitable for when I want one, and one only, class to own a pointer? |
01:19 | | Attilla [Attilla@Nightstar-2f9fec3f.threembb.co.uk] has quit [Ping timeout: 121 seconds] |
01:52 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
04:24 | | * ToxicFrog pokes gcc with a stick |
04:24 | <@ToxicFrog> | I know this used to work: building a dll where the executable provides some of the symbols |
04:34 | <@ToxicFrog> | Aha. Needed -DWIN32 so that xchat-plugin.h can do something horrible with #define. |
05:05 | | Orth [orthianz@Nightstar-a5f4f0e8.xnet.co.nz] has joined #code |
05:07 | | Reiv[Graduate] [orthianz@Nightstar-c24f2acb.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
05:17 | < celticminstrel> | Tarinaky: If I recall correctly, auto_ptr does not have a true copy constructor; its copy constructor instead performs a move operation. |
05:18 | < celticminstrel> | I think it's suitable for when you want only one class to own the pointer, unless you need to store said pointers in an STL container. |
05:18 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: *hums* Can't stay now!] |
05:43 | | Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has joined #code |
05:47 | <@Derakon> | Okay, that's got the drawing turned the right way around. Now I just wish I knew why I need to negate the Y coordinates but not the X coordinates. |
05:49 | <@Vornicus> | Handedness |
05:49 | <@Derakon> | Also, I need to figure out what the correct distance is for the camera to get a 1:1 mapping of texels to pixels. |
05:57 | | Searh [Z@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds] |
06:03 | | * Derakon tries to switch the block drawing over from a per-block thing to a display list, gets a black screen. |
06:03 | <@Derakon> | Figuring this stuff out is very annoying because when it doesn't work, you often get zero feedback. |
06:10 | <@Derakon> | ...okay, now the terrain draws fine, but the player has disappeared? O_o |
06:20 | <@Derakon> | Oh, right. I changed the zoom factor from being a multiplier to being the camera distance...but forgot to update some code, so I was passing around a zoom factor of -800 which was being used to adjust draw locations. |
06:23 | <@Derakon> | Now I just have to deal with the fact that the console library I'm using assumes it can use blitting...which it can't. |
06:47 | | Searh [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
07:00 | | Derakon is now known as Derakon[AFK] |
07:34 | | Orth [orthianz@Nightstar-a5f4f0e8.xnet.co.nz] has quit [Client closed the connection] |
07:41 | < Rhamphoryncus> | So I suspect my cpu temperature sensor is broken or the drivers are |
07:42 | < Rhamphoryncus> | temp1: +52.0?C (low = +127.0?C, high = -53.0?C) ALARM sensor = thermal diode |
07:42 | < Rhamphoryncus> | note the low is higher than the high |
07:42 | | Reiv[Graduate] [orthianz@Nightstar-a5f4f0e8.xnet.co.nz] has joined #code |
07:42 | < Rhamphoryncus> | The lowest seen was -13?C and the highest was 74?C, and it may change by ?30?C in 1 second |
07:44 | <@ToxicFrog> | gdb call command: awesome |
08:06 | | AnnoDomini [annodomini@Nightstar-f4b2aeea.adsl.tpnet.pl] has joined #code |
08:06 | | mode/#code [+o AnnoDomini] by Reiver |
08:09 | | Rhamphoryncus [rhamph@Nightstar-bbc709c4.abhsia.telus.net] has quit [Client exited] |
08:27 | | Searh [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
09:02 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
09:27 | | You're now known as TheWatcher |
09:29 | < Alek> | "Nothing ever scared me so much and drove me to full-format the computer and change AV and firewall like seeing my ip in a proxy-list." |
09:45 | | Attilla [Attilla@Nightstar-6fecde09.threembb.co.uk] has joined #code |
09:45 | | mode/#code [+o Attilla] by Reiver |
11:22 | | Orth [orthianz@Nightstar-c08a97cb.xnet.co.nz] has joined #code |
11:23 | | Reiv[Graduate] [orthianz@Nightstar-a5f4f0e8.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
11:42 | | ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out] |
11:45 | | SmithKurosaki [Smith@Nightstar-016d4299.dsl.teksavvy.com] has quit [Ping timeout: 121 seconds] |
12:08 | | Reiv[Graduate] [orthianz@Nightstar-e149cbee.xnet.co.nz] has joined #code |
12:11 | | Orth [orthianz@Nightstar-c08a97cb.xnet.co.nz] has quit [Ping timeout: 121 seconds] |
12:58 | < Tarinaky> | <celticminstrel> Tarinaky: If I recall correctly, auto_ptr does not have a true copy constructor; its copy constructor instead performs a move operation. << What's meant by a move operation? |
14:07 | | Searh [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
14:43 | | celticminstrel [celticminstre@Nightstar-f8b608eb.cable.rogers.com] has joined #code |
15:30 | | Searh [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [[NS] Quit: If the world didn't suck, we'd all fall off.] |
15:42 | | Reiv[Graduate] [orthianz@Nightstar-e149cbee.xnet.co.nz] has quit [Client closed the connection] |
15:47 | | Tarinaky [Tarinaky@Nightstar-517012d4.adsl.virginmedia.net] has quit [Operation timed out] |
15:48 | | ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code |
15:48 | | mode/#code [+o ToxicFrog] by Reiver |
15:48 | | Reiv[Graduate] [orthianz@Nightstar-e149cbee.xnet.co.nz] has joined #code |
15:50 | | Reiv[Graduate] [orthianz@Nightstar-e149cbee.xnet.co.nz] has quit [Connection reset by peer] |
15:55 | | Reiv[Graduate] [orthianz@Nightstar-e149cbee.xnet.co.nz] has joined #code |
15:57 | | Reiv[Graduate] [orthianz@Nightstar-e149cbee.xnet.co.nz] has quit [Client closed the connection] |
16:02 | | Tarinaky [Tarinaky@Nightstar-3a7168a8.adsl.virginmedia.net] has joined #code |
16:18 | | Reiv[Graduate] [orthianz@Nightstar-7aece004.xnet.co.nz] has joined #code |
17:06 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code |
17:08 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed] |
17:24 | | * AnnoDomini begins to play Enchanter. |
17:36 | | Searh [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code |
18:38 | | cpux- [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code |
18:39 | | cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
18:40 | | cpux- is now known as cpux |
19:36 | | Vornicus [Vorn@Nightstar-92f21938.ct.comcast.net] has quit [[NS] Quit: Leaving] |
20:29 | | You're now known as TheWatcher[afk] |
21:01 | | Searh [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds] |
21:02 | | AnnoDomini [annodomini@Nightstar-f4b2aeea.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
21:05 | | AnnoDomini [annodomini@Nightstar-b533b13f.adsl.tpnet.pl] has joined #code |
21:05 | | mode/#code [+o AnnoDomini] by Reiver |
21:17 | | Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code |
21:18 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
21:18 | | mode/#code [+o Vornicus] by Reiver |
22:07 | | Searh [Z@2C3C9C.B2A300.F245DE.859909] has joined #code |
22:17 | | gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?] |
23:03 | | AnnoDomini [annodomini@Nightstar-b533b13f.adsl.tpnet.pl] has quit [[NS] Quit: Exit lite, enter nite.] |
23:24 | < celticminstrel> | ...TypeError: <lambda>() takes exactly 2 arguments (1 given) :/ |
23:24 | | cpux- [Moo@Nightstar-20a84089.dyn.optonline.net] has joined #code |
23:25 | < celticminstrel> | Hm. Idea. |
23:25 | < celticminstrel> | ...oh. I wrote a comparison lambda instead of a key lambda. Duh. 9_9 |
23:25 | | cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
23:26 | | cpux- is now known as cpux |
23:40 | < celticminstrel> | Can eval() ever have side-effects? |
23:40 | <@McMartin> | Oh yes. |
23:40 | <@Vornicus> | If you call anything that would have a side effect, you'll get a side effect. |
23:41 | < celticminstrel> | It says it's parsed as a "Condition list", which I take to mean it doesn't accept assignment operators? |
23:41 | <@jerith> | eval("print 'foo'") |
23:41 | < celticminstrel> | SyntaxError |
23:42 | <@Vornicus> | print is a statement, not a function |
23:42 | <@Vornicus> | technically you can put in an expression |
23:42 | <@jerith> | Oh, right. |
23:42 | <@Vornicus> | a = [1,2,3] |
23:42 | <@Vornicus> | eval("a.append(4)") |
23:43 | < celticminstrel> | eval('x = foo') -> SyntaxError |
23:43 | <@Vornicus> | That's not an expression either. |
23:43 | <@Vornicus> | >>> a = [1,2,3] |
23:43 | <@Vornicus> | >>> eval("a.append(4)") |
23:43 | <@Vornicus> | >>> a |
23:43 | <@Vornicus> | [1, 2, 3, 4] |
23:43 | < celticminstrel> | Yeah, I tried something like that just now. |
23:44 | <@jerith> | def foo(): |
23:44 | <@jerith> | print "foo" |
23:45 | <@jerith> | eval("foo()") |
23:45 | | cpux [Moo@Nightstar-20a84089.dyn.optonline.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Mon May 24 00:00:10 2010 |