IRC logs for #opendune on OFTC at 2009-11-05
⏴ go to previous day
07:32:26 *** BoekaBart has joined #openDune
08:12:33 *** BoekaBart has joined #openDune
08:13:02 <BoekaBart> heh, our new internet is fast but it seems not to be the most reliable
10:14:12 <TB2> and who is late again ..... guess? Just one guess?
10:37:33 *** BoekaBart has joined #openDune
10:52:51 <BoekaBart> bleh, the fedora YUM packages aren't really up to date, often
10:53:09 <BoekaBart> SDL 1.2.13 instead of 14, doesn't support x-compiling to SH4
11:12:24 <BoekaBart> so TrueBrain, your buddy wasn't there again?
11:14:24 <TB2> HE IS STILL NOT HERE! For crying out loud ....
11:16:53 <TB2> why is that worth a happy face? :P
11:17:25 <TB2> remings me, nsz , strdup is not C89, how would you suggest using it in a C89 project?
11:17:33 <TB2> (includes don't define it for Linux for example)
11:17:46 <TB2> (well, strdup too, but snprintf is more important)
11:18:12 <nsz> strcpy(malloc(strlen(foo)),foo)
11:19:10 <TB2> on linux, when defining _USE_BSD, it will be included (as far as I could check anyway)
11:19:20 <TB2> and I guess suck tricks also work on Windows
11:19:31 <TB2> and then implement it on systems which really don't define it or something?
11:20:20 <nsz> there are libc's which don't implement printf fully
11:20:23 <TB2> as implementing your own for most compilers is a bit silly, as they do have it ;)
11:20:42 <TB2> I know a few which have bugged snprintf (when they reach the size, they dont add a \0, which results in nasty results)
11:20:43 <nsz> implementing snprintf is fairly hairy
11:22:20 <TB2> but that is the only thing I could think up .. or you have a better suggestion? (yes please :))
11:24:42 <TB2> k, I got to go. Going to find the course administrator and talk this over ...
12:15:19 <BoekaBart> nsz: strcpy(malloc(strlen(foo)+1),foo) might cause some trouble too
12:15:50 <nsz> segfault if you don't have enough memory :)
12:16:00 <BoekaBart> nope... might want to add a \0 :)
12:16:03 <nsz> but if you don't have enough memory you are in trouble anyway
12:16:32 <BoekaBart> ah, indeed.. /me read it as memcpy
12:16:50 <BoekaBart> anyway this looks like a kindof inefficcient implementation :)
12:17:34 <BoekaBart> with memcpy it's a bit better
12:29:27 <nsz> the complexity is the same so unless it's in a tight loop then it should not matter at all
12:43:01 <BoekaBart> well strcpy needs OR a strlen OR an if in the inner (copy) loop
12:43:29 <BoekaBart> memcpy could use a single cpu call (assuming that's faster)
13:16:48 <nsz> by complexity i meant algorithmic complexity on a well behaved ram machine :)
13:55:45 <BoekaBart> I think TrueBrain was kicked out of college...
13:56:35 <Xaroth> I think he kicked somebody else out :o
14:28:37 <BoekaBart> well it's taking him some time
15:58:46 *** Boeka_Bart has joined #openDune
15:58:46 *** BoekaBart is now known as Guest900
15:58:47 *** Boeka_Bart is now known as BoekaBart
16:05:10 *** Boeka_Bart has joined #openDune
16:05:10 *** BoekaBart is now known as Guest901
16:05:10 *** Boeka_Bart is now known as BoekaBart
16:57:13 <TrueBrain> I had 2 other meetings after it, so yes
17:03:18 <TrueBrain> and now ... we have a house meeting, or how do you call it in english ...
22:35:56 <Xaroth> new clothing cabinet is assembled and done
22:36:02 <Xaroth> new desk... not so done yet
22:36:16 <Xaroth> apparently the screws are too big for the holes to put them in.. or`~vice versa
22:36:30 <Xaroth> so trying to screw them in is pure hell
22:36:40 <Xaroth> so tomorrow that.. plus my bed back so i can sleep in my own room again
22:36:50 <Xaroth> ofc also pc back in so i can game properly again
continue to next day ⏵