Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Best search algorithm to find a condition within a range. Date: Tue, 07 Apr 2015 18:37:56 +0200 Organization: PointedEars Software (PES) Lines: 23 Message-ID: <2016084.ADp8TKvx9G@PointedEars.de> References: <87vbh8yvgv.fsf@bsb.me.uk> <777f7633-724b-442e-864b-d6484c5e87cf@googlegroups.com> <87pp7gysv5.fsf@bsb.me.uk> <2186a589-be06-4453-affc-3c84f9e48379@googlegroups.com> <87egnwymxr.fsf@bsb.me.uk> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: solani.org 1428424798 19499 eJwFwQkBwCAQAzBL97SFymEw/EsgYSu1B0SBlxerzp97TQdPZAi9LEcpXHZcoE3P8+3kcD4DDw+6 (7 Apr 2015 16:39:58 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 7 Apr 2015 16:39:58 +0000 (UTC) User-Agent: KNode/4.14.2 X-User-ID: eJwFwYEBwDAEBMCV8oowjnj2H6F39jm8r7q52tpO8fWhsA+Ed4GYygrVGikOVPsZuR/fTCCMlTg1qcK88gOQKRbP Cancel-Lock: sha1:WDQb7y7S7jaAmD2vAFQX28Ce+00= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXZNCK51Am/59gAqexdxAMDGbQyFqy1DlxEVrecH4qXN0tFjzLRK5/gg8e/REs Xref: csiph.com comp.lang.javascript:27239 Ben Bacarisse wrote: > jonas.thornvall@gmail.com writes: >> It is about converting bases as fast as possible in a general way that >> work for anybase no matter how ***big***. That mean you cannot add up >> digits, it is to slow you have to search the digit, doing a binary >> search or something better. > > Then my point stands. Why are you "searching" for a digit rather than > simply calculating it? Have you determined that the usual method is too > slow and you have some alternative in mind? As much as I enjoy a good show, I have to tell you now that you are wasting your time. Here we have the classical case of overconfidence as pointed out by Richard Cornford: Someone who evidentially has not even mastered the basics of ECMAScript, but is attempting to write an arbitrary precision numeric base converter in and for implementations of ECMAScript. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.