Why is C++ still a very popular language in quantitative finance?
quant.stackexchange.com
Why is C++ still a very popular language in quantitative finance?
1–10 of 51 posts
Re: Why is C++ still a very popular language in quantitative finance?
#2Re: Why is C++ still a very popular language in quantitative finance?
#3Re: Why is C++ still a very popular language in quantitative finance?
#4If you include memory usage in your performance comparison (which is very important for parallel programming), C++ is leagues ahead.
Re: Why is C++ still a very popular language in quantitative finance?
#5These days, more performance-sensitive codes are bottlenecked by memory performance than by CPU performance. The throughput of CPUs has grown faster than our ability to keep those CPUs fed from memory. In the supercomputing world this started to become evident years ago; memory benchmarks like STREAM became more closely correlated with real-world performance than CPU benchmarks like LINPACK for a great many algorithms. The resurgence of C++ is partly driven by this reality since it makes memory optimization relatively straightforward.
Re: Why is C++ still a very popular language in quantitative finance?
#6A great many languages have support for calling external code, but debugging the interaction tends to be more trouble than it is worth.
Re: Why is C++ still a very popular language in quantitative finance?
#7Re: Why is C++ still a very popular language in quantitative finance?
#8Re: Why is C++ still a very popular language in quantitative finance?
#9Outside of a few relatively narrow topics like high frequency trading, trading algorithms for direct market access and solving optimizations, the speed of C++ is not needed. As a result I am observing more code development occurring in higher level languages such as Python, R, Matlab and SecDb/Slang. Extremely time or latency sensitive tasks are offloaded from these scripting languages onto broker algorithms or other third party libraries.
Re: Why is C++ still a very popular language in quantitative finance?
#10And by the way, for the typical user, the performance difference between C++ and, say, C# won't be as pronounced (F# is another matter, though). If you include memory usage in your performance comparison (which is very important for parallel programming), C++ is leagues ahead.
However, the gap has narrowed significantly with the introduction of pointer compression in Java. It only works up to 32GB though, so this is going to be a temporary boost for Java I guess.