Path: csiph.com!aioe.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: Layered object Date: Thu, 26 May 2016 14:13:20 +0100 Organization: A noiseless patient Spider Lines: 32 Message-ID: <87y46xm07j.fsf@bsb.me.uk> References: <89e1dd41-b971-4f04-aad2-e726abe20d56@googlegroups.com> <3aa6bb6e-c513-4228-ada6-095c58d67022@googlegroups.com> <0984346c-891a-4f03-96c5-c983f96aeb1d@googlegroups.com> <1426456b-46cd-4a18-8d3b-1447508dd3e6@googlegroups.com> <01b07c96-617e-4d2f-83bc-e85fb4079a99@googlegroups.com> <3e435eda-049d-42e3-a633-5166155388cb@googlegroups.com> <80388e60-d044-40b4-8254-c5b92ed0a019@googlegroups.com> <874m9lnmbt.fsf@bsb.me.uk> <445fec15-02f8-4d13-b303-cb5c1214aa4c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="14911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/0b/RvIcJ50pPHLD5U+dZ0s2rohcDXoZ8=" Cancel-Lock: sha1:YXknBmGo/6wjVOTa5l5p0DweqPo= sha1:fIqk+1XhgCa5iu/jU/dVtlsAsAw= X-BSB-Auth: 1.aa838be213951e19c791.20160526141320BST.87y46xm07j.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:30566 jonas.thornvall@gmail.com writes: > Den torsdag 26 maj 2016 kl. 12:30:21 UTC+2 skrev Ben Bacarisse: >> jonas.thornvall@gmail.com writes: >> >> > Regarding my code, it may not be beautiful but it certainly does what >> > it is meant to do in a miracuous way. Finding Fib nr 100000 and >> > printing it in 5 seconds. >> >> That seems to be very slow. On my laptop (newish, but 3 years old now) >> I can calculate it in almost no time at all: >> >> $ time ./fib 100000 >x >> ./fib 100000 > x 0.00s user 0.00s system 44% cpu 0.009 total >> $ wc x >> 1 1 20900 x >> >> > That is a 21033 digit number... so my approach to programming may not >> > be so bad afterall... >> >> I think you have a bug. The 100,000th Fibonacci number is 20,899 digits long. >> >> >> -- >> Ben. > > So why not post the result of your calculation? What would be the point? We all know what the number is. -- Ben.