Python or C++

Discussion in 'App Development' started by yabz, Jun 5, 2017.

  1. bln

    bln

    Go got many benefits over Python, some of the top of my head.

    - produces binaries just like C/C++/Fortran
    - excellent concurrency functionality, no thread management needed for parallel execution
    - strongly typed
    - very good and efficient garbage collector
    - no problem with legacy Python v2 packages not working in Python v3
    - python is slow in terms of execution speed, something it shares with Ruby.
    - smaller foot print, doesn't have to ship a whole runtime inside Docker container images

    Python is a good language that I like to use too, everyone has different needs and wants.
     
    Last edited: Jul 29, 2017
    #61     Jul 29, 2017
  2. Last edited: Jul 29, 2017
    #62     Jul 29, 2017
  3. userque

    userque

    #63     Jul 30, 2017
  4. Macca1

    Macca1

    #64     Jul 30, 2017
  5. userque

    userque

    I believe Golang is much better at using all threads.

    Golang is a cleaner solution than marrying Cython/Numba with Python. I believe there are certain coding restrictions and compatibility issues with Cython. And I don't believe Numba speeds up all of the python code.?
     
    #65     Jul 30, 2017
  6. avoid obscure programming languages unless you're into pain. They will only hurt you in the long run. It take years to become fluent in any programming language. The financial world is complex enough and now we need to be programmers also. Find the data feed and trade execution api's you plan on using and program in it's native language where possible.
     
    #66     Jul 31, 2017
    Macca1 and lovethetrade like this.
  7. yabz

    yabz

    For people thinking of using C++ its worth reading what Linus Torvalds thinks about it.
     
    #67     Aug 4, 2017
  8. truetype

    truetype

    That's a period piece, from 10 years ago.
     
    #68     Aug 4, 2017
  9. yabz

    yabz

    Has he changed his mind? Interestingly Dennis Ritchie didn't think much of C++ either, although he wasn't as blunt...
     
    #69     Aug 5, 2017
  10. I've skimped through the conversation here but seems to me like Java was hardly mentioned? Not to go as far as to actually consider it...

    I did and still do both C++ and Java. At work C++, for my own stuff where I don't have to suffer, I use Java, hands down. Much friendlier to the developer, superb IDE (IntelliJ), compiles much faster, tons of stuff in the *standard*library and virtually everything in third party ones. Performance... well, if you use IB API then Java is not the issue here.

    Don't know Python and I shy of starting to learn it and I mean not the FOR I = 1 TO N "learn XXX language in a week" meme but really knowing the standard libraries, OOP idiosyncrasies, exceptions, logging, threading, memory model, networking, databases, GUI, build systems, testing, deploy systems.

    For small scripts I have Perl. For serious stuff I use Java.
     
    #70     Aug 25, 2017