Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!shaftesbury.zen.co.uk.POSTED!not-for-mail From: Nobody Subject: Re: Python CPU Date: Fri, 01 Apr 2011 17:52:11 +0100 User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.python References: <01bd055b-631d-45f0-90a7-229da4a9a362@t19g2000prd.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines: 15 Organization: Zen Internet NNTP-Posting-Host: b6450f5e.news.zen.co.uk X-Trace: DXC=2k2?bO6EMm>1OV>3BCD@?6nok4Z\ I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL > or Verilog? Java is a statically-typed language which makes a distinction between primitive types (bool, int, double, etc) and objects. Python is a dynamically-typed language which makes no such distinction. Even something as simple as "a + b" can be a primitive addition, a bigint addition, a call to a.__add__(b) or a call to b.__radd__(a), depending upon the values of a and b (which can differ for different invocations of the same code). This is one of the main reasons that statically-typed languages exist, and are used for most production software.