Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'subject:not': 0.03; 'subject:Python': 0.06; '*is*': 0.09; 'skip:/ 10': 0.09; 'subject:software': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'systems.': 0.12; 'wrote': 0.14; 'question.': 0.14; "wouldn't": 0.14; 'api,': 0.16; 'at.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'handling,': 0.16; 'higher-level': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'module': 0.19; 'ticket': 0.19; 'things.': 0.19; 'feb': 0.22; '>>>': 0.22; 'python?': 0.22; 'cc:addr:python.org': 0.22; 'driver': 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'that.': 0.31; 'card,': 0.31; 'concern': 0.31; 'perl': 0.31; 'subject:that': 0.31; 'linux': 0.33; 'running': 0.33; 'ago': 0.33; 'totally': 0.33; 'device': 0.34; 'sense': 0.34; 'maybe': 0.34; 'subject:the': 0.34; 'connection': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'real-time': 0.36; 'doing': 0.36; 'subject:?': 0.36; 'operating': 0.37; 'implement': 0.38; 'driving': 0.38; 'pm,': 0.38; 'healthy': 0.61; 'today,': 0.61; 'you.': 0.62; 'developed': 0.63; 'kind': 0.63; 'card': 0.63; 'myself': 0.63; 'talking': 0.65; 'details': 0.65; 'close': 0.67; 'sam': 0.68; 'drivers': 0.74; 'transfer': 0.82; 'expose': 0.84; 'interrupt': 0.84; 'subject:kinds': 0.84; '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:content-transfer-encoding; bh=UFkZg5a2DpmVjxB/Kf+xqfM9qrNVHZaOmRual+yHXR8=; b=SFMln8vGYV+NgyTml1mHDWuTKusSm3BBTWqbMPNHGFhCrmdTnNSx86aZuk5n8LBuVl Kdz3ztH1Xp6OM16d3la4dYbPIks/G3QS8tXk2QbaQUB9mj+17OB9+8/MleF4IrzodphN c295h97rNXfr+30lGqsQ2QmrOiuCrfBWDmn74jKQ7MuyxA3nE4c6wx48QHg1djPqZheo AFhoX3QMAFXiPShlSLLUOpmu4SMRZ/KRtn/XE3xYq7YFpMGjM55d6gSwyYtCt687mydU yf8KkWhbDiRf4uPHP/GkKSnBeFmIJ1uu26kL7U9bDADCizeakKw5hiLr6aRePdYcMqsq xlOQ== MIME-Version: 1.0 X-Received: by 10.68.223.9 with SMTP id qq9mr29676780pbc.58.1391919276858; Sat, 08 Feb 2014 20:14:36 -0800 (PST) In-Reply-To: <52F6FF3A.8010903@gmail.com> References: <52F6FF3A.8010903@gmail.com> Date: Sun, 9 Feb 2014 15:14:36 +1100 Subject: Re: What are the kinds of software that are not advisable to be developed using Python? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391919286 news.xs4all.nl 2882 [2001:888:2000:d::a6]:37428 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65721 On Sun, Feb 9, 2014 at 3:08 PM, Michael Torrie wrote: > On 02/08/2014 05:11 PM, Chris Angelico wrote: >> On Sun, Feb 9, 2014 at 10:54 AM, Sam wrote: >>> I got to know about Python a few months ago and today, I want to develo= p only using Python because of its code readability. This is not a healthy = bias. To play my own devil's advocate, I have a question. What are the kind= s of software that are not advisable to be developed using Python? >>> >> >> Device drivers and operating systems. Definitely don't try writing >> those in pure Python. > > That all depends. Driving a USB device using libusb and Python might > just be the ticket to get things up and running quickly. At one time > someone wrote a Linux kernel module that allowed you to use Perl to > implement some kinds of driver things. That's not the same; libusb is doing the low-level handling for you. That's not the sense of "device driver" that gets really close to the metal. I'm talking about real-time response to signals, I/O port and interrupt handling, that kind of thing. The device driver will then expose a higher-level API, maybe as a /dev/something openable, and Python can control the device using that. And that's something that Python *is* good at. I wouldn't use Python to write a device driver for an RTL8169 card, but if I have that card in my computer, I will totally use Python to create a network connection and transfer data. I'm just not going to concern myself with the low-level details when I do. :) ChrisA