@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> hi
<1> hey
<2> howdy
<0> can anyone tell why C++ is slower than C?
<1> is it?
<0> yes, but why?
<2> because bjaerne stroustrup had shorter beard than kerningan & ritchie
<0> lol
<2> and as you know, wisdom lives in beard
<0> can I have a serious answer?
<2> doubtful :)
<1> due to the stupid question, is impossible to give you a decent answer
<2> it's a bit different language, don't you think? higher level languages usually are slower than low level ones.
<1> a for loop takes the same time in both langs afaik
<2> it depends on the compiler too
<2> your question is flawed



<2> and irrelevant
<0> why is the question flawed?
<2> and why is wartburg slower than audi s4?
<3> there's the vtable...
<3> for one
<2> good point
<3> also I am guessing people tend to forget constructor/destructor time it takes when using objects on the stack
<2> Guigno: there are lot of reasons. but the main one is because it's a different language.
<0> I searched the iso-c++-spec and I didn't find the word vtable; so there's no vtable - whatever it means
<2> rrright.
<0> idiot
<2> http://www.parashift.com/c++-faq-lite/virtual-functions.html#faq-20.3
<2> :)
<3> why do you call me an idiot
<2> he was referring to himself
<3> ah
<3> because it really hurts :(
<3> I *love* this cvstrac thing
<4> just the cvs makes me barf :))
<3> righto
<4> ehm
<4> switch (init->type)
<4> {
<4> case MALA_DATA_STRINGLIST:
<4> llist data_list;
<4> error: expected expression before 'llist' ... am i dumb?
<4> if i comment out the case it compiles
<4> (case 0: barfs too)
<2> umm.. borken #define?
<2> ah
<4> its a enum .. but even replacing it with 0 is a error
<2> aye, sorry
<4> weird bug
<4> and the following case statements are working
<5> llist is a typedef? and you are compiling this as a C code? you can't declare a variable in this way....
<2> not even with c99?
<4> commenting out the llist thing doesnt work either then it barfs on the next
<4> yes typedef struct llist_struct llist or sometihng
<4> well i use that in many places and it works
<5> eleven: I doubt that
<5> cehteh: place a { after the : but before the llist ... see if that works better
<4> really strange bug
<4> yes works ...
<4> do you have an explanation for that?
<5> yes. you are trying to create a variable with that "llist data_list". You can't create a variable there. However, if you create a new block, with {} you can start that block with a variable declaration
<4> strange that i never ran in that case
<4> using -std=gnu99
<4> i thought C99 allows to declare variables anywhere :P ... ok switch is something special if there is no break you could use the undeclared variable after the next case
<5> dunno... I haven't read the C99 stuff...
<5> (I'm waiting for K&Rv3 :)
<3> bloody h*ll, avrdude takes 270 seconds to upload 110k hexfile
<3> over 115200 serial wire
<3> "something ain't right"
<6> http://pastebin.4programmers.net/190 <- if someone can help, something's wrong with header files
<3> fd_set socket;
<3> and enable -Wall and -Werror please
<6> I have exactly as you typed
<6> fd_set socket;
<6> with -Wall -Werror there's nothing more
<6> than what is stated on the end



<3> socket is a function
<3> or a fd_set
<3> not both
<3> I am guessing it is the function ;)
<3> odd though
<3> (that it doesn't warn)
<2> I_v0: socket = name of a function
<6> ohhhh of course!
<2> that's what michai means
<3> why thank you!
<3> what are we doing up so late btw
<2> good question
<6> this implict declaration is still there
<2> foolin around in bash prompt
<6> althrough it's only a warning
<3> I_v0, then include inet.h
<6> server.c:53: warning: implicit declaration of function `inet_ntoa'
<3> (man inet_ntoa)
<6> ok thank you michai, thank you eleven
<3> I can explain my situation here: I ate | <------------------------------> | this much sugar
<3> yw
<6> Yay!
<6> you must be sweet right now
<6> ;-)
<3> very :)
<2> haha
<6> English languge is fun
<6> It's action oriented language and in many conditions makes me laugh
<6> :)
<6> just as it made eleven right now
<3> your native language is ..?
<2> any sophisticated sugar form or just plain sugar for tea sweetening?
<3> soda
<6> althrough when I translate it on polish it doesn't seem so much funny
<6> michai polish
<3> ic
<6> or maybe it's that I'm bored with polish
<6> michai and what's your native language?
<3> dutch
<6> say Hello world in dutch
<6> I mean type
<3> literally..?
<6> yes
<3> Hello world
<6> don't talk to monitor
<3> Hallo wereld
<6> like that/
<6> aham
<6> a bit like german
<3> yeah
<6> Hmmm I missed something
<6> Doesn't web browsers end their requests with \r\n ?
<7> they should atleast :>
<6> yeah, I prolly messed something in code
<6> gdb will be handful
<6> ;)
<7> end of complete request should be \r\n\r\n
<6> mhm mhm
<6> hmmm, how to examine with gdb program that has fork()'ed ?
<6> the child
<3> google 'gdb debug child process'
<6> got it
<6> damnit
<6> something is really messed up
<6> when socket is avaiable for reading?
<6> by the means of select() function
<3> do you reset fd_set after select btw?
<6> http://pastebin.4programmers.net/190
<6> in line 60
<6> down
<6> 4 lines
<6> don't have idea how to perform this trick
<6> so it would wait for whole input until \r\n\r\n
<6> now it wait's for \n


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c
or
Go to some related logs:

#acmilan
Liriel webcam
#worldchat
#worldchat
#worldchat
#worldchat
#worldchat
whois who xs4all worldchat
#worldchat
#worldchat



Home  |  disclaimer  |  contact  |  submit quotes