Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'parameters': 0.04; 'handler': 0.05; 'memory.': 0.07; 'abstraction': 0.09; 'prevents': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'stored': 0.12; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subroutine': 0.16; 'types,': 0.16; 'uncommon': 0.16; 'sat,': 0.16; 'variable': 0.18; 'mechanism': 0.19; 'memory': 0.22; 'example': 0.22; 'integer': 0.24; 'pointer': 0.24; 'url:home': 0.24; 'header:X-Complaints- To:1': 0.27; 'fixed': 0.29; 'michael': 0.29; 'external': 0.29; "i'm": 0.30; 'code': 0.31; 'too.': 0.31; 'pascal': 0.31; 'stuff': 0.32; 'operations': 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'half': 0.37; 'level': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'access,': 0.60; 'signal': 0.60; 'hardware': 0.61; 'address': 0.63; 'happen': 0.63; 'provide': 0.64; 'talking': 0.65; 'subject:This': 0.74; 'high...': 0.84; 'interrupt': 0.84; 'ready,': 0.84; 'spoke': 0.91; 'received:108': 0.93; 'story.': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: OT: This Swift thing Date: Sat, 07 Jun 2014 17:59:34 -0400 Organization: IISS Elusive Unicorn References: <8738fjkc2w.fsf@dpt-info.u-strasbg.fr> <53929baf$0$29988$c3e8da3$5496439d@news.astraweb.com> <53936148.1070109@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-220-213.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402178382 news.xs4all.nl 2925 [2001:888:2000:d::a6]:43402 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72932 On Sat, 07 Jun 2014 13:00:24 -0600, Michael Torrie declaimed the following: > >Which of course, technically, Pascal has too. > Not "standard" Pascal... It had pointer types, but no means to "stuff" an integer into the pointer variable in order to dereference it as a memory address... >But memory addressing is only half the story. You still need interrupts >and ioctl access, both of which happen via assembly instructions that >libc exposes via a standard C subroutine interface. > I/O interrupts is a level above the "driver" example I spoke of... I'm talking a true low-level "test status register, if data ready, copy data register, clear status register, return data to caller"... ioctl() is an OS abstraction mechanism to provide a standardized means for applications to provide uncommon parameters to an I/O driver... Heck, /libc/ is above the level of code I'm defining. What is an interrupt -- typically a handler (function) address stored in a fixed location used by the CPU when an external hardware signal goes high... Nothing prevents one from writing that handler in C and using C's various casting operations to stuff it into the vector memory. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/