Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'handled': 0.03; 'subject:Python': 0.04; 'folks': 0.04; 'wed,': 0.04; 'python.': 0.05; 'high-level': 0.05; 'implements': 0.05; 'instance,': 0.05; 'suppose': 0.05; '(same': 0.07; 'cpython': 0.07; 'python': 0.07; 'assembler': 0.09; 'counting': 0.09; 'either.': 0.09; 'integers': 0.09; 'processor,': 0.09; 'pm,': 0.11; 'received:74.125.82.44': 0.14; 'received:mail- ww0-f44.google.com': 0.14; 'wrote:': 0.14; '*must*': 0.16; 'caching': 0.16; 'chosen.': 0.16; 'contrary,': 0.16; 'jython': 0.16; 'possibly': 0.16; 'language,': 0.18; 'processor': 0.19; 'source.': 0.19; 'java,': 0.20; 'language': 0.20; 'not.': 0.22; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'gil': 0.23; 'works.': 0.23; 'statement': 0.26; 'subject:data': 0.26; 'there.': 0.26; 'instead': 0.26; 'architecture': 0.26; 'message- id:@mail.gmail.com': 0.28; 'subject:?': 0.29; 'are.': 0.29; 'assuming': 0.29; 'all.': 0.30; '"python"': 0.31; 'etc).': 0.31; 'does': 0.31; 'it.': 0.31; 'fact': 0.31; 'to:addr:python-list': 0.32; 'another': 0.32; 'implemented': 0.33; 'things': 0.33; 'handling': 0.33; 'several': 0.33; 'lines': 0.34; 'reference': 0.34; 'there': 0.35; 'force': 0.35; 'c#,': 0.35; 'languages.': 0.35; 'subject:What': 0.35; 'subject:use': 0.35; 'quite': 0.36; 'problem.': 0.36; 'enough': 0.37; 'data': 0.37; 'should': 0.37; 'faster': 0.38; 'strings': 0.38; 'received:google.com': 0.38; 'less': 0.38; 'but': 0.38; 'current': 0.38; 'realize': 0.39; 'sources': 0.39; 'under': 0.39; 'explain': 0.39; 'to:addr:python.org': 0.39; 'how': 0.39; 'works': 0.40; "it's": 0.40; 'modeling': 0.60; 'best': 0.60; '2011': 0.62; 'here': 0.65; 'show': 0.67; 'today': 0.70; 'period.': 0.73; 'unnecessary': 0.73; 'claim': 0.76; 'huh?': 0.84; 'received:129': 0.84; 'subject:other': 0.84; 'tied': 0.84; 'contextual': 0.91 MIME-Version: 1.0 In-Reply-To: <3Ihwp.18043$Ot6.11759@newsfe15.iad> References: <4dbd1dbf$0$29991$c3e8da3$5496439d@news.astraweb.com> <77f64071-b288-404c-8280-b2c61ba77f06@n10g2000yqf.googlegroups.com> <4dc12fb4$0$29991$c3e8da3$5496439d@news.astraweb.com> <7q1898-f3l.ln1@svn.schaathun.net> <3Ihwp.18043$Ot6.11759@newsfe15.iad> Date: Wed, 4 May 2011 15:46:07 -0400 Subject: Re: What other languages use the same data model as Python? From: Benjamin Kaplan To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Junkmail-Status: score=10/49, host=mpv2.tis.cwru.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020209.4DC1AD06.01C8,ss=1,pt=DBB_66871,fgs=0, ip=74.125.82.44, so=2010-12-23 16:51:53, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 62 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304538384 news.xs4all.nl 65870 [::ffff:82.94.164.166]:57768 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4654 On Wed, May 4, 2011 at 3:22 PM, harrismh777 wrote= : > Hans Georg Schaathun wrote: >> >> It only works by assuming >> knowledge of C, which is language which has proved unsuitable for >> complex and abstract data modelling. > > =A0 That statement is untrue; evidenced by the very fact the CPython's co= mplex > and abstract data modeling has been very suitably handled by C. > =A0 You cannot possibly mean what you have asserted... I realize there mu= st be > a contextual problem. =A0I have been handling complex data abstractions w= ith C > for more than 20 years... its quite well suited to the task... although, = I > am able to do my research today faster and with less lines of code in > CPython. =A0That does not in any way impugn C..;. quite the contrary, giv= en > enough time, =A0C is better suited for modeling on a von Neumann processo= r, > period. > > =A0 Here is the thing that everyone forgets... all we have to work with i= s a > von Neumann processor. (same as EDVAC, ENIAC, the VIC20, etc). Assembler = is > still the best language on that processor. =A0'C' =A0is still the best > high-level language on that processor. =A0CPython is implemented in C for= a > reason: =A0gcc and the von Neumann processor make it a no-brainer. > CPython is implemented in C because that's the language chosen. Python is also implemented in Java, C#, Python, and several other languages. And it's not tied to the von Neumann architecture either. Only the current implementations of it are. > =A0 Its silly to claim that one high-level language or another is better > suited to complex data abstraction... don't go there. > > >> Digging down into C should be unnecessary to explain Python. > > > =A0 huh? =A0 You have to be kidding. Why do you suppose we want it to be > open-sourced? =A0 Use the force Luke, read the source. =A0 If you really = want to > know how Python is working you *must* dig down into the C code which > implements it. =A0The folks who document Python should be able to tell us > enough to know how to use the language, but to really 'know' you need the > implementation source. > Reading the CPython sources will show you how CPython works under the hood, but it has nothing to do with how Python works. There are lots of things that CPython does that "Python" does not. For instance, the GIL is not a part of Python. Reference counting is not a part of Python. Caching small integers and strings is not a part of Python. Why not read the Jython sources instead of the CPython? It's the same language, after all.