Re: [vwrap] Python integer types, again (was: The <embed> tag... is the group still interested in LLSD or DSD?)

Meadhbh Hamrick <ohmeadhbh@gmail.com> Sat, 07 May 2011 17:02 UTC

Return-Path: <ohmeadhbh@gmail.com>
X-Original-To: vwrap@ietfa.amsl.com
Delivered-To: vwrap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 806F8E06C0 for <vwrap@ietfa.amsl.com>; Sat, 7 May 2011 10:02:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.572
X-Spam-Level:
X-Spam-Status: No, score=-3.572 tagged_above=-999 required=5 tests=[AWL=0.027, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FYa1gWE9thPc for <vwrap@ietfa.amsl.com>; Sat, 7 May 2011 10:02:46 -0700 (PDT)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by ietfa.amsl.com (Postfix) with ESMTP id 0EC19E0691 for <vwrap@ietf.org>; Sat, 7 May 2011 10:02:45 -0700 (PDT)
Received: by wyb29 with SMTP id 29so3528469wyb.31 for <vwrap@ietf.org>; Sat, 07 May 2011 10:02:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=WkMyB+SP+JY/hJ/eOb3sdYLtgnJksdepnOQYV/YwJPA=; b=JasZ0ddncmOJL5OtdeTFFTQ2TSYVTuzYIaBaaf/VFw2PeW/TJusnPuagVA+wK+amaR eADV2q/a5Pw+zeG+XLuPxvxNgac70JZLO/9iJe9jDrSjuMzJ3Yu1Yl5Kq2gcPAaLtKEq MlEBHRiKxgfuk2zmh3FEq5itg5htRL8yNne3g=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=r7s6GhtxCK7WWvJA+5OpqsdIcMO7jWEaTeqpfwV8pL1zqnkand1OfZXWrGcsFU1+AE LfzlbUbAcLXeJw+5Y7/zj7o5vWv+IzxXnDz0LGx6OAeSFmo8k/6f1lyYNRUBCCdk/ZCe HtkLXoAPgux7spL0ipubVjYL8CHGuYSyybfjk=
Received: by 10.216.79.5 with SMTP id h5mr4932555wee.110.1304787442076; Sat, 07 May 2011 09:57:22 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.154.1 with HTTP; Sat, 7 May 2011 09:57:02 -0700 (PDT)
In-Reply-To: <4DC569FB.90608@boroon.dasgupta.ch>
References: <BANLkTi=g9T5q5bVgytpxRxuE=Oc9iG2F9w@mail.gmail.com> <4DC15504.3090503@gmail.com> <BANLkTikay4xhQoZs2L0uRLSXgUMfCE9yfA@mail.gmail.com> <4DC160F0.1030201@gmail.com> <BANLkTikTYpLHM=GAeGAVfufqZ5XT0FSAzw@mail.gmail.com> <BANLkTi=kjBSuMjPcgfXTUvZ3iwmS1bN50Q@mail.gmail.com> <4DC17704.3020201@gmail.com> <BANLkTimpGpNrkE3WUdurduqrVumocDRwfQ@mail.gmail.com> <4DC1824B.6040609@gmail.com> <BANLkTi=hhsiDs=fdZRsthp_+5Hs+pR4L6A@mail.gmail.com> <4DC1956A.5020204@gmail.com> <BANLkTik8rnsKP4xq+Gj5G4dsG=UOVnkNSQ@mail.gmail.com> <4DC1A8C9.9090406@gmail.com> <BANLkTikkOS34CC+ML0JNJgHDoRqbs9rY9w@mail.gmail.com> <4DC1D165.7010705@gmail.com> <4DC1D5FC.6040608@gmail.com> <BANLkTik81Eht3NTdLXXmgqOWvjc2s_KBnw@mail.gmail.com> <BANLkTi=-heHa35w43te0ba8NufkT+MP+CQ@mail.gmail.com> <BANLkTin6ExR7+xpodbtoTAS_4WyhUXL92Q@mail.gmail.com> <BANLkTikjKib79_rLR_s2X=X-ss-+V_yw+w@mail.gmail.com> <BANLkTim4aY7oNALbOfZ2V-htivVmQJZDiA@mail.gmail.com> <BANLkTimZZj3F0V4Li33WLYDby7n8M3A56w@mail.gmail.com> <4DC569FB.90608@boroon.dasgupta.ch>
From: Meadhbh Hamrick <ohmeadhbh@gmail.com>
Date: Sat, 07 May 2011 09:57:02 -0700
Message-ID: <BANLkTimBaXa+1_kt0hOeEeL4J60ezRXbiQ@mail.gmail.com>
To: Boroondas Gupte <sllists@boroon.dasgupta.ch>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: vwrap@ietf.org
Subject: Re: [vwrap] Python integer types, again (was: The <embed> tag... is the group still interested in LLSD or DSD?)
X-BeenThere: vwrap@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Virtual World Region Agent Protocol - IETF working group <vwrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/vwrap>, <mailto:vwrap-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/vwrap>
List-Post: <mailto:vwrap@ietf.org>
List-Help: <mailto:vwrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/vwrap>, <mailto:vwrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 07 May 2011 17:02:47 -0000

well. yes. for modern python versions. i think 2.2 was the first
version to use longs instead of ints.

--
meadhbh hamrick * it's pronounced "maeve"
@OhMeadhbh * http://meadhbh.org/ * OhMeadhbh@gmail.com



On Sat, May 7, 2011 at 8:49 AM, Boroondas Gupte
<sllists@boroon.dasgupta.ch> wrote:
> On 05/07/2011 05:19 PM, Meadhbh Hamrick wrote:
>
> Josh, it's even worse than that.
>
> Python inherits the integer size from the compiler that generated it.
> So, if you compile python on a system with a 16 bit int (which used to
> be pretty common in some embedded systems) you get a version of python
> that uses 16 bit ints.
>
> Fortunately, it's not as bad as that. While it's true that python inherits
> the integer size from the compiler, it doesn't use C's int to implements
> python ints, but C's long and thus can guarantee a precision of at least 32
> bits. Also, due to seamless conversion (see my other post) to python's
> (unlimited precision) long, the actual size of python's int (or the
> implementation dependence of that size) can probably be ignored most of the
> time, except maybe for performance considerations.
>
> Cheers,
> Boroondas
>
> _______________________________________________
> vwrap mailing list
> vwrap@ietf.org
> https://www.ietf.org/mailman/listinfo/vwrap
>
>