Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Computers are not intelligent. They only think they are.


devel / comp.lang.python / Re: C is it always faster than nump?

SubjectAuthor
o Re: C is it always faster than nump?Chris Angelico

1
Re: C is it always faster than nump?

<mailman.48.1645851769.2329.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=17210&group=comp.lang.python#17210

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: C is it always faster than nump?
Date: Sat, 26 Feb 2022 16:02:36 +1100
Lines: 17
Message-ID: <mailman.48.1645851769.2329.python-list@python.org>
References: <CABcwF5=bLWRKgv7M2CRom5LwBCLojxnEq9SYeEDrFiEn5Gfxog@mail.gmail.com>
<2c0d93a8-5ea5-9b63-c3cd-183446d21446@Damon-Family.org>
<375047121.1338435.1645818184031@mail.yahoo.com>
<CAPTjJmozkL3U2CvimvQFhkU8QwpJyRL2ORiS3AseHr1e=8vLKw@mail.gmail.com>
<1735230060.1402275.1645850254409@mail.yahoo.com>
<CAPTjJmrd08h+9yXUM47-8ADH1-fEGj0E8Sv-D9jpeCH9DoRo9w@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de l6aHJcFtEA8Mcha81PoT+A4rPvnmu1o5VXORTnP17vlA==
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=ZlvOalxN;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.011
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'looks': 0.02; '2022':
0.05; 'items.': 0.09; 'avi': 0.16; 'chrisa': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'gross': 0.16; 'semantics,': 0.16; 'specify': 0.16;
'subject:always': 0.16; 'wrote:': 0.16; 'python': 0.16; 'feb':
0.17; 'implement': 0.19; 'to:addr:python-list': 0.20; 'language':
0.21; 'written': 0.22; 'languages': 0.22; 'returns': 0.22; 'sat,':
0.22; 'version': 0.23; 'to:name:python-list@python.org': 0.24;
'function': 0.27; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'someone': 0.34; 'same':
0.34; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'item': 0.35; 'final': 0.35; 'from:addr:gmail.com': 0.35;
'functions': 0.36; 'received:209.85': 0.37; 'way': 0.38;
'received:209': 0.39; 'added': 0.39; 'list': 0.39; 'define': 0.40;
'including': 0.60; 'true': 0.63; 'items': 0.68; 'interpreted':
0.69; 'remaining': 0.69; 'within': 0.69; 'longer': 0.71;
'subject:than': 0.91; 'time?': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=R5NWNzjnlR47yaarzeesgYyvu33ylps8DaM2AZL4K30=;
b=ZlvOalxNQmVhI0D0J0P4Tz/v1HjEnGbOzmBFa/ZXJLGgqtjxIwCv1JzA/cczMQAApZ
LHs49NgWBEIgywW2qAgRnz9bjoAy2/U45o0c0VWNxnELuVM4GrOF6Qo5DLKN3+k3Eh2s
IX7n4le48CBT+XA+n0DZmKvsFu2UiB7DOOjEf6qi42VLvP1K1Hb4EKI2uvPCt2avDrbZ
QYXlqwa8ucKRhIuJ6lvqTnGCtmr1WpLpeqVP6qjnq/BFwfMde/lQQWpQcp0jwaP8CtUP
zca0xb28TG2oim3LtRu9bakqTAzlhBmYc+OhfOxKvObny1bcOb5JofSSmIcOo8qTvsZY
5huA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=R5NWNzjnlR47yaarzeesgYyvu33ylps8DaM2AZL4K30=;
b=0+mbCJYC8vDyhyHRQKbUJxC5mGlob1jYFV6gDogRaCpje0RJ8odaanMIzU8IoR1THC
QjtjS7kgVaO0s7L/b4Fy3qhm2BwaWoKCfHQJxm2O9dBRcLHkXHAOHLBnL+KW/8rRVoBd
zVk1ZlxvD6M76YVSXYSxJNNoRsBWwDf7L5s0tGEuNhrzewAWt1COFGUUAmvWoySCaJku
rTozbwiG3XgXe6+Nteuzp1sUJayrLdOrlX83k6YYd8CEPpUDBkLcnIKnMcDJFvbTlJr2
VtkEq9N9jmVJ8Bah6gXjVV4yHQmkDzU2naBBz2clgBiTu6WaELeG3bp6sVr5YkR3zXBx
3kjw==
X-Gm-Message-State: AOAM530FbsMePCJkY5J2TbE9uMeTfJHqIzp0tppxh89tyQhfm4XCgHlu
u0wxQxB3k3y/caN8XIPmrpv4kXt5lqb2oyLH3o2v0MCP
X-Google-Smtp-Source: ABdhPJzW5EtivmIix/uHTDAEaR8k9bJY//lVVCi7fXC8SVLaFwGhjLOudU58ytzxuMZm1G+PtxzInrrus5qUlaVfXw0=
X-Received: by 2002:a05:600c:348a:b0:37b:ecb3:a249 with SMTP id
a10-20020a05600c348a00b0037becb3a249mr5269418wmq.33.1645851767800; Fri, 25
Feb 2022 21:02:47 -0800 (PST)
In-Reply-To: <1735230060.1402275.1645850254409@mail.yahoo.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <https://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>
X-Mailman-Original-Message-ID: <CAPTjJmrd08h+9yXUM47-8ADH1-fEGj0E8Sv-D9jpeCH9DoRo9w@mail.gmail.com>
X-Mailman-Original-References: <CABcwF5=bLWRKgv7M2CRom5LwBCLojxnEq9SYeEDrFiEn5Gfxog@mail.gmail.com>
<2c0d93a8-5ea5-9b63-c3cd-183446d21446@Damon-Family.org>
<375047121.1338435.1645818184031@mail.yahoo.com>
<CAPTjJmozkL3U2CvimvQFhkU8QwpJyRL2ORiS3AseHr1e=8vLKw@mail.gmail.com>
<1735230060.1402275.1645850254409@mail.yahoo.com>
 by: Chris Angelico - Sat, 26 Feb 2022 05:02 UTC

On Sat, 26 Feb 2022 at 15:39, Avi Gross via Python-list
<python-list@python.org> wrote:
> Take interpreted languages including Python and R that specify all kinds of functions that may be written within the language at first. Someone may implement a function like sum() (just an example) that looks like the sum of a long list of items is the first item added to a slightly longer sum of the remaining items. It stops when the final recursive sum is about to be called with no remaining arguments. Clearly this implementation may be a tad slow. But does Python require this version of sum() or will it allow any version that can be called the same way and returns the same results every time?
>

That's also true of C and pretty much every language I know of. They
define semantics, not implementation.

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor