Python CPU

Nobody nobody at nowhere.com
Fri Apr 1 12:52:11 EDT 2011


On Fri, 01 Apr 2011 08:38:27 -0700, Brad wrote:

> 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.




More information about the Python-list mailing list