DSPRelated.com
Forums

horrible C indexing

Started by Grant Griffin April 1, 2006
Scott Seidman wrote:
..
> I should have known that a bunch of guys who can't understand a ones-based > index system would spell phonetically. Were you overwhelmed when Crayola > made the jump to 96-color boxes?
Personally, I was overwelmed by the 24-pack: that's 4 more than the number of fingers I've got, including toes. =g2 _____________________________________________________________________ Grant R. Griffin Publisher of dspGuru http://www.dspguru.com Iowegian International Corporation http://www.iowegian.com See http://www.iowegian.com/img/contact.gif for e-mail address
Grant Griffin <nospam@yahoo.com> wrote in
news:2bcf4$4431b3b8$4088dbc7$15005@EVERESTKC.NET: 

> Scott Seidman wrote: > .. >> I should have known that a bunch of guys who can't understand a >> ones-based index system would spell phonetically. Were you >> overwhelmed when Crayola made the jump to 96-color boxes? > > Personally, I was overwelmed by the 24-pack: that's 4 more than the > number of fingers I've got, including toes. > > =g2 > _____________________________________________________________________ > > Grant R. Griffin > Publisher of dspGuru http://www.dspguru.com > Iowegian International Corporation http://www.iowegian.com > See http://www.iowegian.com/img/contact.gif for e-mail address >
Perhaps if the 24-pack were indexed starting with -13 you would be able to get a grip on it. -- Scott Reverse name to reply
Scott Seidman wrote:
> Grant Griffin <nospam@yahoo.com> wrote in
...
>> Personally, I was overwelmed by the 24-pack: that's 4 more than the >> number of fingers I've got, including toes.
...
> > Perhaps if the 24-pack were indexed starting with -13 you would be able to > get a grip on it.
(And who says Matminions have no sense of humor. ;-) =g2 _____________________________________________________________________ Grant R. Griffin Publisher of dspGuru http://www.dspguru.com Iowegian International Corporation http://www.iowegian.com See http://www.iowegian.com/img/contact.gif for e-mail address
Al Clark skrev:
> Press - Release > > April II, MMVI > (April 1, 2006 for those barbarian 0 index DSP guys) > > After careful consideration, Mathwork's Clive Moler had this announcement > to make: > > It's been brought to our attention that many of our DSP customers are > unhappy with our choice of one-based indexing. We were relieved when dsp- > guru, Grant Grifffn made such a fine argument supporting our long held > convention. Since Mr Griffin is clearly the leader of all the DSP > community, being the dsp-guru and all, we believe we can now put this > matter to rest. > > We also did some historical research. The Romans created many engineering > marvels during the height of their empire and they did not use 0 in their > numbering system. It is our belief that DSP barbarians (with their > heretical 0 based numbering notions), invaded from the north and set back > Western Civilization for over a thousand years.
Heyheyhey! Northeners might have made one or two contributions to the western civilization. The Norwegian Leiv Eriksson was, for instance, the first European known to set foot on american soil some 500 years before that italian guy. The venerable Eriksson was also one of the most influental spin doctors in history; he gave Greenland its name. In the other direction, the Swedes were instrumental in establishing villages like Moscow and Kiev, that some people might have heard of. However, although its impact in history is completely in line with the arguably humble style of Northern contributions, the number "0" was not a northern contribution. I think maybe the Hordes from the East might have been more to blame for that particular one. Wasn't Attila educated by the Romans? Maybe we are looking at a case of knowing the enemy and exploiting his weak spot. Rune
"Rune Allnor" <allnor@tele.ntnu.no> wrote in
news:1144154357.541269.180450@i39g2000cwa.googlegroups.com: 

> > Al Clark skrev: >> Press - Release >> >> April II, MMVI >> (April 1, 2006 for those barbarian 0 index DSP guys) >> >> After careful consideration, Mathwork's Clive Moler had this >> announcement to make: >> >> It's been brought to our attention that many of our DSP customers are >> unhappy with our choice of one-based indexing. We were relieved when >> dsp- guru, Grant Grifffn made such a fine argument supporting our >> long held convention. Since Mr Griffin is clearly the leader of all >> the DSP community, being the dsp-guru and all, we believe we can now >> put this matter to rest. >> >> We also did some historical research. The Romans created many >> engineering marvels during the height of their empire and they did >> not use 0 in their numbering system. It is our belief that DSP >> barbarians (with their heretical 0 based numbering notions), invaded >> from the north and set back Western Civilization for over a thousand >> years. > > Heyheyhey! > > Northeners might have made one or two contributions to the western > civilization. The Norwegian Leiv Eriksson was, for instance, the first > European known to set foot on american soil some 500 years before that > italian guy. The venerable Eriksson was also one of the most > influental > > spin doctors in history; he gave Greenland its name. In the other > direction, > the Swedes were instrumental in establishing villages like Moscow and > Kiev, that some people might have heard of. > > However, although its impact in history is completely in line with the > arguably humble style of Northern contributions, the number "0" was > not a northern contribution. > > I think maybe the Hordes from the East might have been more to blame > for that particular one. Wasn't Attila educated by the Romans? > Maybe we are looking at a case of knowing the enemy and exploiting > his weak spot. > > Rune > >
I think 0 was a Arabic invention, but I didn't want to give George Bush another justification for the war in Iraq. I have to confess that I often count from 0 and almost all of my ancestors would have been European "barbarians" during the fall of the Roman empire. Maybe I took a small liberty. -- Al Clark Danville Signal Processing, Inc. -------------------------------------------------------------------- Purveyors of Fine DSP Hardware and other Cool Stuff Available at http://www.danvillesignal.com
Al Clark skrev:
> "Rune Allnor" <allnor@tele.ntnu.no> wrote in
> > However, although its impact in history is completely in line with the > > arguably humble style of Northern contributions, the number "0" was > > not a northern contribution. > > > > I think maybe the Hordes from the East might have been more to blame > > for that particular one. Wasn't Attila educated by the Romans? > > Maybe we are looking at a case of knowing the enemy and exploiting > > his weak spot. > > > > Rune > > > > > > I think 0 was a Arabic invention, but I didn't want to give George Bush > another justification for the war in Iraq.
Some might find this one interesting: http://www.aftonbladet.se/vss/nyheter/story/0,2789,803619,00.html Apparently, Bush is a decendant from "the rebellion and tobacco farmer M=E5ns Andersson" who crossed the pond in 1639. According to the newspaper, many of the Swedes who crossed in that era were "criminals or soliders" who "did not fit" in the Swedish community of the time. Rune
"Grant Griffin" <nospam@yahoo.com> wrote in message 
news:4a503$442e975f$4088dbc7$1304@EVERESTKC.NET...
> Am I the only person who's noticed that C's zero-based indexing is nothing > short of...well...horrible? And it doesn't end there: C has been so > influential that its insanity has spread to tons of other languages: C++, > Java, C#, Python, Perl--heck, even LISP. >
The simple solution is fortran. Now that its possible to do fully object oriented programming using fortran 2003 with no need to use a single goto, there is no reason that all dsps can not be programmed in fortran. Alex