--- Log opened Mon Jan 29 00:00:47 2007 |
00:15 | | Janus [~Cerulean@Nightstar-10302.columbus.res.rr.com] has joined #Code |
00:21 | | gnolam [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Sleep] |
01:27 | | ChalcyGrumpy is now known as ChalcyAFK |
01:33 | | Janus is now known as Jan[FULLPOWER] |
01:37 | | Jan[FULLPOWER] is now known as Jan |
03:45 | | MahalWORK is now known as Mahal |
04:06 | | Jan [~Cerulean@Nightstar-10302.columbus.res.rr.com] has quit [Quit: *unlocks it*] |
04:13 | | ChalcyAFK is now known as Chalcedon |
04:42 | | Chalcedon is now known as ChalcyThesis |
06:19 | | ChalcyThesis is now known as Chalcedon |
06:27 | | gnolam [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code |
06:35 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Quit: ] |
07:12 | | gnolam is now known as gnolam|away |
07:13 | | AnnoDomini [~farkoff@Nightstar-28981.neoplus.adsl.tpnet.pl] has quit [Killed (NickServ (GHOST command used by AbuDhabi))] |
07:13 | | AnnoDomini [~farkoff@Nightstar-28981.neoplus.adsl.tpnet.pl] has joined #Code |
07:53 | | MyCatSleeps is now known as MyCatStudies |
07:57 | | Reiver is now known as ReivOut |
08:35 | | Mahal [~Mahal@Nightstar-4998.worldnet.co.nz] has quit [Connection reset by peer] |
08:36 | | Mahal [~Mahal@Nightstar-4998.worldnet.co.nz] has joined #Code |
08:36 | | mode/#code [+o Mahal] by ChanServ |
08:46 | | Mahal [~Mahal@Nightstar-4998.worldnet.co.nz] has quit [Quit: reboot] |
08:50 | | Mahal [~Mahal@Nightstar-4998.worldnet.co.nz] has joined #Code |
08:50 | | mode/#code [+o Mahal] by ChanServ |
08:59 | | Mahal is now known as MahalBed |
09:13 | | ReivOut is now known as Reiver |
09:22 | | Vornicus is now known as Vornicus-Latens |
09:40 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
09:40 | | mode/#code [+o Chalcedon] by ChanServ |
09:55 | | You're now known as TheWatcher[wr0k] |
09:58 | | gnolam|away is now known as gnolam |
10:54 | | MyCatVerbs [~rb6822@Nightstar-23441.cs.bris.ac.uk] has joined #code |
11:14 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Quit: ] |
12:09 | | MyCatVerbs [~rb6822@Nightstar-23441.cs.bris.ac.uk] has quit [Quit: Swim, swim, hungry!] |
12:12 | | Reiver is now known as ReivZzz |
13:25 | | MyCatVerbs [~rb6822@Nightstar-23441.cs.bris.ac.uk] has joined #code |
13:29 | < MyCatVerbs> | My parser sucks. :( |
13:58 | | MyCatVerbs [~rb6822@Nightstar-23441.cs.bris.ac.uk] has quit [Quit: Swim, swim, hungry!] |
15:59 | | MyCatStudies is now known as MyCatVerbs |
16:01 | < MyCatVerbs> | I agree with the other guy. |
16:15 | <@ToxicFrog> | ? |
16:26 | | * ToxicFrog determines that PGM_load() is failing because it's being called with NULL as the filename |
16:55 | | EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has quit [Ping Timeout] |
17:06 | | EvilDarkLord [althalas@Nightstar-15301.a88-115-211-62.elisa-laajakaista.fi] has joined #code |
17:10 | <@jerith> | Why the hell are people so in love with PHP? |
17:12 | <@jerith> | Why in all the complexity classes does PHP use $this as the currect object, but self as the current class? |
17:20 | <@ToxicFrog> | The latter I don't find terribly objectionable. |
17:23 | <@jerith> | I keep using the wrong one. |
17:23 | <@jerith> | Because both 'this' and '$self' are illegal. |
17:24 | <@ToxicFrog> | ...oh |
17:24 | <@ToxicFrog> | Ok, that is stupid. |
17:24 | <@ToxicFrog> | I thought you just forgot the $ from $self. |
17:24 | | Serah [~-@87.72.36.ns-26407] has quit [Connection reset by peer] |
17:24 | <@ToxicFrog> | DEPLOY THE TROUSER-SEEKING LOBSTERS |
17:25 | | You're now known as TheWatcher[afk] |
17:26 | | Serah [~-@87.72.36.ns-26407] has joined #Code |
17:26 | <@jerith> | No. |
17:26 | <@jerith> | Also, other language use either self or this. |
17:26 | <@jerith> | If you're going to have both, make them interchangeable. |
17:28 | <@jerith> | Also, emacs has a particularly crap php mode. |
17:29 | <@jerith> | Probably because anyone enlightened enough to use emacs is too enlightened to use PHP... |
17:30 | | AnnoDomini [~farkoff@Nightstar-28981.neoplus.adsl.tpnet.pl] has quit [Ping Timeout] |
17:31 | < MyCatVerbs> | jerith: if you say anything about any possible relationship between vim and PHP and any possibly implications that may result from it, I will beat up orphans with your spine. ;) |
17:34 | <@jerith> | I found vim had a fairly decent php mode. |
17:34 | <@jerith> | But then vim's modes tend to be rather more limited than emacs'. |
17:34 | <@jerith> | Essentially just syntax highlighting and some basic indentation. |
17:36 | | AnnoDomini [~farkoff@Nightstar-29034.neoplus.adsl.tpnet.pl] has joined #Code |
17:37 | < MyCatVerbs> | Mmmm, fair enough. What else does emacs give you for, say, C? |
17:38 | | ReivZzz is now known as Reiver |
17:41 | <@Reiver> | ...Everything up to the rituals to summon the Elder Ones if you press ctrl+alt+tab+shift+numlock+Y? |
17:47 | < MyCatVerbs> | AAAAAAAAAAAAAAARRRRGHHH, HATE C SO MUCH! |
17:47 | <@ToxicFrog> | ...what's it done now? |
17:49 | < MyCatVerbs> | ToxicFrog: line 42, (after preprocessor macros): if (debug) fprintf(stderr,"Expression is \"%s\".\n",expression); |
17:49 | < MyCatVerbs> | Outputs: Expression is: "(d*d)+(d*d)" |
17:50 | < MyCatVerbs> | Two lines later, after absolutely no manipulations have taken place whatsoever, expression now somehow has acquired the value ")+(d*d)" |
17:51 | <@ToxicFrog> | So run it inside gdb and see what' |
17:51 | <@ToxicFrog> | s happening. |
17:52 | < MyCatVerbs> | ToxicFrog: I am. gdb shows that, for some reason, the pointer being passed to the function that does something with expression is 4 bytes higher than the pointer lying around in the main() loop. (backtrace, yay) |
17:53 | < MyCatVerbs> | So, we have, at line 42: expression = 0x804d6e0 "(d*d)+(d*d)" |
17:53 | < MyCatVerbs> | Line 43 is nothing more than a call to fprintf(stderr,"Some message.\n"); |
17:53 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
17:53 | | mode/#code [+o Chalcedon] by ChanServ |
17:53 | <@ToxicFrog> | Weird. Pastebin it? |
17:54 | < MyCatVerbs> | Somehow, in the function call on line 44 (void diescreamingonbracketmiscount (const char* expression): diescreamingonbracketmiscount(expression); has managed to mutate it unto: expression=0x804d6e4 ")+(d*d)" |
17:58 | < MyCatVerbs> | Argh, pastebin si teh fucking slow. |
17:59 | < MyCatVerbs> | Here you go. Notice any bugs? http://pastebin.ca/332007 |
17:59 | < MyCatVerbs> | I especially love how the pointer somehow advances four spaces without me fucking touching it at any fucking point. |
18:02 | | gnolam is now known as gnolam|away |
18:04 | <@ToxicFrog> | Have you tried 'watch expression' in gdb? |
18:04 | <@ToxicFrog> | ... |
18:04 | <@ToxicFrog> | How is expression++ "not touching it"? |
18:06 | <@ToxicFrog> | (also, this seems like kind of an odd way to build a parser to begin with) |
18:06 | < MyCatVerbs> | ToxicFrog: that's operating on a copy of expression, not th'original. |
18:06 | < MyCatVerbs> | ...how else would one go about building a parser? =D |
18:07 | < MyCatVerbs> | Oh, good, found the bug. Mental note not to be so obsessively terse in future. >_> |
18:08 | <@ToxicFrog> | What was the bug? |
18:08 | <@ToxicFrog> | And generally, one would build a parser by lexing, and then parsing, and mismatch detection is a natural side effect of the parse process. |
18:09 | <@ToxicFrog> | Rather than a brute-force operation on the entire expression buffer. |
18:09 | < MyCatVerbs> | ToxicFrog: meh, I'm lazy. Checking for syntax errors first saved the bother of making a robust parser. |
18:10 | < MyCatVerbs> | Except that it is, of course, a false economy. Not making a robust parser gives me ten times as many headaches anyway. =) |
18:10 | <@ToxicFrog> | Yes, that was rather my point. |
18:11 | < MyCatVerbs> | Bit late to fix it now. Oh well. |
18:11 | | * ToxicFrog looks at this code he's written |
18:12 | <@ToxicFrog> | fucking C, not having function closures. |
18:12 | <@ToxicFrog> | I want to be able to say [[local function G(...) return PGM_getpx(pgm, ...) end]] dammit |
18:12 | <@ToxicFrog> | Oh wait, I can #define that |
18:28 | | MahalBed is now known as MahalWork |
18:30 | | * MyCatVerbs waves the magic rm -f around his code, making everything simpler. |
18:33 | <@ToxicFrog> | ... |
18:36 | <@Raif> | ... |
18:36 | <@Raif> | Frog, you forgot about #define? :P |
18:36 | <@Raif> | That's special. :) |
18:39 | <@Raif> | I go to work now, where the hairiest, nastiest code I've ever seen lives. #define isn't just a tool, it's also behind every line of code. :P |
18:39 | <@Raif> | Cheer. |
18:39 | <@Raif> | s/\./s./ |
18:39 | < MyCatVerbs> | Raif: #define is how you make your code look line line noise. |
18:44 | | You're now known as TheWatcher |
18:48 | <@ToxicFrog> | #define is a crutch for languages without lexically scoped function closures~ |
18:50 | | Vornicus-Latens is now known as Vornicus |
18:59 | < MyCatVerbs> | ToxicFrog: #define is a quick and pretty easy FSA-complete algorithm for abbreviating code. |
19:23 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
19:23 | | mode/#code [+o Chalcy] by ChanServ |
19:23 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
19:24 | | AnnoDomini [~farkoff@Nightstar-29034.neoplus.adsl.tpnet.pl] has quit [Quit: Don't trust the skull.] |
19:26 | | gnolam|away [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Ping Timeout] |
19:26 | | AnnoDomini [~farkoff@Nightstar-29034.neoplus.adsl.tpnet.pl] has joined #Code |
19:31 | <@jerith> | TF: That's why lisp has far more powerful macros than C? |
19:31 | | Chalcy [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has quit [Ping Timeout] |
19:31 | | * jerith hides. |
19:31 | | Chalcedon [~Chalceon@Nightstar-869.bitstream.orcon.net.nz] has joined #code |
19:31 | | mode/#code [+o Chalcedon] by ChanServ |
19:33 | <@TheWatcher> | Does anyone know how to increase the bandwidth an X connection will use? I'm sat here waiting for it to update and it's only using 4 or 5k of a line that can transfer 8 to 16 times that |
19:34 | | gnolam [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code |
19:36 | | Chalcedon is now known as ChalcyPhone |
19:50 | < MyCatVerbs> | TheWatcher: you sure it's not, say, a CPU bottleneck on your SSH tunnel? |
19:50 | <@TheWatcher> | Nope, not in the slightest |
19:53 | <@TheWatcher> | both ends were using virtually no cpu time :/ |
19:57 | <@jerith> | TW: what's the latency on the link? |
19:57 | <@jerith> | TCP doesn't deal well with long fat pipes. |
20:07 | <@ToxicFrog> | X, in my experience, grabs as much bandwidth as the network stack will let it have up, to what it needs. |
20:08 | <@ToxicFrog> | Which is often hundreds of kilobytes per second. |
20:08 | <@ToxicFrog> | Which, in turn, is why we have NX. |
20:08 | <@ToxicFrog> | So I'd guess that this isn't an X issue, but a network issue. |
20:17 | < MyCatVerbs> | How's the packet loss on the link? |
20:42 | | ChalcyPhone is now known as Chalcedon |
22:41 | | gnolam [Lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Oh my god... it's full of dynamics...] |
22:46 | | You're now known as TheWatcher[T-2] |
22:49 | | You're now known as TheWatcher[zZzZ] |
--- Log closed Tue Jan 30 00:00:47 2007 |