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


Groups > comp.lang.python > #68235

Re: which async framework?

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.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.059
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'static': 0.04; 'framework.': 0.09; 'high-level': 0.09; 'useless': 0.09; 'cc:addr :python-list': 0.11; 'creates': 0.14; '(just': 0.16; 'antoine': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'latter,': 0.16; 'non-trivial': 0.16; 'programmers.': 0.16; 'reason.': 0.16; 'rewriting': 0.16; 'subject:which': 0.16; 'templating': 0.16; 'ignore': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'written': 0.21; 'code,': 0.22; 'handles': 0.22; 'cc:addr:python.org': 0.22; 'frameworks': 0.24; 'simpler': 0.24; 'decide': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'said,': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'usually': 0.31; '(although': 0.31; 'libraries': 0.31; 'yes.': 0.31; 'themselves': 0.32; 'call.': 0.33; 'framework': 0.33; 'actual': 0.34; 'definition': 0.35; 'usual': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'done': 0.36; 'subject:?': 0.36; 'server': 0.38; 'generic': 0.38; 'needed': 0.38; 'files': 0.38; 'rather': 0.38; '12,': 0.39; 'though,': 0.39; 'sure': 0.39; 'easy': 0.60; 'gone': 0.61; 'helps': 0.61; 'simply': 0.61; 'simple': 0.61; "you're": 0.61; 'making': 0.63; 'kind': 0.63; 'such': 0.63; 'more': 0.64; 'different': 0.65; '(that': 0.65; 'situation': 0.65; 'mar': 0.68; 'obvious': 0.74; 'careless': 0.84; 'everything,': 0.84; 'pike': 0.84; 'piled': 0.84; 'updates,': 0.84; 'careful': 0.91; 'joomla': 0.91; 'to:none': 0.92; 'responses': 0.93
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=33shhUGHtaMabeMNGHrcW+zhRzTo/oXswzlulocHo34=; b=zxXt9UIAtl+bt2mW04Ertn9/QzXMAMJfQN3YbTUzpkNqm4PCiGR81lWp6IO8uGCeRx 331ZmYAXzRdjlR21HusYQC9bNGS4oGMoGSEzIwVmiMk9G/L8veP82yN+77d3WnzFEpmU LPXUjojKyGlGa14LmrJqlgsCp5p24tijcDv9zAiRTetim77arjzT0YAlhl4TxeiqF5oi n7bGn1Kgz09jE6m7naEAkFZcJ55rn76PZVInwziA7WvaZ1tLNoMCUafsqq2zyPL/YTc0 ITtQuAmp02lG6CA9mBVa8vEZT7/bDKtsEQF5/yhuqOAk3UXHcAqrwXuEwiK3js8kgiTH 4Jfg==
MIME-Version 1.0
X-Received by 10.68.200.74 with SMTP id jq10mr11874572pbc.169.1394564548153; Tue, 11 Mar 2014 12:02:28 -0700 (PDT)
In-Reply-To <loom.20140311T193409-649@post.gmane.org>
References <531E22DF.7030709@simplistix.co.uk> <1733040935416225908.878896sturla.molden-gmail.com@news.gmane.org> <loom.20140311T170030-477@post.gmane.org> <372076480416251284.821607sturla.molden-gmail.com@news.gmane.org> <loom.20140311T193409-649@post.gmane.org>
Date Wed, 12 Mar 2014 06:02:28 +1100
Subject Re: which async framework?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.8058.1394564557.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1394564557 news.xs4all.nl 2961 [2001:888:2000:d::a6]:49975
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:68235

Show key headers only | View raw


On Wed, Mar 12, 2014 at 5:43 AM, Antoine Pitrou <solipsis@pitrou.net> wrote:
> This is the usual assumption that high-level libraries are made of useless
> cruft piled up by careless programmers. But there are actual reasons
> why these frameworks have a significant amount of code, and people who
> decide to ignore those reasons are simply bound to reimplement
> non-trivial parts of those frameworks in less careful and less tested
> ways (and they have to maintain it themselves afterwards).

Once again, that's a judgment call. Those frameworks are usually
written to be generic and to support lots of different systems, and if
all you need is one of them, it's not so obvious that you 'ought to'
use the framework. You do not need Joomla when all you want is a whole
lot of static HTML files by one person - look for a simpler framework
that doesn't put heaps of emphasis on user management, or no framework
at all (just some nice templating system).

But yes. If you're reimplementing something, you have to have a VERY
good reason. I'm much more likely to write a program that edits
bindfiles than to write a DNS server (although I have done both - Pike
makes it easy to do the latter, and I had one situation where I was
using DNS in such a way that I actually needed to generate responses
on-the-fly based on rules, rather than pre-write everything), because
BIND9 already handles pretty much everything, and its definition files
are simple and easy to manipulate. (That said, though, I have
*frequently* gone for some kind of meta-file with a script that
creates the actual bindfiles. Helps with keeping things consistent,
making sure I do the version updates, and so on. But that's not
rewriting BIND.)

ChrisA

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


Thread

Re: which async framework? Chris Angelico <rosuav@gmail.com> - 2014-03-12 06:02 +1100

csiph-web