Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

* joeyh installs debian using only his big toe, for a change of pace -- in #debian-boot


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

SubjectAuthor
o Re: [Python-ideas] Re: New Tool ProposalDel Mervine

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

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: scooky2...@gmail.com (Del Mervine)
Newsgroups: comp.lang.python
Subject: Re: [Python-ideas] Re: New Tool Proposal
Date: Tue, 10 May 2022 11:45:20 -0500
Lines: 40
Message-ID: <mailman.370.1652201119.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>
<0d4d27a9-154f-5fbf-47ac-e9529ea58d72@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de xlTAV2gcTxGDZnkHx2I4UAkSKV0UpULf+s4joubDcpsg==
Return-Path: <scooky2000@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=bFUe810s;
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; 'idea!': 0.16; 'inspection':
0.16; 'instance': 0.16; 'manipulating': 0.16; 'sensible': 0.16;
'structures': 0.16; 'url:latest': 0.16; 'wrote:': 0.16; 'python':
0.16; 'developer': 0.16; 'message-id:@gmail.com': 0.18; '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; 'header:User-Agent:1': 0.30; 'am,': 0.31; 'module': 0.31;
'received:209.85.160': 0.31; "doesn't": 0.32; 'cool': 0.32;
'objects': 0.32; 'but': 0.32; "i'm": 0.33; 'received:192.168.0':
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; 'url-ip:104.17/16': 0.35;
'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:192.168':
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=message-id:date:mime-version:user-agent:subject:content-language:to
:references:from:in-reply-to:content-transfer-encoding;
bh=8Ba4P4TT8ONQ0agX5s7FR2F+CknruU13rrEKgKCTQbY=;
b=bFUe810sFA7pdjtAFEDIB83gJ6rPDw5G2PENxLn/L3CUAh1SDRrEIhlXx3KS0Qje/L
ruWOP+9qeMKUfmyaEjl4AT4JP/iN56ESrIkP0HMv15y8knTD4bltW5pwhC2nMlAg0KcM
GzCJdzMl9hWvVbGEwFF9qzrlh46ewF/hyj8D2A6VNtTj18aqjDJNmD4hN+CAxm1WoTK5
n4yZe2wutL1BQkjdGjib39qnTaNRA1uXYAs6koMnkFOtkDORXluAuAbJ1ObY902pK+9Z
jPEAkadYFF5rhLU8ZnOoBWs+l7jAACyG0Txo3SWQ7SkXCsio0W05Qusq4hfwePs9TGEK
eblA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
:content-language:to:references:from:in-reply-to
:content-transfer-encoding;
bh=8Ba4P4TT8ONQ0agX5s7FR2F+CknruU13rrEKgKCTQbY=;
b=dKpdMwfIe7wUtX+9xsuhUngiH5j0GVF080xHEvm/ioHhCPvwHMjYaiTizi9RwIvqTa
mvnGT6Ocf4Yk5Q435vC1HgK1bBfUkmNioHyuvOURqTUfd8noikSK6i3WY8/rLvdZnl00
1iVcLOlru2KnG/iUlXVLBRJ24PYz00wywRgsqzmN3GDtfwc4kvwUs2hmu4hzl6673jOf
ZoHvaWuAGCXkb/uQ37xLZxnOuhSSayS2bhwYEVvF9Nq4sWaM227LCpzuBbx/eSbXhbDN
J9xD29raDL/tU/3juo0ejfXRDL73jUeaNshILuZNb7UwQjlqsr7iRdzryVe5n4ouEk0m
NRAA==
X-Gm-Message-State: AOAM532fiJaKJsLhtV+OKdhd1pdYgkapny+rQbYRhOTJFBy5qb/MGGyU
CCODVhygMoCXhV6wQfkgC4an9KTLqh0=
X-Google-Smtp-Source: ABdhPJyRTdpTlvCCZ78RySBVZp6HcnmWYQY71FkbE6/xVX9CRkujZG9GBoGTGxMQfN37RQl1Lh8hmQ==
X-Received: by 2002:a05:6870:630d:b0:e2:6498:6734 with SMTP id
s13-20020a056870630d00b000e264986734mr545322oao.3.1652201115988;
Tue, 10 May 2022 09:45:15 -0700 (PDT)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.9.0
Content-Language: en-US
In-Reply-To: <CAPTjJmqUqL7S-RcOAOHFpjaC35F5Yqz94c83KizbOZFeKXpgHw@mail.gmail.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: <0d4d27a9-154f-5fbf-47ac-e9529ea58d72@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>
<CAPTjJmqUqL7S-RcOAOHFpjaC35F5Yqz94c83KizbOZFeKXpgHw@mail.gmail.com>
 by: Del Mervine - Tue, 10 May 2022 16:45 UTC

On 5/10/22 5:14 AM, Chris Angelico wrote:
> 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

This might be what you are looking for?
<https://mypyc.readthedocs.io/en/latest/introduction.html>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor