• Question: What computelanguage do you write your code in

    Asked by anon-251041 to Stewart on 1 Apr 2020.
    • Photo: Stewart Martin-Haugh

      Stewart Martin-Haugh answered on 1 Apr 2020:


      Most of the time I use Python. Python is a nice language – very easy to use. The only downside is it produces quite slow code – much faster than a human can work, but slower than peak performance from a computer.

      So for stuff that needs to be fast, I write using C++. This is a much faster language but much harder to use – it expects you to know what you’re doing, and crashes in mysterious ways if things go wrong.

      Usually most of the time is spent writing the code, so you don’t care about a few fractions of a second – that’s why I use Python most of the time.

      I also write a few short programs using the command line in Linux – this is called “scripting”. These will just run a few more complicated programs in sequence. The language I use for that is Bash.

Comments