Search code examples
tcldistributionsoftware-distributiontk-toolkit

How To Distribute a Project Built In a Interpreted Language?


I've started a project(developer text editor) in a interpreted language(Tcl/Tk) and another with Perl(both are open-source), but with some time, when it gets in a Beta version, I will need to distribute it for the users(developers of course), but I want to know some things about this:

  • It's possible to compile it to a executable?
    • How?
    • Can I compile for other platforms?
  • Or in this case it's better to use a compiled language or a interpreted?
  • Is usual things like this?
  • In the users machine, he will need to have Tcl/Tk or Perl?

Solution

  • Both Tcl and Perl can be compiled into executables. For windows, there's perl2exe and perlcc for systems running UNIX style operating systems. As for Tcl, there is freewrap and starpacks.

    If you're just doing this for the benefit of a single executable, and eliminating the need for installing Perl and other dependencies, then there's no real reason you can't do this. It's quite a nice method for testing your application without having to constantly compile, though defeats the point of using an interpreted language in the first place.

    Also take a look at The Simplest Steps to Converting TCL TK to a Stand Alone Application, this page is also useful, How can I compile Tcl type scripts into binary code