From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Joerg Newsgroups: gmane.emacs.help Subject: Re: program to compute gears, with table Date: Sun, 10 Sep 2017 07:59:24 -0700 Message-ID: References: <86bmmlu54a.fsf@zoho.com> <86pob1rsbx.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1505055653 1738 195.159.176.226 (10 Sep 2017 15:00:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2017 15:00:53 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.6.666 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 17:00:48 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dr3ih-0007cK-Kj for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 17:00:23 +0200 Original-Received: from localhost ([::1]:53259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dr3io-00063E-RY for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2017 11:00:30 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help,rec.bicycles.tech Original-Lines: 66 Original-X-Trace: individual.net /Jm+mrWTtfrqCFNPRRve+Au7STeEj3wDY5ZtZSxIoMCp/zmieM Cancel-Lock: sha1:KFo6D5YicId2PdjaXzdsHCC2bp8= In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:220119 rec.bicycles.tech:1003689 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114225 Archived-At: On 2017-09-09 19:06, David Scheidt wrote: > In rec.bicycles.tech Joerg wrote: > :On 2017-09-08 12:59, David Scheidt wrote: > :> In rec.bicycles.tech Joerg wrote: > :> :On 2017-09-08 10:52, Emanuel Berg wrote: > :> :> Skip Montanaro wrote: > :> :> > :> :>> * Why the 1.0 divisor when computing gear? > :> :> > :> :> As explained, otherwise it'll be integer > :> :> division. But I think that qualifies as a hack > :> :> (not an ugly hack tho) so there is no shame in > :> :> spotting it an "error" :) > :> :> > :> :>> * You can skip the radius and use wheel > :> :>> (diameter) directly in computing > :> :>> the circumference. > :> :> > :> :> Right! > :> :> > :> :>> * It never occurred to me to do this in Lisp. > :> :>> I always just use an online calculator, like: > :> :>> > :> :>> http://www.gear-calculator.com/?GR=DERS&KB=34,50&RZ=12,13,15,17,19,21,23,25&UF=2150&TF=90&SL=2.6&UN=KMH > :> :> > :> :> Let's agree there is no need to do it in Lisp. > :> :> Only a desire :) > :> :> > :> > :> :Why make things complicated? I do such stuff with spreadsheets. That's > :> :what they were invented for. Part of every office software including > :> :free ones. > :> > :> I rewrote his code in common lisp in less time than it takes excel to > :> start. > :> > > :Wow, you must be able to type at hundreds of letter a second. Here, it > :takes less than 2sec for Excel to start. Mostly only a split second to > :open the file because I usually have it running nearly all the time. > > On my mac at work, from the time I double click the excel icon to the > time it is ready to do work is over a minute. It's a modern machine, > running an old version of excel. I suggest you use a PC instead, and a contemporary one. If it was more than a couple of seconds I'd be concerned about something not being right with the computer. > ... The windows machine I have, but > never use, which is more powerful, and running a current version, > takes even longer. It does have a spinny disk, and not an ssd. > (that's not counting the time to takes to boot up, since it's off.) > Looks like your computers need some serious clean-up. I just tried it on mine (Dell XPS8700, no SSD, regular HD). It takes such a small fraction of one second that it is impossible to gauge the milliseconds from click to Excel being open. I would need a camera and count the frames. -- Regards, Joerg http://www.analogconsultants.com/