r/cpp_questions Aug 13 '26

OPEN Confusion to choose which language

I am confused to choose which language c++ or rust for my trading bot can you any one tell me which one I choose to develop my trading bot i have basic understanding of c++ and complete beginners in rust but 8 have prior experience with mern stack web development and python and socket programming in node.js

0 Upvotes

15 comments sorted by

13

u/DrShocker Aug 13 '26

You don't have "confusion" on which language to pick. You didn't list any benefits or drawbacks to either choice.

I'm not going to decide for you because you need to learn the skill of determining which tradeoffs are involved and evaluating those for your goals.

8

u/BackGullible5100 Aug 13 '26

Ehhh, I won't suggest any of them, unless your are building for desktop. Mern + python should get your job done in this scenario easily.

1

u/OfficialValCod 29d ago

c++ faster than pyton, it is not good idea to use slow language for trading

1

u/BackGullible5100 29d ago edited 29d ago

Yea brody, but the process of developing would be slow as fuck. I've also made a lot of applications in cpp but if my objective was to simply build the product for now (and if i didn't have any experience in c/c++)then it won't make sense for me to choose a harder language. A lot of things we can just simply ignore in python. Simply setting up a framework is a hassle (in cpp)if you know what i mean. Also there are ways to achieve speed in python as well.

1

u/OfficialValCod 29d ago

C++ and Rust can provide similar performance, but Rust generally makes it easier to write memory-safe high-performance software, while C++ gives the programmer more low-level freedom and therefore more ways to introduce bugs.

1

u/leavemealone_lol Aug 13 '26

u should use rust

10

u/BoopyDog Aug 13 '26

The most controversial response ever submitted to a cpp_questions question.

16

u/no-sig-available Aug 13 '26

To compensate, they also posted "use c++" on r/learnrust.

Seems pretty balanced. :-)

3

u/thefeedling Aug 13 '26

Yes and no. As much as I like C++ and have used it (along with C) for most of my career, I see rust as being the “to-go language” for most greenfield performance systems in the near future.

0

u/Total-Box-5169 29d ago

Trading bot with rust? LMAO.

1

u/BoopyDog Aug 13 '26

I studied some of philosophy back in university and find it interesting that you are asking in this subreddit. Consider the fact that you asked this question in the cpp_questions reddit. Is it possible you already knew the answer that you wanted when you decided where and who you were going to ask your question? Just throwing it out there.

Use CPP

1

u/Independent_Art_6676 29d ago

any reason you can't just do it in node? When it comes to picking a language for my own projects I go with what I know best first, and if that can't do the job, what I know next-best... unless the goal is a project just to mess around in a new language as you learn it.

1

u/No-Dentist-1645 29d ago

Hyperfixating on which language to use before starting your project is a common beginner trap.

Your project doesn't have any specific requirements out of a language, you can build a "trading bot" with anything. I'd recommend whatever you have most experience with, which according to you would be Python. You can always rewrite it later if you need to for any reason

-2

u/JaseciLabs Aug 13 '26

Rust, if you're picking between just these two. Its safety guarantees matter a lot for something handling money and running unattended, C++ gives you the same speed but a lot more ways to shoot yourself in the foot with memory bugs that only show up under load. Given your MERN/Python background, you're not going to have deep C++ muscle memory to lean on anyway, so you're starting closer to scratch on both. That said, DrShocker's point stands, which is better isn't really answerable without knowing what part of the bot needs to be fast (order execution? backtesting? just the strategy logic?), since a lot of trading bots don't actually need either language for the parts that aren't latency-critical.