Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder7.xlned.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:using': 0.04; 'char': 0.07; 'int,': 0.07; 'involves': 0.07; 'references,': 0.07; 'python': 0.08; 'garbage': 0.09; 'runtime': 0.09; 'am,': 0.14; 'received:209.85.214.174': 0.14; 'received:mail- iw0-f174.google.com': 0.14; 'wrote:': 0.14; 'library': 0.15; 'angelico': 0.16; 'double,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mismatch': 0.16; 'subject:Programing': 0.16; 'subject:recursion': 0.16; 'subject:stop': 0.16; 'using,': 0.16; 'worse,': 0.16; 'structures': 0.16; 'void': 0.16; 'tue,': 0.17; 'allocated': 0.19; 'header:In-Reply-To:1': 0.21; 'memory': 0.22; 'code': 0.24; 'libraries': 0.25; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'concern': 0.29; 'manually': 0.29; '24,': 0.29; 'host': 0.29; 'types.': 0.30; 'calling': 0.31; 'does': 0.33; 'to:addr:python-list': 0.33; 'things': 0.33; 'chris': 0.34; 'received:google.com': 0.37; 'received:209.85': 0.37; 'but': 0.38; 'data': 0.38; 'though': 0.38; 'subject:: ': 0.38; 'doing': 0.39; 'received:209': 0.39; 'collected': 0.39; 'to:addr:python.org': 0.39; 'subject:, ': 0.60; 'subject: & ': 0.63; 'subject:. ': 0.65; 'yourself': 0.68; 'automatic': 0.73; 'claim.': 0.84; 'difficulties': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=URhh3TGSRWK/jC8tpXLImTM4ioXSzYwpTQpAHq6s2R8=; b=P4VHfN6EpHTj3CtWnCvb8RWtz7s7RZPXI5F9puQsbdt/qll2iUtoaSUxcnhksTMXKs iQIh8PdI6W221fXadZFBEERC88+F82/shlE0zOUWnJokaH1cXWf7/qdSCHPsEO7wnjr3 7RIxy48PDKemnaYk64QWXcLE+zW1X6ORHpKi4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=hhXU+lU8HOgbIhR52+2/rNmKkIdQmXoCmbkYsa7E9DOh+kdCjsoOdkm28Hm+Vgd+Lc KMU/k/9UE8jiQR8kthgjwK2D0K2nTQsDVLgndPc4HfEXTY3V77gidNcMVoMRNKcPhR8H NXzYrZj2v9FvpSyA2aFquokkgI6eQOP2KP7eU= MIME-Version: 1.0 In-Reply-To: References: <24bfd260-385e-4002-a591-6417db1f30f1@r35g2000prj.googlegroups.com> Date: Wed, 25 May 2011 08:38:07 +1000 Subject: Re: Functional Programing: stop using recursion, cons. Use map & vectors From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1306276691 news.xs4all.nl 49174 [::ffff:82.94.164.166]:55177 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:6182 On Tue, May 24, 2011 at 8:27 AM, Deeyana wrote: > Classic unsubstantiated and erroneous claim. Scheme does not come OOTB > with any suitable libraries for host interop and though it can make calls > to C libraries, doing so is awkward and involves difficulties with the > impedance mismatch between Scheme's data structures and C's char *, void > *, int, double, array, etc. types. To top it off, C lacks automatic > memory management, which means you'll have to concern yourself with > manually disposing of allocated data structures used in interop. (Or, > worse, things will get garbage collected by the Scheme runtime that the > Scheme code no longer references, but the C library is still using, and > bam! SIGSEGV.) How is this fundamentally different from Python calling into C? Chris Angelico