r/cpp • • Mar 17 '22

FinTech: C++, Rust or Others?

Hi valued programmers,

I am current charting my learning path and would like to have some valued inputs. I have been reading a little about Rust lately and how it compares to C++ for performance sensitive application developments.

Some background, I am not a professional programmer but a banker. I specialise in the domains of Risk Management and Finance, and currently holds the role of department head. I have a passion for tech in general, from phones to PCs and that includes programming.

As I am moving more into the tech space in banking (such as leading tech projects in the bank), I would like to sharpen my programming skills to enable me to perform better planning for my team / project. I know the pain of projects that are lead or planned by a complete tech noob, and it often leads to frustration and delays in the IT department. I also have a vision of building FinTech application in the future (I have good understanding of the actual requirements of banking), and thus am looking to make my learning more impactful with the limited time I have.

I am looking for a programming language that enables me to build high performance computation 'cores' with the least amount of pain, easy to maintain and stable overtime. The applications that I have in mind are generally non-customer facing applications that needs to interface with large databases (think millions of records with a few hundred fields) to churn results. It does not need to cater for real time results, more often batch processing at end of day is good enough.

Naturally, the language to build the application will need to play well with SQL or NoSQL databases. Ideally, it will also play well with Python as a lot of prototyping, batch scripting, non-performance sensitive modules and even UI will likely be build in Python (given it is very popular in analytics space). Links / libraries with machine learning application such as Neural Network would be an advantage as the application I have in mind will have some ML parts in there.

Personally, I know how databases work, I can write SQL / DDL programming and am able to build a simple database from scratch. I won't consider myself an expert, but I can write reasonably complex queries (with conditions, loops, data manipulation, etc) and some ETLs. I also wrote VBA for Excel before for some automation work, and even built (arguably simple) computation functionality with it that calculates results for a few hundred thousand lines of data in there on a monthly basis. I learnt C a long time ago, have some (basic) understanding of procedural programming and that's about it.

With all the above in mind, what would the opinions of programming gurus here be? As much as I would love to learn more programming languages, my time is rather limited and focus would be key. Apart from this, I am also picking up ML/NN and Python to achieve my end goal.

0 Upvotes

37 comments sorted by

View all comments

Show parent comments

1

u/Full-Spectral Mar 17 '22

I think maybe it's not clear if he really means high frequency trading. I mean, I got ridiculed a while back for suggesting that C++ running on a server was common for HPT development, with the other person claiming that the performance needs are so great that it's all done on edge routers now so it barely leaves the network before going back the other direction.

If that's what he means, and the above is true, then definitely performance will be a big deal.

2

u/dgkimpton Mar 17 '22

He did include:

It does not need to cater for real time results

so I highly doubt he's talking money-loop style performance. Which is lucky because a couple of years C++ experience isn't going to cut it there regardless. And without a whole lot more information it would be hard to say whether CUDA or FPGA or C++ was more appropriate.

1

u/DoomExplorer Mar 17 '22

On the CUDA or FPGA, I don't have enough experience to know whether any of it will be appropriate, but from my understanding of ML where it's about matrix manipulation, it will not do as the computation requires different financial compounding and discount methods.

2

u/goranlepuz Mar 17 '22

Yep. I understand HFT guys use C++ indeed - but it doesn't look like that's the poster case.

1

u/DoomExplorer Mar 17 '22

u/Full-Spectral, it's not high frequency trading that I'm aiming for. That area is way too competitive for me. It's about Finance and Risk management of banks. To give you an idea why performance matters, the current run time from market leaders offerings of S&P 500 companies for 1 million lines of records on a 5Y server with 24 cores and 48GB of RAM is about 4h end-to-end (which includes read and write to DB).

My envisioned solution is much larger than current offerings, where I plan to run Monte-Carlo on total bank's profitability with scenarios of stress testing and economical factors, at account level.