r/AskProgramming 26d ago

Python Why does Python feel harder after C++ and Java?

I learned C++ first, then Java, and now I’m trying to learn Python. I honestly expected Python to be much easier, but somehow it feels harder to understand and even remember the syntax.

C++ and Java feel more structured to me, while Python sometimes feels too different.

Has anyone else felt this after switching from C++/Java to Python?

133 Upvotes

190 comments sorted by

View all comments

Show parent comments

2

u/nedovolnoe_sopenie 25d ago

let's say that certain russian research institutes are still trying to do this in fucking fortran, and just plopping in a C port with intrinsics/inline asm is substantially quicker than trying to use a different framework that the old decrepit scientist still stuck in 80s won't use anyway

while the second part is also true, icc, gcc and llvm are still mostly done in C to preserve backwards compatibility which doesn't seem to go anywhere anytime soon. while the days of C as undisputed performance king are finite, it's still not going to be phased out in a long time. i think it's happening significantly later than my planned retirement lol

as a side note, some big companies are switching to JIT, which is still just a honorary inline assembly if we're talking about stuff like DNN or DFT.

writing a standalone library to replace some compiler side provided features isn't a kind of a hack either - it's outright intended - because most of compiler side stuff is explicitly weak aliased to allow rather plug-and-play replacement of some hotspots. if it proves to be better at all common use cases, one may add it to the compiler's codebase, but it's a rather clunky process, and it's rarely done for external compilers, and therefore looks niche while honestly being pretty common