[Python-Dev] Python and compilers
Michael Foord
fuzzyman at voidspace.org.uk
Tue Apr 6 14:02:47 CEST 2010
On 06/04/2010 12:44, willian at ufpa.br wrote:
> First, thank you for all opnion. Each one was considered.
> I think the better question would be:
> I have to develop a project that involves compilers, and being a fan of
> Python, I thought about making a compiler for it (most basic idea involving
> Pythin and compilers). But I saw that I can use what I learned from
> compilers not only to create a compiler. What is the area of developing the
> Python interpreter that I could build my project, and please give me
> interesting ideas for the project.
>
Well, you are now thoroughly off topic for the python-dev mailing list -
so I suggest you ask your question on comp.lang.python or some other
Python list.
*However*, a project that would be interesting - and that I have wanted
to do in order to program microcontrollers with *very* small memory
address spaces [1] - would be to compile a static subset of Python down
to C. You would need to do type inferencing and support only a basic
minimum of the built-in types (and in fact I would start with perhaps
functions only), but it could be fun. It would not be Python however,
merely Python inspired.
Alternatively a general type-inferencing algorithm for Python, such as
the one used by ShedSkin, could be interesting.
All the best,
Michael
[1] Smaller devices than those targetted by
http://code.google.com/p/python-on-a-chip/
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (”BOGUS AGREEMENTS”) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
More information about the Python-Dev
mailing list