Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

There can be no twisted thought without a twisted molecule. -- R. W. Gerard


devel / comp.lang.python / Re: [Python-ideas] Re: New Tool Proposal

SubjectAuthor
o Re: [Python-ideas] Re: New Tool ProposalChris Angelico

1
Re: [Python-ideas] Re: New Tool Proposal

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: [Python-ideas] Re: New Tool Proposal
Date: Tue, 10 May 2022 20:14:11 +1000
Lines: 49
Message-ID: <mailman.368.1652177664.20749.python-list@python.org>
References: <d21aa51c-f85e-7b10-da54-856fee603af8@btinternet.com>
<CAPTjJmr0s_CyaUgS=H9dZNKKkRgDtKxyLhNmUw54RLNw_DFf0A@mail.gmail.com>
<6a16e4f8-b1d7-292e-60d2-1db611456c2f@btinternet.com>
<CAPTjJmqUqL7S-RcOAOHFpjaC35F5Yqz94c83KizbOZFeKXpgHw@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 2/wIH1DXUPfua6ZZBhbmowRWjZu2iJ+NVwouKsxquf7Q==
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=Y+W6X4kg;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2022': 0.05; 'class,':
0.05; 'parameter': 0.05; ':-)': 0.09; 'angelico': 0.09; 'ast':
0.09; 'blank': 0.09; 'float': 0.09; 'int': 0.09; 'python-ideas':
0.09; 'subject:Python': 0.12; 'that.': 0.15; 'chrisa': 0.16;
'compiled': 0.16; 'conversion': 0.16; 'from:addr:rosuav': 0.16;
'from:name:chris angelico': 0.16; 'idea!': 0.16; 'inspection':
0.16; 'instance': 0.16; 'manipulating': 0.16; 'sensible': 0.16;
'structures': 0.16; 'wrote:': 0.16; 'python': 0.16; 'developer':
0.16; 'uses': 0.19; 'tue,': 0.19; 'to:addr:python-list': 0.20;
'subject:: [': 0.21; 'subject:] ': 0.21; 'code': 0.23; 'idea':
0.24; 'extension': 0.25; 'classes': 0.26; "isn't": 0.27; 'chris':
0.28; 'replying': 0.28; 'module': 0.31; "doesn't": 0.32; 'cool':
0.32; 'objects': 0.32; 'message-id:@mail.gmail.com': 0.32; 'but':
0.32; "i'm": 0.33; 'script': 0.33; 'proposal': 0.33; 'release':
0.34; 'able': 0.34; 'same': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'files':
0.36; 'functions': 0.36; 'subject:ideas': 0.36; 'source': 0.36;
'really': 0.37; 'using': 0.37; "it's": 0.37; 'received:209.85':
0.37; 'received:209': 0.39; 'quite': 0.39; 'text': 0.39; 'list':
0.39; 'use': 0.39; 'subject:Proposal': 0.39; 'to.': 0.39; 'still':
0.40; 'advantage': 0.40; 'awesome': 0.40; 'processed': 0.40;
'want': 0.40; 'including': 0.60; 'internal': 0.63; 'complete':
0.64; 'process.': 0.65; 'tool': 0.65; 'required': 0.65; 'mind.':
0.67; 'that,': 0.67; 'further': 0.69; 'types,': 0.69; 'you.':
0.71; 'performance': 0.71; 'relevant': 0.73; 'tools': 0.74;
'implemented': 0.76; 'discuss': 0.78; '0.1': 0.84; 'attribute':
0.84; 'choices': 0.84; 'intending': 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=WNyaAQmCsnjijCg82+KDFnPGKwCRMUs7HQcgz3Wq3M8=;
b=Y+W6X4kg9BHymSYzyfApMvdI+MRl9R3p7DLNqXVXilnor27UYtTJLo1oKe81yS/TmC
Z8zz6PJzO4buc+gjvW/gmw8+UOAIyffEYRQPs0zkTWX0k3oRcwP65fmtO+y9ZyXEAFNP
9MUfSvJZn34gXfa9N0QJQiyR3blqDgt6MtL+DCZ+91ow0uJouYVH98SgTAyv2MJ60sx2
uzkdnrouLavQGELsBrVz9smAqIq+7eVWoYNP+Ms37I54Jwq+xK7qZ8u6vSwcBmDOi5tM
GBwVGXajo7kEfQKHBTuh/jIzxM0vSD68/KBAbHD/NlY55UiiY+XZCvJkPpq8gXVLays2
Qf7g==
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=WNyaAQmCsnjijCg82+KDFnPGKwCRMUs7HQcgz3Wq3M8=;
b=d+LDCgHBZbaL839AjsyTSR/z+bia+z5SC/aMLQc3JXCGP5475WS/yrA/k73233NBqr
kSicSsvQeEZMNskVjwI8wCD2O+m3DVXw/xMlfAkiOQapN4Db73WWz6+NFnSxaGLrxVQN
0nijritikP0DbCFqUgluAuNpYVi5qfwLmTcBaS6arnOkgVbKIvnP0Y3fgK17LmC+hjOS
DSWBqOSRRPDXmIu9HrsdFrAMNv0dUr+PGUaNcf7vnbQDWxB2Oo2ILw+FhSALQUFKApPG
cPd3raY+OW4HvF4WVu/pAeK2qjA1FyRJTFDrGEMi0ya9XfrlIYJxz7hCb/YKZjptDchZ
hqxA==
X-Gm-Message-State: AOAM530ppzhoiEMIaZGn35HTTN1jD9+Y5vlUo+tMZTB/dsGztrnk4wnZ
nVQr7YNFAzWReNW0nWSy15xZgMUfgAlMOFFynt3bkIrV
X-Google-Smtp-Source: ABdhPJwI9tTXrdvhR/My1Xs15+SeQDPHBRBRDSZ6XVmP7+QKMRolzQYUhmoVDv58gpoCDbja0+qAadgNKaoD1kOOOIk=
X-Received: by 2002:a05:6000:1549:b0:20c:7183:439 with SMTP id
9-20020a056000154900b0020c71830439mr18196222wry.104.1652177662706; Tue, 10
May 2022 03:14:22 -0700 (PDT)
In-Reply-To: <6a16e4f8-b1d7-292e-60d2-1db611456c2f@btinternet.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: <CAPTjJmqUqL7S-RcOAOHFpjaC35F5Yqz94c83KizbOZFeKXpgHw@mail.gmail.com>
X-Mailman-Original-References: <d21aa51c-f85e-7b10-da54-856fee603af8@btinternet.com>
<CAPTjJmr0s_CyaUgS=H9dZNKKkRgDtKxyLhNmUw54RLNw_DFf0A@mail.gmail.com>
<6a16e4f8-b1d7-292e-60d2-1db611456c2f@btinternet.com>
 by: Chris Angelico - Tue, 10 May 2022 10:14 UTC

On Tue, 10 May 2022 at 19:57, anthony.flury
<anthony.flury@btinternet.com> wrote:
>
>
> On 10/05/2022 09:20, Chris Angelico wrote:
>
> On Tue, 10 May 2022 at 18:06, anthony.flury via Python-ideas
> <python-ideas@python.org> wrote:
>
> A proposal for a new tool to be implemented -
>
> It is often the case that developer write Code in Python and then convert to a C extension module for performance regions.
>
> A C extension module has a lot of boiler plate code - for instance the Structures required for each class, the functions for Module initialization etc.
>
> My Idea is a simple tool that uses introspection tools to take a Python module and to generate the relevant boiler plate for the module - including blank functions for the module classes and for methods. This tool would use type annotations (if given) to make sensible choices for parameter and attribute types, including using int and float directly rather than Internal objects (depending on tool options).
>
> Yep, that's an awesome idea! Are you aware of Cython? You might be
> able to make use of that.
>
> Chris, Thank you.
>
> I am aware of Cython but that isn't quite what I had in mind. I want a tool for a developer who doesn't want to continue to support the Python 'prototype' for whatever reason, ie where they want a complete conversion to C.
>
> It might even be possible with inspection of the AST to write some of the code inside the C functions - but that is not for release 0.1 :-)
>

You may still be able to take advantage of Cython as part of the
process. One thing that's really cool about source code is that,
fundamentally, it's all text... and Python is *great* at manipulating
text files :) It might be that you can write a script that transforms
a Python module into a Cython module, which can then be compiled
as-is, or further processed as needed.

BTW, not sure which list you're intending to discuss this on, so I'm
just replying on the same list you sent this message to.

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor