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


Groups > comp.lang.python > #41458

Re: [Python-ideas] Message passing syntax for objects

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bsk16@case.edu>
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:: [': 0.03; 'broken': 0.03; 'subject:Python': 0.05; 'method,': 0.07; 'api': 0.09; 'abstraction': 0.09; 'collections': 0.09; 'defined.': 0.09; 'integers': 0.09; 'operator,': 0.09; 'sure,': 0.09; 'thread,': 0.09; 'component': 0.15; 'passing': 0.15; '"every': 0.16; '*next*': 0.16; 'collections.': 0.16; 'comparison.': 0.16; 'janssen': 0.16; 'operator.': 0.16; 'pipes': 0.16; 'simplified': 0.16; 'stop.': 0.16; 'subject:ideas': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'integer': 0.17; 'pieces': 0.17; 'shell': 0.18; '>>>': 0.18; 'subject:] ': 0.19; 'define': 0.20; 'putting': 0.20; 'trying': 0.21; 'do.': 0.21; 'noted': 0.22; 'simpler': 0.22; 'split': 0.23; 'seems': 0.23; 'random': 0.24; 'header:In-Reply- To:1': 0.25; 'creating': 0.26; 'common': 0.26; 'continuing': 0.27; '(such': 0.27; 'message-id:@mail.gmail.com': 0.27; 'all.': 0.28; 'run': 0.28; 'post': 0.28; 'feature,': 0.29; 'yes.': 0.29; 'url:mailman': 0.29; 'integration': 0.29; 'objects': 0.29; 'probably': 0.29; "i'm": 0.29; 'point': 0.31; 'url:python': 0.32; 'could': 0.32; 'url:listinfo': 0.32; 'point,': 0.33; 'right?': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'languages': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'data,': 0.35; 'replaced': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'add': 0.36; 'but': 0.36; 'url:org': 0.36; 'functional': 0.36; 'smaller': 0.36; 'method': 0.36; 'should': 0.36; 'why': 0.37; 'received:209': 0.37; 'data': 0.37; 'mark': 0.38; 'object': 0.38; 'some': 0.38; 'things': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'subject:-': 0.40; 'url:mail': 0.40; 'your': 0.60; 'most': 0.61; "you've": 0.61; 'internet,': 0.61; 'kind': 0.61; 'more': 0.63; 'great': 0.64; 'behaviors': 0.71; 'gain': 0.79; '2013': 0.84; 'interaction.': 0.84; 'magical': 0.93
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=pKgmOVWMh52nxpVDO0ViKmGF2gKhGfzO8u4j+vGtX9M=; b=OvJpKhqEnpOwa+PxAIW4ztr3Ae1pS3tbNp5mvS8nbb59kSf3xURg5xT9uS6tLqtjOL PHIrT9Key/C71cPLiScXdQzp9RSs1FX8k1VnYQx5bs7R16ex7l1Qeq9CkDx7WRd7SVjP cai4f+q9g7WyxCcA2h629Ah0P3OP/UPKFQQKnmZMFWvUUPHVsfK9LBBwj7XWJcFLgGsz w/ZYI/eSf82abRHJ1NoHLw9/KKqgDFw1QfrbqgZ8tLMec4wMynTJP6c7S8ZP0w2eL0wX 5f3Kxg8/pX2oAdqvqxCWIfMaAZonORLauOAL/MH1s1uNJH2ekgllQCAOQPAoccSv3lR5 q2UQ==
X-Received by 10.60.28.2 with SMTP id x2mr7413815oeg.65.1363638841580; Mon, 18 Mar 2013 13:34:01 -0700 (PDT)
MIME-Version 1.0
X-Received by 10.60.28.2 with SMTP id x2mr7413812oeg.65.1363638841500; Mon, 18 Mar 2013 13:34:01 -0700 (PDT)
In-Reply-To <CAMjeLr9MRs4aozfYwHU93nKZ0_8s5guFrtj+m_AMycgvFch2Mg@mail.gmail.com>
References <CAMjeLr_dBCSL9VGjrW6wJjMDhLWFdxWqGWw+5MXTfo8+x9yfYw@mail.gmail.com> <CAMjeLr_q-8NbBAOOZ7yu8H+WcrJNU=8ZmudWkt9itM9ZLJuh4g@mail.gmail.com> <ki7oja$u70$1@ger.gmane.org> <CAMjeLr9MRs4aozfYwHU93nKZ0_8s5guFrtj+m_AMycgvFch2Mg@mail.gmail.com>
Date Mon, 18 Mar 2013 13:34:01 -0700
Subject Re: [Python-ideas] Message passing syntax for objects
From Benjamin Kaplan <benjamin.kaplan@case.edu>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-Gm-Message-State ALoCoQluoF4WKcEy4QrqxgjjlOeDQ7EwGByHwteVC5jRbhdL7vm1Tt9fV7b/qv6xqUYP/nS3dQ3ArFRb1U1cp18RwovayoquosmHeLXGmBkJ30ome2TTWwLKHMtNXhx1b1RA9x2xWjhbrtzMVJhq9HRH2mlVEB9+1g==
X-Junkmail-Whitelist YES (by domain whitelist at mpv2.tis.cwru.edu)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.3475.1363638846.2939.python-list@python.org> (permalink)
Lines 55
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363638846 news.xs4all.nl 6982 [2001:888:2000:d::a6]:40672
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41458

Show key headers only | View raw


On Mon, Mar 18, 2013 at 1:24 PM, Mark Janssen <dreamingforward@gmail.com> wrote:
> On Mon, Mar 18, 2013 at 12:06 PM, Georg Brandl <g.brandl@gmx.net> wrote:
>> Am 18.03.2013 05:26, schrieb Mark Janssen:
>>> Continuing on this thread, there would be a new bunch of behaviors to
>>> be defined.  Since "everything is an object", there can now be a
>>> standard way to define the *next* common abstraction of "every object
>>> interacts with other objects".
>>
>> The problem is that for most objects there isn't *the* interaction.  Sure,
>> you could split up complicated objects into small pieces with a smaller
>> functionality, but at some point you have to stop.
>
> Yes.  But that is the point, if you look at the quora post -- to
> invert the object model and create mashups of simple modular data
> types and working *upwards*.
>
>>  Let's see how this
>> concept fares with simple types such as integers or collections...
>>
>>>>>> 42 >> MyNumberType #would add the integer to your integer type
>>
>> That's just random.  Why not multiply?  Why not exponentiate?
>
> Well, as I noted in another post, that while these can be broken down
> into their simpler component (addition and negative numbers), numbers
> should probably be treated separately.
>
>>>>>> 42 >> MyCollectionType  #would add the object into your collection:
>>>  *poof*: no more random syntaxiis for putting things in collections.\
>>
>> So you've replaced one method of a collections API by your magical operator,
>> for all collections.
>
> Yes -- for all collections.  That's a pretty big gain right?
>

Nope. No gain at all. Instead of learning the add() method, you learn
the >> operator. You have not simplified anything.
>> It seems that you are reinventing pipes (such as UNIX shell pipes).
>
> That is a very interesting comparison.  That is something like what
> I'm trying to do.  In tandem with the Internet, I do see a kind of
> synthesis of Web + O.S. integration -- ultimately, creating a "data
> ecosystem".
>
> mark

Yes, having the whole program run by chaining functions together is a
neat idea. And it works great in functional languages- if you want
that as a feature, use OCaml or Haskell. It works less well in
imperative languages where you are manipulating data, not just passing
it around.

> --
> http://mail.python.org/mailman/listinfo/python-list

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


Thread

Re: [Python-ideas] Message passing syntax for objects Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-03-18 13:34 -0700

csiph-web