![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#21 |
|
Expert Programmer
|
Any good texts out there on compiler design that could get me started? Hmm, how about this, a Python compiler written in Python...
|
|
|
|
|
|
#22 |
|
Newbie
Join Date: Feb 2005
Posts: 8
Rep Power: 0
![]() |
Seems a bit ambitious, don't you think? Don't forget that the fact that the language is interpreted is one of its greatest strengths. Its dynamic/flexible nature, and the rapid development cycle it allows, are central to the popularity of the language.
|
|
|
|
|
|
#23 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Interpreters written in Python is another matter. The introspection provided by Python and it's dynamic nature makes this ridiculously easy.. I know of someone who wrote a PHP interpreter in Python, and i've written a mini language in Python (with integer, strings, dictionary, floating point, and list types) which you can extend with Python (simply specify the name of the Python file, and all functions defined there can be used from the language).
|
|
|
|
|
|
#24 |
|
Expert Programmer
|
I don't plan on actually writing a compiler for the language, it's way past me, but I would still be interested on reading a book on compiler design.
|
|
|
|
|
|
#25 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
It should be easier to create a Python to C++ translator and then use one of the many C++ compilers to generate the exe file.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#26 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
I know I'm bumping up an old thread, but only because I seriously support the idea of a hidden-source compiler for Python (or at least a good one).
|
|
|
|
|
|
#27 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
The beauty of Python is that it is open-source, not hidden-source! Maybe you should contact Microsoft for some of their internal super-hidden-source languages like F#.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#28 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
But I still want something that can compile all my modules!! I don't want my clients to need to download 4 seperate Python installations plus my source!!!!!!!!!! I know there is py2exe but the exact problem is no one I know can get it to work...
so "...only because I seriously support the idea of a hidden-source compiler for Python (or at least a good one)." |
|
|
|
|
|
#29 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
There isn't anything wrong with open source. Neither is there anything wrong with closed-source, proprietary stuff. Advancement would be considerably slower because of lack of inducement if people couldn't protect and profit from their original ideas. We all want to be philanthropists and charitable -- right after we ensure our next few meals and a roof over our head.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#30 | |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Quote:
The problem with a Python to C++ translator is that whoever writes it has to be very familiar with both languages.
__________________
I looked it up on the Intergnats! |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|