Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62500
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python.list@tim.thechases.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'value,': 0.04; 'subject:Python': 0.06; 'javascript,': 0.07; 'subject:Why': 0.09; 'programs.': 0.14; '*should*': 0.16; '-tkc': 0.16; '8-bit': 0.16; ':-/': 0.16; 'anyone?': 0.16; 'choice).': 0.16; 'exponent': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'hardware.': 0.16; 'integers.': 0.16; 'manifest': 0.16; 'notably': 0.16; 'processor,': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'load': 0.23; 'integer': 0.24; 'mathematical': 0.24; 'subject:like': 0.24; 'math': 0.24; 'equivalent': 0.26; 'header:In-Reply-To:1': 0.27; '[1]': 0.29; 'software,': 0.31; 'url:wiki': 0.31; 'faster,': 0.31; 'url:wikipedia': 0.31; 'cases': 0.33; 'sense': 0.34; 'basic': 0.35; 'equal': 0.35; 'but': 0.35; 'accuracy': 0.36; 'charset:us- ascii': 0.36; 'url:org': 0.36; 'apple': 0.38; 'to:addr:python- list': 0.38; 'rather': 0.38; 'explain': 0.39; 'itself': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; "you're": 0.61; 'first': 0.61; 'choose': 0.64; 'more': 0.64; 'smith': 0.68; '(according': 0.84; 'received:50.22': 0.84; 'wanting': 0.93 |
| Date | Sat, 21 Dec 2013 10:29:39 -0600 |
| From | Tim Chase <python.list@tim.thechases.com> |
| To | python-list@python.org |
| Subject | Re: Why Python is like C++ |
| In-Reply-To | <roy-867FD6.10590021122013@news.panix.com> |
| References | <roy-666C26.09193920122013@news.panix.com> <mailman.4441.1387561812.18130.python-list@python.org> <bhjs20Fi7pU1@mid.individual.net> <mailman.4451.1387603576.18130.python-list@python.org> <bhl0glF7cd9U1@mid.individual.net> <l93pui$8gr$1@dont-email.me> <mailman.4472.1387638502.18130.python-list@python.org> <roy-867FD6.10590021122013@news.panix.com> |
| X-Mailer | Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - boston.accountservergroup.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - tim.thechases.com |
| X-Get-Message-Sender-Via | boston.accountservergroup.com: authenticated_id: tim@thechases.com |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4474.1387643312.18130.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1387643312 news.xs4all.nl 2949 [2001:888:2000:d::a6]:50810 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62500 |
Show key headers only | View raw
On 2013-12-21 10:59, Roy Smith wrote: > > In know that my first BASIC, Applesoft BASIC had the 2-character > > names, and you had to load Integer Basic (with Ints in addition > > to the standard Floats used in the BASIC provided by the ROM, a > > strange choice). > > Why is it a strange choice? If you're only going to support a > single type of numeric value, floats make a lot more sense than > ints. Floats are a superset of integers. > > Javascript, anyone? It's one thing when JS uses bajillion-bit precision on the floats. With an 8-bit processor, the accuracy was wanting (according to Wikipedia[1], single-precision with 8-bit exponent & 31-bit significand), so you'd often hit cases where INT1 + INT2 *should* equal INT3 + INT4, but because of floating-point errors, they wouldn't. It's maddening to have the mathematical equivalent of 2 + 4 != 1 + 5 manifest itself in your programs. And even harder to explain to a middle-schooler that I was at the time. :-/ Also, one of the main reasons to choose INTEGER BASIC on the Apple was that was notably faster, since FP math was managed in software, rather than in dedicated FP hardware. -tkc [1] http://en.wikipedia.org/wiki/Applesoft_basic#Background
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why Python is like C++ Roy Smith <roy@panix.com> - 2013-12-20 09:19 -0500
Re: Why Python is like C++ Serhiy Storchaka <storchaka@gmail.com> - 2013-12-20 19:46 +0200
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-21 10:44 +1300
Re: Why Python is like C++ Michael Torrie <torriem@gmail.com> - 2013-12-20 22:25 -0700
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-21 21:06 +1300
Re: Why Python is like C++ Chris Angelico <rosuav@gmail.com> - 2013-12-21 19:17 +1100
Re: Why Python is like C++ Christian Gollwitzer <auriocus@gmx.de> - 2013-12-21 11:19 +0100
Re: Why Python is like C++ Tim Chase <tim@thechases.com> - 2013-12-21 08:52 -0600
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-22 13:17 +1300
Re: Why Python is like C++ Tim Chase <python.list@tim.thechases.com> - 2013-12-21 08:43 -0600
Re: Why Python is like C++ Roy Smith <roy@panix.com> - 2013-12-21 10:59 -0500
Re: Why Python is like C++ Tim Chase <python.list@tim.thechases.com> - 2013-12-21 10:29 -0600
Re: Why Python is like C++ Chris Angelico <rosuav@gmail.com> - 2013-12-22 06:04 +1100
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-22 13:27 +1300
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-22 13:14 +1300
Re: Why Python is like C++ Michael Torrie <torriem@gmail.com> - 2013-12-21 08:46 -0700
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-22 13:36 +1300
Re: Why Python is like C++ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-21 05:34 +0000
Re: Why Python is like C++ Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2013-12-21 21:09 +1300
Re: Why Python is like C++ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-21 08:22 +0000
Re: Why Python is like C++ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-21 11:37 +0000
Re: Why Python is like C++ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-21 12:12 +0000
Re: Why Python is like C++ Dan Stromberg <drsalists@gmail.com> - 2013-12-21 00:18 -0800
Re: Why Python is like C++ Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-21 11:51 +0000
Re: Why Python is like C++ Roy Smith <roy@panix.com> - 2013-12-21 10:10 -0500
Re: Why Python is like C++ Terry Reedy <tjreedy@udel.edu> - 2013-12-21 17:03 -0500
Re: Why Python is like C++ Roy Smith <roy@panix.com> - 2013-12-21 17:28 -0500
Re: Why Python is like C++ Terry Reedy <tjreedy@udel.edu> - 2013-12-21 19:20 -0500
Re: Why Python is like C++ Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-21 08:42 +0000
Re: Why Python is like C++ Gene Heskett <gheskett@wdtv.com> - 2013-12-21 14:05 -0500
csiph-web