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


Groups > comp.lang.python > #21476

Re: Porting the 2-3 heap data-structure library from C to Python

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'compiler': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'compiler.': 0.09; 'python/c': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sticks': 0.09; 'subject:library': 0.09; 'compilers': 0.16; 'harsh.': 0.16; 'reedy': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'jan': 0.19; 'so.': 0.22; 'header:In-Reply-To:1': 0.22; 'documented': 0.23; 'extending': 0.23; 'itself,': 0.23; 'stefan': 0.24; 'subject:data': 0.25; 'writes:': 0.25; 'code.': 0.26; 'code': 0.26; 'testing': 0.26; 'bit': 0.28; 'pm,': 0.29; 'easier.': 0.30; "didn't": 0.30; 'certainly': 0.32; 'does': 0.32; 'changing': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'header:X-Complaints- To:1': 0.34; 'easiest': 0.34; 'to:addr:python-list': 0.35; 'something': 0.35; 'received:org': 0.36; 'but': 0.37; 'patch': 0.38; 'some': 0.38; 'doing': 0.38; 'think': 0.38; 'initially': 0.39; 'subject:from': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; "you'll": 0.61; 'stop': 0.61; 'your': 0.61; 'making': 0.64; 'imagine': 0.66; 'admitted': 0.67; 'gone': 0.68; 'promote': 0.76; 'mac.': 0.84; 'standard,': 0.84; 'shield': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Porting the 2-3 heap data-structure library from C to Python
Date Sat, 10 Mar 2012 21:17:06 -0500
References <mailman.465.1331130346.3037.python-list@python.org> <87boo89zul.fsf@xemacs.org> <mailman.473.1331137103.3037.python-list@python.org> <87399gne30.fsf@xemacs.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <87399gne30.fsf@xemacs.org>
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.555.1331432260.3037.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331432260 news.xs4all.nl 6916 [2001:888:2000:d::a6]:59701
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21476

Show key headers only | View raw


On 3/10/2012 8:03 PM, Hrvoje Niksic wrote:
> Stefan Behnel<stefan_ml@behnel.de>  writes:
>
>>> which is the standard way of extending Python with high-performance
>>> (and/or system-specific) C code.
>>
>> Well, it's *one* way.  Certainly not the easiest way, neither the most
>> portable and you'll have a hard time making it the fastest.
>
> I didn't say it was easy, but standard, in the sense of documented in
> Python documentation.  Python/C is as portable as Python itself, and as

Python is portable because a *lot* of work has gone and continues to go 
into making it so. And because it sticks with the lowest common 
denominator of C89. There is much system or compiler specific code in 
#ifdefs. There are over 60 buildbots for testing patches on various 
hardware-os-compiler-(python)version combinations. Perhaps once a week 
something does not work on one of them. The patch gets revised. It 
happened just today.

Apple is changing compilers for the Mac; Python initially did not build 
with the new compiler. Some people had to do some work so there would 
continue to be Python on the Mac. So I can imagine that Cython *might* 
shield one from some of the very real portability problems.

> fast as the platform allows.  I understand your desire to promote
> Cython, but please stop resorting to FUD in doing so.

You admitted it might be easier. Portability is plausible. So I think 
that a bit harsh.

-- 
Terry Jan Reedy

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


Thread

Porting the 2-3 heap data-structure library from C to Python Alec Taylor <alec.taylor6@gmail.com> - 2012-03-08 01:25 +1100
  Re: Porting the 2-3 heap data-structure library from C to Python Hrvoje Niksic <hniksic@xemacs.org> - 2012-03-07 16:48 +0100
    Re: Porting the 2-3 heap data-structure library from C to Python Stefan Behnel <stefan_ml@behnel.de> - 2012-03-07 17:18 +0100
      Re: Porting the 2-3 heap data-structure library from C to Python Hrvoje Niksic <hniksic@xemacs.org> - 2012-03-11 02:03 +0100
        Re: Porting the 2-3 heap data-structure library from C to Python Terry Reedy <tjreedy@udel.edu> - 2012-03-10 21:17 -0500
        Re: Porting the 2-3 heap data-structure library from C to Python Stefan Behnel <stefan_ml@behnel.de> - 2012-03-11 08:41 +0100

csiph-web