Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21256

Re: are int, float, long, double, side-effects of computer engineering?

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <anikom15@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'high- level': 0.05; 'perl,': 0.05; 'c++,': 0.07; 'infinite': 0.07; 'doc,': 0.09; 'integer,': 0.09; 'lang': 0.09; 'relevant.': 0.09; 'float': 0.13; 'language,': 0.14; '(aka': 0.16; '(which,': 0.16; 'accuracy,': 0.16; 'double,': 0.16; 'enlighten': 0.16; 'invoking': 0.16; 'lisp': 0.16; 'lisp,': 0.16; 'overflow': 0.16; 'precision,': 0.16; 'quirks': 0.16; 'requested.': 0.16; 'rfc': 0.16; 'side- effects': 0.16; 'stupid,': 0.16; 'subject: \n ': 0.16; 'subject:engineering': 0.16; 'wished': 0.16; 'mon,': 0.16; 'meant': 0.17; 'wrote:': 0.18; 'stick': 0.18; 'long,': 0.19; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'translation': 0.23; 'int,': 0.23; '(in': 0.26; 'stuff': 0.26; 'handling': 0.30; 'accuracy.': 0.30; 'kinda': 0.30; 'math,': 0.30; 'precision': 0.30; 'chris': 0.30; 'subject:?': 0.31; 'engineering': 0.31; 'yet': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'instead': 0.33; 'lee': 0.34; 'majority': 0.34; 'all.': 0.34; 'integer': 0.34; 'measure': 0.34; 'sense,': 0.34; 'from:charset:iso-8859-1': 0.35; 'to:addr:python-list': 0.35; 'post': 0.36; 'issue': 0.37; 'speak': 0.37; 'instead,': 0.37; 'machine': 0.37; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'either': 0.37; 'spread': 0.38; 'received:209.85': 0.38; 'mathematical': 0.38; 'some': 0.38; 'think': 0.38; 'concepts': 0.39; 'i.e.': 0.39; 'received:209': 0.39; 'everyone': 0.39; 'point': 0.40; 'to:addr:python.org': 0.40; 'easy': 0.60; 'quick': 0.61; 'header:Received:6': 0.61; 'your': 0.61; 'human': 0.62; 'link': 0.62; 'free': 0.64; 'exact': 0.68; 'friend': 0.69; 'concept': 0.74; 'products,': 0.78; 'idiots': 0.84; 'standard,': 0.84; 'url:reference': 0.84; 'xah': 0.84; 'subject:long': 0.93; 'technically': 0.93; 'arise': 0.96
Received-SPF pass (google.com: domain of anikom15@gmail.com designates 10.68.129.36 as permitted sender) client-ip=10.68.129.36;
Authentication-Results mr.google.com; spf=pass (google.com: domain of anikom15@gmail.com designates 10.68.129.36 as permitted sender) smtp.mail=anikom15@gmail.com; dkim=pass header.i=anikom15@gmail.com
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SXYbOb2xueM3YBHdzd59Z3lk+KcKDNnKY7fRce6sR+8=; b=oLDkVHFhUVwKZeh45frEMpyTjuoC4i+veSEKZs6HJTLxP2XqbXuHJmbpDOQwU0bXq7 7SlSBtzyC2R6Hv8KgRoPog0JlaGG5yxUeLV5rofubQHItMRCv2ApUR6UyXqY4uUm41cG 9otTR7JEoI589fa+YAOkbli4C+ud1e56PYShMGvMbaKl1kRKTcltMLi1zlsq1cYAPH0I /UYZonbLuIbKM0bky3WjIrJAw3po1nPf/jHvnp18R9pvSD6bN8XI1Mgc+oq68qFt9Vm8 871xDFGL2abTIxM3loGRzDLgy2pVNVlzscYutTBZRY3pu/6jdoO38MB/MUdC69CnmVlJ 0haQ==
Date Mon, 5 Mar 2012 19:17:37 -0800
From Westley Martínez <anikom15@gmail.com>
To python-list@python.org
Subject Re: are int, float, long, double, side-effects of computer engineering?
References <5aaded58-af09-41dc-9afd-56d7b7ced239@d7g2000pbl.googlegroups.com>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
In-Reply-To <5aaded58-af09-41dc-9afd-56d7b7ced239@d7g2000pbl.googlegroups.com>
User-Agent Mutt/1.5.21 (2010-09-15)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.420.1331003865.3037.python-list@python.org> (permalink)
Lines 52
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331003865 news.xs4all.nl 6852 [2001:888:2000:d::a6]:58129
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21256

Show key headers only | View raw


On Mon, Mar 05, 2012 at 05:11:09PM -0800, Xah Lee wrote:
> some additional info i thought is relevant.
> 
> are int, float, long, double, side-effects of computer engineering?
> 
> Xah Lee wrote:
> «… One easy way to measure it is whether a programer can read and
> understand a program without having to delve into its idiosyncrasies.
> …»
> 
> Chris Angelico wrote:
> «Neither the behavior of ints nor the behavior of IEEE floating point
> is a "quirk" or an "idiosyncracy". …»
> 
> they are computer engineering by-products. Are quirks and
> idiosyncracies. Check out a advanced lang such as Mathematica. There,
> one can learn how the mathematical concept of integer or real number
> are implemented in a computer language, without lots by-products of
> comp engineering as in vast majority of langs (all those that chalks
> up to some IEEEEEEE. (which, sadly, includes C, C++, perl, python,
> lisp, and almost all. (Common/Scheme lisp idiots speak of the jargon
> “number tower” instead IEEEE.) (part of the reason almost all langs
> stick to some IEEEEEEEE stuff is because it's kinda standard, and
> everyone understand it, in the sense that unix RFC (aka really fucking
> common) is wide-spread because its free yet technically worst. (in a
> sense, when everybody's stupid, there arise a cost to not be
> stupid.)))).
> 
> 
> A friend asked: «Can you enlighten us as to Mathematica's way of
> handling numbers, either by a post or a link to suitable
> documentation? …»
> 
> what i meant to point out is that Mathematica deals with numbers at a
> high-level human way. That is, one doesn't think in terms of float,
> long, int, double. These words are never mentioned. Instead, you have
> concepts of machine precision, accuracy. The lang automatically handle
> the translation to hardware, and invoking exact value or infinite
> precision as required or requested.
> 
> in most lang's doc, words like int, long, double, float are part of
> the lang, and it's quick to mention IEEE. Then you have the wide-
> spread overflow issue in your lang. In M, the programer only need to
> think in terms of math, i.e. Real number, Integer, complex number,
> precision, accuracy, etc.
> 
> this is what i meat that most lang deals with computer engineering by-
> products, and i wished them to be higher level like M.
> 
> http://reference.wolfram.com/mathematica/guide/PrecisionAndAccuracyControl.html

Try Fortran.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

are int, float, long, double, side-effects of computer engineering? Xah Lee <xahlee@gmail.com> - 2012-03-05 17:11 -0800
  Re: are int, float, long, double, side-effects of computer engineering? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-03-06 02:14 +0000
  Re: are int, float, long, double, side-effects of computer engineering? Westley Martínez <anikom15@gmail.com> - 2012-03-05 19:17 -0800
  Re: are int, float, long, double, side-effects of computer engineering? Tim Roberts <timr@probo.com> - 2012-03-05 21:26 -0800
    Re: are int, float, long, double, side-effects of computer engineering? Xah Lee <xahlee@gmail.com> - 2012-03-05 22:34 -0800
      Re: are int, float, long, double, side-effects of computer engineering? "Russ P." <russ.paielli@gmail.com> - 2012-03-06 00:02 -0800
      Re: are int, float, long, double, side-effects of computer engineering? Chiron <chiron613.no.spam.@no.spam.please.gmail.com> - 2012-03-06 10:10 +0000
        Re: are int, float, long, double, side-effects of computer engineering? Roy Smith <roy@panix.com> - 2012-03-06 08:49 -0500
      Re: are int, float, long, double, side-effects of computer engineering? Calvin Kim <reader@calvinkim.org> - 2012-03-06 16:29 -0500
      Re: are int, float, long, double, side-effects of computer engineering? Westley Martínez <anikom15@gmail.com> - 2012-03-06 16:53 -0800
      Re: are int, float, long, double, side-effects of computer engineering? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-06 21:51 -0500
      RE: are int, float, long, double, side-effects of computer engineering? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-07 19:05 +0000
  Re: are int, float, long, double, side-effects of computer engineering? Chiron <chiron613.no.spam.@no.spam.please.gmail.com> - 2012-03-06 10:00 +0000
  Re: are int, float, long, double, side-effects of computer engineering? rusi <rustompmody@gmail.com> - 2012-03-06 19:25 -0800
    Re: are int, float, long, double, side-effects of computer engineering? "Russ P." <russ.paielli@gmail.com> - 2012-03-07 14:02 -0800
      Re: are int, float, long, double, side-effects of computer engineering? John Nagle <nagle@animats.com> - 2012-03-13 22:32 -0700
  Re: are int, float, long, double, side-effects of computer engineering? Albert van der Horst <albert@spenarnc.xs4all.nl> - 2012-03-13 10:40 +0000

csiph-web