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


Groups > comp.lang.python > #6182

Re: Functional Programing: stop using recursion, cons. Use map & vectors

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 <rosuav@gmail.com>
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 <iremvv$fih$1@dont-email.me>
References <24bfd260-385e-4002-a591-6417db1f30f1@r35g2000prj.googlegroups.com> <ircgq6$7pb$1@dont-email.me> <c18d3ea3-c1b2-4dbd-bb82-c5e693cecb2c@z19g2000yqz.googlegroups.com> <iremvv$fih$1@dont-email.me>
Date Wed, 25 May 2011 08:38:07 +1000
Subject Re: Functional Programing: stop using recursion, cons. Use map & vectors
From Chris Angelico <rosuav@gmail.com>
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 <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.2045.1306276690.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, May 24, 2011 at 8:27 AM, Deeyana <d.awlberg@hotmail.invalid> 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

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


Thread

Functional Programing: stop using recursion, cons. Use map & vectors Xah Lee <xahlee@gmail.com> - 2011-05-22 15:47 -0700
  Re: Functional Programing: stop using recursion, cons. Use map & vectors Deeyana <d.awlberg@hotmail.invalid> - 2011-05-23 02:29 +0000
    Re: Functional Programing: stop using recursion, cons. Use map & vectors asandroq <asandroq@gmail.com> - 2011-05-23 00:52 -0700
      Re: Functional Programing: stop using recursion, cons. Use map & vectors Deeyana <d.awlberg@hotmail.invalid> - 2011-05-23 22:27 +0000
        Re: Functional Programing: stop using recursion, cons. Use map & vectors asandroq <asandroq@gmail.com> - 2011-05-24 13:39 -0700
          Re: Functional Programing: stop using recursion, cons. Use map & vectors Deeyana <d.awlberg@hotmail.invalid> - 2011-05-25 00:03 +0000
        Re: Functional Programing: stop using recursion, cons. Use map & vectors Chris Angelico <rosuav@gmail.com> - 2011-05-25 08:38 +1000
  Re: Functional Programing: stop using recursion, cons. Use map & vectors torbenm@diku.dk (Torben Ægidius Mogensen) - 2011-05-23 10:51 +0200
    Re: Functional Programing: stop using recursion, cons. Use map & vectors "Pascal J. Bourguignon" <pjb@informatimago.com> - 2011-05-23 15:39 +0200
      Re: Functional Programing: stop using recursion, cons. Use map & vectors Antti J Ylikoski <antti.ylikoski@tkk.fi> - 2011-05-23 19:36 +0300

csiph-web