Saturday, February 26, 2011

Tcl Python converter / interpreter

After searching the guts of the internet - I found that there is not a single working example that can convert Tcl to Python.

This is a major drawback to the industry!!
If one exists (please let me know ASAP) the industry can switch to Python, this move will give it the ability to develop more rapidly and neglect the faults of this very old and nothing oriented language.
The industry will then be able to progress much faster.

Big greedy thoughts came to my mind - 'I can be rich if I could just create such a thing', but it's really a big problem, to my opinion, and I believe that if one could be created it should be distributed almost freely to take the industry to the next level.

I'll attempt to attack this problem on my own (you are welcome to join forces).
Please, let me know if there is any solution to this problem.

I've some ideas on 'how to attack this problem', here they are:
1. Using TCP/IP pipe - HLD schema
2. Create a python script to convert Tcl script to Python (sounds like a hugh work hours).
3. Create a Tcl script to convert Tcl to Python (sound worst than #2)

9 comments:

  1. I've never tried it, but this looks promising, "IBM Jacl to Jython Conversion Assistant":
    http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg24012144

    Please let us know if you have any success with it.

    ReplyDelete
  2. Hi,
    I've looked at the link, it's more like a java-tcl to Jython (Java-Python) converter.

    unfortunately I've kind'a proved that TCL can't be converted to python in a conventional way.

    Here is the problem I've encountered:
    The converter should convert code like 'eval "${func_name} $parameters"', can this be done without the TCL converter? if not, we need a fully functional TCL interpreter in python, this is a problem.

    If you have an idea how o overcome this problem, i'll be more that happy to hear.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Here is the thing most people aren't aware of, python is built on top of Tcl/Tk already and has an embedded Tcl/Tk interpreter using Python's Tkinter which allows for Tcl code to be evaluated and back.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Hello. Did you make any progress on converting TCL script to python code ?

    ReplyDelete
  8. Excellent publish from specialist also it will probably be a fantastic know how to me and thanks very much for posting this useful data with us all. https://python.engineering/1868714-how-do-i-copy-an-entire-directory-of-files-into-an-existing-directory-using-python/

    ReplyDelete