Best language for writing automation software

Discussion in 'General Programming Chat' started by johndea, Aug 14, 2011.

  1. johndea

    johndea Regular Member

    Joined:
    Jun 23, 2011
    Messages:
    308
    Likes Received:
    35
    Let's say I want to write some automation software.

    I want it to be crossplatform (Windows, Linux, and maybe Mac).

    What is the best language to use for this software?
    Python is fast to write, but then I can't hide the source code and distribute an executable. Your thoughts?
     
  2. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,683
    Likes Received:
    2,427
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    At the end its your convenience that matters if the choice is between making fast or not making the software at all.

    I personally choose C/C++ and a bunch of freeware libraries such as CURL, but thats only because I know that I can finish the project within acceptable time period.
     
  3. johndea

    johndea Regular Member

    Joined:
    Jun 23, 2011
    Messages:
    308
    Likes Received:
    35
    From C++, how do you interact with the browser and do macros?
     
  4. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,683
    Likes Received:
    2,427
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
  5. dr_0x

    dr_0x Jr. VIP Jr. VIP

    Joined:
    May 9, 2010
    Messages:
    307
    Likes Received:
    256
    Home Page:
    Yes you can.

    Code:
    http://www.py2exe.org/
    http://www.pyinstaller.org/
    
    Python is the balm for fast development and flexibility. Also as far as language goes check out the natural language toolkit (nltk)

    Code:
    www.nltk.org
    
    Don't get me wrong c++ is great too, just that python will get you from a to b quicker.
     
  6. neutralhatter

    neutralhatter Regular Member

    Joined:
    Jun 23, 2010
    Messages:
    437
    Likes Received:
    332
    Best is to look first for automation libraries instead of a language. development languages in general are to abstract to define wich is the best solution for your needs.
     
  7. rippa911

    rippa911 Junior Member

    Joined:
    Jun 21, 2010
    Messages:
    112
    Likes Received:
    109
    C++ execute fastest. Python is fast to program but very slow to execute. Not recommended.
     
    • Thanks Thanks x 1
  8. dr_0x

    dr_0x Jr. VIP Jr. VIP

    Joined:
    May 9, 2010
    Messages:
    307
    Likes Received:
    256
    Home Page:
    Thats a crock of shit. Your Python code is byte compiled just like c++. You are just spouting of some stuff you heard someplace. There are cases where c and c++ would be faster than python but that *only* comes from optimizing the built in functions of python. 99% of the time python will be just as fast.
     
  9. lancis

    lancis Elite Member

    Joined:
    Jul 31, 2010
    Messages:
    1,683
    Likes Received:
    2,427
    Occupation:
    Entrepreneur
    Location:
    Milky Way
    Home Page:
    I invite you to write programs with same functionality in C and Python, and test the execution speed. You'll find that C is faster, and the difference comes from the fact that Python is an interpreted language, while C compiles to machine code.

    One of my earlier projects was to write an interpreted C like language - trust me there is too much overhead once interpreter is in play.
     
  10. dr_0x

    dr_0x Jr. VIP Jr. VIP

    Joined:
    May 9, 2010
    Messages:
    307
    Likes Received:
    256
    Home Page:
    Really, I may jumped the gun some and I am not trying to start an argument about this. You can write python modules in C if you need performance. If you are doing some serious sh*t then yeah, C is going to be faster. My point is this, with the speed of computers these days you don't need to do everything in C. There is a reason that many large companies (*cough* Youtube) do almost all their stuff in python and only optimise in C or C++ when absolutely needed. I have personal experience with a company whose entire codebase was in python and we made lots of money and did some serious sh*t. Never once did we run into a situation where we *needed* to use C. So most people, especially those who are asking what language they should use will be better off just going with python. Thats all I am going to say about this.

    Code:
    http://en.wikipedia.org/wiki/Bytecode
    
    I urge anyone interested in programming to watch this. If you can't make it through the whole thing start a min 35
    http://www.youtube.com/watch?v=KKQS8EDG1P4

    Code:
    http://www.ibm.com/developerworks/library/l-psyco/index.html
    
     
    Last edited: Aug 14, 2011