Wow, that must be nice. Here in NY, there are not only a lot of billboards, but people even park old semi trailers beside the highway and paint ads on them. Very, very ugly.
REH
Different language, but I wrote a C++ class that would range check it's value. The class uses templates to completely remove unnecessary checks at compile time. For example, assume that type R is an unsigned integer with a range of [0,100]. In the following code snippet (where x, y, and z are all of type R), the compiler will remove all but two checks (divide by zero on the division, and the upper bound when assigning the result to r.
const R a = 5, b = 7, c = 1;
R r = ((x + a) * (y + b)) / (z - c);
None of the other checks are necessary because the intermediate results cannot possibly overflow the integral type used to hold them. Tests have shown that the static analysis done can decrease execution times (over code that checks every operation) by a factor of 10 or more (of course it all depends on the actual expressions).
An int cannot be "anything it wants to be." It is required to be at least 16 bits. All the primative types have size guarantees. int is special, though. It is usually choosen to be the target machine's most effienct size. Plus, the latest C standard defines typedefs for particularly sized integers.
Ada allows you do what you want. You want an integer that is always 32 bits:
type Int32 is new Integer range -2**31.. 2**31 - 1;
for Int32'size use 32;
1) The preprocessor has not concept of "sizeof"
2) sizeof(unsigned char)is always 1 by definition
3) The latest ISO C standard already provides these types
I guess I never took my college days for granted. I worked full-time at a minimum wage job, and drovee an hour everyday to attend college (where I was also full-time). I also had a new born daughter at home. I worked at that job for 10 years, attending college when I could afford it (about six of those years). I really came to resent the brats at the college whining because they had too much homework, or had to go to class, or that the BMW mommy and daddy bought them didn't have the options they wanted. I am torn now because I have the money to ensure my daughter doesn't go through what I did, but I also do not want her to be one of those brats.
I'm with you. I am so sick of all the powerpoint-mania these days. Everytime someone presents at work, they have to put up their ugly slides using the same tired stock images as everyone else. Of course, people are constantly asking me to "make some slides" on X.
Years ago I had a psychology teacher who banned tape recorders from his lectures, and the tests required VERBATIM transcriptions of what he said in class (no joke). He was a fast talker too! I barely passed that class.
That's nice, except interest is compounded on a daily basis and there is usually a grace period in which you can payoff the balance before the interest starts accumulating. You cannot determine the interest you will pay on a debt by simply multiplying the principle by the APR.
This isn't a lineprinter, it's a dumb terminal for the PDP-11 that used paper instead of a screen. Back in the early 80's I wasted a lot of time (and paper) playing Adventure on one of these.
Then I apologize. I never stopped to think English might be a second language to you. I had pictured a typical teenager here in the US opening his mouth and showing his ignorance. Instead I have shown mine. I am sorry. You've got to admit is was a funny statement though, given the context.
Is that the best you can come up with, a ridiculous argument about air and water? If I go and copy company records, that is theft and is prosecuted as such. I have not deprived anyone of them. Now you back to class and pay attention.
Wow, that must be nice. Here in NY, there are not only a lot of billboards, but people even park old semi trailers beside the highway and paint ads on them. Very, very ugly. REH
Different language, but I wrote a C++ class that would range check it's value. The class uses templates to completely remove unnecessary checks at compile time. For example, assume that type R is an unsigned integer with a range of [0,100]. In the following code snippet (where x, y, and z are all of type R), the compiler will remove all but two checks (divide by zero on the division, and the upper bound when assigning the result to r.
const R a = 5, b = 7, c = 1;
R r = ((x + a) * (y + b)) / (z - c);
None of the other checks are necessary because the intermediate results cannot possibly overflow the integral type used to hold them. Tests have shown that the static analysis done can decrease execution times (over code that checks every operation) by a factor of 10 or more (of course it all depends on the actual expressions).
An int cannot be "anything it wants to be." It is required to be at least 16 bits. All the primative types have size guarantees. int is special, though. It is usually choosen to be the target machine's most effienct size. Plus, the latest C standard defines typedefs for particularly sized integers.
.. 2**31 - 1;
Ada allows you do what you want. You want an integer that is always 32 bits:
type Int32 is new Integer range -2**31
for Int32'size use 32;
1) The preprocessor has not concept of "sizeof" 2) sizeof(unsigned char)is always 1 by definition 3) The latest ISO C standard already provides these types
Agreed. I remember VAX fonding, both from College and my first software job.
I guess I never took my college days for granted. I worked full-time at a minimum wage job, and drovee an hour everyday to attend college (where I was also full-time). I also had a new born daughter at home. I worked at that job for 10 years, attending college when I could afford it (about six of those years). I really came to resent the brats at the college whining because they had too much homework, or had to go to class, or that the BMW mommy and daddy bought them didn't have the options they wanted. I am torn now because I have the money to ensure my daughter doesn't go through what I did, but I also do not want her to be one of those brats.
I'm with you. I am so sick of all the powerpoint-mania these days. Everytime someone presents at work, they have to put up their ugly slides using the same tired stock images as everyone else. Of course, people are constantly asking me to "make some slides" on X.
I once had a professor that was fond of saying, "education is the one thing you pay so much for, hoping to get so little of."
Years ago I had a psychology teacher who banned tape recorders from his lectures, and the tests required VERBATIM transcriptions of what he said in class (no joke). He was a fast talker too! I barely passed that class.
You forget to charge for the shredder's electricity usage, as well as wear-and-tear. Oh, and don't forget disposal!
Damn forgot the link! http://www.inform-fiction.org/
Remember? It never went away.
That's nice, except interest is compounded on a daily basis and there is usually a grace period in which you can payoff the balance before the interest starts accumulating. You cannot determine the interest you will pay on a debt by simply multiplying the principle by the APR.
What credit card are you using that charges 15% a week???
You moved your head, but your eyes still track to the screen. They are not static the way your ears are.
I know it's a joke, but it's not really true. 1m spheres in different inertial frames will not be the same size.
This isn't a lineprinter, it's a dumb terminal for the PDP-11 that used paper instead of a screen. Back in the early 80's I wasted a lot of time (and paper) playing Adventure on one of these.
And the award for "The Best Use of a TV Reference" goes to.....Mechanik!
No sure what you're joke is. Mine was from "History of The Word, Part 1."
I give you these 15...CRASH...10 commandments!
Then I apologize. I never stopped to think English might be a second language to you. I had pictured a typical teenager here in the US opening his mouth and showing his ignorance. Instead I have shown mine. I am sorry. You've got to admit is was a funny statement though, given the context.
Most people are able to learn their children basic skills, read, write, basic math, basic science
...or maybe not.
I think Occam's might not be of use here. One theory has dark matter, the other has a new particle. I think it might be a wash.
Is that the best you can come up with, a ridiculous argument about air and water? If I go and copy company records, that is theft and is prosecuted as such. I have not deprived anyone of them. Now you back to class and pay attention.
Not where I live. All the closed and complete boxes are right on the customer shelves. You just grab one and pay for it. Are in a high-crime area?