My task was simple - to create a script (mostly paths and file manipulations) for a friend. Hour or two of coding, and it was ready. I did it in python. Now, in linux - it’s easy - everybody has python installed and the script is regular executable file, same as emacs/evolution/firefox/etc.
But on windows… now i need the friend to install python. I thought it’s too much to ask and googled for compiler from python to exe. I found some stuff, but nothing that could pack the interpreter and the script in one executable (did i google enough?).
Then i decided to port it to C++. 2 hours of work, and the code finally compiles using boost and bloodshed c++ (kudos to their package manager which allowed me to install boost easily). But wait… it doesn’t link with some strange warning (which i google and i understand that the issue is boost is built with different compiler version).
OK, let’s install older boost, port the code, another hour - and then start to debug and understand that the most innocent and safe line causes core dump. C++ goes down the trash, uninstalled.
Next idea was to code in scheme and compile it, i learned scheme in the university some day long time ago, but that was difficult too. PLT-Scheme compiled some test program into executable that did nothing. Gambit-C did the trick but it did not contain several functions such as “sort” and debugging was more than painful (and i needed it, after all last time i touched scheme was around 10 years ago). Well, scheme went down the trash too.
Then i wanted to do it in haskell, but, i had no courage to do it
.
Last idea was to use IronPython or Jython and compile them, and i even tried with IronPython,but i gave up after some tries.
Resolution: i hate to develop on windows and i’ll ask my friend to install python!
windows, development, linux, python, c++