Is a "real" C-Python possible?

sturlamolden sturlamolden at yahoo.no
Wed Dec 12 12:09:19 EST 2007


On 12 Des, 17:44, "J. Clifford Dyer" <j... at sdf.lonestar.org> wrote:

> Programmable syntax is a very powerful concept.

You don't have to use the programmable syntax just because it's there.
But I do realize it would be a misfeature if it is abused.

Two points:

* Programmable syntax would make it easier to write an efficient
native compiler. The compiler would only need to know about the small
subset of language used for bootstrapping (i.e. any high-level OOP
constructs could emerge from defmacros).

* Numerical extensions like NumPy create a temporary array when
expressions like '(a+b)*(c+d)' is evaluated. This is because the
overloaded operators do not see the whole expression. Programmable
syntax is a remedy for this.






More information about the Python-list mailing list