r/AskProgramming • u/ElephantOdd5341 • 8d ago
Career/Edu C++ vs python
I'm a first year cs student and I'm wondering which is better for getting a job. I know it's more about your skills and not only the programming language but they do have different niches that they excel in.
The reason I'm asking is that I already know Python and have done extensive work in it. But I recently discovered C++ and truth be told I really like it and prefer it over Python. C++ just has so much more control and logic that you can manipulate in it. It feels more concrete for some reason.
Either way, I know learning Python is essential cuz it's the fastest way to get things done. But at the same time it's also the most popular language, so I'm wondering will learning C++ be worthwhile?
View all comments
Show parent comment
1
u/max123246 8d ago
Actually in the AI world I would say C++ isn't the majority anymore. The new hotness is GPU dsls such as triton, cutedsl, cutile, and mojo. Cutedsl and cutile for example is in python, actually, though it won't look like normal python at all. And mojo is python -like. Of course pytorch is a python framework for ML research, not writing gpu kernels
If you want to get into GPU programming, cuda c++ is a good place to start to learn SIMT style kernels for HPC type of workloads but you'll want to get into tensor core programming using tile based programming languages for any ai workloads