Reply by Jerry Avins August 12, 20062006-08-12
Frederick wrote:
> Jerry Avins wrote:
...
>> Why should you be rounding to even? Rounding to even is a useful >> strategy for handling the midpoint case; 0.500 in decimal. What other >> benefit is there? > > It is slightly preferable to always rounding 0.5 up since it has less > bias. Not that I'm tweaky enough to really care.
Ah! you meant rounding *.5* to even. You didn't say that. To always round to even, you would round both 1.1 and 2.9 to 2. ... Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by Jerry Avins August 12, 20062006-08-12
cr88192 wrote:
> "Jerry Avins" <jya@ieee.org> wrote in message > news:XbqdnZ4LndPPJUHZnZ2dnUVZ_o-dnZ2d@rcn.net...
...
> academically, I have usually done poorly... > > >> Don't sell yourself short. >> > > people say that sometimes, but I often seem inadequate, or people ask me to > do things I am unable to do, ...
... I've proved to myself over and over that I'm no therapist, but I may be able to offer you some insight and encouragement accumulated over the last 74 years. Not here, though; you have my email, and if you write, I'll respond. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by cr88192 August 11, 20062006-08-11
"Jim Leonard" <MobyGamer@gmail.com> wrote in message 
news:1155336611.647519.257390@b28g2000cwb.googlegroups.com...
> Jerry Avins wrote: >> The days when Asperger's was thought to be a form of autism are over. >> The current view is that they're related like chimps and humans. That >> is, neither is a form of the other, but they share common roots. > > More specifically, the term being tossed around is "the autistic > spectrum", of which both easily (autism, Aspberger's Syndrome) and > difficult (PDDNOS) syndromes all lie on. >
yeah. I suspect though that the spectrums overlap some, but I don't know...
>> Don't sell yourself short. > > Most definitely. My son is PDDNOS; I myself am mostly normal :-) but > have some Aspberger leanings. All three of us (you being cr88192) > share the ability to "hyperfocus", which sucks for social situations > but is a great thing if you're a programmer hobbyist :-) >
yeah. I just wonder sometimes, I can write a fair amount of code, but rarely does it turn into anything particularly useful or meaningful (and I might have to eventually find a way to get a job or something). meanwhile, my family members don't always take such a positive view wrt my coding efforts. I also talk some to females, and may have improved some on this front. some will actually talk to me, and seemingly not just go away. I think part of the issue was related to distinguishing "interested" from "not interested". before I had just determined things based on "available or not available". if available I would gather more information, and if not I would leave them alone. but I have found that not all females that are available are interested in talking, and that not all females that seem interested in talking are available... which leads to awkward situations: I can try to talk casually to a female that is not available; I can try to talk casually to a female that is available but is not interested; ... then again, a female that is available, interested, has a job, ... would be particularly convinient... or such...
Reply by Frederick August 11, 20062006-08-11
Jerry Avins wrote:
> How does that work for base 2? Yes, it is interesting, and especially so > when B is not an integer.
It doesn't work for base 2! It will work for 2^n, n>1.
> Why should you be rounding to even? Rounding to even is a useful > strategy for handling the midpoint case; 0.500 in decimal. What other > benefit is there?
It is slightly preferable to always rounding 0.5 up since it has less bias. Not that I'm tweaky enough to really care. ObDSP, this form of signed digit representation can actually be useful when doing double-precision calculations on dsps. -Frederick Umminger
Reply by cr88192 August 11, 20062006-08-11
"Jerry Avins" <jya@ieee.org> wrote in message 
news:XbqdnZ4LndPPJUHZnZ2dnUVZ_o-dnZ2d@rcn.net...
> cr88192 wrote: > > ... > >> note that I am autistic (in particular, aspergers), but I am not entirely >> sure if this is related to all this... > > The days when Asperger's was thought to be a form of autism are over. The > current view is that they're related like chimps and humans. That is, > neither is a form of the other, but they share common roots. >
ok, well then... in any case, I seem to arguably also have some schizo traits as well, but in retrospect, I think I always have (albeit my interpretation of things has changed somewhat).
> I raised an Asperger's (adopted) grandson, and I see a lot of my early > self in him. I certainly understood his needs and limitations better than > any other adult in his life. He's about to enter his sophomore year in St. > Thomas University with a fantastic scholarship that he earned > academically. That's more than I could have done, and I did all right. >
academically, I have usually done poorly...
> Don't sell yourself short. >
people say that sometimes, but I often seem inadequate, or people ask me to do things I am unable to do, ... it is like, I write things in C (or sometimes C++), but someone (ok, my dad) wants me to write something in VB (as an access frontend), but I don't know VB, and it otherwise seems rather hacky and arbitrary (and very frustrating). then I don't get it done, and my skills are called useless since I can't seem to pull it off. comments are made like: no one pays anyone to write things in C, it is VB they will pay for, ... it is like, anymore, I can't deal with trial and error that well. I can deal with trial and tweaking (eg: optimizing, ...), but this is different. I think, I write, I test. yes, often a few things need to be fixed before it will work, but that is minor (this is very different than trial and erroring ones way through a larger project). most errors are misc stupid things that are no big deal, and not a general sense of "ok, I have no idea what it is I am doing...". my approach to gaining new knowlege is typically, I read stuff, and I think, and not so much by trial and erroring my way through things for which I don't understand. likewise, I was before going for a CS major, but he then decided to move me to a different college and have me go for an english major, under the idea that "people will actually pay for that". then again, even if I remain as a hobbyist, that is ok I guess... coding is not so much for credit or money in my case... or such... on a sidenote though, I recently hacked over a deflater of mine so that it supports much larger match lengths and a much larger window (up to 65538 char matches and a 4GB window). initial results look promising (compressing a 600kB text file to only a few hundred bytes worse than bzip2, which should be nearly 'optimal' in this case). the big problem right now is that encoding is terribly slow (decoding shound be about the same as before). this is because I had simply upscaled the string matching algo as well, but what works ok at 32kB, does not work so well at 16MB... I may revert this part back to only managing the most recent 64kB or so (or dropping it altogether should I implement a prefix tree). was considering different options for making the speed less terrible (simplest and easiest would be a big slightly-funky hash system, much more involved would be to use a prefix tree). the representation itself doesn't care much though, I can do whatever... I chose to simply expand the existing deflate structure as that is most elegant, and would probably work well enough in any case. the headers were changed a little (making them distinguishable from normal deflate headers, allowing a decoder to handle both cases). the headers are still very similar though... block type is 3, and another 4 bit type field is added; HLIT and HDIST have each been expanded to 6 bits (the representation is about the same as before, except that the pattern goes on a little further and can thus code much larger values); ... I spec'ed that the value of HDIST be used as a way to know the max window size for that block (in the decoder). now, it is quite possible that this number could be smaller, but I could probably also spec that the coder will set this to a value representative of the window size (if less values are used in coding, they are 0 filled to compensate). should be good enough... then again, the window size should not be set at some unreasonably large value, as a non-trivial decoder might actually care (or is useless to allocate 16 or 64MB for a 600kB file). or, no matches might actually use the full window size, so this makes it difficult. otherwise, it could work as normal, and the rule could be that, if a block is encountered with a distance table that is larger than the current window, then the window is to be expanded. this resolves the above problem, but is a potential hassle for the decoder (which would likely need to realloc the window and copy the old contents to the new one...). other problems could exist though (eg: a reference exists to a non-preserved area, ...). so yeah... or such...
> Jerry > -- > Engineering is the art of making what you want from things you can get. > &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by Jim Leonard August 11, 20062006-08-11
Jerry Avins wrote:
> The days when Asperger's was thought to be a form of autism are over. > The current view is that they're related like chimps and humans. That > is, neither is a form of the other, but they share common roots.
More specifically, the term being tossed around is "the autistic spectrum", of which both easily (autism, Aspberger's Syndrome) and difficult (PDDNOS) syndromes all lie on.
> Don't sell yourself short.
Most definitely. My son is PDDNOS; I myself am mostly normal :-) but have some Aspberger leanings. All three of us (you being cr88192) share the ability to "hyperfocus", which sucks for social situations but is a great thing if you're a programmer hobbyist :-)
Reply by Jerry Avins August 11, 20062006-08-11
Frederick wrote:
> The basic idea behind this number system generalizes to (almost) > arbitrary bases. In a usual base-B representation a number is > represented as a sum of powers of B where the coefficients are integers > in the interval [0, B). But you can just as easily represent numbers as > sums of powers of B where the coefficients are integers in the interval > [-B/2, B/2).
How does that work for base 2? Yes, it is interesting, and especially so when B is not an integer.
> This representation has some nice properties if you want to code > arbitrary-precision mathematics. First, you don't need a separate sign > bit or special handling for operations on numbers with different signs, > so the code is simpler and more uniform. Also, rounding is equivalent > to truncating (well, ignoring the fact that you should really be > rounding to even...). Negation is a little complicated, as are carry > operations, so it is not a clear win though.
You don't need to do anything special about a sign bit for 2's complement either. The same hardware adds signed and unsigned integers (and offset binary too). Only the significance of overflow differs. Why should you be rounding to even? Rounding to even is a useful strategy for handling the midpoint case; 0.500 in decimal. What other benefit is there? Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by Frederick August 11, 20062006-08-11
The basic idea behind this number system generalizes to (almost)
arbitrary bases. In a usual base-B representation a number is
represented as a sum of powers of B where the coefficients are integers
in the interval [0, B). But you can just as easily represent numbers as
sums of powers of B where the coefficients are integers in the interval
[-B/2, B/2).

This representation has some nice properties if you want to code
arbitrary-precision mathematics. First, you don't need a separate sign
bit or special handling for operations on numbers with different signs,
so the code is simpler and more uniform. Also, rounding is equivalent
to truncating (well, ignoring the fact that you should really be
rounding to even...). Negation is a little complicated, as are carry
operations, so it is not a clear win though.

-Frederick Umminger

Reply by Jerry Avins August 11, 20062006-08-11
cr88192 wrote:

   ...

> note that I am autistic (in particular, aspergers), but I am not entirely > sure if this is related to all this...
The days when Asperger's was thought to be a form of autism are over. The current view is that they're related like chimps and humans. That is, neither is a form of the other, but they share common roots. I raised an Asperger's (adopted) grandson, and I see a lot of my early self in him. I certainly understood his needs and limitations better than any other adult in his life. He's about to enter his sophomore year in St. Thomas University with a fantastic scholarship that he earned academically. That's more than I could have done, and I did all right. Don't sell yourself short. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
Reply by cr88192 August 10, 20062006-08-10
"Jerry Avins" <jya@ieee.org> wrote in message 
news:XKWdnXCsTOXaeEbZnZ2dnUVZ_oidnZ2d@rcn.net...
> cr88192 wrote: > > ... > >> then again, I doubt that all is well here. > > To keep it short, I sincerely hope that all *is* well. >
yeah. I guess my state has stabilized partly. different possibilities exist in my case: I am not entirely mentally stable; I am a person who has generally turned away from using magics, but is still being bothered some by the presence of unpleasant spirits; ... oh well really, at least my coherency seems to have recovered for the time being. I am still left though absent a particularly strong sense of "reality", but this is nothing new... but, yeah, I experienced a lot of this, a lot worse, in highschool, but since then things had cleared up quite a bit for a number of years. note that I am autistic (in particular, aspergers), but I am not entirely sure if this is related to all this... (I guess it is a mystery of how common, or what it means exactly, for an autistic to develop some likely schizo traits...). then again, both are spectrum disorders, so it is possible there is some overlap (I have had some relatives that are both autie and schizo, but on different sides of the family, so yeah...). oh well, probably/hopefully nothing too major...
> Jerry > -- > Engineering is the art of making what you want from things you can get. > &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;