Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: function to get frequencies of a char array Date: Mon, 26 Jan 2015 20:48:15 +0100 Organization: solani.org Lines: 25 Message-ID: References: <26839541.MRbOrngyXZ@PointedEars.de> <87twzgl0aq.fsf@bsb.me.uk> <2697158.aGRKFDBAEn@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1422301692 11219 eJwFwYEBwDAEBMCVNPxjHBL2H6F3UH68bgQNi03pE8eayoDJ7NvUW7XuA0zL1kASrsZ4138XdBEV (26 Jan 2015 19:48:12 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 26 Jan 2015 19:48:12 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 X-User-ID: eJwFwYEBwCAIA7CXZKVFzhGU/09YQsjU4aKcw7krFvZqVMGSGD/JojJu5Pua09zSnFbxGX4OSRDf In-Reply-To: Cancel-Lock: sha1:FTrcmI2G19z9HfCiJqORP7jSYi0= X-NNTP-Posting-Host: eJwNwocRwDAIBLCVKP+QdSj2/iM4J9FDYxLBAO9v64agsL5bQh47Kjs7mijPNqNL6efdNuADKfsRNw== Xref: csiph.com comp.lang.javascript:26712 Evertjan. wrote: > "Christoph M. Becker" wrote on 26 jan 2015 in > comp.lang.javascript: > >> The semantic difference I was referring to is the internal call of >> ToInt32()[1]. Compare: >> >> 1e32 | 0 // => 0 >> 1e32 || 0 // => 1e+32 >> >> [1] > > This was about a count, > in Javascript you cannot > in a single variable > count from 0 to 1e32 > for reasons of time and resolution. I agree that is impractical to have 1e32 iterations on current hardware. However, I don't understand what you mean by "resolution". -- Christoph M. Becker