In the days of 8-bit micros, as games became more advanced, allegedly self-modifying code was used to get enough stuff in the sparse RAM available and for performance reasons when a dynamically-modified unrolled loop was required IIRC.
In my experience, it was mostly used to save a level of indirection. Loading an immediate value was faster than loading a value through an address.
Suppose you had to loop x times, where x periodically changes. You could do
LDA #0 loop: CMPA $x
BEQ exit
INCA
BRA loop exit:
Each CMPA with contents of address x might cost you 5 cycles. Instead, you might do
LDA $x
STA $loop+1// immediate field of CMPA instruction
LDA #0 loop: CMPA #0// 0 is dummy value to be over-written
BEQ exit
INCA
BRA loop exit:
Now the CMPA #whatever takes only 2 cycles and you get some more speed.
In fact, since being on unemployment would encourage that person to engage in consumer spending, it might encourage companies to grow, thus maybe eventually encouraging those companies to start hiring more people... no?
No.
Consumer spending is in this case is really an example of forcing companies to give products away for free.
It's very easy when discussing economic issues to focus on the movement of money. It's better, instead, to focus on the movement of goods and the human activity needed to produce them.
In the example of paying unemployment, a portion of the money people earn is used to pay unemployment tax. The people collecting the tax money through unemployment then spend it. This money is taxed again by those being paid by the person on unemployment and the cycle continues.
But look at the movement of goods and services. When you do that, it's easy to see that those working are essentially providing free goods and services to those collecting unemployment.
So rather than being stimulating, such taxation and spending is actually increasing the burden on those working in order to provide for who are not, while those collecting the unemployment money are not themselves contributing to the production of goods and services.
Companies left and right are outsourcing their back office services to 3rd world countries, laying off their domestic, money spending, big TV buying, SUV driving, gas guzzling, employees and then wondering why in the hell no one is buying their products.
They lay off their workforce then sit there crying that no one is around to buy their products? Screw them. Let them reap what they are sowing.
People in these countries ARE buying American products. That's where some of our exports go.
People don't earn dollars so they can just stuff their matresses. They earn dollars to buy things like anyone else. Eventually, those dollars purchase American goods.
No it hasn't. It's been invested. Corporations don't send money, they expect a good return on their investment. There's not a corporate penny that's been "sent" without this expectation.
Whatever.
The net effect is that corporations give more money to poor people than you do, whatever they expect in return -- computer, sneaker, or otherwise.
If you can find a better way to get people (how about yourself?) to send money, do it.
The trouble is that many people here believe "think for yourself" means "take every position that is opposite those that are politically conservative/politicaly on the right".
That's not the same thing as thinking for yourself.
Well I'm not the Original Poster but I'd say using 3rd world labor for pennies on the hour to make clothes would be a good example of "ruining peoples lives". Many American and European corporations do just that.
More money has been sent to third world children by corporations than any telethon.
It's not "ruining peoples lives". It's saving them.
If you want to do more for them, please do. Any money you send will be helpful. They would much rather not have to work for what they need. But for now, the only way they'll get most people's money is if those people get a pair of Nikes or a computer in return.
Yeah. After you followed him. You were stupid enough to leave your home and follow someone who was obviously an asshole. What did you expect, flowers and a kiss?
It disturbs me that there are so many here willing to simply pile on rather than offer more constructive criticism.
I mean, I get shit on by some asshole, relate the story here, then get shit on again.
I know, I know, "what did you expect, flowers and a kiss?"
I think there's a limit on how loud an FM broadcast can be. And what's the point of changing the frequency of a square wave? A square wave is the sum of all frequencies already, IIRC.
YDRC,DA.
A square wave is the sum of the fundamental and all odd harmonics.
He was just listening to music, which irritated. You on the other hand decided to follow him around honking your horn, which is a deliberately irritating act.
You're wrong.
It's obvious that loud bass disturbs others, yet he continues to do it. That is a deliberately irratating act.
So I go to do the same and I'm the bad guy?
The hilarious thing is that you can go around following people, acting like a jerk, but when they do the same thing you freak out, call the cops, and 'get afraid for your life'. Hah, what a pussy. Oh, I forgot. He's a thug.
I didn't follow him around honking. He drove by my house and pulled into a driveway about 2 blocks from me. I drove by and honked my horn.
He then chased me and at times tried to play chicken with me by driving head on at me in the wrong lane. He was insane.
But go ahead and defend him. I suspect you're just as much an asshole as he is.
You're right. Loud cars are the reason for widespread crime! WE MUST DO SOMETHING!
Loud cars represent an adversarial outlook towards the rest of society. It's obvious that loud music irritates others, yet it continues. For some this is their very object. They wish to disturb others.
Now, what sort of person does such a thing?
It's that outlook towards others that can translate into criminal behavior and conflict with others.
I never chased him. He drove by my house and parked about 2 blocks away. I got in my car, drove by the house and honked. I never chased him.
I also never threatened his life. He threatened mine. He was an angry young man that wanted a fight. I explained why it was I did what I did, but he simply wanted to kick my ass. I never wanted to fight and I would have lost anyway. He was huge and agressive.
c: Learn from b: and also realize that 'those people' are usually people just like you and I, they just happen to be touching a raw nerve you have exposed.
I really wish that were the case, but I don't think it's true.
It's obvious that such loud music is going to disturb others, isn't? For some people with loud bass, that's the whole point.
Now, knowing that others are forced to listen, they continue. Why? What psychology is it that turns off that part of the conscience that takes the effects of one's action on others in to account? I have it. Those that bass with the object to disturb others, don't have it or have turned it off.
There is a reason the original poster used the word "sociopathic". They aren't like the rest of us. They often have a much more adversarial outlook and bassing is one expression of that.
It's important to me that I live in peace with others. What makes me very angry is that for some others, conflict is just part of getting their way. They don't desire peace. Again, such people are different from me.
You say "we're supposed to be civilized" yet you complain that we find fault with you when you participate in childish annoying tit for tat noise games.
Civilization starts with you.
Ok. So what is a civilized person to do? I'm the bad-guy in all this. Help me. Let's hear your solution.
Oh, you mean they say you can't shoot someone for playing loud annoying music? How impractical!
RTFP.
The guy threatened me because I honked my horn at him.
And yes, the laws are impractical and that's why many innocent people get killed. The guy practically has to have his hands around your neck before you can do anything.
Now, I agree that someone who does this sort fo thing probably deserves to get thier ass beat,
Deserves? If he can make noise, why can't I?
Oh, I forgot. He's a thug.
And that's why this whole thing pisses me off. We're supposed to be civilized. Rules governing noise are supposed to prevent conflicts like this, but because of weak enforement, it comes down to who can be the biggest bully.
Yeah, it's getting so you can't even follow around gangsters in your car honking angrily at them without them chasing you back anymore.
Ok. So what do you recommend? I'm looking for a solution.
Again, it seems that I really have no options. People like this thug do what they do because they are more aggressive and willing to go to jail if they have to and I have too much to lose.
It's called prioritizing. "Deal with shooting or deal with guy who's being followed by some teenager punk.
I think I made it clear that I was in fear for my life. That's not a priority? Maybe I should have just crashed into him. An accident is bound to draw at least one police officer (I hope).
How about looking up the noise ordinances, instead? Most cities and towns have 'em. NY, for example, is getting very tough on noise complaints (I believe you dial 311, ie the non-emergency number?) Borrow a neighbor's video camera (they'll be happy to oblige if it's annoying them as well) and videotape the clown going by- be sure to get a closeup of his face, and his plates. Call the NON EMERGENCY ie business number for the local station, ask to set up an appointment with an officer or detective. Problem solved and out of your hands.
The first thing I did was look at the laws regarding noise and their enforcement. In essense, a police officer must both see and hear the noise for himself before he can issue a citation. No second hand accounts.
Um- duh. Get away from him, file a police report later with the plates and vehicle description.
Look. I don't know what you drive, but I've got a 94 Ford Escort Wagon. He was in a muscle SUV. He didn't want me to get away.
You've also hit upon why I carry a Bronx Calling Card, aka 3-D-cell Maglight, in my front door pocket.
Well then you're being a dick and I don't give a sh1t what happens to you.
I mean, if you gave a rat's ass about me, you'd turn it down, but you don't. So why should anyone care about what happens to you? I hope someone punches you in mouth and teaches you how to share the atmosphere with others.
The atmosphere happens to act as a giant lowpass filter. That means over a distance you hear bass long after higher frequencies have faded.
And as someone whose suffered the effects of this, I have to ask: do people put these things in their cars just to be assholes? Seriously, what's the motivation? Isn't it obvious you're disturbing others around you? Is it that you just don't care?
Hey, I know! Let's find motorists with sociopathic tendencies and piss 'em off! What could possibly go worng?
You're not kidding.
I live on a street where these assholes like to drive up and down while bassing. Well, one day, I got really pissed. I'm trying to work in my den on a project and the constant noise just won't stop.
So finally I follow one of these guys to see where he ended up. I honked my horn rythmically as I drove by.
Next thing I know the guy is chasing me around trying to run me off the road. I called 911 and get, I not am sh1tting you "we're really busy right now" and I'm asked to call another number where I'm put on hold listening to how my city has this great new newsletter. "Please download Adobe Acrobat Reader to view the newsletter".
Finally someone comes back on and tells me I might as well drive to the police station. Hey, great idea. Lots of police there. Well, that doesn't stop him.
I sit in the police parking lot for 30 minutes while this guy tells me how I'd better not do that again or I'll be sorry. He is insane.
Oh, the FIRST time I followed someone, they took me into da'hood where I drove through what looked like a riot and was almost hit by a driver fleeing police. You'd think I would have learned the first time.
The really depressing thing is realizing that I'm essentially powerless. People can be a55holes and threaten your life and you can't do anything. Why? Because I have to follow the law while they have nothing to lose.
I later went back to look at the laws in my state governing self-defense. They are totally impractical. The legal system is set up in such a way that you really have to let the animals control the streets.
That's bad policy making not an inability to make pantyhose and doesn't come about as a result of not having money it comes from the cold war. If there was no cold war, the world would probably be a Socialist world with far less crime. We have American capitalism to blame for that. The fundamental idea of a society without greed is totally plausible. It is hunman beings that soil it.
A theory regarding social organization the relies on changing human nature is a poor theory.
Wrong, it was proof of nothing. All tht you can infer is that hunger for spiritless materialistic wealth was still in the heart of most people in the West. Some day we will be ready...
Well, that hunger is enough to make toothpaste, pantyhose, and soap powder, and without those things you have the collapse of an entire country. Don't think so?
Mikhail Gorbachev:
It was a shame, and I continue to say that it was a shame, that during the final years under Brezhnev, we were planning to create a commission headed by the secretary of the Central Committee, [Ivan V.] Kapitonov to solve the problem of women's pantyhose. Imagine a country that flies into space, launches Sputniks, creates such a defense system, and it can't resolve the problem of women's pantyhose. There's no toothpaste, no soap powder, not the basic necessities of life. It was incredible and humiliating to work in such a government. And so our people were already worked up, and that is why the dissident movement occurred.
That "hunger for spiritless materialistic wealth" wasn't limited to just the West.
In the days of 8-bit micros, as games became more advanced, allegedly self-modifying code was used to get enough stuff in the sparse RAM available and for performance reasons when a dynamically-modified unrolled loop was required IIRC.
// immediate field of CMPA instruction // 0 is dummy value to be over-written
In my experience, it was mostly used to save a level of indirection. Loading an immediate value was faster than loading a value through an address.
Suppose you had to loop x times, where x periodically changes. You could do
LDA #0
loop: CMPA $x
BEQ exit
INCA
BRA loop
exit:
Each CMPA with contents of address x might cost you 5 cycles. Instead, you might do
LDA $x
STA $loop+1
LDA #0
loop: CMPA #0
BEQ exit
INCA
BRA loop
exit:
Now the CMPA #whatever takes only 2 cycles and you get some more speed.
"x, y = y, x Save me a temporary variable, w00t. "
You think it saves you another variable. In reality, a temporary variable gets used underneath that, because that's how computers work.
Depends on what you mean by a variable.
Suppose the compiler does something like
ld R1, $x
ld R2, $y
st $x, R2
st $y, R1
Are you claiming the registers are temporary variables?
There are also instructions on some microprocessors that will permute groups of objects. I think SSE supports that.
In fact, since being on unemployment would encourage that person to engage in consumer spending, it might encourage companies to grow, thus maybe eventually encouraging those companies to start hiring more people... no?
No.
Consumer spending is in this case is really an example of forcing companies to give products away for free.
It's very easy when discussing economic issues to focus on the movement of money. It's better, instead, to focus on the movement of goods and the human activity needed to produce them.
In the example of paying unemployment, a portion of the money people earn is used to pay unemployment tax. The people collecting the tax money through unemployment then spend it. This money is taxed again by those being paid by the person on unemployment and the cycle continues.
But look at the movement of goods and services. When you do that, it's easy to see that those working are essentially providing free goods and services to those collecting unemployment.
So rather than being stimulating, such taxation and spending is actually increasing the burden on those working in order to provide for who are not, while those collecting the unemployment money are not themselves contributing to the production of goods and services.
Companies left and right are outsourcing their back office services to 3rd world countries, laying off their domestic, money spending, big TV buying, SUV driving, gas guzzling, employees and then wondering why in the hell no one is buying their products.
They lay off their workforce then sit there crying that no one is around to buy their products? Screw them. Let them reap what they are sowing.
People in these countries ARE buying American products. That's where some of our exports go.
People don't earn dollars so they can just stuff their matresses. They earn dollars to buy things like anyone else. Eventually, those dollars purchase American goods.
This modest experiment suggests that most people, if given the chance, will not pay for software that they should pay for.
The experiment found that only about 1 in 5 will "do the right thing" and pay.
No it hasn't. It's been invested. Corporations don't send money, they expect a good return on their investment. There's not a corporate penny that's been "sent" without this expectation.
Whatever.
The net effect is that corporations give more money to poor people than you do, whatever they expect in return -- computer, sneaker, or otherwise.
If you can find a better way to get people (how about yourself?) to send money, do it.
Think for yourself
Oh, I think we all agree with that.
The trouble is that many people here believe "think for yourself" means "take every position that is opposite those that are politically conservative/politicaly on the right".
That's not the same thing as thinking for yourself.
Well I'm not the Original Poster but I'd say using 3rd world labor for pennies on the hour to make clothes would be a good example of "ruining peoples lives". Many American and European corporations do just that.
More money has been sent to third world children by corporations than any telethon.
It's not "ruining peoples lives". It's saving them.
If you want to do more for them, please do. Any money you send will be helpful. They would much rather not have to work for what they need. But for now, the only way they'll get most people's money is if those people get a pair of Nikes or a computer in return.
Yeah. After you followed him. You were stupid enough to leave your home and follow someone who was obviously an asshole. What did you expect, flowers and a kiss?
It disturbs me that there are so many here willing to simply pile on rather than offer more constructive criticism.
I mean, I get shit on by some asshole, relate the story here, then get shit on again.
I know, I know, "what did you expect, flowers and a kiss?"
I suppose I did expect more. My mistake.
I think there's a limit on how loud an FM broadcast can be. And what's the point of changing the frequency of a square wave? A square wave is the sum of all frequencies already, IIRC.
YDRC,DA.
A square wave is the sum of the fundamental and all odd harmonics.
It's a pulse that contains all frequencies.
He was just listening to music, which irritated. You on the other hand decided to follow him around honking your horn, which is a deliberately irritating act.
You're wrong.
It's obvious that loud bass disturbs others, yet he continues to do it. That is a deliberately irratating act.
So I go to do the same and I'm the bad guy?
The hilarious thing is that you can go around following people, acting like a jerk, but when they do the same thing you freak out, call the cops, and 'get afraid for your life'. Hah, what a pussy. Oh, I forgot. He's a thug.
I didn't follow him around honking. He drove by my house and pulled into a driveway about 2 blocks from me. I drove by and honked my horn.
He then chased me and at times tried to play chicken with me by driving head on at me in the wrong lane. He was insane.
But go ahead and defend him. I suspect you're just as much an asshole as he is.
You're right. Loud cars are the reason for widespread crime! WE MUST DO SOMETHING!
Loud cars represent an adversarial outlook towards the rest of society. It's obvious that loud music irritates others, yet it continues. For some this is their very object. They wish to disturb others.
Now, what sort of person does such a thing?
It's that outlook towards others that can translate into criminal behavior and conflict with others.
I never chased him. He drove by my house and parked about 2 blocks away. I got in my car, drove by the house and honked. I never chased him.
I also never threatened his life. He threatened mine. He was an angry young man that wanted a fight. I explained why it was I did what I did, but he simply wanted to kick my ass. I never wanted to fight and I would have lost anyway. He was huge and agressive.
c: Learn from b: and also realize that 'those people' are usually people just like you and I, they just happen to be touching a raw nerve you have exposed.
I really wish that were the case, but I don't think it's true.
It's obvious that such loud music is going to disturb others, isn't? For some people with loud bass, that's the whole point.
Now, knowing that others are forced to listen, they continue. Why? What psychology is it that turns off that part of the conscience that takes the effects of one's action on others in to account? I have it. Those that bass with the object to disturb others, don't have it or have turned it off.
There is a reason the original poster used the word "sociopathic". They aren't like the rest of us. They often have a much more adversarial outlook and bassing is one expression of that.
It's important to me that I live in peace with others. What makes me very angry is that for some others, conflict is just part of getting their way. They don't desire peace. Again, such people are different from me.
You say "we're supposed to be civilized" yet you complain that we find fault with you when you participate in childish annoying tit for tat noise games.
Civilization starts with you.
Ok. So what is a civilized person to do? I'm the bad-guy in all this. Help me. Let's hear your solution.
Oh, you mean they say you can't shoot someone for playing loud annoying music? How impractical!
RTFP.
The guy threatened me because I honked my horn at him.
And yes, the laws are impractical and that's why many innocent people get killed. The guy practically has to have his hands around your neck before you can do anything.
Now, I agree that someone who does this sort fo thing probably deserves to get thier ass beat,
Deserves? If he can make noise, why can't I?
Oh, I forgot. He's a thug.
And that's why this whole thing pisses me off. We're supposed to be civilized. Rules governing noise are supposed to prevent conflicts like this, but because of weak enforement, it comes down to who can be the biggest bully.
Yeah, it's getting so you can't even follow around gangsters in your car honking angrily at them without them chasing you back anymore.
Ok. So what do you recommend? I'm looking for a solution.
Again, it seems that I really have no options. People like this thug do what they do because they are more aggressive and willing to go to jail if they have to and I have too much to lose.
So, what do I do?
You're a freaking genius.
Fuck you, you dickhead. I wanted some god damned peace. You don't give a sh1t, well fuck you.
What did you expect? If you were following me around, honking your horn. I'd corner you into a sidestreet and beat the crap out of you...
I didn't follow him around. I honked as I drove by the house.
Still, I think maybe you're right. Someone making irritating noise (bassing for instance) should get their ass kicked.
It's called prioritizing. "Deal with shooting or deal with guy who's being followed by some teenager punk.
I think I made it clear that I was in fear for my life. That's not a priority? Maybe I should have just crashed into him. An accident is bound to draw at least one police officer (I hope).
How about looking up the noise ordinances, instead? Most cities and towns have 'em. NY, for example, is getting very tough on noise complaints (I believe you dial 311, ie the non-emergency number?) Borrow a neighbor's video camera (they'll be happy to oblige if it's annoying them as well) and videotape the clown going by- be sure to get a closeup of his face, and his plates. Call the NON EMERGENCY ie business number for the local station, ask to set up an appointment with an officer or detective. Problem solved and out of your hands.
The first thing I did was look at the laws regarding noise and their enforcement. In essense, a police officer must both see and hear the noise for himself before he can issue a citation. No second hand accounts.
Um- duh. Get away from him, file a police report later with the plates and vehicle description.
Look. I don't know what you drive, but I've got a 94 Ford Escort Wagon. He was in a muscle SUV. He didn't want me to get away.
You've also hit upon why I carry a Bronx Calling Card, aka 3-D-cell Maglight, in my front door pocket.
Excellent idea.
What if I am that guy?
Well then you're being a dick and I don't give a sh1t what happens to you.
I mean, if you gave a rat's ass about me, you'd turn it down, but you don't. So why should anyone care about what happens to you? I hope someone punches you in mouth and teaches you how to share the atmosphere with others.
Windows may matter, but not much.
The atmosphere happens to act as a giant lowpass filter. That means over a distance you hear bass long after higher frequencies have faded.
And as someone whose suffered the effects of this, I have to ask: do people put these things in their cars just to be assholes? Seriously, what's the motivation? Isn't it obvious you're disturbing others around you? Is it that you just don't care?
Hey, I know! Let's find motorists with sociopathic tendencies and piss 'em off! What could possibly go worng?
You're not kidding.
I live on a street where these assholes like to drive up and down while bassing. Well, one day, I got really pissed. I'm trying to work in my den on a project and the constant noise just won't stop.
So finally I follow one of these guys to see where he ended up. I honked my horn rythmically as I drove by.
Next thing I know the guy is chasing me around trying to run me off the road. I called 911 and get, I not am sh1tting you "we're really busy right now" and I'm asked to call another number where I'm put on hold listening to how my city has this great new newsletter. "Please download Adobe Acrobat Reader to view the newsletter".
Finally someone comes back on and tells me I might as well drive to the police station. Hey, great idea. Lots of police there. Well, that doesn't stop him.
I sit in the police parking lot for 30 minutes while this guy tells me how I'd better not do that again or I'll be sorry. He is insane.
Oh, the FIRST time I followed someone, they took me into da'hood where I drove through what looked like a riot and was almost hit by a driver fleeing police. You'd think I would have learned the first time.
The really depressing thing is realizing that I'm essentially powerless. People can be a55holes and threaten your life and you can't do anything. Why? Because I have to follow the law while they have nothing to lose.
I later went back to look at the laws in my state governing self-defense. They are totally impractical. The legal system is set up in such a way that you really have to let the animals control the streets.
That's bad policy making not an inability to make pantyhose and doesn't come about as a result of not having money it comes from the cold war. If there was no cold war, the world would probably be a Socialist world with far less crime. We have American capitalism to blame for that. The fundamental idea of a society without greed is totally plausible. It is hunman beings that soil it.
A theory regarding social organization the relies on changing human nature is a poor theory.
Wrong, it was proof of nothing. All tht you can infer is that hunger for spiritless materialistic wealth was still in the heart of most people in the West. Some day we will be ready...
Well, that hunger is enough to make toothpaste, pantyhose, and soap powder, and without those things you have the collapse of an entire country. Don't think so?
Mikhail Gorbachev:
It was a shame, and I continue to say that it was a shame, that during the final years under Brezhnev, we were planning to create a commission headed by the
secretary of the Central Committee, [Ivan V.] Kapitonov to solve the problem of women's
pantyhose. Imagine a country that flies into space, launches Sputniks, creates such a defense
system, and it can't resolve the problem of women's pantyhose. There's no toothpaste, no
soap powder, not the basic necessities of life. It was incredible and humiliating to work in such
a government. And so our people were already worked up, and that is why the dissident
movement occurred.
That "hunger for spiritless materialistic wealth" wasn't limited to just the West.