Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I work in machine learning. I have to know both Python and C (C++). I feel like whatever language I will choose for learning algorithms, I will end up knowing better.

If you could choose, looking back, which language would you prefer to know better: C or Python?



That's a really tough question. If I had to pick one, I'd take C. Simply for the reason of employment. I can't think of any other reason to pick one over the other. My choice of python as my go to language has bitten me in the sense that I see very few job postings listing python as the required skill. Language isn't really important but as long as the world spins in a particular direction one has got to live with it.

On the same note of employment however, C opens up a completely different line of work in robotics and electronics related stuff which is something I really want to get into.


Interesting. Thanks. In ML field, from the point of view of employment opportunities, I'd say the real "language to know" is CUDA. Which unfortunately still leaves the choice of C vs Python: https://devtalk.nvidia.com/default/topic/540772/preferred-la...

I wish there was a book on algorithms that would display both C and Python code side by side!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: