Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '16,': 0.03; 'feedback.': 0.04; 'url:pipermail': 0.05; 'bits': 0.09; 'explanation': 0.09; 'here?': 0.09; 'things,': 0.09; 'cc:addr:python-list': 0.11; 'thread': 0.14; '"hey': 0.16; 'brilliant': 0.16; 'cleaner': 0.16; 'creation.': 0.16; 'dsl,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'python-dev,': 0.16; 'subject:File': 0.16; 'url:thread': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'bit': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'effort.': 0.24; 'skip': 0.24; 'stick': 0.24; 'stopping': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'subject:/': 0.26; 'code:': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; '[1]': 0.29; 'am,': 0.29; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; "i'm": 0.30; 'code': 0.31; 'getting': 0.31; 'lines': 0.31; 'too.': 0.31; "d'aprano": 0.31; 'proposing': 0.31; 'steven': 0.31; 'there.': 0.32; 'quite': 0.32; 'url:python': 0.33; "i'd": 0.34; 'subject:with': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'wrong': 0.37; 'being': 0.38; 'feedback': 0.38; 'window': 0.38; 'whatever': 0.38; 'pm,': 0.38; 'rather': 0.38; 'little': 0.38; 'bad': 0.39; 'enough': 0.39; 'url:mail': 0.40; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'most': 0.60; 'ago,': 0.61; 'discuss': 0.62; "you'll": 0.62; 'more': 0.64; 'forward': 0.65; 'talking': 0.65; 'here': 0.66; 'side': 0.67; 'believe': 0.68; 'mar': 0.68; 'yes': 0.68; 'debate': 0.68; 'subject: & ': 0.68; 'glad': 0.83; 'dsl': 0.84; 'pike': 0.84; 'reading,': 0.84; 'good,': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=IfIkZzLMuA01WsEwqVC2U7tuDcutZqtCYU9NEbHxrQk=; b=IdUcxgHx0tLt0ikj9y9Yot/Zj6wEbkj/vKu9UdNet2cdru7+aa4Em3nWMg/11nwmCT nmuEleYfrHS0GJsmQp+j/rJp9TiDJshGDMoCzJl0Grd6UN4Efn3zdJHXA4t9tGg5LI5g X09xC7HWGOlE43Pdvo17ZUy6qXbQSKZZBF9DV6s4v4E9IafoPnLHxdzNT3s9vvA2o272 UQawzDgTkdF0YUjx+2vxHj7Wu0L8gIJ1SnPnw/L+oetqRUqUe/B9OliSzmnHBfKmMJQJ mu61AB89xGUt97AyI776X5eQH24j7rZfWcQYN78o5mK10Xcf61VgjFc7TTWD+mpVIQch RGmA== MIME-Version: 1.0 X-Received: by 10.66.25.203 with SMTP id e11mr18738820pag.76.1394951837884; Sat, 15 Mar 2014 23:37:17 -0700 (PDT) In-Reply-To: References: <532505f0$0$29994$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 16 Mar 2014 17:37:17 +1100 Subject: Re: Sharing: File Reader Generator with & w/o Policy From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394951846 news.xs4all.nl 2872 [2001:888:2000:d::a6]:58678 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68386 On Sun, Mar 16, 2014 at 5:19 PM, Mark H Harris wrote: > On 3/16/14 12:41 AM, Chris Angelico wrote: >> To be quite frank, yes I do think it's a nutty idea. Like most nutty >> things, there's a kernel of something good in it, but that's not >> enough to build a system on :) > > > Thanks for your candor. I appreciate that too. Well, like I said, I'm > just experimenting with the idea right now, just playing around really. In > the process I'm coming more up-to-speed with python3.3 all the time. :) Good, glad you can take it the right way :) Learning is not by doing whatever you like and being told "Oh yes, very good job" like in kindergarten. Learning is by doing something (or proposing doing something) and getting solid feedback. Of course, that feedback may be wrong - your idea might be brilliant even though I believe it's a bad one - and you need to know when to stick to your guns and drive your idea forward through the hail of oncoming ... okay, this metaphor's getting a bit tangled in its own limbs... okay, the meta-metaphor is getting... alright I'm stopping now. >> We had a discussion along these lines a little while ago, about >> designing a DSL [1] for window creation. On one side of the debate was >> "hey look how much cleaner the code is if I use this DSL", and on the >> other side was "hey look how much work you don't have to do if you >> just write code directly". > > Was that on python-dev, or python-ideas, or here? I'd like to read > through it sometime. Was here on python-list: https://mail.python.org/pipermail/python-list/2014-January/664617.html https://mail.python.org/pipermail/python-list/2014-January/thread.html#664617 The thread rambled a bit, but if you like reading, there's some good content in there. You'll see some example code from my Pike MUD client, Gypsum, and Steven D'Aprano and I discuss it. If you'd rather skip most of the thread and just go to the bits I'm talking about, here's my explanation of the Pike code: https://mail.python.org/pipermail/python-list/2014-January/665286.html And here's Steven's take on it: https://mail.python.org/pipermail/python-list/2014-January/665356.html And keep reading from there. TL;DR: It's not perfect as a DSL, but it's jolly good as something that is already there and takes no effort. ChrisA