@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13



Comments:

<0> and different OSs handle things differently
<0> Windows is more centered around single user
<0> so your app will get longer time slices
<0> which means, when your app stalls waiting for IO from a device, it may be stalled longer than it might in linux.
<0> but, there's all kinds of things that might change that number between platforms
<1> doesn't it also depend on your cpu speed
<0> possibly
<0> higher CPU speed will mean the IO devices are even slower compared to your app
<2> blocking io generally gives up the timeslice
<0> so, it'll mean giving up the CPU longer when you're waiting for IO
<0> well, and the fact that your time slice is a TIME
<0> not a cycle count
<0> so your % of the CPU Will just go down with a faster CPU
<1> and addressing cache size also seems important
<2> what are we talking about here anyway
<0> addressing cache size?



<1> about why I like pie
<0> what?
<1> you know, cpu cache and part of it which is used for memory mapping, keeping commonly used addresses
<1> the L thing
<0> ummmm
<0> L?
<0> TLB?
<0> I don't know why I'm asking
<0> it's the TLB
<1> huhu
<0> and the TLB isn't part of the cache
<0> it's a whole seperate thing
<1> kay
<1> http://en.wikipedia.org/wiki/Translation_Lookaside_Buffer
<0> yeah, I know what it is.
<1> but it says cache
<1> and in a cpu
<0> it's not part of the I or D cache
<0> it's a seperate structure
<1> yeah of course
<0> typically fairly small
<0> and generally fully ***ociative.
<0> I suppose technically you could call ANY memory a cache
<1> I wouldn't call them in the cpu though
<0> what?
<0> is English not your first language?
<1> I wouldn't call ANY memory in the cpu though!
<1> it is not.
<0> that explains a lot.
<0> typically when you say cache you're talking about a memory that is specifically for storing data from main memory
<0> a TLB is a bit different
<0> it's storing a virtual to physical mapping
<0> along with some other crap
<0> like page attributes
<3> hi all
<3> alyone there?
<3> anyone there?
<2> nah
<3> :P
<1> alyone == alequen + anyone ?
<3> nah, just mistyped it :P
<3> can someone help me?
<2> we can't read minds.. sorry
<1> I sense that you have a non-c++ problem
<3> i am trying to create a template with static variables, but cant find a way to initialize it
<1> I sensed wrong
<2> SSPecteR: ah.. that is hard :P
<3> im still learning C++, but i couldnt find a answer anywere
<2> since you would need to make type-specific initialisaitons
<1> is it a templated cl*** or struct ?
<1> or is it a templated function? or anything?
<2> doesnt matter
<1> well I was going to type it out
<2> template<typename T> cl*** foo { static int bar; }; int foo<int>::bar=3;
<3> its a template cl***
<2> int foo<float>::bar=3;
<2> etc
<3> i wanted to make a general inicialization. Cant I define a binary value or anything?
<1> well you can initialize integer types inside anyway
<2> ok first tihngs first.. what are you making static and why
<1> err integral constants, I was wrong



<3> im making a template cl*** singletron. it has a static variable *mSingletron where i will place a pointer for the only instance created
<2> heh
<3> but i cant initialize it :(
<1> wait, why are you typing out each type
<1> template <typename T> struct foo{ static float bar; }; template <typename T> float foo<T>::bar= 42.0;
<1> you can initialize it to 0 the same way I wrote
<2> hm that actually works.. heh
<1> if it is an auto_ptr use the constructor
<1> I don't know computers, just a little c++ =P
<3> i must initialize to use the static variable in the constructor, even if it is pointer
<1> no no
<1> I meant the static type's constructor if the type is auto_ptr, nevermind that
<1> it is not important
<1> just do it (=
<2> I still think it is a shame that a static variable cant be initialised inside a cl***
<1> some can
<4> Only constant integers.
<1> see std::basic_string, it has a const size_type which is initialized to 0
<2> i can see the difficulties in double definitions etc in seperate object files but heh
<1> what DrkMatter said
<1> but yeah it is sad
<2> I dont consider a constant a variable.. since it is not that variable :P
<1> well said, I guess.
<1> does java allow it?
<2> probably.. since you cant do anything -outside- the cl*** anyway
<2> but.. does java even have statics?
<2> :P
<4> Tamama: I can'T see the difficulty with double definitions, actually. What could cause it?
<2> DrkMatter: it would be an issue for the linker, not the compiler
<1> how about c++0x? maybe there is some technical report about this?
<4> I still don't see how it's an issue for the linker... The static variable definition dosn't seem worse than the function tables. but my knowledge on that subject is limited.
<1> it might be a problem with external linkage.
<2> well
<1> imagine if you have objects defined internally and linked externally
<4> cynic_X_ If that was the case, would there be two copies of the different functions defined in the object?
<1> DrkMatter, I have no idea how it would be handled.
<3> mmm... im trying to use it but it dont seen to work :(
<3> i must be doing something wrong
<2> double defined functions is less terrible than double defined statics when that wasnt wanted :P
<4> Well, I guess the difference is that functions can be jsut added at compile time, whereas static object initialization has to be at run-time...
<4> Bah, I'm too tired to think about this.
<1> SSPecteR, yes, you can paste code to the topic website
<1> errors commented underneath the code would be also good
<1> and shorter code the better
<3> im trying this:
<3> template <cl*** T> Application Singletron<T>::mSingletron= 0;
<2> typename T
<4> I'm pretty sure it's a "Singleton", not a singletron. =P
<1> maybe his singleton is called a singletron
<3> yeah :)
<2> maybe he also has a megatron
<4> Maybe he's working for the Master Control Program.
<3> no, its because a lib im using a spacename already have a Singeton, and i dont want to get confused by it. Anyway im just testing it :P
<1> great, a problem with an answer in it
<1> written backwards
<4> It would have been more fun if you'd been working for the MCP. Oh well.
<2> namespace SSPecter { namespace Singleton { } }
<3> now im trying this
<3> template <typename T> Application Singletron<T>::singletron= 0;
<3> no gold :(
<2> what is Application ?
<1> what's teh error?
<2> ah right.. a type :P
<2> didnt you say it wa supposed to be a pointer_
<2> ?
<3> Application is a decendent of Singletron
<3> expected init-declarator before < token
<3> thats the error
<2> compiler name/version?
<3> CodeBlocks 1 rc2
<3> gcc
<2> version?
<2> <3.1 == try upgrading
<3> wait


Name:

Comments:

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






Return to #c++
or
Go to some related logs:

joe demicoli kemmuna air ways
#chatzone
my walmart executable error
#linux
nocti css
LD_PATH ubuntu
esey+friendship
#chatzone
PERLHOME windows
#linux



Home  |  disclaimer  |  contact  |  submit quotes